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. 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...");}?>
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.
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?
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