Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php admin.php problem

Status
Not open for further replies.

phpdude

Programmer
May 10, 2003
50
GB
Hi, im doing a site for a friend with phpnuke and when i try getting to to start from i get this


Warning: Invalid argument supplied for foreach() in /home/virtual/site515/fst/var/ on line 42

Warning: Invalid argument supplied for foreach() in /home/virtual/site515/fst/var/ on line 57

Fatal error: Call to undefined function: message_die() in /home/virtual/site515/fst/var/ on line 88

Any idea how i can fix it i think its something to do with the config.php
 
Look at the parameter that is being accessed in the first error message. That will give you an idea where to look in the config.php
 
foreach ($_GET as $secvalue) {
if ((eregi(&quot;<[^>]*script*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;<[^>]*object*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;<[^>]*iframe*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;<[^>]*applet*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;<[^>]*meta*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;<[^>]*style*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;<[^>]*form*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;<[^>]*img*\&quot;?[^>]*>&quot;, $secvalue)) ||
(eregi(&quot;\([^>]*\&quot;?[^)]*\)&quot;, $secvalue)) ||
(eregi(&quot;\&quot;&quot;, $secvalue))) {
die (&quot;I don't like you...&quot;);
}
}

is everything from 42-55 and i cant see whats up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top