Example #1
0
function restart()
{
    Webinterface\Helper\Daemon::restartDaemon($_GET['daemon']);
    if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
        // restart - ajax request
    } else {
        // restart - non-ajax restart
        // let windows wait some seconds
        sleep(3);
        redirect(WPNXM_WEBINTERFACE_ROOT . 'index.php?page=overview');
    }
}
Example #2
0
function update_phpversionswitch()
{
    $new_version = filter_input(INPUT_POST, 'new-php-version');
    Webinterface\Helper\PHPVersionSwitch::switchVersion($new_version);
    Webinterface\Helper\Daemon::restartDaemon('php');
    echo '<div class="modal"><p class="info">PHP version switched. PHP restarted.</div>';
}
Example #3
0
/**
 * WPИ-XM Server Stack
 * Copyright © 2010 - onwards, Jens-André Koch <*****@*****.**>
 * http://wpn-xm.org/
 *
 * This source file is subject to the terms of the MIT license.
 * For full copyright and license information, view the bundled LICENSE file.
 */
function restart()
{
    Webinterface\Helper\Daemon::restartDaemon($_GET['daemon']);
}