You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 46 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Users Without Group Access Still View Module [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
JoLo
Nuke Cadet
Nuke Cadet


Joined: Sep 28, 2004
Posts: 5


PostPosted: Tue Sep 28, 2004 4:31 pm Reply with quoteBack to top

I think I set everything up correctly but when a registered user who doesnt have the enough points specified, they can still view the module which I specified as only being allowed access to a certain group. I'm using Nuke 7.3.
Find all posts by JoLoView user's profileSend private message
JoLo
Nuke Cadet
Nuke Cadet


Joined: Sep 28, 2004
Posts: 5


PostPosted: Thu Sep 30, 2004 3:48 pm Reply with quoteBack to top

Anybody else having this problem?
Find all posts by JoLoView user's profileSend private message
JoLo
Nuke Cadet
Nuke Cadet


Joined: Sep 28, 2004
Posts: 5


PostPosted: Tue Oct 05, 2004 7:47 am Reply with quoteBack to top

I've upgraded to 7.5 and get the same problem.
Find all posts by JoLoView user's profileSend private message
JoLo
Nuke Cadet
Nuke Cadet


Joined: Sep 28, 2004
Posts: 5


PostPosted: Tue Oct 12, 2004 4:12 pm Reply with quoteBack to top

Well thanks anyway.
Find all posts by JoLoView user's profileSend private message
np6s4x
Corporal
Corporal


Joined: Feb 08, 2004
Posts: 68


PostPosted: Fri Nov 05, 2004 10:21 pm Reply with quoteBack to top

groups broke in 7.2 and sounds like it hasn't been fixed in the newer versions

what i did is download and install nsn-groups
Find all posts by np6s4xView user's profileSend private message
HSM
Lieutenant
Lieutenant


Joined: Mar 10, 2005
Posts: 166


PostPosted: Tue Aug 09, 2005 4:23 am Reply with quoteBack to top

NSN Groups is broke too.... anyone have a current fix for this?
Find all posts by HSMView user's profileSend private messageSend e-mailVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12368


PostPosted: Tue Aug 09, 2005 4:27 am Reply with quoteBack to top

This is how I fixed it
http://www.nukefixes.com/ftopict-1379.html

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
HSM
Lieutenant
Lieutenant


Joined: Mar 10, 2005
Posts: 166


PostPosted: Tue Aug 09, 2005 5:04 am Reply with quoteBack to top

Ok, did that... I keep getting a parse error at the begining of the replacement code??
Find all posts by HSMView user's profileSend private messageSend e-mailVisit poster's website
HSM
Lieutenant
Lieutenant


Joined: Mar 10, 2005
Posts: 166


PostPosted: Thu Aug 11, 2005 3:33 am Reply with quoteBack to top

Can anyone assist further on this? Kinda difficult to run a site without any group permissions working.

The original code + the edited in code, note that the commented out edit code is the 3rd attempt at the same thing.


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");}
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;
    $user = addslashes($user);
    $nukeuser = base64_decode($user);
    $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 ($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...");
            }
/* Edit Added by AUG 9, 2005
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...");
            } else if ($view == 1 AND (is_user($user) AND !is_group($user, $name))) {
            $pagetitle = "- "._ACCESSDENIED."";
            include("header.php");
            title("$sitename: "._ACCESSDENIED."");
            OpenTable();
            echo "<center><b>"._RESTRICTEDAREA."</b><br><br>"
                .""._MODULEUSERSGROUP."";
      $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 ""._GRP.": <b>".$row3['name']."</b><br><br>";
            }
            echo ""._GOBACK."";
            CloseTable();
            include("footer.php");
            die();
*/
          } 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...");
      }} elseif ($view > 3 AND in_groups($groups)) {
                    include($modpath);

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

?>
Find all posts by HSMView user's profileSend private messageSend e-mailVisit poster's website
HSM
Lieutenant
Lieutenant


Joined: Mar 10, 2005
Posts: 166


PostPosted: Fri Aug 12, 2005 2:12 am Reply with quoteBack to top

Still seeking to fix this issue, anyone? plz!
Find all posts by HSMView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.232 Seconds - 250 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::