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, 54 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 - O.k. Now for the Extra's [ ]
 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
eadtf
Private
Private


Joined: Jul 26, 2004
Posts: 46


PostPosted: Thu Sep 02, 2004 12:14 am Reply with quoteBack to top

I placed the links.asec.php in my Admin Links, I added the Icon to the images/admin/ section. But still can't get the Shortcut to my (renamed asec.php) file to work.

If I am correct, this should add the image to my admin menu, am I right?

Code:

<?php

if (function_exists('asec_isAdmin') && function_exists('asec_isGodAdmin')) {
   if (asec_isAdmin($admin) && asec_isGodAdmin($admin)) {
      $asecfile = "";
      $asecfnum = 0;
      $hDir = @opendir("./");
      while ($file = readdir($hDir)) {
         if ( ($file != '.') && ($file != '..') && is_file($file) && eregi('^asap-([a-z0-9_-]+)\.php$', $file) ) {
            $asecfile = $file;
            $asecfnum++;
         }
      }
      closedir($hDir);
      if (($asecfile != "") && ($asecfnum == 1)) { adminmenu("$asecfile", "Admin Secure", "asec.png"); }
   }
}

?>
Find all posts by eadtfView user's profileSend private message
eadtf
Private
Private


Joined: Jul 26, 2004
Posts: 46


PostPosted: Thu Sep 02, 2004 1:03 am Reply with quoteBack to top

O.k. I found the answer in the "Tips.txt" file under the "Docs" folder:

Quote:

+--------------------------------------------------------------------------+
| PUTTING ADMIN SECURE LINK INTO PHP-NUKE ADMINISTRATION MENU |
+--------------------------------------------------------------------------+

This tips will show you how to put Admin Secure link and icon into your
PHP-Nuke administration menu, so you can easily accesing your Admin Secure
Administration Panel from PHP-Nuke admin panel. In "extras" directory found
on archive package, you will find two files for this purpose:

links.asec.php (link script for PHP-Nuke admin menu)
asec.png (Admin Secure icon image shown at PHP-Nuke admin menu)

First, you will have to put both of these files into proper directory
located on your server:

[phpnuke_root]/admin/links/links.asec.php
[phpnuke_root]/images/admin/asec.png

Second, you will have to rename Admin Secure Administration Panel script
file (default is asec.php) into this following naming convention:

asap-[something].php

where [something] is any name you choose with the combination of alpha-
numeric (a-z, A-Z), numeric (0-9), underscores, and dashes. Be sure not
to specify any whitespaces because at some systems, filename cannot
containing any whitespaces. These are some valid filenames:

asap-boinkboink.php
asap-1st-2nd-3rd.php
asap-Do_Not_Delete_This_File.php

Don't be confused with what the 'asap' mean, it simply a short of "Admin
Secure Administration Panel".

Once you have done with it, Admin Secure link and icon will displayed at
your PHP-Nuke admin menu, with the following conditions:

- Admin Secure already installed
- The icon and link only seen by God Admin
- The script file (asap-[something].php) is stored in PHP-Nuke root
- There is no more than one asap-[something].php file found


In the "Install.txt" file it states:

Quote:

Rename "asec.php" file to any filename you want but keep the extension.
Rename to any name that meaningless but easy to remember for you.
Be sure not using spaces for filename. On *nix system, filename are
case-sensitive. Some examples:
- whosthebest.php
- arnold_illbeback.php
- what_the_hell_is_this.php


It was a bit confusing but now it makes sense, just add the "asap-" in front of whatever you renamed the "asec.php" too!!!

Well maybe this will help others.

Pat
Find all posts by eadtfView user's profileSend private message
madman
Support Mod
Support Mod


Joined: Feb 15, 2004
Posts: 806


PostPosted: Thu Sep 02, 2004 9:35 am Reply with quoteBack to top

Thank you, eadtf. Smile
As always, rule number 1: Read the manual before doing anything. Smile

_________________
I'm Image
Find all posts by madmanView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
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.192 Seconds - 332 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::