|
-
Sep 23rd, 2002, 12:41 PM
#1
Thread Starter
Junior Member
Php nuke - link and creating adimn trouble.
http://soul.xgeek.org
ive took off the admin page for a while incase others tried to created admin , i tried to create an admin , but when i hit submit it just goes to the same page..
and the links on the page , every single one says , cannot access this file directly ...
please help , if you don't know what im talking about go to the page and try clicking some links
-
Sep 23rd, 2002, 03:33 PM
#2
Thread Starter
Junior Member
Please help 
PHP Code:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* [url]http://phpnuke.org[/url] */
/* */
/* 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 (isset($name)) {
$result = sql_query("select active, view from ".$prefix."_modules where title='$name'", $dbi);
list($mod_active, $view) = sql_fetch_row($result, $dbi);
if (($mod_active == 1) OR ($mod_active == 0 AND is_admin($admin) OR ($name == "Content"))) {
if (!isset($mop)) { $mop="modload"; }
if (!isset($file)) { $file="index"; }
if (ereg("\.\.",$name) || ereg("\.\.",$file)) {
echo "You are so cool...";
} else {
if ($view == 0) {
$modpath="modules/$name/$file.php";
if (file_exists($modpath)) {
include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
}
if ($view == 1 AND is_user($user) || is_admin($admin)) {
$modpath="modules/$name/$file.php";
if (file_exists($modpath)) {
include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
} elseif ($view == 1 AND !is_user($user) || !is_admin($admin)) {
$pagetitle = "- "._ACCESSDENIED."";
include("header.php");
title("$sitename: "._ACCESSDENIED."");
OpenTable();
echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
.""._MODULEUSERS.""
.""._GOBACK."";
CloseTable();
include("footer.php");
die();
}
if ($view == 2 AND is_admin($admin)) {
$modpath="modules/$name/$file.php";
if (file_exists($modpath)) {
include($modpath);
} else {
die ("Sorry, such file doesn't exist...");
}
} elseif ($view == 2 AND !is_admin($admin)) {
$pagetitle = "- "._ACCESSDENIED."";
include("header.php");
title("$sitename: "._ACCESSDENIED."");
OpenTable();
echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
.""._MODULESADMINS.""
.""._GOBACK."";
CloseTable();
include("footer.php");
die();
}
}
} else {
include("header.php");
OpenTable();
echo "<center>"._MODULENOTACTIVE."<br><br>"
.""._GOBACK."</center>";
CloseTable();
include("footer.php");
}
} else {
die ("Sorry, you can't access this file directly...");
}
?>
thats the php code off the module file that seems to be causing the trouble.
Last edited by Forsake; Sep 23rd, 2002 at 03:38 PM.
Like to code
-
Sep 26th, 2002, 04:06 AM
#3
New Member
please check permission before . If you allow permissoin , try agin.
http://www.letsiteasy.com
-
Sep 26th, 2002, 04:08 AM
#4
Thread Starter
Junior Member
Hey last night i just redone all the database and uploaded php nuke all again , my site is running sweet.. i got php nuke 6.0 on it !
thanx anyway
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|