Files
Testing/cc_denied.php

26 lines
438 B
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php
exit;
include "header2.php";
error_reporting(-1);
$handle = fopen("../cc_log", "a+");
if(!$handle) :
echo "Error opening file.\n";
endif;
if($_POST) :
if(! fwrite($handle,"DENIED: \n". print_r($_POST, TRUE) . "\n\n\n")) :
echo 'Error writing file.';
endif;
else :
if(! fwrite($handle,"ACCESS: \n". date('y-m-d') . "\n\n\n")) :
echo 'Error writing file.';
endif;
endif;
include "footer.php";
?>