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, 40 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 - Sentinel Admin Link wrong [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
silversnake
Private
Private


Joined: Apr 08, 2004
Posts: 35


PostPosted: Thu Apr 14, 2005 4:04 am Reply with quoteBack to top

Hi all

I have just installed Sentinel and when i go to admin and click it, it takes me to:

http://www.mysite.co.uk/.php?op=ABMain

Whats the problem that can be causing the admin part to be missing?
Find all posts by silversnakeView user's profileSend private message
userken
Sergeant
Sergeant


Joined: Oct 18, 2004
Posts: 91

Location: Belgium

PostPosted: Thu Apr 14, 2005 5:31 am Reply with quoteBack to top

did you patch your files ? patch 2.9?

I had the same problem and the patch was to high for sentinel

you can try yoururl/admin.php?op=ABMain but you cant change your settings cause he ll be referring to the wrong domein link

greetings

_________________
http://www.vodka-power.be
Find all posts by userkenView user's profileSend private messageVisit poster's website
djdiz-e
Nuke Soldier
Nuke Soldier


Joined: Nov 16, 2004
Posts: 15


PostPosted: Thu Apr 14, 2005 12:01 pm Reply with quoteBack to top

try adding this to your config.php
Code:
$admin_file = "admin";
Find all posts by djdiz-eView user's profileSend private messageVisit poster's website
Leomania
Nuke Soldier
Nuke Soldier


Joined: Apr 25, 2005
Posts: 20


PostPosted: Fri May 06, 2005 11:15 am Reply with quoteBack to top

BobMarion over at NukeScripts suggested this as the proper fix, which I think is actually the correct fix:

Code:
global $admin_file;

I tested it and it works properly. Clearly $admin_file is being defined when admin.php is processed.

Original solution:

I think I did an edit that's more focused (only changes a NukeSentinel file). Here's what I did.

In admin/links/links.nukesentinel.php, I put this as the first line of code (after the opening '<?php', of course):

Code:
if(!isset($admin_file)) { $admin_file = "admin"; }

Alternatively, just change all occurences of $admin_file to "admin" (removing string concatenation operators and fixing double-quotes as necessary) in that file. None of the other links.* files in 7.5 and below use the $admin_file variable; they all hardcode admin.php as the admin file. But if you upgrade PHP-Nuke past 7.5, it might break again. So using the '!isset' construct is probably safest.

I think the use of $admin_file comes from PHP-Nuke 7.6 and above, so in 7.5 it's not defined at the time the links files are processed.

- Leo
Find all posts by LeomaniaView user's profileSend private message
Plasma
Lieutenant
Lieutenant


Joined: Jan 02, 2004
Posts: 261


PostPosted: Tue May 17, 2005 11:44 am Reply with quoteBack to top

i have phpnuke 7.5 patched and i can't get the admin to work, nor do i completely understand what was posted here. can someone please explain it a little better?
Find all posts by PlasmaView user's profileSend private message
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.printer-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.195 Seconds - 181 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::