<?php
$auth_file = './auth/authkey';
if (!file_exists($auth_file) || time() - @filemtime($auth_file) >= 900) {
$vec_contents = file_get_contents('./auth/vec.json');
$vec_array = json_decode($vec_contents, true);
$random_entry = array_rand($vec_array);
$vec = $vec_array[$random_entry];
$ch = curl_init('
Sie müssen registriert sein, um Links zu sehen.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'VAVOO/2.6');
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"vec":"' . $vec . '"}');
$response = curl_exec($ch);
curl_close($ch);
preg_match('~signed":"(.*)","~', $response, $id);
if (!($signed = $id[1])) exit;
$fh = fopen($auth_file, 'w');
fwrite($fh, '?n=1&b=5&vavoo_auth=' . $signed . "=");
fclose($fh);
}
$auth = file_get_contents($auth_file);
$url = "
Sie müssen registriert sein, um Links zu sehen.
" . $_GET["channel"] . $auth;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, "VAVOO/2.6");
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);
exit;
?>