public function checkOnline()
 {
     echo getServerStatus();
 }
Beispiel #2
0
      </thead>
      <tbody>
      <?php 
foreach ($servers as $key => $server) {
    ?>
        <tr>
          <td><?php 
    echo genServerTitle($server);
    ?>
</td>
          <td><?php 
    echo $server['address'];
    ?>
</td>
          <td><?php 
    echo getServerStatus($server['status']);
    ?>
</td>
          <td><?php 
    echo memoryFormat($server['freeSpace']);
    ?>
</td>
          <td><?php 
    echo $server['tasksCount'];
    ?>
</td>
          <td class="align-right"><a href="<?php 
    echo __siteurl;
    ?>
/?r=servers/server_edit&id=<?php 
    echo $server['id'];
Beispiel #3
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * @link 		http://www.easyscp.net
 * @author 		EasySCP Team
 */
require '../../include/easyscp-lib.php';
check_login(__FILE__);
$cfg = EasySCP_Registry::get('Config');
$tpl = EasySCP_TemplateEngine::getInstance();
$template = 'admin/server_status.tpl';
getServerStatus();
// static page messages
$tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP Admin / System Tools / Server Status'), 'TR_HOST' => tr('Host'), 'TR_SERVICE' => tr('Service'), 'TR_STATUS' => tr('Status'), 'TR_SERVER_STATUS' => tr('Server status')));
gen_admin_mainmenu($tpl, 'admin/main_menu_general_information.tpl');
gen_admin_menu($tpl, 'admin/menu_general_information.tpl');
gen_page_message($tpl);
if ($cfg->DUMP_GUI_DEBUG) {
    dump_gui_debug($tpl);
}
$tpl->display($template);
unset_messages();
/*
 * Site functions
 */
class status
{