Report #42: New Installer
This commit is contained in:
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