Report #42: New Installer

This commit is contained in:
Ice
2008-01-26 13:07:42 +00:00
parent 69c5749050
commit 3043778a93
10 changed files with 335 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
#
# $Id: schema_data.sql,v 1.257 2007/09/20 21:19:00 stoffel04 Exp $
#
# POSTGRES BEGIN #
# -- Config
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_welcome_intro', 'Welcome to my community!');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_max_online_friends', '8');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_max_most_poster', '8');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_max_last_member', '8');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_welcome', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_links', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_link_us', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_clock', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_random_member', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_latest_members', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_top_posters', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_leaders', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_advanced_stat', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_welcome_guest', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_birthdays', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_search', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_friends', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_whois_online', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_change_style', '0');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_main_menu', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_user_menu', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_right_collumn_width', '180');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_left_collumn_width', '180');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_topic', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_topic_id', '2');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_last_visited_bots_number', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_load_last_visited_bots', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_pay_acc', 'your@paypal.com');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_pay_s_block', '0');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_pay_c_block', '0');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_recent', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_recent_title_limit', '100');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_max_topics', '10');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_exclude_forums', '');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_forum', '2');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_length', '250');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_number_of_news', '5');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_show_all_news', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_news_style', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_style', '0');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_number_of_announcements', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_day', '0');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_announcements_length', '200');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_global_announcements_forum', '2');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_wordgraph_word_counts', '0');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_wordgraph_max_words', '80');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_wordgraph', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_wordgraph_ratio', '18');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_minicalendar', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_minicalendar_today_color', '//FF0000');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_minicalendar_day_link_color', '//006F00');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_attachments', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_attachments_number', '8');
# Version 0.1.1 #
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_limit', '3');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_allow_vote', '1');
INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_birthdays_ahead', '7');
# POSTGRES COMMIT #

View File

@@ -0,0 +1,16 @@
#
# $Id: $
#
BEGIN TRANSACTION;
# Table: 'phpbb_portal_config'
CREATE TABLE phpbb_portal_config (
config_name varchar(255) NOT NULL DEFAULT '',
config_value varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (config_name)
);
COMMIT;

View File

View File

@@ -0,0 +1,9 @@
<?php
$sql_update['0.1.1'] = array(
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_limit', '3')",
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_poll_allow_vote', '1')",
"INSERT INTO phpbb_portal_config (config_name, config_value) VALUES ('portal_birthdays_ahead', '7')",
);
?>

View File

@@ -0,0 +1,18 @@
<?php
if( !defined('IN_PHPBB') || !defined('IN_PORTAL_INSTALL') )
{
exit;
}
?>
</div>
</div>
<span class="corners-bottom"><span></span></span>
</div>
</div>
</div>
<div id="page-footer">Powered by phpBB &copy; 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a><br />Board3 Portal &copy; <a href="http://www.board3.de">Board3 Team</a></div>
</div>
</body>
</html>

View File

@@ -0,0 +1,47 @@
<?php
if( !defined('IN_PHPBB') || !defined('IN_PORTAL_INSTALL') )
{
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xml:lang="en-gb" lang="en-gb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en-gb" />
<meta http-equiv="imagetoolbar" content="no" />
<title><?php echo $page_title; ?></title>
<link href="../adm/style/admin.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body class="ltr">
<div id="wrap">
<div id="page-header">
<h1><?php echo $page_title; ?></h1>
<p><a href="<?php echo $phpbb_root_path . '">' . $user->lang['INDEX']; ?></a></p>
<p id="skip"><a href="#acp">Skip to content</a></p>
</div>
<div id="page-body">
<div id="acp">
<div class="panel">
<span class="corners-top"><span></span></span>
<div id="content">
<div id="menu">
<ul>
<li class="header"><?php echo $user->lang['INSTALLER_MENU']; ?></li>
<li<?php echo ( ( $mode != 'uninstall' || ( $old_version != 0 && $phpbb3portal === TRUE ) || $old_version == 0 ) ? ' id="activemenu"' : '' ); ?>><a href="install.<?php echo $phpEx; ?>"><span><?php echo $user->lang['INSTALLER_MENU_START']; ?></span></a></li>
<?php
if( $old_version != 0 && $phpbb3portal === false )
{
?>
<li<?php echo ( ($mode == 'uninstall') ? ' id="activemenu"' : '' ); ?>><a href="install.<?php echo $phpEx; ?>?mode=uninstall"><span><?php echo $user->lang['INSTALLER_UNINSTALL']; ?></span></a></li>
<?php
}
?>
</ul>
</div>
<div id="main">
<a name="maincontent"></a>

View File

@@ -0,0 +1,45 @@
<?php
if( !defined('IN_PHPBB') || !defined('IN_PORTAL_INSTALL') )
{
exit;
}
include 'style/layout_header.' . $phpEx;
if( $confirm == 1 )
{
?>
<h1><?php echo $user->lang['INFORMATION']; ?></h1>
<p><?php echo sprintf($user->lang['INSTALLER_INSTALL_SUCCESSFUL'], $current_version); ?></p>
<p><?php echo $user->lang['INSTALLER_USEFUL_INFO']; ?></p>
<?php
}
else
{
?>
<h1><?php echo $user->lang['INSTALLER_INSTALL_TITLE']; ?></h1>
<p><?php echo $user->lang['INSTALLER_INSTALL_NOTE']; ?></p>
<form id="acp_board" method="post" action="install.php?mode=install">
<fieldset>
<legend><?php echo $user->lang['INSTALLER_INSTALL']; ?></legend>
<dl>
<dt><label for="install"><?php echo $user->lang['INSTALLER_INSTALL']; ?> v<?php echo $current_version; ?>:</label></dt>
<dd><label><input name="confirm" value="1" class="radio" type="radio" /><?php echo $user->lang['YES']; ?></label><label><input name="confirm" value="0" checked="checked" class="radio" type="radio" /><?php echo $user->lang['NO']; ?></label></dd>
</dl>
<p class="submit-buttons">
<input class="button1" id="submit" name="submit" value="Submit" type="submit" />&nbsp;
<input class="button2" id="reset" name="reset" value="Reset" type="reset" />
</p>
</fieldset>
</form>
<?php
}
include 'style/layout_footer.' . $phpEx;
?>

View File

@@ -0,0 +1,37 @@
<?php
if( !defined('IN_PHPBB') || !defined('IN_PORTAL_INSTALL') )
{
exit;
}
include 'style/layout_header.php';
?>
<h1><?php echo $user->lang['INSTALLER_INTRO_TITLE']; ?></h1>
<p><?php echo $user->lang['INSTALLER_INTRO_NOTE']; ?></p>
<br />
<?php
switch( $check_mode )
{
case 'install':
?>
<p><?php echo sprintf($user->lang['INSTALLER_INSTALL_START'], append_sid('install.'.$phpEx, 'mode=install')); ?></p>
<?php
break;
case 'update':
?>
<p><?php echo sprintf($user->lang['INSTALLER_UPDATE_START'], append_sid('install.'.$phpEx, 'mode=update')); ?></p>
<?php
break;
case 'none':
?>
<p><?php echo sprintf($user->lang['INSTALLER_MENU_DONE_TEXT'], $current_version, append_sid($phpbb_root_path . 'index.'.$phpEx)); ?></p>
<?php
break;
}
include 'style/layout_footer.php';
?>

View File

@@ -0,0 +1,45 @@
<?php
if( !defined('IN_PHPBB') || !defined('IN_PORTAL_INSTALL') )
{
exit;
}
include 'style/layout_header.' . $phpEx;
if( $confirm == 1 )
{
?>
<h1><?php echo $user->lang['INFORMATION']; ?></h1>
<p><?php echo sprintf($user->lang['INSTALLER_UNINSTALL_SUCCESSFUL'], $current_version); ?></p>
<p><?php echo $user->lang['INSTALLER_UNINSTALL_USEFUL_INFO']; ?></p>
<?php
}
else
{
?>
<h1><?php echo $user->lang['INSTALLER_UNINSTALL_TITLE']; ?></h1>
<p><?php echo $user->lang['INSTALLER_UNINSTALL_NOTE']; ?></p>
<form id="acp_board" method="post" action="install.php?mode=uninstall">
<fieldset>
<legend><?php echo $user->lang['INSTALLER_UNINSTALL']; ?></legend>
<dl>
<dt><label for="install"><?php echo $user->lang['INSTALLER_UNINSTALL']; ?> v<?php echo $old_version; ?>:</label></dt>
<dd><label><input name="confirm" value="1" class="radio" type="radio" /><?php echo $user->lang['YES']; ?></label><label><input name="confirm" value="0" checked="checked" class="radio" type="radio" /><?php echo $user->lang['NO']; ?></label></dd>
</dl>
<p class="submit-buttons">
<input class="button1" id="submit" name="submit" value="Submit" type="submit" />&nbsp;
<input class="button2" id="reset" name="reset" value="Reset" type="reset" />
</p>
</fieldset>
</form>
<?php
}
include 'style/layout_footer.' . $phpEx;
?>

View File

@@ -0,0 +1,48 @@
<?php
if( !defined('IN_PHPBB') || !defined('IN_PORTAL_INSTALL') )
{
exit;
}
include 'style/layout_header.' . $phpEx;
if( $updated === TRUE )
{
$old_ver_str = ( $phpbb3portal === TRUE ) ? $old_version . ' of phpBB3 Portal' : $old_version ;
?>
<h1><?php echo $user->lang['INFORMATION']; ?></h1>
<p><?php echo sprintf($user->lang['INSTALLER_UPDATE_SUCCESSFUL'], $old_ver_str, $current_version); ?></p>
<p><?php echo $user->lang['INSTALLER_USEFUL_INFO']; ?></p>
<?php
}
else
{
?>
<h1><?php echo $user->lang['INSTALLER_UPDATE_TITLE']; ?></h1>
<p><?php echo sprintf($user->lang['INSTALLER_UPDATE_NOTE'], $old_version, $current_version); ?></p>
<form id="acp_board" method="post" action="install.php?mode=update">
<fieldset>
<legend><?php echo $user->lang['INSTALLER_UPDATE']; ?></legend>
<dl>
<dt><label for="confirm"><?php echo $user->lang['INSTALLER_UPDATE_TO']; ?> v<?php echo $current_version; ?>:</label></dt>
<dd><label><input name="confirm" value="1" class="radio" type="radio" /><?php echo $user->lang['YES']; ?></label><label><input name="confirm" value="0" checked="checked" class="radio" type="radio" /><?php echo $user->lang['NO']; ?></label></dd>
</dl>
<p class="submit-buttons">
<input class="button1" id="submit" name="submit" value="Submit" type="submit" />&nbsp;
<input class="button2" id="reset" name="reset" value="Reset" type="reset" />
</p>
</fieldset>
</form>
<?php
}
include 'style/layout_footer.' . $phpEx;
?>