0) { // check for csrf if (!defined('GSNOCSRF') || (GSNOCSRF == FALSE) ) { $nonce = $_GET['nonce']; if(!check_nonce($nonce, "delete")) { die("CSRF detected!"); } } unlink($log_file); exec_action('logfile_delete'); redirect('support.php?success='.urlencode('Log '.$log_name . i18n_r('MSG_HAS_BEEN_CLR'))); } if (!isset($log_data)) $log_data = getXML($log_file); get_template('header', cl($SITENAME).' » '.i18n_r('SUPPORT').' » '.i18n_r('LOGS')); ?>

: ‘

'.i18n_r('LOG_FILE_EMPTY').'

'; ?>

    '.i18n_r('LOG_FILE_ENTRY').'
    '; foreach($log->children() as $child) { $name = $child->getName(); echo ''. stripslashes(ucwords($name)) .': '; $d = $log->$name; $n = lowercase($child->getName()); $ip_regex = '/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$/'; $url_regex = @"((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)"; //check if its an url address if (do_reg($d, $url_regex)) { $d = ''.$d.''; } //check if its an ip address if (do_reg($d, $ip_regex)) { if ($d == $_SERVER['REMOTE_ADDR']) { $d = i18n_r('THIS_COMPUTER').' ('.$d.')'; } else { $d = ''.$d.''; } } //check if its an email address if (check_email_address($d)) { $d = ''.$d.''; } //check if its a date if ($n === 'date') { $d = lngDate($d); } echo stripslashes($d); echo '
    '; } echo "

    "; $count++; } } ?>