Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
JRSweets
Worker
Worker



Joined: Aug 06, 2004
Posts: 192

PostPosted: Thu Sep 16, 2004 1:32 pm Reply with quote

Does anyone know if the latest CNB YA will work with Nuke 7.5?
 
View user's profile Send private message
spcdata
Regular
Regular



Joined: Jan 24, 2004
Posts: 81
Location: Sweden

PostPosted: Thu Sep 16, 2004 1:55 pm Reply with quote

Hi!

I did like this:

To make it work you have to move:

case.users.php
links.editusers.php
users.php

from nukeroot admin/ folders
to Your_Account/admin/

and rename them to :

case.users.php = case.php
links.editusers.php = links.php
users.php = index.html

Then open index.php and replace all in it with this:

Code:
if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); } 

$module_name = "Your_Account";
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT title, admins FROM ".$prefix."_modules WHERE title='Your_Account'"));
$row2 = $db->sql_fetchrow($db->sql_query("SELECT name, radminsuper FROM ".$prefix."_authors WHERE aid='$aid'"));
$admins = explode(",", $row['admins']);
$auth_user = 0;
for ($i=0; $i < sizeof($admins); $i++) {
    if ($row2['name'] == "$admins[$i]" AND $row['admins'] != "") {
        $auth_user = 1;
    }
}

if ($row2['radminsuper'] == 1 || $auth_user == 1) {

    switch($op) {

        case "mod_users":
        Header("Location: modules.php?name=Your_Account&file=admin");
        break;

    }

} else {
    echo "Access Denied";
}


?>


Then open links.php and replace all in it with this:

Code:
<?php


if (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }
$module_name = "Your_Account";
get_lang("Your_Account");
    adminmenu("modules.php?name=Your_Account&file=admin", ""._EDITUSERS."", "users.png");

?>


Then open "Your_Account/admin.php" and replace the first part of it it should look like this:

Code:
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) { die ("You can't access this file directly..."); } 

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("modules/$module_name/includes/functions.php");
get_lang($module_name);

if(is_admin($admin)) {
    if(!is_array($admin)) {
        $adm = base64_decode($admin);
        $adm = explode(":", $adm);
        $aname = "$adm[0]";
    } else {
        $aname = "$admin[0]";
    }
}
$ya_config = ya_get_configs();
list($radminsuper) = $db->sql_fetchrow($db->sql_query("select radminsuper from ".$prefix."_authors where aid='$aname'"));
if (($radminsuper==1)) {


There is probably easier ways to do it like remove "$radminuser" from all files. hope this helps you!

_________________
/spcdata 
View user's profile Send private message Send e-mail Visit poster's website
spcdata







PostPosted: Thu Sep 16, 2004 2:06 pm Reply with quote

Quote:

To make it work you have to move:

case.users.php
links.editusers.php
users.php

from nukeroot admin/ folders
to Your_Account/admin/


This is after You have copied all files from the CNB YA to your nuke root then these 3 files will be in your "nukeroot admin/ folders"
 
afc
Worker
Worker



Joined: Aug 16, 2003
Posts: 107
Location: USA

PostPosted: Thu Sep 16, 2004 2:15 pm Reply with quote

As a tester of CNBYA we have just finished last test on the 7.4 version, he will be releasing new version in few days, then he will be sending us the 7.5 version Rolling Eyes
 
View user's profile Send private message
JRSweets







PostPosted: Thu Sep 16, 2004 9:29 pm Reply with quote

Thanks for all the info guys. I think I might wait until they release the 7.5 version, as I have never used the product yet and currently everything is working fine.
 
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.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©