Beispiel #1
0
This is an automated process, so the results may require some manual cleanup.

**** PROCESSING FILES... ****
<?php 
// Update configuration files:
$notifications = array();
foreach ($files as $current) {
    $function = 'fix' . strtoupper(substr($current, 0, 1)) . substr($current, 1) . 'Ini';
    $warnings = $function($old_inputs[$current], $new_inputs[$current]);
    if (!empty($warnings)) {
        $notifications = array_merge($notifications, $warnings);
    }
}
// Check to see if any recommended dependencies are missing:
echo "\n**** CHECKING DEPENDENCIES... ****\n\n";
checkDependencies($notifications);
// Display parting notes now that we are done:
?>
**** DONE PROCESSING. ****

Please check all of the output files (web/conf/*.new) to make sure you are
happy with the results.

Known issues to watch for:

- Disabled settings may get turned back on.  You will have to comment
  them back out again.
- Comments from your previous files will be lost and replaced with the new
  default comments from the latest files -- if you have important
  information embedded there, you will need to merge it by hand.
- Boolean "true" will map to "1" and "false" will map to "".  This
Beispiel #2
0
/**
 * Set HTTP headers in preparation for a page response.
 *
 * TODO: Figure out caching
 */
function ariPageHeader()
{
    bootstrap();
}
/**
 * Perform end-of-request tasks.
 *
 * This function sets the page cache if appropriate, and allows modules to
 * react to the closing of the page by calling hook_exit().
 */
function ariPageFooter()
{
}
/**
 * Includes and run functions
 */
include_once "./includes/lang.php";
$language = new Language();
$language->set();
checkDependencies();
startARISession();
setARIRoot();
include_once "./includes/main.conf.php";
include_once "./version.php";
include_once "./includes/crypt.php";
include_once "./includes/login.php";
Beispiel #3
0
    } else {
        $errormessage = $dbresult;
    }
}
if (isset($_REQUEST['doinstall'])) {
    $_SESSION['setupvars'] = json_encode(["adminhash" => hash('sha256', $_REQUEST['password'])]);
    $_SESSION['install_screen'] = 4;
}
if (isset($_REQUEST['doupgrade'])) {
    $_SESSION['setupvars'] = json_encode(["adminhash" => hash('sha256', $_REQUEST['password'])]);
    $_SESSION['install_screen'] = 4;
}
switch ($_SESSION['install_screen']) {
    case 1:
        // Check Dependencies
        $deps = checkDependencies();
        $curversion = getCurrentVersion();
        include "views/header.html";
        include "views/requirements.php";
        include "views/footer.html";
        break;
    case 2:
        // Configure database
        include "views/header.html";
        include "views/database.php";
        include "views/footer.html";
        break;
    case 3:
        // Configure system
        include "views/header.html";
        include "views/setup.php";