Habe gerade auf http://www.bug-talk.de/forum/index.php einen Newsmod entdeckt. Kann mir jemand sagen wie dieser heisst bzw. wo man ihn laden kann ?

grüße de$ert
Code: Alles auswählen
include
Code: Alles auswählen
include_once
Code: Alles auswählen
<?php
/***************************************************************************
* ESM_install.php
* -------------------
* Version : 1.0
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/constants.'.$phpEx);
include_once($phpbb_root_path . 'includes/db.'.$phpEx);
//
// 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=ESM_install.$phpEx", true));
exit;
}
if( $userdata['user_level'] != ADMIN )
{
message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
}
$page_title = 'Updating the database';
include_once($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">';
$current_time = time();
$sql = array();
$sql[] = "INSERT INTO " . $table_prefix . "config (config_name, config_value) values ('ESMM', 'This is a test message please edit me.')";
$sql[] = "INSERT INTO " . $table_prefix . "config (config_name, config_value) values ('ESMS', '300')";
$sql[] = "INSERT INTO " . $table_prefix . "config (config_name, config_value) values ('ESMD', 'left')";
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>Successfully updated database</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">The upgrade has completed. Please be sure to delete this file.<br />If you have run into any errors, please visit the <a href="http://nzfriends.co.nz" target="_phpbbsupport">nzfriends</a> and ask for help in HAVING PROBLEMS WITH THE SITE?/NEWS.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid("index.$phpEx") . '">Enjoy!</a></span></td></table>';
include_once($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>