Example #1
0
$stage = intval(empty($_GET['stage']) ? 0 : $_GET['stage']);
if ($stage == 2 && empty($_POST)) {
    $stage = 1;
}
/// main switch
headHTML();
// stage 0: display intro
// stage 1: check system & display fields
// stage 2 : check system & check fields & check config file, then install.
switch ($stage) {
    case 2:
        headingPrint("Upgrade Stage Two");
        doStage2();
        break;
    default:
        headingPrint("Upgrade Stage One");
        doStage1();
        break;
}
// end html
footHTML();
function displaySuccess()
{
    global $aurl;
    okPrint("The upgrade was successful.");
    notePrint("You might want to erase the /service directory and <a href=\"{$aurl}\">check your upgrade.</a> Also use the plugin manager and click on upgrade to upgrade your nodes.");
}
function displayFields()
{
    global $data, $doit;
    okPrint(_('<i class="icon-ok"></i> Your server meets all the upgrade requirements.'));
Example #2
0
<?php

$HTMl = '';
$type = 'service';
require 'service.inc.php';
$TITLE = "{$package} Installer/Upgrader";
// Store everything in cache...
preparations();
/// main switch
headHTML();
headingPrint($package . " Installer/Upgrader Service");
displayIntro();
// end html
footHTML();
function displayIntro()
{
    global $package, $version;
    ?>
		<h1>Welcome to the <?php 
    echo $package;
    ?>
 Installer/Upgrader!</h1>
		<div class="row">
			<div class="column grid_6">
				<h2>Fresh PHPDevShell install.</h2>
				<p><strong>If you are new to PHPDevShell</strong> and want a clean installation, click "Install New Copy".
				The installer will check your system for requirements and configure the database.
				To ensure only the owner of the site can actually do the installation, you will be asked several parameters found in the configuration file.
				</p>
				<p><button onClick="parent.location='install.php'" value="install"><span class="ui-icon ui-icon-check left"></span>Install New Copy</button></p>
				<p>
Example #3
0
}
/// main switch
headHTML();
// stage 0: display intro
// stage 1: check system & display fields
// stage 2 : check system & check fields & check config file, then install.
if ($doit == false) {
    warningPrint('Upgrade is in developer mode, set $doit = true.');
}
switch ($stage) {
    case 2:
        headingPrint($package . " Upgrader Stage 2");
        doStage2();
        break;
    default:
        headingPrint($package . " Upgrader Stage 1");
        doStage1();
        break;
}
// end html
footHTML();
function displaySuccess()
{
    global $aurl;
    okPrint("The upgrade was successful.");
    notePrint("You might want to erase the upgrade.php file and <a href=\"{$aurl}\">check your upgrade.</a>. Also use the plugin manager and click on upgrade to upgrade your menus.");
}
function displayFields()
{
    okPrint(_('Your server meets all the upgrade requirements'));
    warningPrint(_('<strong>Please remeber to update your .htaccess file to the latest version else you will see a blank screen when trying to access your site.</strong>'));
Example #4
0
$stage = intval(empty($_GET['stage']) ? 0 : $_GET['stage']);
if ($stage == 2 && empty($_POST)) {
    $stage = 1;
}
/// main switch
headHTML();
// stage 0: display intro
// stage 1: check system & display fields
// stage 2 : check system & check fields & check config file, then install.
switch ($stage) {
    case 2:
        headingPrint("Install Stage Two");
        doStage2();
        break;
    default:
        headingPrint("Install Stage One");
        doStage1();
        break;
}
// end html
footHTML();
function displaySuccess()
{
    global $aurl;
    okPrint("The installation was successful.");
    notePrint("You might want to erase the /service directory and <a href=\"{$aurl}\">check your new installation.</a>");
}
function displayFields()
{
    global $data, $doit;
    okPrint(_('<i class="icon-ok"></i> Your server meets all the installation requirements.'));
Example #5
0
}
/// main switch
headHTML();
// stage 0: display intro
// stage 1: check system & display fields
// stage 2 : check system & check fields & check config file, then install.
if ($doit == false) {
    warningPrint('Installer is in developer mode, set $doit = true.');
}
switch ($stage) {
    case 2:
        headingPrint($package . " Installer Stage 2");
        doStage2();
        break;
    default:
        headingPrint($package . " Installer Stage 1");
        doStage1();
        break;
}
// end html
footHTML();
function displayIntro()
{
    global $package, $version;
    ?>
		<h2>Welcome to the <?php 
    echo $package;
    ?>
 Installer!</h2>
		<div class="row">
			<div class="column grid_6">