- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 148 guest(s) and 2 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - After Installing NSN Groups..... [ ]
Author
Message
DIVAN
Nuke Cadet
Joined: Feb 29, 2008
Posts: 2
Posted:
Mon Mar 10, 2008 12:25 pm
I Recently Installed NSN Groups, As I Was Suggested To In A Previous Thread, After Installation All My Links Get A White Page, With "You can't access this file directly..." And To boot, When I Click The NSN Groups Icon In My Control Panel It Doesn't Even Work. I Had It Working Before With A little Goofing Around, But Now Cannot Remeber What I Did, But I do Remeber That When it did work That Somthing Else Didnt, Obviously My Poor Memory Wont Help You, To Help Me, And I Understand That. If Possible Please Let Me Know Wat I can Do To Fix This
Thank You,
Dylan
-------------------------------EDIT-----------------------------------------
Other Than The Fact That Either Or Still Does Not make The NSN Groups Admins Section Work, I Have Replaced The Modules.php File From The NSN Groups Installation With The Original I Had, I Have Noticed They Are Both Different From each Other In Some Form Or Another.
- I Am Using Phpnuke 8.1
I Will Post Both Files, Tell Me What You Think.
-Original
Quote:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2007 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");
if (isset($name) && $name == $_REQUEST['name']) {
$name = addslashes(trim($name));
$modstring = strtolower($_SERVER['QUERY_STRING']);
if (stripos_clone($name, "..") OR ((stripos_clone($modstring,"&file=nickpage") || stripos_clone($modstring,"&user=")) AND ($name=="Private_Messages" OR $name=="Forums" OR $name=="Members_List"))) header("Location: index.php");
global $nukeuser, $db, $prefix, $user;
if (is_user($user)) {
$nukeuser = base64_decode($user);
$nukeuser = addslashes($nukeuser);
} else {
$nukeuser = "";
}
$result = $db->sql_query("SELECT active, view FROM ".$prefix."_modules WHERE title='".addslashes($name)."'");
list($mod_active, $view) = $db->sql_fetchrow($result);
$mod_active = intval($mod_active);
$view = intval($view);
if (($mod_active == 1) OR ($mod_active == 0 AND is_admin($admin))) {
if (!isset($mop) OR $mop != $_REQUEST['mop']) $mop="modload";
if (!isset($file) OR $file != $_REQUEST['file']) $file="index";
if (stripos_clone($file,"..") OR stripos_clone($mop,"..")) die("You are so cool...");
$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 {
include("header.php");
OpenTable();
echo "<br><center>Sorry, such file doesn't exist...</center><br>";
CloseTable();
include("footer.php");
}
} elseif ($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 {
include("header.php");
OpenTable();
echo "<br><center>Sorry, such file doesn't exist...</center><br>";
CloseTable();
include("footer.php");
}
} elseif ($view == 1 AND !is_user($user) AND !is_admin($admin)) {
$pagetitle = "- "._ACCESSDENIED;
include("header.php");
title($sitename.": "._ACCESSDENIED);
OpenTable();
echo "<center><strong>"._RESTRICTEDAREA."</strong><br><br>"._MODULEUSERS;
$result2 = $db->sql_query("SELECT mod_group FROM ".$prefix."_modules WHERE title='".addslashes($name)."'");
list($mod_group) = $db->sql_fetchrow($result2);
if ($mod_group != 0) {
$result3 = $db->sql_query("SELECT name FROM ".$prefix."_groups WHERE id='".intval($mod_group)."'");
$row3 = $db->sql_fetchrow($result3);
echo _ADDITIONALYGRP.": <b>".$row3['name']."</b><br><br>";
}
echo _GOBACK;
CloseTable();
include("footer.php");
} elseif ($view == 2 AND is_admin($admin)) {
$modpath .= "modules/$name/".$file.".php";
if (file_exists($modpath)) {
include($modpath);
} else {
include("header.php");
OpenTable();
echo "<br><center>Sorry, such file doesn't exist...</center><br>";
CloseTable();
include("footer.php");
}
} 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");
} elseif ($view == 3 AND paid()) {
$modpath .= "modules/$name/".$file.".php";
if (file_exists($modpath)) {
include($modpath);
} else {
include("header.php");
OpenTable();
echo "<br><center>Sorry, such file doesn't exist...</center><br>";
CloseTable();
include("footer.php");
}
} else {
$pagetitle = "- "._ACCESSDENIED."";
include("header.php");
title($sitename.": "._ACCESSDENIED."");
OpenTable();
echo "<center><strong>"._RESTRICTEDAREA."</strong><br><br>"._MODULESSUBSCRIBER;
if (!empty($subscription_url)) echo "<br>"._SUBHERE;
echo "<br><br>"._GOBACK;
CloseTable();
include("footer.php");
}
} else {
include("header.php");
OpenTable();
echo "<center>"._MODULENOTACTIVE."<br><br>"._GOBACK."</center>";
CloseTable();
include("footer.php");
}
} else {
header("Location: index.php");
exit;
}
?>
-NSN
Quote:
<?php
/********************************************************/
/* NSN Groups Universal */
/* By: NukeScripts Network (webmaster@nukescripts.net) */
/* http://www.nukescripts.net */
/* Copyright © 2000-2005 by NukeScripts Network */
/********************************************************/
require_once("mainfile.php");
$module = 1;
$name = trim($name);
if (isset($name)) {
if (eregi("http\:\/\/", $name)) { die("Hi and Bye"); }
if (eregi("http\:\/\/", $file)) { die("Hi and 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 * FROM ".$prefix."_modules WHERE title='$name'");
$row = $db->sql_fetchrow($result);
$mod_active = intval($row['active']);
$view = intval($row['view']);
$groups = $row['groups'];
if (($mod_active == 1) OR is_admin($admin)) {
if (!isset($mop)) { $mop="modload"; }
if (!isset($file)) { $file="index"; }
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mop)) {
$pagetitle = "- "._SOCOOL;
include("header.php");
OpenTable();
echo "<center><b>"._SOCOOL."</b></center><br>";
echo "<center>"._GOBACK."</center>";
CloseTable();
include("footer.php");
die();
} else {
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/modules/".$name."/".$file.".php")) {
$modpath = "themes/$ThemeSel/";
} else {
$modpath = "";
}
$modpath .= "modules/".$name."/".$file.".php";
if (file_exists($modpath)) {
if ($view == 0) {
include($modpath);
} elseif ($view == 1 AND (is_user($user) OR is_group($user, $name) OR is_admin($admin))) {
include($modpath);
} elseif ($view == 2 AND is_admin($admin)) {
include($modpath);
} elseif ($view == 3 AND paid()) {
include($modpath);
} elseif ($view > 3 AND in_groups($groups)) {
include($modpath);
} else {
$pagetitle = "- "._RESTRICTEDAREA;
include("header.php");
OpenTable();
echo "<center><b>"._RESTRICTEDAREA."</b></center><br>";
echo "<center>"._GOBACK."</center>";
CloseTable();
include("footer.php");
die();
}
} else {
$pagetitle = "- "._FILENOTFOUND;
include("header.php");
OpenTable();
echo "<center><b>"._FILENOTFOUND."</b></center><br>";
echo "<center>"._GOBACK."</center>";
CloseTable();
include("footer.php");
die ();
}
}
} else {
$pagetitle = "- "._MODULENOTACTIVE;
include("header.php");
OpenTable();
echo "<center>"._MODULENOTACTIVE."</center><br>";
echo "<center>"._GOBACK."</center>";
CloseTable();
include("footer.php");
die ();
}
} else {
$pagetitle = "- "._MODULENOTFOUND;
include("header.php");
OpenTable();
echo "<center>"._MODULENOTFOUND."</center><br>";
echo "<center>"._GOBACK."</center>";
CloseTable();
include("footer.php");
die ();
}
if (!function_exists("stripos_clone")) {
function stripos_clone($haystack, $needle, $offset=0) {
return strpos(strtoupper($haystack), strtoupper($needle), $offset);
}
}
?>
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