Kod: Tümünü seç
##############################################################
# MOD Title: Add phpMyAdmin Link
# MOD Author: Thoul thoul@users.sourceforge.net http://darkmods.sourceforge.net
# MOD Description: Adds a link to phpMyAdmin in the Admin Control Panel
# MOD Version: 2.0.0
#
# Installation Level: Easy
# Installation Time: 5 Minutes
# Files To Edit: includes/constants.php, includes/page_tail.php,
# language/lang_english/lang_main.php, admin/index.php,
# templates/subSilver/admin/index_navigate.tpl
# Included Files: n/a
##############################################################
# Authors Notes:
# When making the changes to constants.php, be sure to follow the one simple
# instruction in the code you add to that file. See readme.txt for other notes.
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add phpMyAdmin Link
//
// Replace url_to_your_phpmyadmin with the *full* URL to your
// phpMyAdmin installation.
// Example: define('PHPMYADMIN', 'http://www.some-site.com/admin/phpmyadmin/');
define('PHPMYADMIN', 'url_to_your_phpmyadmin');
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
/* Original phpBB code - commented out for Add CSS Effects to Ranks
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
*/
//
// MOD: Add phpMyAdmin Link
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a> | <a href="' . PHPMYADMIN . '">' . $lang['phpMyAdmin'] . '</a><br /><br />' : '';
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add phpMyAdmin Link
//
$lang['phpMyAdmin'] = 'phpMyAdmin';
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
language/lang_german/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add phpMyAdmin Link
//
$lang['phpMyAdmin'] = 'phpMyAdmin';
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
"U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// MOD: Add phpMyAdmin Link
//
'U_PHPMYADMIN' => PHPMYADMIN,
'L_PHPMYADMIN' => $lang['phpMyAdmin'],
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/index_navigate.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN catrow -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="genmed"><a href="{U_PHPMYADMIN}" target="main" class="genmed">{L_PHPMYADMIN}</a></span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# End