On my leve site I can't get in with my own god password
get this message when trying:
Quote:
Warning: base64_decode() expects parameter 1 to be string, array given in /home/tonydg1/public_html/auth.php on line 46
Get Out!
here is cod efor auth.file mods
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
require_once("mainfile.php");
if (eregi("auth.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
Not sure if this related to your other problem (incorrect code modification) or $admin variable has been altered prior execution of auth.php file. But you can add some code to perform the $admin validation even better. This is a modified code (I cut the leading and remaining lines), notice two new lines with $_COOKIE global variable:
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