PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Thu Sep 08, 2005 2:39 pm Reply with quote Back to top

Code:
<?php



/************************************************************************/

/* PHP-NUKE: Web Portal System                                          */

/* ===========================                                          */

/*                                                                      */

/* Copyright (c) 2005 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.       */

/************************************************************************/



define('MODULE_FILE', true);

@require_once("mainfile.php");

define('INDEX_FILE', true);



$name = trim($name);

if (isset($name)) {

   if (eregi("http\:\/\/", $name)) {

      die("Hi&nbsp;and&nbsp;Bye");

   }

   $modstring = strtolower($_SERVER['QUERY_STRING']);

   if (stripos_clone($modstring,"&user=") AND ($name=="Private_Messages" || $name=="Forums" || $name=="Members_List")) header("Location: index.php");

   global $nukeuser, $db, $prefix;

   $nukeuser = base64_decode($user);

   $nukeuser = addslashes($nukeuser);

   $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 read the forums and found that i need to change
$index
but i dont have $index here can someone help me?
View user's profile Send private message
vector
Client


Joined: Nov 06, 2004
Posts: 20

PostPosted: Thu Sep 08, 2005 3:35 pm Reply with quote Back to top

yes you do but it is in the theme.php of the theme you are using, thats where you need to look to change it. Look in your theme you are using currently and look for

In theme.php find:
if ($index == 1) {
and change to:


/**********************************/
/* Theme Configuration */
/* (right side on) */
/* Change the following line */
/* will show the right side */
/**********************************/

if (defined('INDEX_FILE')) {


Hope this helps ya some
View user's profile Send private message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Thu Sep 08, 2005 4:20 pm Reply with quote Back to top

thanks
it works now
View user's profile Send private message
vector
Client


Joined: Nov 06, 2004
Posts: 20

PostPosted: Thu Sep 08, 2005 5:01 pm Reply with quote Back to top

just curious, what version are you using. 7.6 regular nuke or an off brand made by someone else ? LIke a platinum or aI-Nuke CMS and what theme was it ?
View user's profile Send private message
providence
Regular
Regular


Joined: Apr 23, 2005
Posts: 95

PostPosted: Thu Sep 08, 2005 8:45 pm Reply with quote Back to top

Im running original version 7.6
View user's profile Send private message
porcupinepc
Involved
Involved


Joined: Sep 20, 2003
Posts: 261
Location: Schumacher, Ontario CANADA

PostPosted: Fri Sep 09, 2005 8:02 am Reply with quote Back to top

I am running PHPNuke v7.6 Patched Level 3.1 and i am having the same problem. No modules appear on the right.

Joe
View user's profile Send private message Send e-mail Visit poster's website ICQ Number
Donovan
Client


Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Fri Sep 09, 2005 2:55 pm Reply with quote Back to top

Look in every index.php of all your modules and make the change there as well.

if (defined('INDEX_FILE')) {

Whether they are active or not.

Worked for me.
View user's profile Send private message Visit poster's website ICQ Number
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum