Kod: Tümünü seç
###############################################################################################
## MOD Title: Rename index.php
## MOD Author: shof515 < shof515@gmail.com > ( Shaun ) http://shof515.com
## MOD Description: Replaces the forum index.php with a different name
## MOD Version: 1.0.1
##
## Installation Level: Intermediate
## Installation Time: 15-30 mintues
## Files To Edit: groupcp.php
## index.php
## login.php
## posting.php
## privmsg.php
## profile.php
## viewforum.php
## viewonline.php
## includes/usercp_activate.php
## includes/usercp_email.php
## includes/usercp_register.php
## includes/usercp_sendpasswd.php
## includes/page_header.php
## admin/index.php
## admin/page_header_admin.php
## Included Files: 0
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Relase forumindex with whatever you want to call it.To make this process, go fast
## i recommend a Text Replacer or a Find and Replace program.After the file editing,rename
## the index.php to the name you put in the file edits.Keep the php extention
##############################################################
## MOD History:
##
## 01-21-2005 - 1.0.1
## - Fixed a problem.
## 01-20-2005 - 1.0.0
## - First release.
##
################################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################################################################
#
#-----[ OPEN ]------------------------------------------
#
groupcp.php
#
#-----[ FIND ]------------------------------------------
#(First Find)
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Not_group_moderator'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Group_type_updated'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(2nd Find)
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Already_member_group'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(3rd Find)
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['This_closed_group'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(4th Find)
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Group_joined'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(5th Find)
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Unsub_success'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(6th Find)
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Not_group_moderator'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $lang['Not_group_moderator'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Could_not_add_user'] . "<br /><br />" . sprintf($lang['Click_return_group'], "<a href=\"" . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_index'], "<a href=\"" . append_sid("index.$phpEx") . "\">", "</a>");
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href=\"" . append_sid("index.$phpEx") . "\">", "</a>");
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href=\"" . append_sid("forumindex.$phpEx") . "\">", "</a>");
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Could_not_anon_user'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['User_is_member_group'] . '<br /><br />' . sprintf($lang['Click_return_group'], '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
"META" => '<meta http-equiv="refresh" content="3;url=' .append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
"META" => '<meta http-equiv="refresh" content="3;url=' .append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Forums_marked_read'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a> ');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $lang['Forums_marked_read'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a> ');
#
#-----[ FIND ]------------------------------------------
#
'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
#
#-----[ REPLACE WITH ]------------------------------------------
#
'U_MARK_READ' => append_sid("forumindex.$phpEx?mark=forums"))
#
#-----[ FIND ]------------------------------------------
#
'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id"))
#
#-----[ REPLACE WITH ]------------------------------------------
#
'U_VIEWCAT' => append_sid("forumindex.$phpEx?" . POST_CAT_URL . "=$cat_id"))
#
#-----[ OPEN ]------------------------------------------
#
login.php
#
#-----[ FIND ]------------------------------------------
#(1st find)
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#(1st find)
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Error_login'] . '<br /><br />' . sprintf($lang['Click_return_login'], "<a href=\"login.$phpEx?redirect=$redirect\">", '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#(2nd find)
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#(2nd find)
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#(3rd find)
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$redirect = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$redirect = "forumindex.$phpEx";
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$msg = $lang['Message_sent'] . '<br /><br />' . sprintf($lang['Click_return_inbox'], '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '">', '</a> ') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
profile.php
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
'url' => append_sid('index.'.$phpEx),
#
#-----[ REPLACE WITH ]------------------------------------------
#
'url' => append_sid('forumindex.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
viewonline.php
#
#-----[ FIND ]------------------------------------------
#
$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$location_url = "forumindex.$phpEx";
#
#-----[ FIND ]------------------------------------------
#
$location_url = "index.$phpEx";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$location_url = "forumindex.$phpEx";
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_activate.php
#
#-----[ FIND ]------------------------------------------
#(1st Find)
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#(2nd Find)
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#(3rd Find)
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="10;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_email.php
#
#-----[ FIND ]------------------------------------------
#
redirect(append_sid("index.$phpEx", true));
#
#-----[ REPLACE WITH ]------------------------------------------
#
redirect(append_sid("forumindex.$phpEx", true));
#
#-----[ FIND ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="5;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Email_sent'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $lang['Email_sent'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Profile_updated_inactive'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $lang['Profile_updated_inactive'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $lang['Profile_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ FIND ]------------------------------------------
#
"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
"META" => '<meta http-equiv="refresh" content="5;url=' . append_sid("forumindex") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $message . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $message . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_sendpasswd.php
#
#-----[ FIND ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="15;url=' . append_sid("index.$phpEx") . '">')
#
#-----[ REPLACE WITH ]------------------------------------------
#
'META' => '<meta http-equiv="refresh" content="15;url=' . append_sid("forumindex.$phpEx") . '">')
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Password_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = $lang['Password_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("forumindex.$phpEx") . '">', '</a>');
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_INDEX' => append_sid('index.'.$phpEx),
#
#-----[ REPLACE WITH ]------------------------------------------
#
'U_INDEX' => append_sid('forumindex.'.$phpEx),
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
"U_FORUM_INDEX" => append_sid("../index.$phpEx"),
#
#-----[ REPLACE WITH ]------------------------------------------
#
"U_FORUM_INDEX" => append_sid("../forumindex.$phpEx"),
#
#-----[ FIND ]------------------------------------------
#
case PAGE_INDEX:
$location = $lang['Forum_index'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$location_url = "index.$phpEx?pane=right";
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$location_url = "forumindex.$phpEx?pane=right";
#
#-----[ OPEN ]------------------------------------------
#
admin/page_header_admin.php
#
#-----[ FIND ]------------------------------------------
#
'U_INDEX' => append_sid('../index.'.$phpEx),
#
#-----[ REPLACE WITH ]------------------------------------------
#
'U_INDEX' => append_sid('../forumindex.'.$phpEx),
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM