imprint function added
This commit is contained in:
@@ -173,5 +173,6 @@ require_once('nav.php');
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
5
stats/footer.php
Normal file
5
stats/footer.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?PHP
|
||||
if ($cfg['imprint_enabled'] == "1") {
|
||||
echo '<footer><a href="imprint.php">' . $lang['imprint'] . '</a> • <a href="privacy-policy.php">' . $lang['privacy-policy'] . '</a></footer>';
|
||||
}
|
||||
?>
|
||||
83
stats/imprint.php
Normal file
83
stats/imprint.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?PHP
|
||||
ini_set('session.cookie_httponly', 1);
|
||||
ini_set('session.use_strict_mode', 1);
|
||||
if(in_array('sha512', hash_algos())) {
|
||||
ini_set('session.hash_function', 'sha512');
|
||||
}
|
||||
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
|
||||
ini_set('session.cookie_secure', 1);
|
||||
if(!headers_sent()) {
|
||||
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
|
||||
}
|
||||
}
|
||||
session_start();
|
||||
$starttime = microtime(true);
|
||||
|
||||
require_once('../other/config.php');
|
||||
require_once('../other/session.php');
|
||||
require_once('../other/load_addons_config.php');
|
||||
|
||||
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
|
||||
|
||||
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
|
||||
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
|
||||
}
|
||||
$sql_res = $mysqlcon->query("SELECT `msg` FROM `$dbname`.`imprint` WHERE `text`=`adress`")->fetchAll(PDO::FETCH_UNIQUE|PDO::FETCH_ASSOC);
|
||||
$stats_user = $mysqlcon->query("SELECT `adress`,`email`,`phone`,`active_month`,`last_calculated` FROM `$dbname`.`stats_user` WHERE `uuid`='".$_SESSION[$rspathhex.'tsuid']."'")->fetch();
|
||||
require_once('nav.php');
|
||||
?>
|
||||
<div id="page-wrapper">
|
||||
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header">
|
||||
<?PHP echo $lang['imprint']; ?>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP
|
||||
if ($cfg['imprint_enabled'] == 1) {
|
||||
echo '<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h5><strong><span class="text-info">' . $lang['imprint_address'] . '</span></strong></h5>
|
||||
<p>' . $cfg['imprint_address'] . '</p>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h5><strong><span class="text-warning">' . $lang['imprint_email'] . '</span></strong></h5>
|
||||
<p>' . $cfg['imprint_email'] . '</p>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h5><strong><span class="text-warning">' . $lang['imprint_phone'] . '</span></strong></h5>
|
||||
<p>' . $cfg['imprint_phone'] . '</p>
|
||||
<br>
|
||||
</div>
|
||||
</div>'
|
||||
if ($cfg['imprint_notes'] != NULL) {
|
||||
echo '<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h5><strong><span class="text-danger">' . $lang['imprint_notes'] . '</span></strong></h5>
|
||||
<p>' . $cfg['imprint_notes'] . '</p>
|
||||
</div>
|
||||
</div>';
|
||||
};
|
||||
} else {
|
||||
echo '<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h5><strong><span class="text-danger">' . $lang['module_disabled'] . '</span></strong></h5>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -497,5 +497,6 @@ if (isset($nation[$sql_res['country_nation_name_5']])) {
|
||||
<input type="hidden" id="tsn33" value="<?PHP echo $sql_res['platform_other']; ?>">
|
||||
<input type="hidden" id="tsn34" value="<?PHP echo ($sql_res['server_used_slots'] + $sql_res['server_free_slots']); ?>">
|
||||
<input type="hidden" id="tsn35" value="<?PHP if($cfg['stats_show_maxclientsline_switch']==1) { echo "on"; } ?>">
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -98,11 +98,13 @@ require_once('nav.php');
|
||||
<p><?PHP echo sprintf($lang['stri0026'], '<a href="//foro.gameflix.es" target="_blank">JavierlechuXD</a> -'); ?></p>
|
||||
<p><?PHP echo sprintf($lang['stri0027'], '<a href="//warriortigers.hu" target="_blank">ExXeL</a> -'); ?></p>
|
||||
<p><?PHP echo sprintf($lang['stri0028'], '<a href="//grezhost.com" target="_blank">G. FARZALIYEV</a> -'); ?></p>
|
||||
<p><?PHP echo sprintf($lang['stri0029'], '<a href="//www.nick-slowinski.de" target="_blank">Nick Slowinski</a> -'); ?></p>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -450,5 +450,6 @@ if($adminlogin == 1) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -376,5 +376,6 @@ require_once('nav.php');
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -90,5 +90,6 @@ foreach ($sql_res as $country => $value) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -71,5 +71,6 @@ foreach ($sql_res as $platform => $value) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
57
stats/privacy-policy.php
Normal file
57
stats/privacy-policy.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<?PHP
|
||||
ini_set('session.cookie_httponly', 1);
|
||||
ini_set('session.use_strict_mode', 1);
|
||||
if(in_array('sha512', hash_algos())) {
|
||||
ini_set('session.hash_function', 'sha512');
|
||||
}
|
||||
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
|
||||
ini_set('session.cookie_secure', 1);
|
||||
if(!headers_sent()) {
|
||||
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
|
||||
}
|
||||
}
|
||||
session_start();
|
||||
$starttime = microtime(true);
|
||||
|
||||
require_once('../other/config.php');
|
||||
require_once('../other/session.php');
|
||||
require_once('../other/load_addons_config.php');
|
||||
|
||||
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
|
||||
|
||||
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
|
||||
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
|
||||
}
|
||||
require_once('nav.php');
|
||||
?>
|
||||
<div id="page-wrapper">
|
||||
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl); ?>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header">
|
||||
<?PHP echo $lang['privacy-policy']; ?>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP
|
||||
if ($cfg['imprint_enabled'] == 1) {
|
||||
echo '<div class="row">
|
||||
<div class="col-lg-12">
|
||||
' . $cfg['imprint_privacy-policy'] .'
|
||||
</div>
|
||||
</div>';
|
||||
} else {
|
||||
echo '<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h5><strong><span class="text-danger">' . $lang['module_disabled'] . '</span></strong></h5>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -354,6 +354,7 @@ require_once('nav.php');
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
<script>
|
||||
Morris.Donut({
|
||||
element: 'top10vs_donut1',
|
||||
|
||||
@@ -358,6 +358,7 @@ require_once('nav.php');
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
<script>
|
||||
Morris.Donut({
|
||||
element: 'top10vs_donut1',
|
||||
|
||||
@@ -358,6 +358,7 @@ require_once('nav.php');
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
<script>
|
||||
Morris.Donut({
|
||||
element: 'top10vs_donut1',
|
||||
|
||||
@@ -210,5 +210,6 @@ require_once('nav.php');
|
||||
<?PHP } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -71,5 +71,6 @@ foreach ($sql_res as $version => $value) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP require_once('footer.php'); ?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user