[2.0.10] Admin Links

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
2
29%
Very Good
2
29%
Good
1
14%
Fair
2
29%
Poor
0
No votes
 
Total votes: 7

JesusPobox
Registered User
Posts: 40
Joined: Thu Oct 20, 2005 11:58 am

Post by JesusPobox » Sat Dec 31, 2005 9:23 am

I want it to open the page in new window how?

JesusPobox
Registered User
Posts: 40
Joined: Thu Oct 20, 2005 11:58 am

Post by JesusPobox » Tue Jan 03, 2006 2:47 pm

why there is not response :cry:

User avatar
Doctor Love
Registered User
Posts: 117
Joined: Sat Jul 24, 2004 12:20 am
Location: USA
Contact:

Post by Doctor Love » Fri Jun 02, 2006 3:02 pm

I would, also, like to open my Admin_Links in a new window (target="_blank"), but I'm not PHP oriented. Besides this particular linking script uses $trings.

Anybody?
Aleichem Shalom,

Doctor Love

xionx
Registered User
Posts: 16
Joined: Tue Jun 06, 2006 4:13 pm

Post by xionx » Fri Jun 09, 2006 1:24 pm

This Mod says to copy the "admin_adminlinks.php" over the original file.
I don't have that file in my admin folder? where is this file, or how can I create it? I have the newest PHPBB version.

please help

User avatar
Doctor Love
Registered User
Posts: 117
Joined: Sat Jul 24, 2004 12:20 am
Location: USA
Contact:

ADMIN_ADMINLINKS.PHP

Post by Doctor Love » Sat Jun 10, 2006 12:20 am

Here is an example that you place in your PHPBB2/ADMIN folder by the name of admin_adminlinks.php you can add as many links as you like by duplicating the
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
line, AND changing the example address(es) information to a correct URL address. Also, pick your own title for the Admin List.
<?php
/***************************************************************************
* begin : Thu July 27, 2004
* copyright : (C) 2004 Shof515
* email : shof515@gmail.com
*
****************************************************************************/
define('IN_PHPBB', 1);

//
// First we do the setmodules stuff for the admin cp.
//

if (!empty($setmodules))

{

$filename = basename(__FILE__);
$module['Admin Links']['phpBB2_Home'] = append_sid("http://www.phpbb.com/");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
$module['Admin Links']['Your Title Goes Here'] = append_sid("http://www.URLGOES HERE.com");
return;

}

//
// Load default header
//

$no_page_header = TRUE;

$phpbb_root_path = './../';

require($phpbb_root_path . 'extension.inc');

require('./pagestart.' . $phpEx);

//
// Output the authorisation details
//

include('./page_header_admin.'.$phpEx);

$template->pparse('body');

include('./page_footer_admin.'.$phpEx);

?>
Aleichem Shalom,

Doctor Love

Bramster
Registered User
Posts: 605
Joined: Sun Jul 27, 2003 10:40 am

Post by Bramster » Sat Aug 12, 2006 12:50 am

Just as Dr Love I would also like to know what code to change to make the links open in a new or blank window.

Thanks in advance for your help

Bramster
Navy & Merchant Marine Forum:
www.DutchFleet.net

Bramster
Registered User
Posts: 605
Joined: Sun Jul 27, 2003 10:40 am

Post by Bramster » Sun Aug 13, 2006 1:48 pm

Anyone ? Or is this mod abandoned ? Which would be too bad because it is very simple but effective !
Navy & Merchant Marine Forum:
www.DutchFleet.net

Bramster
Registered User
Posts: 605
Joined: Sun Jul 27, 2003 10:40 am

Post by Bramster » Mon Nov 20, 2006 10:49 am

helloooOOOOoooo

:(
Navy & Merchant Marine Forum:
www.DutchFleet.net

Bramster
Registered User
Posts: 605
Joined: Sun Jul 27, 2003 10:40 am

Post by Bramster » Tue Nov 21, 2006 9:03 am

I noticed that when I use this mod the actual link (noticable when hoovering over it is) is followed by a code. E.g. sid=f604478c583e7ebd3a4a08182df38b95

It seems to me that is the code that allows me to acces the ACP panel. Is that assumption correct ?

So can the site where I surf to using this mod also see that code in their server stats ?

If yes it is clear this is a security risk. Or am I talking non sense ? Please some one tell me there is nothing to worry about :D
Navy & Merchant Marine Forum:
www.DutchFleet.net

User avatar
Ornette
Registered User
Posts: 56
Joined: Thu Mar 06, 2008 3:53 pm

Re: [2.0.10] Admin Links

Post by Ornette » Sat May 31, 2008 11:48 pm

I've done an updated version of this, it doesn't send append the SID to the link anymore...

However it does still inform the site of the SID via the referrer... I'm not sure whether this is a security risk or not... Anyone got any ideas?

Code: Select all

##############################################################
## MOD Title: Admin Links
## MOD Author: Ornette <> Ornette Wilson  http://www.stressfactor.co.uk
## MOD Author: Shof515 <shof515@gmail.com> Shaun  http://shof515.com
## MOD Description: Allows links to be added to the admin contol panel. Clicking onto the link will redirect the user to that page.
## MOD Version: 2.0.0
##
## Installation Level: Easy
## Installation Time: 2-3 Minutes
## Files To Edit:   1
##       admin/admin_board.php
## Included Files:     
##       admin_adminlinks.php
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##  This is a quick litte modification where admins can add links
##  to the navigation panel in the ACP. To add links, edit
##  admin_adminlinks.php manually and add to the list as such:
##        $extlink['My site'] = "http://www.mysite.com/";
##
##############################################################
## MOD History:
##
##   2004-07-27 - Version 1.0.0
##      - First verison made
##   2004-09-01- Version 1.0.3
##      - Fixed a few things
##   2004-09-03- Version 1.0.4
##      - Fixed a buged
##   2008-05-31 - Version 2.0.0
##      - Major bug fixed, SIDs are no longer appended to external links
##      - Added logic to prevent module admin_adminlinks.php being
##        processed when this mod is deinstalled
##        from EasyMOD History
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]----------------------------------------------
#
copy admin/admin_adminlinks.php to admin/admin_adminlinks.php
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
    ksort($module);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
    $module = array_merge_recursive($module, $extlinks);
#
#-----[ FIND ]------------------------------------------
#
                "U_ADMIN_MODULE" => append_sid($file))
#
#-----[ REPLACE ]------------------------------------------
#
                "U_ADMIN_MODULE" => ($cat == $admin_links_cat_name) ? $file : append_sid($file))
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM 
also the admin_adminlinks.php

Code: Select all

<?php
/***************************************************************************
*     MOD title:            Admin Links
*     filename:             admin_adminlinks.php
*     author:               Ornette  http://www.stressfactor.co.uk
*     author:               Shof515  http://shof515.com
*     version:              2.0.0
*     Updated               31st May, 2008
*
****************************************************************************/
define('IN_PHPBB', 1);
//
// First we do the setmodules stuff for the admin cp.
//
if (!empty($setmodules))
{
	$filename = basename(__FILE__);
    
    $admin_links_cat_name = 'Admin Links';
    
    $extlink['my link1'] = "http://www.mylink1.com";
    $extlink['my link2'] = "http://www.mylink2.com";
    $extlink['my link3'] = "http://www.mylink3.com";

    foreach ($extlink as $key => $value) {
        $extlinks[$admin_links_cat_name][$key] = $value;
        }
        
	return;
}

//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = './../';
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);

//
// Output the authorisation details
//

include('./page_header_admin.'.$phpEx);

$template->pparse('body');

include('./page_footer_admin.'.$phpEx);

?>
DJ Ornsman - Back To 93
Tuesday 9-11pm GMT on Stress Factor

http://www.stressfactor.co.uk

Post Reply

Return to “[2.0.x] MOD Database Cleanup”

Who is online

Users browsing this forum: No registered users and 5 guests