help , truoble for a real php n00b ...
Posted: Sun Dec 15, 2002 5:31 am
i have a big problem , im suposed to enter witch forums a hack should be active in , thats a nice long list ,
and im supposed to enter like this :
now mine looks like this :
so i want these forum id's to be in ..
but how do i separate them , cause php dont like nether commas or semicolon
//tnx in advance =)
and im supposed to enter like this :
Code: Select all
// IP&PATH-Hack - Activate only on "selected" forums(2)
if ($forumid==2) {
eval("\$ippathform = "".gettemplate("newthread_ippathform")."";");
}
else {
$ippathform='';
}Code: Select all
// IP&PATH-Hack - Activate only on "selected" forums(2)
if ($forumid==if (($thread['forumid']==17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,35,37,38,39,40,41,42,43,44,45,46,47,53,54,55,57,58)) {
eval("\$ippathform = "".gettemplate("newthread_ippathform")."";");
}
else {
$ippathform='';
}but how do i separate them , cause php dont like nether commas or semicolon
//tnx in advance =)