Page 2 of 2

Posted: Sat Dec 31, 2005 9:23 am
by JesusPobox
I want it to open the page in new window how?

Posted: Tue Jan 03, 2006 2:47 pm
by JesusPobox
why there is not response :cry:

Posted: Fri Jun 02, 2006 3:02 pm
by Doctor Love
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?

Posted: Fri Jun 09, 2006 1:24 pm
by xionx
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

ADMIN_ADMINLINKS.PHP

Posted: Sat Jun 10, 2006 12:20 am
by Doctor Love
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);

?>

Posted: Sat Aug 12, 2006 12:50 am
by Bramster
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

Posted: Sun Aug 13, 2006 1:48 pm
by Bramster
Anyone ? Or is this mod abandoned ? Which would be too bad because it is very simple but effective !

Posted: Mon Nov 20, 2006 10:49 am
by Bramster
helloooOOOOoooo

:(

Posted: Tue Nov 21, 2006 9:03 am
by Bramster
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

Re: [2.0.10] Admin Links

Posted: Sat May 31, 2008 11:48 pm
by Ornette
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);

?>