NukeXchange Network

          

NukeZone Hosting - Fast, Affordable and Dependable
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem
·Image display? - newbie
·php nuke help

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: Vanquistador
Today: 1
Yesterday: 1
Overall: 15103

Visitation:
Guests: 605
Members: 0
Total: 605


You are Anonymous user. You can register for free by clicking here
Sponsor Links
php-Nuke Themes and Templates
php-Nuke Themes and Templates

NukeResources :: View topic - Problem upgrading 7.4 to 7.5
NukeResources Forum Index

NukeResources Forum Index -> Upgrading PHP-Nuke -> Problem upgrading 7.4 to 7.5
Post new topic  Reply to topic    View previous topic :: View next topic 
Problem upgrading 7.4 to 7.5
PostPosted: Tue Sep 07, 2004 2:46 pm Reply with quote
JeZMaN
Resource Newbie
Resource Newbie
 
Joined: Dec 13, 2003
Posts: 29
Location: Spain




Hi,

Hi had upgrade my PHP Nuke 7.4 to 7.5. I had delete all the files from my ftp and I had upload the 7.5 version, and later I had ejecute the upgrade.

All works ok, but the administration of my edonkey module don't work, I have this error:

Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/zakatron/public_html/includes/sql_layer.php on line 286
Access Denied


With 7.4 version worked ok. Any suggestion for fix that? Rolling Eyes

When PHP Nuke Patched for 7.5?

Thanks Very Happy
View user's profile Send private message MSN Messenger
PostPosted: Tue Sep 07, 2004 3:20 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Post the first few lines of that add-on's admin/modules file, it should be something similar to:
Code:
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {


As for Nuke Patched for 7.5 it's in the works, i first need to write instructions for it to save time for users that already have Nuke Patched installed from a previous version of Nuke.

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Sep 07, 2004 3:37 pm Reply with quote
JeZMaN
Resource Newbie
Resource Newbie
 
Joined: Dec 13, 2003
Posts: 29
Location: Spain




Here is the first lines

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

$result = sql_query("select radmindownload, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radmindownload, $radminsuper) = sql_fetch_row($result, $dbi);
if (($radmindownload==1) OR ($radminsuper==1)) {


Thanks ChatServ Smile
View user's profile Send private message MSN Messenger
PostPosted: Tue Sep 07, 2004 6:09 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




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

$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminsuper) = sql_fetch_row($result, $dbi);
if ($radminsuper==1) {

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Sep 07, 2004 6:30 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




I think you can adapt that add-on to work with 7.5 by changing what i posted above to the following which will allow you to grant access to that add-on to other admins without having to make them superusers:
Code:
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
global $prefix, $db;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT title, admins FROM ".$prefix."_modules WHERE title='edonkey'"));
$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) {


Edit:
Code:
WHERE title='edonkey'

so that it reflects the actual name of the add-on (case sensitive), this of course will only work if the add-on is listed in the modules db table, since the add-on will not be listed in the edit admins section you will have to add admins manually by entering the user's name in the modules db table under the admins field in the format:
Code:
user1,

if more than one:
Code:
user1,user2,user3,

Regardless of how many admins you add for the add-on make sure the entries always end with a comma (,)

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Sep 07, 2004 7:31 pm Reply with quote
JeZMaN
Resource Newbie
Resource Newbie
 
Joined: Dec 13, 2003
Posts: 29
Location: Spain




I have adapt the edonkey add-on to work with 7.5, and works ok, thanks you Very Happy

I had to read a lot of times your post, because my english is very bad Sad But now I have understand all.

I had created a new admin, and set privilege for edonkey module (I wanted to test if work with 7.5 this add-on), and works fine. Later I wanted to change the information of the admin (change the privileges), but when I click on "Administration > Edit Admins > Modify informations" I see that this admin module (mod_authors) don't show the actual privileges of this admin. I think is a good idea if mod_authors show the actual privileges of that admin. I don't know if I explain correct... Sad but mi bad english....... Crying or Very sad

Thanks for all ChatServ Very Happy

I edit this post:

Now I had deleted the admin test, but in db table nuke_modules, in admin field is the admin test. Why when I deleted the admin test don't delete this admin on nuke_modules? is a bug? Thanks again.
View user's profile Send private message MSN Messenger
PostPosted: Tue Sep 07, 2004 7:48 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Like i said in my post you would have to manually edit the user's permissions, remember, Nuke's authors.php file does not come with edonkey coded into it so you have to manually delete the author from the nuke_modules db table.

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Sep 07, 2004 7:53 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Try this to see if edonkey gets listed in the edit admins section:
in admin/modules/authors.php find:
Code:
if (file_exists("modules/$row[title]/admin/index.php") AND file_exists("modules/$row[title]/admin/links.php") AND file_exists("modules/$row[title]/admin/case.php")) {

change to:
Code:
if (file_exists("modules/$row[title]/admin/index.php") AND file_exists("modules/$row[title]/admin/links.php") AND file_exists("modules/$row[title]/admin/case.php") || if $row[title] == "edonkey") {

If it doesn't work simply change the line back to what it was.

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Tue Sep 07, 2004 11:34 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Ok, made a tutorial for converting third party add-on admin files to the new format:

http://www.nukefixes.com/ftopicp-2806.html#2806

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
Problem upgrading 7.4 to 7.5
 NukeResources Forum Index -> Upgrading PHP-Nuke
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 132 unique hit(s) in the past 24 hours.
Forums ©
Nuke Sites Link Directory


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.68 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::