Sorry, I was a bit careless

.
PHP Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'page_ping');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'page_ping'
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ########################## REQUIRE BACK-END ############################
chdir('/home/USERNAME/public_html');
require_once('./global.php');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
// do pinging
if ($_GET['do'] == 'ping')
{
$domain = $_POST['domain'];
exec("ping -w 10 -c 5 $domain", $output);
$pingresult = implode('<br />', $output);
}
// prepare navbits
$navbits = array();
$navbits[] = 'Ping';
$navbits = construct_navbits($navbits);
// spit out html
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('page_ping') . '");');
?>