mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Removing zeotss services. This was a project in development that never got functional.
This commit is contained in:
@@ -347,29 +347,5 @@ if ($render_page) {
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
include 'layout/overall/footer.php';
|
||||
// ZEOTSS: Register visitor
|
||||
if ($config['zeotss']['enabled'] && $config['zeotss']['visitors']) {
|
||||
$curl_connection = curl_init($config['zeotss']['server']."modules/visitor/registervisitor.php");
|
||||
curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 1);
|
||||
curl_setopt($curl_connection, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)");
|
||||
curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 0);
|
||||
$post_string = "longip=".getIPLong()."®ister=1";
|
||||
curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string);
|
||||
$result = curl_exec($curl_connection);
|
||||
if ($config['zeotss']['debug']) data_dump(false, array($result), "CURL DATA");
|
||||
curl_close($curl_connection);
|
||||
|
||||
// Check if site is registered on ZEOTSS and can use its utilities:
|
||||
$result = json_decode($result);
|
||||
if ($result->data->exist === false) {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
alert("Error: ZEOTSS site validation failed, have you registered? Register at: <?php echo $config['zeotss']['server']; ?>");
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
include 'layout/overall/footer.php';
|
||||
?>
|
Reference in New Issue
Block a user