NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·PHPNuke 8 security worries
·PHP-Nuke SQL Injection Vulnerability Fix
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: tones
Today: 1
Yesterday: 2
Overall: 15105

Visitation:
Guests: 533
Members: 0
Total: 533


You are Anonymous user. You can register for free by clicking here
Sponsor Links
php-Nuke Themes and Templates
php-Nuke Themes and Templates

NukeResources :: View topic - No modules working
NukeResources Forum Index

NukeResources Forum Index -> Upgrading PHP-Nuke -> No modules working
Post new topic  Reply to topic    View previous topic :: View next topic 
No modules working
PostPosted: Wed Jul 19, 2006 3:10 am Reply with quote
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14




Hi,

I messed up and overwrote the modules.php file in my main directory. I was installing the topmusic module and understood it to say to upload the file to my main directory. Welllll, apparently that wasn't right. Crying or Very sad I have no idea how to fix this and was hoping someone could help me. Here's the modules.php file from my main directory:

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.       *//*                                                                      *//************************************************************************//* Additional security checking code 2003 by chatserv                   *//* http://www.nukefixes.com -- http://www.nukeresources.com             *//************************************************************************/require_once("mainfile.php");$module = 1;    $name = trim($name);if (isset($name)) {if (eregi("http\:\/\/", $name)) {   die("Hi and Bye");    }    global $nukeuser, $db, $prefix;    $user = addslashes($user);    $nukeuser = base64_decode($user);    $result = $db->sql_query("SELECT active, view FROM ".$prefix."_modules WHERE title='$name'");    $row = $db->sql_fetchrow($result);    $mod_active = intval($row['active']);    $view = intval($row['view']);    if (($mod_active == 1) OR ($mod_active == 0 AND is_admin($admin))) {      if (!isset($mop)) { $mop="modload"; }      if (!isset($file)) { $file="index"; }      if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mop)) {          echo "You are so cool...";      } else {          $ThemeSel = get_theme();       if (file_exists("themes/$ThemeSel/modules/$name/".$file.".php")) {            $modpath = "themes/$ThemeSel/";          } else {            $modpath = "";          }          if ($view == 0) {      $modpath .= "modules/$name/".$file.".php";             if (file_exists($modpath)) {                include($modpath);             } else {                die ("Sorry, such file doesn't exist...");          }            } else if ($view == 1 AND (is_user($user) OR is_group($user, $name)) OR 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) AND !is_admin($admin)) {            $pagetitle = "- "._ACCESSDENIED."";            include("header.php");            title("$sitename: "._ACCESSDENIED."");            OpenTable();            echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"                .""._MODULEUSERS."";      $result2 = $db->sql_query("SELECT mod_group FROM ".$prefix."_modules WHERE title='$name'");       $row2 = $db->sql_fetchrow($result2);        if ($row2[mod_group] != 0) {       $result3 = $db->sql_query("SELECT name FROM ".$prefix."_groups WHERE id='$row2[mod_group]'");       $row3 = $db->sql_fetchrow($result3);       echo ""._ADDITIONALYGRP.": <b>$row3[name]</b><br><br>";            }            echo ""._GOBACK."";            CloseTable();            include("footer.php");            die();            } else 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 if ($view == 3 AND paid()) {             $modpath .= "modules/$name/$file.php";             if (file_exists($modpath)) {                include($modpath);             } else {                die ("Sorry, such file doesn't exist...");            }          } else {            $pagetitle = "- "._ACCESSDENIED."";            include("header.php");            title("$sitename: "._ACCESSDENIED."");            OpenTable();            echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"                .""._MODULESSUBSCRIBER."";            if ($subscription_url != "") {               echo "<br>"._SUBHERE."";            }            echo "<br><br>"._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...");}?>



Thanks for help.

Solja~
View user's profile Send private message
PostPosted: Thu Jul 20, 2006 2:09 am Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




Upload a backup of the file.

No module should need to be uploaded to the main directory.

Just for future reference.

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PostPosted: Thu Jul 20, 2006 2:20 am Reply with quote
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14




I uploaded the module.php that came with the module to my main directory. I don't have a backup of module.php for the main directory. Should there be a module.php even in the main directory at all? This is the file that I overwrote.

Please help. I've been asking for a fix for this for days now and you are the first one to answer.

Thank you,

Solja~
View user's profile Send private message
PostPosted: Thu Jul 20, 2006 2:22 am Reply with quote
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14




The file that I posted above (localhost/portal/module.php), should I just delete it?
View user's profile Send private message
PostPosted: Thu Jul 20, 2006 3:37 pm Reply with quote
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14




Anyone?
View user's profile Send private message
PostPosted: Fri Jul 21, 2006 5:19 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




What phpNuke version are you using? Just get the file from your phpNuke package

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Fri Jul 21, 2006 5:26 pm Reply with quote
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14




I am using ver. 7.5 through a "click" in my hosting account's vdeck. I never had a package of any sort.

Should modules.php be in the main directory? Can I just use any modules.php file in the main directory? Is that what you are suggesting? To get a fresh install copy of modules.php?
View user's profile Send private message
PostPosted: Fri Jul 21, 2006 5:31 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




The 7.5 package is available for free at http://phpnuke.org

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
PostPosted: Fri Jul 21, 2006 5:34 pm Reply with quote
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14




Okay I'll try that. Thanks.
View user's profile Send private message
PostPosted: Fri Jul 21, 2006 8:56 pm Reply with quote
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14




So I just installed another whole phpnuke site under a different directory on my site, grabbed the modules.php file and copied it over the one in my main phpnuke directory. I now get this error:

Code:
Fatal error: Call to undefined function: stripos_clone() in /home/soldiere/public_html/portal/modules.php on line 25
View user's profile Send private message
PostPosted: Sat Jul 22, 2006 6:13 pm Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




Are you sure you grabbed the correct version, and also where any patches applied?

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PostPosted: Sat Jul 22, 2006 6:42 pm Reply with quote
<
Soldierette
Resource Seeker
Resource Seeker
 
Joined: Jul 19, 2006
Posts: 14