Files
luos/workflow/engine/methods/install/heartbeatStatus.php
Ralph Asendeteufrer c818eef187 CODE STYLE changes
files modified:   workflow/engine/methods/install/autoinstallPlugins.php
                  workflow/engine/methods/install/autoinstallProcesses.php
                  workflow/engine/methods/install/heartbeatStatus.php
                  workflow/engine/methods/install/install.php
                  workflow/engine/methods/install/installServer.php
                  workflow/engine/methods/install/newSite.php
                  workflow/engine/methods/install/r.php
2012-10-19 09:05:04 -04:00

24 lines
828 B
PHP
Executable File

<?php
try {
if (isset( $_REQUEST['status'] )) {
G::LoadClass( 'serverConfiguration' );
$oServerConf = & serverConf::getSingleton();
/*you can use SYS_TEMP or SYS_SYS ON HEAR_BEAT_CONF to save for each workspace*/
if ($_REQUEST['status']) {
echo "ACTIVE (Thanks!)";
$oServerConf->setHeartbeatProperty( 'HB_OPTION', 1, 'HEART_BEAT_CONF' );
$oServerConf->unsetHeartbeatProperty( 'HB_NEXT_BEAT_DATE', 'HEART_BEAT_CONF' );
} else {
echo "INACTIVE";
$oServerConf->setHeartbeatProperty( 'HB_OPTION', 0, 'HEART_BEAT_CONF' );
$oServerConf->unsetHeartbeatProperty( 'HB_NEXT_BEAT_DATE', 'HEART_BEAT_CONF' );
}
} else {
echo "Nothing to do";
}
} catch (Exception $e) {
echo $e->getMessage();
}