Report #42: New Installer
This commit is contained in:
70
root/install_portal/schemas/_schema_data.sql
Normal file
70
root/install_portal/schemas/_schema_data.sql
Normal 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 #
|
||||
|
||||
16
root/install_portal/schemas/_sqlite_schema.sql
Normal file
16
root/install_portal/schemas/_sqlite_schema.sql
Normal 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;
|
||||
0
root/install_portal/schemas/index.htm
Normal file
0
root/install_portal/schemas/index.htm
Normal file
9
root/install_portal/schemas/update_schema.php
Normal file
9
root/install_portal/schemas/update_schema.php
Normal 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')",
|
||||
);
|
||||
|
||||
?>
|
||||
18
root/install_portal/style/layout_footer.php
Normal file
18
root/install_portal/style/layout_footer.php
Normal 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 © 2000, 2002, 2005, 2007 <a href="http://www.phpbb.com/">phpBB Group</a><br />Board3 Portal © <a href="http://www.board3.de">Board3 Team</a></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
47
root/install_portal/style/layout_header.php
Normal file
47
root/install_portal/style/layout_header.php
Normal 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>
|
||||
45
root/install_portal/style/layout_install.php
Normal file
45
root/install_portal/style/layout_install.php
Normal 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" />
|
||||
<input class="button2" id="reset" name="reset" value="Reset" type="reset" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
include 'style/layout_footer.' . $phpEx;
|
||||
|
||||
?>
|
||||
37
root/install_portal/style/layout_menu.php
Normal file
37
root/install_portal/style/layout_menu.php
Normal 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';
|
||||
|
||||
?>
|
||||
45
root/install_portal/style/layout_uninstall.php
Normal file
45
root/install_portal/style/layout_uninstall.php
Normal 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" />
|
||||
<input class="button2" id="reset" name="reset" value="Reset" type="reset" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
include 'style/layout_footer.' . $phpEx;
|
||||
|
||||
?>
|
||||
48
root/install_portal/style/layout_update.php
Normal file
48
root/install_portal/style/layout_update.php
Normal 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" />
|
||||
<input class="button2" id="reset" name="reset" value="Reset" type="reset" />
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
include 'style/layout_footer.' . $phpEx;
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user