Page 1 of 2

[2.0.10] Admin Links

Posted: Fri Sep 03, 2004 9:08 pm
by Extensions Robot
MOD Name: Admin Links
Author: Shof515
MOD Description: Allows admin to add links in the the admin panel.Clicking onto the link will redirect the user to that page.These Links will only be viewable to the admin in the admin panel

MOD Version: 1.4.0

Download File:
mods overview page: View
File Size: 1641 Bytes

Security Score:

Posted: Sat Sep 04, 2004 3:35 pm
by Darkmonkey
MOD Validated/Released

This MOD enables you to add links to your Administration Control Panel. File editing is required to add a new link.

Not Very Useful for Me...

Posted: Tue Sep 07, 2004 12:10 am
by mickelsn
Unfortunately, this isn't very useful for me since phpBB keeps adding the SID (session ID) variables to every link you enter in the file. Thus, it works OK for getting into my phpMyAdmin, but it breaks the login for my web host's custom control panel.

Is there any way to prevent phpBB from appending the SID to every link you place here? If so, that would make this supremely useful for me...


Posted: Tue Sep 07, 2004 2:57 am
by Shof515
umm....on my site,i have like 3-6 links on this mod,and they all load fine,without a problem.Heres a screenshot,i have a red square on the sid and on the link i clicked.The image link:
but it breaks the login for my web host's custom control panel

What Control panel are you using,i am using Cpanel and have no problems:
Did you edit the file correctly,make sure it is something like this,where phpBB is something like Control Panel,and the the url to the control panel:

Code: Select all

$module['Quick Links'][''] = append_sid("");
I have photoshoped my admin panel so i dont get any of those what mod are you using to do this,etc....

Posted: Thu Sep 09, 2004 4:00 am
by mickelsn
Yes, I've got that--the MOD works OK for linking to the phpMyAdmin from my provider (Dreamhost), but they use a custom control panel package (i.e. not cPanel), which I guess uses the "sid" variable, or at least is coded to reject a connection if they see a variable in the URL that they don't understand...

Is there ANY way to avoid having SID appended to every URL used here? I suppose I could mod the function "append_sid" to not do this for those links that are going outside the phpBB domain, but I'm wondering if there are any security ramificaitons for that? :?:


Posted: Thu Sep 09, 2004 4:29 am
by Shof515
append_sid is required in the file,becuase if u remove it,then u get a nastly parse error
Do u have any errors loading the control panel from the admin panel?...did u try talking to your host?

Posted: Sat Sep 11, 2004 12:42 am
by mickelsn
Haven't thought of talking to the host...I can certainly try that.

I would think that it's not a great idea to be sending PHP session IDs from one domain (i.e. my forums) to another, could be "hostile" and somehow hijack the session, right?

Oh, well...I'll play around a bit maybe.


Posted: Sat Sep 11, 2004 2:47 am
by Shof515
well...i am still learning php and from what i've been testing,apped_sid is he only thing that will work with-in the module code,unless i am using the link() code wrong,but i am looking into this

Posted: Mon Nov 15, 2004 9:51 pm
by ZyreXiaix
$module['Admin Links']['Google'] = append_sid("");
$module['Admin Links']['Google2'] =("");

Not using the "append_sid" does not create any parse error on my part. In fact, there's quite a bit of content from the admin_adminlinks.php file I can comment out without any change in it's functionality. But anyway...

Here is the page I get when I click on either of the Google links, as described above:

Not Found
The requested URL /?sid=a40de3a90d2d3e8a73a27ed8f0910d46 was not found on this server.

Now, when you reference, everything loads fine. So I ask the same thing 'mickelsn' asks, .. Could someone please inform us how we can use this mod, and have the links request a url WITHOUT the SID?

Posted: Mon Dec 06, 2004 1:31 am
by jalabelle2
Awesome question.

Is there a way to make it so only user id=2 can use the links?

I put up a link to phpMyAdmin, then logged in. I signed out, and logged in as a test admin on my board, and got right into phpMyAdmin without entering a password. I deleted cookes, but it made no difference. I want to make it so either the password has to be used every time the link is used, or make it so only user id=2 can use the link (only root admin can use them)


Posted: Mon Dec 06, 2004 2:44 am
by Shof515
Un-tested,but it seems that it might work:

Code: Select all

if (!empty($setmodules))
Before Add:

Code: Select all

if($user_id == 2)

Code: Select all

After Add:

Code: Select all

	message_die(GENERAL_ERROR, Main Admin Only );

Posted: Mon Dec 06, 2004 3:58 pm
by jalabelle2
When I first put this code in, I got an Unexpected T_VARIABLE error and the left menu wouldn't show up. I took the space out between "Main Admin Only" and the ")" and that got rid of the error, but the link section would no longer show up in the menu unless I took all of this code out.


Wish I knew a bit more about coding...I need to read up. I learned a LOT of html by just doing it, and learning slowly but surely php.

Thanks for the help...any other ideas?

Posted: Mon Dec 06, 2004 7:43 pm
by Shof515
Talk to host to see if that they can password phpmyadmin.Even when i have phpmyadmin to remmber my username and password,it always ask me for the user and password.

Posted: Tue Mar 29, 2005 11:59 pm
by Minoesj
I have phpBB 2.0.13 and i have the CH-MOD installed.

Will i have problems to install this mod ?


Mod problem

Posted: Sun May 15, 2005 4:38 am
by Trackit
I get an issue with this mod. If I edit the links to point to a new IP it will not allow it to point and go to the new IP. eg.

$module['Admin Links']['some site'] = append_sid("");

then change it to

$module['Admin Links']['some site'] = append_sid("");

Everything exactly the same except for the IP address change.

it keeps pointing to the, Even going into the database and removing the sid and allowing the administrator account to create a new sid it still points to the old address. And yes the file is properly altered and edited and saved with all the newer changes.

All cache and cookies for the admin account are deleted in the browser and the persistent data too. So it's not that.

Is this thing saving something somewhere else in the DB or to another file? Someone got a cure or solution for this?