Location: PHPKode > projects > phpMyOrdering > phpMyOrdering-0.1.7-alpha/ajaxLogs.php
<?PHP
if(file_exists('scripts/inc.config.php')) {
 require 'scripts/inc.config.php';

 // ensure we are being called from our configured host
 if($defined['hostname']===$_SERVER['SERVER_NAME']) {

  // obtain default options
  $defined = array_merge($defined,$handles['misc']->getDefaults());
  $defined = array_merge($defined,$handles['misc']->getAuthentication());
  $accessList = $handles['misc']->getAccessList();

  // copy and filter incoming data
  $get = @array_map($handles['val']->ValidateXSS,$_GET);
  $post = @array_map($handles['val']->ValidateXSS,$_POST);
  $sess = @array_map($handles['val']->ValidateXSS,$_SESSION);
  $serv = @array_map($handles['val']->ValidateXSS,$_SERVER);

  // obtain last logs and return
  echo $handles['logs']->contentlatest($serv['REQUEST_TIME']);

 } else {
  echo "Cannot be called from anywhere other then our defined host";
 }

} else {
 echo "Configuration file not found";
}

?>
Return current item: phpMyOrdering