Results 1 to 4 of 4

Thread: Php nuke - link and creating adimn trouble.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    28

    Question 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

    Like to code

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    28
    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 == 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 == 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 == 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 == 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 == 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

  3. #3
    New Member
    Join Date
    Sep 2002
    Location
    Thailand
    Posts
    8
    please check permission before . If you allow permissoin , try agin.
    http://www.letsiteasy.com

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    28
    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
    Like to code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width