Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Not in my version of PHPNuke' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Not in my version of PHPNuke
Authored by: mike3k on Jan 08, '02 10:20:20PM
What version of PHPNuke are you running? In 5.3.1, the code looks like this:
if ($admintest == 1) {
    $basedir = dirname($SCRIPT_FILENAME);
    $textrows = 20;
    $textcols = 85;
    $udir = dirname($PHP_SELF);
    if(!$wdir) $wdir="/";
    if($cancel) $op="FileManager";
    if(($upload) && ($admintest)) {
	copy($userfile,$basedir.$wdir.$userfile_name);
	$lastaction = ""._UPLOADED." $userfile_name --> $wdir";
	$wdir2="/";
	chdir($basedir . $wdir2);
	Header("Location: admin.php?op=FileManager");
	exit;
    }
}


[ Reply to This | # ]
Not in my version of PHPNuke
Authored by: zellpharm on Jan 08, '02 11:29:44PM
I'm running 5.2. You can modify your code as such:

if ($admintest == 1) {
    $basedir = dirname($SCRIPT_FILENAME);
    $textrows = 20;
    $textcols = 85;
    $udir = dirname($PHP_SELF);
    if(!$wdir) $wdir="/";
    if($cancel) $op="FileManager";
    if(($upload) && ($admintest)) {
	// copy($userfile,$basedir.$wdir.$userfile_name);
	//$lastaction = ""._UPLOADED." $userfile_name --> $wdir";
// 	$wdir2="/";
//	chdir($basedir . $wdir2);
//	Header("Location: admin.php?op=FileManager");
	exit;


    }


}




     

[ Reply to This | # ]