<?php

header('Content-Type: text/html; charset=utf-8');
header("Pragma: cache");

$seconds_to_cache = 172800; // 2 days
$D =trim(strtolower($_GET['q']));


if(strpos($D,":/")){
 $D = explode(":",$D);
 $D=$D[1];
}
while($D!="" && substr($D,0,1)=="/")$D=substr($D,1);
$D = explode("/",$D);
$D=trim($D[0]);

if($D==""){
 header("Location: https://icr.chit.eu/");
 exit;
}


$r2="<p>We have had a request to grant an ICR to the domain ".$D." but we lack assessable content.</p><p>If you are aware of any URLs on ".$D." please help the Internet Content Rating community by using the &quot;Report URL&quot; function on our homepage <a href='https://icr.chit.eu/#Report_URL'>https://icr.chit.eu/</a></p><p>Simply copy and paste any URL that you consider indicative of the type of content on this website. It will help us greatly.</p><p><b>Thank you!</b></p>";



$ts = gmdate("D, d M Y H:i:s", time() + $seconds_to_cache) . " GMT";
header("Expires: $ts");
header("Cache-Control: max-age=$seconds_to_cache");

echo '<!DOCTYPE html>
<html lang="en">
<head>
<title>Request for help - Internet Content Rating for '.$D.'</title>
<meta charset="UTF-8">
<meta name="description" content="If you are aware of any URLs on '.$D.' please help the Internet Content Rating community by using the &quot;Report URL&quot; function on our homepage">
<meta content="Internet Content Rating,community,if you are aware,report url,grant an icr" name="keywords">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/rss2.php?l=en" type="application/rss+xml" rel="alternate" title="RSS Feed" />
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.php">
</head>
<body>
<div id="wrap">
<h2>Hi! Please help us if you can</h2>
'.$r2.'</div>
<style>
body{font-family: Calibri, sans-serif;line-height:20px;font-size:16px}
h1{line-height:24px;font-size:20px}
h2{line-height:22px;font-size:18px}
.c{text-align:center}
p{text-align:justify}
#wrap{min-height:calc( 100vh - 55px );padding:0 16px}
body{margin:0;padding:0;background:#1A1F36;color:rgb(193, 201, 210);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", "Ubuntu", sans-serif;font-size:14px}
h1,h2,h3{color:rgb(247, 250, 252)}
b{color:#fff}
p{line-height:24px}
a:link,a:visited,a{color:#fff}
</style>
</body></html>';



?>
