Requesting a slot for your show.
Please select your desired slot, and enter a valid email address.
See our ">help page for more information
We will send you an email with a link to where you can upload your show.
request_confirm.php > upload.php > upload_confirm.php require "/home/hpr/php/include.php"; $ip = $_SERVER["REMOTE_ADDR"]; $key = uniqid(md5(rand())); # Remove any stale requests. # This should be enough to deter attackers while been short enough to allow real hosts to request a show. $query_delete_old = "DELETE FROM reservations WHERE reservations.timestamp + INTERVAL 1 DAY <= UTC_TIMESTAMP() AND reservations.verified = 0"; $result_delete_old = @mysqli_query($connection, $query_delete_old); # Remove stale requests from this IP Address after 15 minutes. # This should be enough to deter attackers while been short enough to allow real hosts to request a show. $query_delete = "DELETE FROM reservations WHERE reservations.ip = '$ip' AND reservations.timestamp + INTERVAL 15 MINUTE <= UTC_TIMESTAMP() AND reservations.verified = 0"; $result_delete = @mysqli_query($connection, $query_delete); # Check that this ip is not uploading in another session $query_dupe = "SELECT COUNT(*), timestamp FROM `reservations` WHERE ip = '$ip' and verified = 0"; $result_dupe = mysqli_query($connection, "$query_dupe"); $row_dupe = mysqli_fetch_array($result_dupe, MYSQLI_NUM); $num_from_this_ip = $row_dupe[0]; $show_timestamp = strtotime($row_dupe[1]); if( !isset($row_dupe) or $num_from_this_ip != 0 ) { header('Cache-Control: no-cache'); header('Pragma: no-cache'); header("Status: 412 Precondition Failed"); include("header.php"); echo "
It seems another request was made from this ip address\n (${ip}) on ${localtime}.
\n"; echo "This lock is set for 15 minutes to deter attacks and will be released in about " . round(abs(16 - ( $timestamp - $show_timestamp ) / 60 ) ) . " minutes.
\n"; echo "There are several reasons why you would see this page:
\n"; echo "Return to the calendar page.
\n"; echo "\n"; echo "If you are having issues please send the following information to admin @ HPR to assist in troubleshooting the issue:
\n"; echo "\n";
echo "${timestamp}\n";
echo "${show_timestamp}\n";
$agent = $_SERVER['HTTP_USER_AGENT'];
$uri = $_SERVER['REQUEST_URI'];
print "${ip}\n";
print "${agent}\n";
print "${uri}\n";
echo "\n";
echo "$total Uploads have temporarily been suspended due to suspicious activity.
If you are attacking us why not record a show telling us about what you were trying to do ?
While these people have their fun, can we ask you to send your show another way.
Contact admin @ HPR for more information.
Please select your desired slot, and enter a valid email address.
See our ">help page for more information
We will send you an email with a link to where you can upload your show.