need help installing phpnuke:

Warning: Invalid argument supplied for foreach() in /users/ionichost.com/s-1/mainfile.php on 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...");
}
}

Warning: Invalid argument supplied for foreach() in /users/ionichost.com/s-1/mainfile.php on line 57

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

Fatal error: Call to undefined function: message_die() in /users/ionichost.com/s-1/db/db.php on line 88

}

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
message_die(CRITICAL_ERROR, "Could not connect to the database");
}

    Make sure you have the mysql db created, and that you have run the *.sql file that came with phpnuke. This SQL is what creates the tables. Furthermore, you must modify your config.php to reflect your setup. What version of phpNUKE are you running? do you have the proper versions of PHP and mySQL? the newer versions of phpnuke require rather new versions of php (4.3.X) and mysql.

      Write a Reply...