I used to apply the following code and it worked very well. But since I upgraded to phpnuke 6.0 this is no longer possible, instead the script is searching for the admin data in a wrong database.
Any help?
--
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/username/public_html/com/includes/sql_layer.php on line 306
Table 'username_anotherdb.nuke_authors' doesn't existSelection from database failed!
--
The code I am using:
Quote:
$youareadmin = 0;
global $prefix, $dbi, $admin;
if (is_admin($admin)) {
$youareadmin = 1;
}
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