error

Support and whatever about the old Perl version of Aardvark Topsites.

error

Postby haohui » 2007-01-08 06:41 pm

is this normal

EndHTML; } elseif (!isset($FORM['submit'])) { require_once("{$CONF['path']}/languages/{$FORM['l']}.php"); $path = str_replace('/install/index.php', '', $_SERVER['PHP_SELF']); $list_url = "http://{$_SERVER['HTTP_HOST']}{$path}"; $dir = opendir("{$CONF['path']}/sources/sql/"); while (false !== ($file = readdir($dir))) { if ($file != '.' && $file != '..' && !is_dir("{$CONF['path']}/sources/sql/{$file}")) { $file = str_replace('.php', '', $file); require "{$CONF['path']}/sources/sql/{$file}.php"; $sql_menu = "{$database}\n"; } } $TMPL['content'] = <<

{$LNG['a_s_general']}{$LNG['a_s_admin_password']}


{$LNG['a_s_list_url']}


{$LNG['a_s_your_email']}
{$LNG['a_s_sql']}{$LNG['a_s_sql_type']}
$sql_menu

{$LNG['a_s_sql_host']}


{$LNG['a_s_sql_database']}


{$LNG['a_s_sql_username']}


{$LNG['a_s_sql_password']}


{$LNG['install_sql_prefix']}



EndHTML; } else { require_once("{$CONF['path']}/languages/{$FORM['l']}.php"); require_once("{$CONF['path']}/sources/sql/{$FORM['sql']}.php"); $DB = new sql; if ($DB->connect($FORM['sql_host'], $FORM['sql_username'], $FORM['sql_password'], $FORM['sql_database'])) { $default_language = $DB->escape($FORM['l']); $admin_password = md5($FORM['admin_password']); $list_url = $DB->escape($FORM['list_url']); $your_email = $DB->escape($FORM['your_email']); $file = "{$CONF['path']}/settings_sql.php"; if ($fh = @fopen($file, 'w')) { $settings_sql = << EndHTML; fwrite($fh, $settings_sql); fclose($fh); require_once("{$CONF['path']}/settings_sql.php"); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_settings` ( `list_name` varchar(255) default 'My Topsites List', `list_url` varchar(255) default '', `default_language` varchar(255) default '', `default_skin` varchar(255) default 'fusion', `your_email` varchar(255) default '', `num_list` int(5) default 10, `ranking_period` varchar(7) default 'daily', `ranking_method` varchar(255) default 'pv', `ranking_average` tinyint(1) default 1, `featured_member` tinyint(1) default 0, `top_skin_num` int(5) default 2, `ad_breaks` varchar(255) default '', `active_default` tinyint(1) default 1, `active_default_review` tinyint(1) default 1, `delete_after` int(5) default 14, `email_admin_on_join` tinyint(1) default 0, `email_admin_on_review` tinyint(1) default 0, `max_banner_width` int(4) default 0, `max_banner_height` int(4) default 0, `default_banner` varchar(255) default '', `ranks_on_buttons` tinyint(1) default 1, `button_url` varchar(255) default '', `button_dir` varchar(255) default '', `button_ext` varchar(255) default 'png', `button_num` int(3) default 5, `google_friendly_links` tinyint(1) default '1', `search` tinyint(1) default 1, `time_offset` int(2) default 0, `gateway` tinyint(1) default 1, `captcha` tinyint(1) default 1 )", __FILE__, __LINE__); $DB->query("INSERT INTO {$CONF['sql_prefix']}_settings (list_url, default_language, your_email, default_banner, button_url, button_dir) VALUES ('{$list_url}', '{$default_language}', '{$your_email}', '{$list_url}/images/button.png', '{$list_url}/images/button.png', '{$list_url}/images')", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_bad_words` ( `id` int(10) unsigned NOT NULL, `word` varchar(255), `replacement` varchar(255), `matching` tinyint(1), PRIMARY KEY (`id`) )", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_custom_pages` ( `id` varchar(255) default '' NOT NULL, `title` varchar(255) default '', `content` text, PRIMARY KEY (`id`) )", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_etc` ( `admin_password` varchar(32) default '', `last_new_day` tinyint(4) default 0, `last_new_week` tinyint(4) default 0, `last_new_month` tinyint(4) default 0 )", __FILE__, __LINE__); $DB->query("INSERT INTO {$CONF['sql_prefix']}_etc (admin_password) VALUES ('{$admin_password}')", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_categories` ( `category` varchar(255) default '' NOT NULL, `skin` varchar(255) default '', PRIMARY KEY (`category`) )", __FILE__, __LINE__); $DB->query("INSERT INTO {$CONF['sql_prefix']}_categories (category) VALUES ('Category')", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_ip_log` ( `ip_address` varchar(32) default '' NOT NULL, `username` varchar(255) default '' NOT NULL, `unq_pv` tinyint(1) default 0, `unq_in` tinyint(1) default 0, `unq_out` tinyint(1) default 0, `rate` tinyint(1) default 0, PRIMARY KEY (`ip_address`,`username`) )", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_reviews` ( `username` varchar(255) default '', `id` bigint(20) unsigned default 0 NOT NULL, `date` datetime default '0000-00-00 00:00:00', `review` text, `active` tinyint(1) default 1, PRIMARY KEY (`id`) )", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_sessions` ( `type` varchar(7) default '', `sid` varchar(32) default '' NOT NULL, `time` int(10) unsigned default 0, `data` varchar(255) default '', PRIMARY KEY (`sid`) )", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_sites` ( `username` varchar(255) default '' NOT NULL, `password` varchar(32) default '', `url` varchar(255) default '', `short_url` varchar(255) default '', `title` varchar(255) default '', `description` varchar(255) default '', `category` varchar(255) default '', `banner_url` varchar(255) default '', `email` varchar(255) default '', `join_date` date default '0000-00-00', `active` tinyint(1) default 1, `openid` tinyint(1) default 0, PRIMARY KEY (`username`) )", __FILE__, __LINE__); $DB->query("CREATE TABLE `{$CONF['sql_prefix']}_stats` ( `username` varchar(255) default '' NOT NULL, `rank_cache` bigint(20) unsigned default 0, `rank_cache_time` int(10) unsigned default 0, `old_rank` bigint(20) unsigned default 0, `days_inactive` int(10) unsigned default 0, `total_rating` bigint(20) unsigned default 0, `num_ratings` bigint(20) unsigned default 0, `unq_pv_overall` bigint(20) unsigned default 0, `tot_pv_overall` bigint(20) unsigned default 0, `unq_in_overall` bigint(20) unsigned default 0, `tot_in_overall` bigint(20) unsigned default 0, `unq_out_overall` bigint(20) unsigned default 0, `tot_out_overall` bigint(20) unsigned default 0, `unq_pv_0_daily` bigint(20) unsigned default 0, `unq_pv_1_daily` bigint(20) unsigned default 0, `unq_pv_2_daily` bigint(20) unsigned default 0, `unq_pv_3_daily` bigint(20) unsigned default 0, `unq_pv_4_daily` bigint(20) unsigned default 0, `unq_pv_5_daily` bigint(20) unsigned default 0, `unq_pv_6_daily` bigint(20) unsigned default 0, `unq_pv_7_daily` bigint(20) unsigned default 0, `unq_pv_8_daily` bigint(20) unsigned default 0, `unq_pv_9_daily` bigint(20) unsigned default 0, `unq_pv_max_daily` bigint(20) unsigned default 0, `tot_pv_0_daily` bigint(20) unsigned default 0, `tot_pv_1_daily` bigint(20) unsigned default 0, `tot_pv_2_daily` bigint(20) unsigned default 0, `tot_pv_3_daily` bigint(20) unsigned default 0, `tot_pv_4_daily` bigint(20) unsigned default 0, `tot_pv_5_daily` bigint(20) unsigned default 0, `tot_pv_6_daily` bigint(20) unsigned default 0, `tot_pv_7_daily` bigint(20) unsigned default 0, `tot_pv_8_daily` bigint(20) unsigned default 0, `tot_pv_9_daily` bigint(20) unsigned default 0, `tot_pv_max_daily` bigint(20) unsigned default 0, `unq_in_0_daily` bigint(20) unsigned default 0, `unq_in_1_daily` bigint(20) unsigned default 0, `unq_in_2_daily` bigint(20) unsigned default 0, `unq_in_3_daily` bigint(20) unsigned default 0, `unq_in_4_daily` bigint(20) unsigned default 0, `unq_in_5_daily` bigint(20) unsigned default 0, `unq_in_6_daily` bigint(20) unsigned default 0, `unq_in_7_daily` bigint(20) unsigned default 0, `unq_in_8_daily` bigint(20) unsigned default 0, `unq_in_9_daily` bigint(20) unsigned default 0, `unq_in_max_daily` bigint(20) unsigned default 0, `tot_in_0_daily` bigint(20) unsigned default 0, `tot_in_1_daily` bigint(20) unsigned default 0, `tot_in_2_daily` bigint(20) unsigned default 0, `tot_in_3_daily` bigint(20) unsigned default 0, `tot_in_4_daily` bigint(20) unsigned default 0, `tot_in_5_daily` bigint(20) unsigned default 0, `tot_in_6_daily` bigint(20) unsigned default 0, `tot_in_7_daily` bigint(20) unsigned default 0, `tot_in_8_daily` bigint(20) unsigned default 0, `tot_in_9_daily` bigint(20) unsigned default 0, `tot_in_max_daily` bigint(20) unsigned default 0, `unq_out_0_daily` bigint(20) unsigned default 0, `unq_out_1_daily` bigint(20) unsigned default 0, `unq_out_2_daily` bigint(20) unsigned default 0, `unq_out_3_daily` bigint(20) unsigned default 0, `unq_out_4_daily` bigint(20) unsigned default 0, `unq_out_5_daily` bigint(20) unsigned default 0, `unq_out_6_daily` bigint(20) unsigned default 0, `unq_out_7_daily` bigint(20) unsigned default 0, `unq_out_8_daily` bigint(20) unsigned default 0, `unq_out_9_daily` bigint(20) unsigned default 0, `unq_out_max_daily` bigint(20) unsigned default 0, `tot_out_0_daily` bigint(20) unsigned default 0, `tot_out_1_daily` bigint(20) unsigned default 0, `tot_out_2_daily` bigint(20) unsigned default 0, `tot_out_3_daily` bigint(20) unsigned default 0, `tot_out_4_daily` bigint(20) unsigned default 0, `tot_out_5_daily` bigint(20) unsigned default 0, `tot_out_6_daily` bigint(20) unsigned default 0, `tot_out_7_daily` bigint(20) unsigned default 0, `tot_out_8_daily` bigint(20) unsigned default 0, `tot_out_9_daily` bigint(20) unsigned default 0, `tot_out_max_daily` bigint(20) unsigned default 0, `unq_pv_0_weekly` bigint(20) unsigned default 0, `unq_pv_1_weekly` bigint(20) unsigned default 0, `unq_pv_2_weekly` bigint(20) unsigned default 0, `unq_pv_3_weekly` bigint(20) unsigned default 0, `unq_pv_4_weekly` bigint(20) unsigned default 0, `unq_pv_5_weekly` bigint(20) unsigned default 0, `unq_pv_6_weekly` bigint(20) unsigned default 0, `unq_pv_7_weekly` bigint(20) unsigned default 0, `unq_pv_8_weekly` bigint(20) unsigned default 0, `unq_pv_9_weekly` bigint(20) unsigned default 0, `unq_pv_max_weekly` bigint(20) unsigned default 0, `tot_pv_0_weekly` bigint(20) unsigned default 0, `tot_pv_1_weekly` bigint(20) unsigned default 0, `tot_pv_2_weekly` bigint(20) unsigned default 0, `tot_pv_3_weekly` bigint(20) unsigned default 0, `tot_pv_4_weekly` bigint(20) unsigned default 0, `tot_pv_5_weekly` bigint(20) unsigned default 0, `tot_pv_6_weekly` bigint(20) unsigned default 0, `tot_pv_7_weekly` bigint(20) unsigned default 0, `tot_pv_8_weekly` bigint(20) unsigned default 0, `tot_pv_9_weekly` bigint(20) unsigned default 0, `tot_pv_max_weekly` bigint(20) unsigned default 0, `unq_in_0_weekly` bigint(20) unsigned default 0, `unq_in_1_weekly` bigint(20) unsigned default 0, `unq_in_2_weekly` bigint(20) unsigned default 0, `unq_in_3_weekly` bigint(20) unsigned default 0, `unq_in_4_weekly` bigint(20) unsigned default 0, `unq_in_5_weekly` bigint(20) unsigned default 0, `unq_in_6_weekly` bigint(20) unsigned default 0, `unq_in_7_weekly` bigint(20) unsigned default 0, `unq_in_8_weekly` bigint(20) unsigned default 0, `unq_in_9_weekly` bigint(20) unsigned default 0, `unq_in_max_weekly` bigint(20) unsigned default 0, `tot_in_0_weekly` bigint(20) unsigned default 0, `tot_in_1_weekly` bigint(20) unsigned default 0, `tot_in_2_weekly` bigint(20) unsigned default 0, `tot_in_3_weekly` bigint(20) unsigned default 0, `tot_in_4_weekly` bigint(20) unsigned default 0, `tot_in_5_weekly` bigint(20) unsigned default 0, `tot_in_6_weekly` bigint(20) unsigned default 0, `tot_in_7_weekly` bigint(20) unsigned default 0, `tot_in_8_weekly` bigint(20) unsigned default 0, `tot_in_9_weekly` bigint(20) unsigned default 0, `tot_in_max_weekly` bigint(20) unsigned default 0, `unq_out_0_weekly` bigint(20) unsigned default 0, `unq_out_1_weekly` bigint(20) unsigned default 0, `unq_out_2_weekly` bigint(20) unsigned default 0, `unq_out_3_weekly` bigint(20) unsigned default 0, `unq_out_4_weekly` bigint(20) unsigned default 0, `unq_out_5_weekly` bigint(20) unsigned default 0, `unq_out_6_weekly` bigint(20) unsigned default 0, `unq_out_7_weekly` bigint(20) unsigned default 0, `unq_out_8_weekly` bigint(20) unsigned default 0, `unq_out_9_weekly` bigint(20) unsigned default 0, `unq_out_max_weekly` bigint(20) unsigned default 0, `tot_out_0_weekly` bigint(20) unsigned default 0, `tot_out_1_weekly` bigint(20) unsigned default 0, `tot_out_2_weekly` bigint(20) unsigned default 0, `tot_out_3_weekly` bigint(20) unsigned default 0, `tot_out_4_weekly` bigint(20) unsigned default 0, `tot_out_5_weekly` bigint(20) unsigned default 0, `tot_out_6_weekly` bigint(20) unsigned default 0, `tot_out_7_weekly` bigint(20) unsigned default 0, `tot_out_8_weekly` bigint(20) unsigned default 0, `tot_out_9_weekly` bigint(20) unsigned default 0, `tot_out_max_weekly` bigint(20) unsigned default 0, `unq_pv_0_monthly` bigint(20) unsigned default 0, `unq_pv_1_monthly` bigint(20) unsigned default 0, `unq_pv_2_monthly` bigint(20) unsigned default 0, `unq_pv_3_monthly` bigint(20) unsigned default 0, `unq_pv_4_monthly` bigint(20) unsigned default 0, `unq_pv_5_monthly` bigint(20) unsigned default 0, `unq_pv_6_monthly` bigint(20) unsigned default 0, `unq_pv_7_monthly` bigint(20) unsigned default 0, `unq_pv_8_monthly` bigint(20) unsigned default 0, `unq_pv_9_monthly` bigint(20) unsigned default 0, `unq_pv_max_monthly` bigint(20) unsigned default 0, `tot_pv_0_monthly` bigint(20) unsigned default 0, `tot_pv_1_monthly` bigint(20) unsigned default 0, `tot_pv_2_monthly` bigint(20) unsigned default 0, `tot_pv_3_monthly` bigint(20) unsigned default 0, `tot_pv_4_monthly` bigint(20) unsigned default 0, `tot_pv_5_monthly` bigint(20) unsigned default 0, `tot_pv_6_monthly` bigint(20) unsigned default 0, `tot_pv_7_monthly` bigint(20) unsigned default 0, `tot_pv_8_monthly` bigint(20) unsigned default 0, `tot_pv_9_monthly` bigint(20) unsigned default 0, `tot_pv_max_monthly` bigint(20) unsigned default 0, `unq_in_0_monthly` bigint(20) unsigned default 0, `unq_in_1_monthly` bigint(20) unsigned default 0, `unq_in_2_monthly` bigint(20) unsigned default 0, `unq_in_3_monthly` bigint(20) unsigned default 0, `unq_in_4_monthly` bigint(20) unsigned default 0, `unq_in_5_monthly` bigint(20) unsigned default 0, `unq_in_6_monthly` bigint(20) unsigned default 0, `unq_in_7_monthly` bigint(20) unsigned default 0, `unq_in_8_monthly` bigint(20) unsigned default 0, `unq_in_9_monthly` bigint(20) unsigned default 0, `unq_in_max_monthly` bigint(20) unsigned default 0, `tot_in_0_monthly` bigint(20) unsigned default 0, `tot_in_1_monthly` bigint(20) unsigned default 0, `tot_in_2_monthly` bigint(20) unsigned default 0, `tot_in_3_monthly` bigint(20) unsigned default 0, `tot_in_4_monthly` bigint(20) unsigned default 0, `tot_in_5_monthly` bigint(20) unsigned default 0, `tot_in_6_monthly` bigint(20) unsigned default 0, `tot_in_7_monthly` bigint(20) unsigned default 0, `tot_in_8_monthly` bigint(20) unsigned default 0, `tot_in_9_monthly` bigint(20) unsigned default 0, `tot_in_max_monthly` bigint(20) unsigned default 0, `unq_out_0_monthly` bigint(20) unsigned default 0, `unq_out_1_monthly` bigint(20) unsigned default 0, `unq_out_2_monthly` bigint(20) unsigned default 0, `unq_out_3_monthly` bigint(20) unsigned default 0, `unq_out_4_monthly` bigint(20) unsigned default 0, `unq_out_5_monthly` bigint(20) unsigned default 0, `unq_out_6_monthly` bigint(20) unsigned default 0, `unq_out_7_monthly` bigint(20) unsigned default 0, `unq_out_8_monthly` bigint(20) unsigned default 0, `unq_out_9_monthly` bigint(20) unsigned default 0, `unq_out_max_monthly` bigint(20) unsigned default 0, `tot_out_0_monthly` bigint(20) unsigned default 0, `tot_out_1_monthly` bigint(20) unsigned default 0, `tot_out_2_monthly` bigint(20) unsigned default 0, `tot_out_3_monthly` bigint(20) unsigned default 0, `tot_out_4_monthly` bigint(20) unsigned default 0, `tot_out_5_monthly` bigint(20) unsigned default 0, `tot_out_6_monthly` bigint(20) unsigned default 0, `tot_out_7_monthly` bigint(20) unsigned default 0, `tot_out_8_monthly` bigint(20) unsigned default 0, `tot_out_9_monthly` bigint(20) unsigned default 0, `tot_out_max_monthly` bigint(20) unsigned default 0, PRIMARY KEY (`username`) )", __FILE__, __LINE__); $TMPL['content'] = <<
{$LNG['install_your']}
{$LNG['install_admin']}
{$LNG['install_manual']}
EndHTML; } else { $TMPL['content'] = "
{$LNG['g_error']}

{$LNG['install_error_chmod']}
"; } } else { $TMPL['content'] = "
{$LNG['g_error']}

{$LNG['install_error_sql']}
"; } } ?>
haohui
Advanced Member
 
Posts: 60
Joined: 2006-12-29 07:02 pm
Location: Canada

Return to Aardvark Topsites

Who is online

Users browsing this forum: No registered users and 1 guest

cron