Foreach not working, PHPNuke 6.5 , Help

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Foreach not working, PHPNuke 6.5 , Help
kalsarao
CZ Newbie
kalsarao has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Jun 08, 2005
0.00 posts per day
Posts: 1
Points: 43
   
Hi Guys,

I am new to PHP and tried to Install PhpNuke and PhpDev on my Laptop.
PHPDev and My SQL and working Great. But i am getting this error with PHP Nuke ( Version is 6.5) . Could some one help? Thanks in Advance


Warning: Invalid argument supplied for foreach() in c:\phpdev\www\alumni\html\mainfile.php on line 42

Warning: Invalid argument supplied for foreach() in c:\phpdev\www\alumni\html\mainfile.php on line 57


Here is the code at that Lines..

Line 42

foreach ($_GET as $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue))) {
die ("I don't like you...");
}
}


and Line 57

foreach ($_POST as $secvalue) {
if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
Header("Location: index.php");
die();
}
}



Could some one plese help. Thanks

Kalsa



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum