ik ga naar complete_banner_db_update.php en krijg vervolgens dit te zien
message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?
en ik heb toch alles goed gewijzigd(hoop ik

Code: Selecteer alles
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
global $table_prefix;
define('BANNERS_TABLE', $table_prefix.'banner');
define('BANNER_STATS_TABLE', $table_prefix.'banner_stats');
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
$sql=array(
'CREATE TABLE '.BANNERS_TABLE.' (
banner_id MEDIUMINT(8) UNSIGNED NOT NULL,
banner_name TEXT NOT NULL,
banner_spot SMALLINT(1) UNSIGNED NOT NULL,
banner_forum MEDIUMINT(8) UNSIGNED NOT NULL,
banner_description VARCHAR(30) NOT NULL,
banner_url VARCHAR(90) NOT NULL,
banner_owner MEDIUMINT(8) NOT NULL,
banner_click MEDIUMINT(8) UNSIGNED NOT NULL,
banner_view MEDIUMINT(8) UNSIGNED NOT NULL,
banner_weigth TINYINT(1) UNSIGNED DEFAULT "50" NOT NULL,
banner_active TINYINT(1) NOT NULL,
banner_timetype TINYINT(1) NOT NULL,
time_begin INT(11) NOT NULL,
time_end INT(11) NOT NULL,
date_begin INT(11) NOT NULL,
date_end INT(11) NOT NULL,
banner_level TINYINT(1) NOT NULL,
banner_level_type TINYINT(1) NOT NULL,
banner_comment VARCHAR(50) NOT NULL,
banner_type MEDIUMINT(5) NOT NULL,
banner_width MEDIUMINT(5) UNSIGNED NOT NULL,
banner_height MEDIUMINT(5) NOT NULL,
banner_filter TINYINT(1) NOT NULL,
banner_filter_time MEDIUMINT(5) DEFAULT "600" NOT NULL,
INDEX (banner_id))',
'CREATE TABLE '.BANNER_STATS_TABLE.' (
banner_id MEDIUMINT(8) UNSIGNED NOT NULL,
click_date int (11) NOT NULL,
click_ip char(8) NOT NULL,
click_user MEDIUMINT(8) NOT NULL,
user_duration int (11) NOT NULL)');
$mods = array (
'Banner mod', 'Banner mod'
);
if ($userdata['user_level']!=ADMIN)
message_die(GENERAL_ERROR, "You are not Authorised to do this");
$n=0;
$message="<b>This list is a result of the SQL queries needed for mod</b><br/><br/>";
while($sql[$n])
{
$message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br/>' : '';
if(!$result = $db->sql_query($sql[$n]))
$message .= '<b><font color=#FF0000>[Already added]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />';
else $message .='<b><font color=#0000fF>[Added/Updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />';
$n++;
}
message_die(GENERAL_MESSAGE, $message);
?>