Removing zeotss services. This was a project in development that never got functional.

This commit is contained in:
Znote 2016-11-13 21:29:27 +01:00
parent 66264947ba
commit a0413026dc
3 changed files with 5 additions and 38 deletions

View File

@ -560,16 +560,7 @@
'debug' => false, // Enable debugging if you have problems and are looking for errors.
'fromName' => $config['site_title'],
);
// Use Znote's External Open Tibia Services Server
// Currently in Alpha and is pretty useless, but will contain paypal blacklist etc in future.
// You can use the official server: http://zeotss.znote.eu/
// Or host your own private one, here is the code: https://github.com/Znote/ZEOTSS
$config['zeotss'] = array(
'enabled' => false,
'visitors' => false,
'debug' => false,
'server' => "http://zeotss.znote.eu/"
);
// Don't touch this unless you know what you are doing. (modifying this(key value) also requires modifications in OT files /XML/commands.xml).
$config['ingame_positions'] = array(
1 => 'Player',

View File

@ -25,9 +25,9 @@ ob_start();
require_once 'config.php';
$sessionPrefix = $config['session_prefix'];
if ($config['paypal']['enabled'] || $config['zeotss']['enabled']) {
if ($config['paypal']['enabled']) {
$curlcheck = function_exists('curl_version') ? true : false;
if (!$curlcheck) die("php cURL is not enabled. It is required to for paypal and ZEOTSS services.<br>1. Find your php.ini file.<br>2. Uncomment extension=php_curl<br>Restart web server.<br><br><b>If you don't want this then disable zeotss and paypal in config.php.</b>");
if (!$curlcheck) die("php cURL is not enabled. It is required to for paypal services.<br>1. Find your php.ini file.<br>2. Uncomment extension=php_curl<br>Restart web server.<br><br><b>If you don't want this then disable paypal in config.php.</b>");
}
require_once 'database/connect.php';

View File

@ -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()."&register=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';
?>