Site Transfer = Module.php error

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Site Transfer = Module.php error
Block123
CZ Newbie
Block123 has been a member for over 19 year's 19 Year Member
usa.gif texas.gif
Occupation: Telecom
Age: 53
Gender: Male
Fav. Sports Team: Denver Broncos
Status: Offline
Joined: Jul 07, 2005
0.00 posts per day
Posts: 23
Points: 972
   
I've been transfering my site over to a new host. Things are going ok i guess.

If i try to access any other page than the home page I get the following:

Fatal error: Call to undefined function: stripos_clone() in /home/sweptlin/public_html/modules.php on line 25


modules.php below, any idea what's going on? I can't access, forums, sign up, link, dopwnloads, anything associated with a module.

<?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.       */
/************************************************************************/

require_once("mainfile.php");
$module = 1;

    $name = trim($name);
if (isset($name)) {
    global $nukeuser;
    $nukeuser = base64_decode($user);
    $sql = "SELECT active, view FROM ".$prefix."_modules WHERE title='$name'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $mod_active = $row[active];
    $mod_active = intval(trim($mod_active));
    $view = $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...");
      }
       }
       if ($view == 1 AND is_user($user) AND 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) || !is_admin($admin)) {
      $pagetitle = "- "._ACCESSDENIED."";
      include("header.php");
      title("$sitename: "._ACCESSDENIED."");
      OpenTable();
      echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
          .""._MODULEUSERS."";
      $sql = "SELECT mod_group FROM ".$prefix."_modules WHERE title='$name'";
      $result = $db->sql_query($sql);
      $row = $db->sql_fetchrow($result);
      if ($row[mod_group != 0]) {
          $sql = "SELECT name FROM ".$prefix."_groups WHERE id='$row[mod_group]'";
          $result = $db->sql_query($sql);
          $row = $db->sql_fetchrow($result);
          echo ""._ADDITIONALYGRP.": <b>$row[name]</b><br><br>";
      }
      echo ""._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...");
}

?>



Back to top Reply with quote
#2   re: Site Transfer = Module.php error
Block123
CZ Newbie
Block123 has been a member for over 19 year's 19 Year Member
usa.gif texas.gif
Occupation: Telecom
Age: 53
Gender: Male
Fav. Sports Team: Denver Broncos
Status: Offline
Joined: Jul 07, 2005
0.00 posts per day
Posts: 23
Points: 972
   
My breath must stink....

I figured it out. Thanks



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum