first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
/*
* File from http://PrestaShow.pl
*
* DISCLAIMER
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @authors PrestaShow.pl <kontakt@prestashow.pl>
* @copyright 2015 PrestaShow.pl
* @license http://PrestaShow.pl/license
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: /');
exit;

View File

@@ -0,0 +1,13 @@
SELECT_TAB = {
init: function (tab_id)
{
$('nav#nav-sidebar li').removeClass('active');
$('#' + tab_id)
.addClass('active')
.parent()
.parent()
.addClass('active');
}
};

View File

@@ -0,0 +1,47 @@
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ')
c = c.substring(1);
if (c.indexOf(name) == 0)
return c.substring(name.length, c.length);
}
return "";
}
$(function () {
var TIPS = $('.tip');
TIPS.each(function (k)
{
id = $(this).attr('id');
console.log('#' + id);
$('#' + id).on('click', '.close', function () {
id = $(this).parent().attr('id');
console.log(SETTINGS_URL + '&page=update&key=tip_' + id + '&val=1');
$.get(SETTINGS_URL + '&page=update&key=tip_' + id + '&val=1', function (res) {
console.log(res);
$.get(SETTINGS_URL + '&page=update&key=tips&val=0', function (res) {
console.log(res);
});
});
});
});
});