İlk önce bu kodu bir txt sayfasına kaydet sonrada uzantısını PHP olarak değiştir. İstediğin ismi verebilirsin mesela kirici.php Sonra forumun ana klasörüne ekle ve internet explorer ile çağır.
kirici.php
Kod: Tümünü seç
<?php
/***************************************************************************
* lycos_db_update.php
* ----------------------
*
* copyright : ©2003, 2004 Duvelske (duvelske@planet.nl)
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
global $table_prefix;
define('LYCOS_TABLE', $table_prefix.'topics_watch');
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
if( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));
exit;
}
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to view this page');
}
$page_title = 'Updating the database';
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">';
echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">';
$sql = array();
$sql[] = "DELETE FROM " .LYCOS_TABLE. "";
for( $i = 0; $i < count($sql); $i++ )
{
if( !$result = $db->sql_query ($sql[$i]) )
{
$error = $db->sql_error();
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#FF0000"><b>Error:</b></font> ' . $error['message'] . '</li><br />';
}
else
{
echo '<li>' . $sql[$i] . '<br /> +++ <font color="#00AA00"><b>Completed</b></font></li><br />';
}
}
echo '</ul></span></td></tr><tr><td class="catBottom" height="28"> </td></tr>';
echo '<tr><th>End</th></tr><tr><td><span class="genmed">Installation ready. delete this file please.<br />If you run into some errors, please visit <a href="http://www.vitrax.vze.com" target="_top">Vitrax support forums</a> and ask somebody for help.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Have a nice day</a></span></td></table>';
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Kod: Tümünü seç
##############################################################
## MOD Title: Lycos ad mod
## MOD Author: Duvelske (vitrax@planet.nl) http://www.vitrax.vze.com
## MOD Author, Secondary: Inferno http://members.lycos.nl/scriptforum/
## MOD Description: Taking the lycos advertising away, and fixes some lycos bugs
##
## MOD Version: 1.0.7
## Compatibility: all
##
## Installation Level: Easy
## Installation Time: 5 minutes (less then a 1mn by EasyMOD of Nuttzy)
##
## Included Files:
## lycos_db_update.php
## Printer-friendly_topic_add_remove.txt
## Complete_banner_add_remove.txt
##
##
## Files To Edit: 6
## templates/subSilver/overall_footer.tpl
## templates/subSilver/posting_topic_review.tpl
## templates/subSilver/posting_body.tpl
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/viewtopic_body.tpl
## templates/subSilver/admin/page_footer.tpl
##
##############################################################
## For Security Purposes, Please Check: http://www.vitrax.vze.com/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum.
##############################################################
## Author Notes:
##
## This MOD is compatible and can be installed by EasyMOD
## of Nuttzy (but is not officially EasyMOD Compliant)!
## http://www.phpbb.com/phpBB/viewtopic.php?t=124436
##
## In any case, if you install this MOD manually or using an
## alpha release of EM, please run this file NOW, before
## editing phpBB files by EM or manually!!!
## Otherwise, you may have an error message during your next
## connection.
##
##############################################################
## MOD History:
## 2004-05-20 Version 1.0.7
## - Inferno improved the coding
## - Fixed also some improved coding bugs.
##
## 2004-04-12 Version 1.0.6
## - Redirecting updated (the banner mod of niels mods.db9.dk)
## - Printer-friendly topic mod updated. (new version)
##
## 2004-01-31 Version 1.0.5
## - Printer-friendly topic mod supported
## - Made 2 new install files for the Printer friendly topic mod
## And for the Complete banner mod.
##
## 2004-01-21 Version 1.0.4
## - Redirecting supported (the banner mod of niels mods.db9.dk)
##
## 2004-01-02 Version 1.0.3
## - Admin panel Addfree
## - Some minor bug changes
##
## 2003-12-14 Version 1.0.2
## - Notice function disabled because of error after reply
## - lycos_db_update.php file added
##
## 2003-12-4 Version 1.0.1
## - Bug fix Attachment mod
## - Official Lycos Mod. (also approved by lycos! Read licence for
## further information)
##
## 2003-11-4 Version 1.0.0
## - Make it em compatible
##
## 2003-7-14 Version beta 0.9.0
## - fixed some beta errors
##
##############################################################
#
#-----[ SQL ]------------------------------------------------
#
# Clear the table topics_watch in your database.
# Run the automatic update.php file in the root of your forum!
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/page_footer.tpl
#
#-----[ FIND ]------------------------------------------------
#
</html>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<script type="text/javascript" language="JavaScript">
function newsScrollInit(){
}
onload=newsScrollInit;
</script>
<noscript><noscript><plaintext><plaintext>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------------
#
</html>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<script type="text/javascript" language="JavaScript">
function newsScrollInit(){
}
onload=newsScrollInit;
</script>
<noscript><noscript><plaintext><plaintext>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/posting_topic_review.tpl
#
#-----[ FIND ]------------------------------------------------
#
</table>
<!-- END switch_inline_mode -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<script type="text/javascript" language="JavaScript">
function newsScrollInit(){
}
onload=newsScrollInit;
</script>
<noscript><noscript><plaintext><plaintext>
#
#-----[ FIND ]------------------------------------------------
#
</tr>
</table>
</form>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<noembed>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!-- BEGIN switch_notify_checkbox -->
<tr>
<td>
<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
</td>
<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
</tr>
<!-- END switch_notify_checkbox -->
#
#-----[ REPLACE WITH ]---------------------------------------
#
<!-- Lycos mod -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
#
#-----[ AFTER, ADD ]---------------------------------------
#
<script type="text/javascript" language="JavaScript">
function newsScrollInit(){
}
onload=newsScrollInit;
</script>
<noscript><noscript><plaintext><plaintext>
#
#-----[ FIND ]------------------------------------------------
#
{S_WATCH_TOPIC}
#
#-----[ REPLACE WITH ]---------------------------------------
#
<!-- Lycos mod -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}:</span><br />
<span class="gensmall">{L_NOTIFY_ON_REPLY_EXPLAIN}</span></td>
<td class="row2">
<input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ REPLACE WITH ]---------------------------------------
#
<!-- Lycos mod -->
#
#-----[ FIND ]------------------------------------------------
#
</tr>
</table>
</form>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<script type="text/javascript" language="JavaScript">
function newsScrollInit(){
}
onload=newsScrollInit;
</script>
<noscript><noscript><plaintext><plaintext>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
#EoM