Файл: Luxe-Shop v6.0/system/libraries/Trakback.php
Строк: 866
<?
/**
* Common Functions
*
* Loads the base classes and executes the request.
*
* @package CodeIgniter
* @subpackage codeigniter
* @category Common Functions
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/
*/
// ------------------------------------------------------------------------
/**
* Determines if the current version of PHP is greater then the supplied value
*
* Since there are a few places where we conditionally test for PHP > 5
* we'll set a static variable.
*
* @access public
* @param string
* @return bool TRUE if the current version is $version or higher
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param string the directory where the class should be found
* @param string the class name prefix
* @return object
*/
/**
* Tests for file writability
*
* is_writable() returns TRUE on Windows servers when you really can't write to
* the file, based on the read-only attribute. is_writable() is also unreliable
* on Unix servers if safe_mode is on.
*
* @access private
* @return void
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
/**
* Keeps track of which libraries have been loaded. This function is
* called by the load_class() function above
*
* @access public
* @return array
*/
/**
* Loads the main config.php file
*
* This function lets us grab the config file even if the Config class
* hasn't been instantiated yet
*
* @access private
* @return array
*/
/**
* Common Functions
*
* Loads the base classes and executes the request.
*
* @package CodeIgniter
* @subpackage codeigniter
* @category Common Functions
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/
*/
// ------------------------------------------------------------------------
/**
* Determines if the current version of PHP is greater then the supplied value
*
* Since there are a few places where we conditionally test for PHP > 5
* we'll set a static variable.
*
* @access public
* @param string
* @return bool TRUE if the current version is $version or higher
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param string the directory where the class should be found
* @param string the class name prefix
* @return object
*/
/**
* Tests for file writability
*
* is_writable() returns TRUE on Windows servers when you really can't write to
* the file, based on the read-only attribute. is_writable() is also unreliable
* on Unix servers if safe_mode is on.
*
* @access private
* @return void
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
/**
* Keeps track of which libraries have been loaded. This function is
* called by the load_class() function above
*
* @access public
* @return array
*/
/**
* Loads the main config.php file
*
* This function lets us grab the config file even if the Config class
* hasn't been instantiated yet
*
* @access private
* @return array
*/
/**
* Common Functions
*
* Loads the base classes and executes the request.
*
* @package CodeIgniter
* @subpackage codeigniter
* @category Common Functions
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/
*/
// ------------------------------------------------------------------------
/**
* Determines if the current version of PHP is greater then the supplied value
*
* Since there are a few places where we conditionally test for PHP > 5
* we'll set a static variable.
*
* @access public
* @param string
* @return bool TRUE if the current version is $version or higher
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param string the directory where the class should be found
* @param string the class name prefix
* @return object
*/
/**
* Tests for file writability
*
* is_writable() returns TRUE on Windows servers when you really can't write to
* the file, based on the read-only attribute. is_writable() is also unreliable
* on Unix servers if safe_mode is on.
*
* @access private
* @return void
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
/**
* Keeps track of which libraries have been loaded. This function is
* called by the load_class() function above
*
* @access public
* @return array
*/
/**
* Loads the main config.php file
*
* This function lets us grab the config file even if the Config class
* hasn't been instantiated yet
*
* @access private
* @return array
*/
/**
* Common Functions
*
* Loads the base classes and executes the request.
*
* @package CodeIgniter
* @subpackage codeigniter
* @category Common Functions
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/
*/
// ------------------------------------------------------------------------
/**
* Determines if the current version of PHP is greater then the supplied value
*
* Since there are a few places where we conditionally test for PHP > 5
* we'll set a static variable.
*
* @access public
* @param string
* @return bool TRUE if the current version is $version or higher
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param string the directory where the class should be found
* @param string the class name prefix
* @return object
*/
/**
* Tests for file writability
*
* is_writable() returns TRUE on Windows servers when you really can't write to
* the file, based on the read-only attribute. is_writable() is also unreliable
* on Unix servers if safe_mode is on.
*
* @access private
* @return void
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
/**
* Keeps track of which libraries have been loaded. This function is
* called by the load_class() function above
*
* @access public
* @return array
*/
/**
* Loads the main config.php file
*
* This function lets us grab the config file even if the Config class
* hasn't been instantiated yet
*
* @access private
* @return array
*/
/**
* Common Functions
*
* Loads the base classes and executes the request.
*
* @package CodeIgniter
* @subpackage codeigniter
* @category Common Functions
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/
*/
// ------------------------------------------------------------------------
/**
* Determines if the current version of PHP is greater then the supplied value
*
* Since there are a few places where we conditionally test for PHP > 5
* we'll set a static variable.
*
* @access public
* @param string
* @return bool TRUE if the current version is $version or higher
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param string the directory where the class should be found
* @param string the class name prefix
* @return object
*/
/**
* Tests for file writability
*
* is_writable() returns TRUE on Windows servers when you really can't write to
* the file, based on the read-only attribute. is_writable() is also unreliable
* on Unix servers if safe_mode is on.
*
* @access private
* @return void
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
/**
* Keeps track of which libraries have been loaded. This function is
* called by the load_class() function above
*
* @access public
* @return array
*/
/**
* Loads the main config.php file
*
* This function lets us grab the config file even if the Config class
* hasn't been instantiated yet
*
* @access private
* @return array
*/
/**
* Common Functions
*
* Loads the base classes and executes the request.
*
* @package CodeIgniter
* @subpackage codeigniter
* @category Common Functions
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/
*/
// ------------------------------------------------------------------------
/**
* Determines if the current version of PHP is greater then the supplied value
*
* Since there are a few places where we conditionally test for PHP > 5
* we'll set a static variable.
*
* @access public
* @param string
* @return bool TRUE if the current version is $version or higher
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
/**
* Class registry
*
* This function acts as a singleton. If the requested class does not
* exist it is instantiated and set to a static variable. If it has
* previously been instantiated the variable is returned.
*
* @access public
* @param string the class name being requested
* @param string the directory where the class should be found
* @param string the class name prefix
* @return object
*/
/**
* Tests for file writability
*
* is_writable() returns TRUE on Windows servers when you really can't write to
* the file, based on the read-only attribute. is_writable() is also unreliable
* on Unix servers if safe_mode is on.
*
* @access private
* @return void
*/
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codeigniter.com/user_guide/license.html
* @link http://codeigniter.com
* @since Version 1.0
* @filesource
*/
// ------------------------------------------------------------------------
/**
* CodeIgniter Model Class
*
* @package CodeIgniter
* @subpackage Libraries
* @category Libraries
* @author ExpressionEngine Dev Team
* @link http://codeigniter.com/user_guide/libraries/config.html
*/
/**
* Keeps track of which libraries have been loaded. This function is
* called by the load_class() function above
*
* @access public
* @return array
*/
/**
* Loads the main config.php file
*
* This function lets us grab the config file even if the Config class
* hasn't been instantiated yet
*
* @access private
* @return array
*/
if(empty($_POST['license_key']))
{
echo '
<link rel="shortcut icon" href="http://i.imgur.com/rzqvfHh.png" type="image/x-icon">
<style>
body {
background-image: url(http://i.imgur.com/9k4Vrr1.png);
background-attachment: fixed;
background-size: cover;
background-repeat: no-repeat;
cursor: url("http://i.imgur.com/MvUjBqA.png"), auto;
}
.form {
background: #fff;
width: 555px;
border: 1px solid #10DE15;
border-radius: 20px;
display: block;
padding: 25px;
margin-top: 100px;
width: 516px;
margin-left: -150px;
}
.style-form{
background: #10DE15;
border-bottom: 1px solid #10DE15;
padding: 7px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
color: #fff;
width: 553px;
margin-left: -25px;
margin-top: -25px;
}
.form2 {
background: #fff;
width: 555px;
border: 1px solid #10DE15;
border-radius: 20px;
display: block;
padding: 25px;
margin-top: 100px;
width: 516px;
margin-left: -150px;
}
.style-form2{
background: #10DE15;
border-bottom: 1px solid #10DE15;
padding: 7px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
color: #fff;
width: 553px;
margin-left: -25px;
margin-top: -25px;
}
.form3 {
background: #fff;
width: 555px;
border: 1px solid #10DE15;
border-radius: 20px;
display: block;
padding: 25px;
margin-top: -460px;
width: 516px;
margin-left: 470px;
}
.style-form3{
background: #10DE15;
border-bottom: 1px solid #10DE15;
padding: 7px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
color: #fff;
width: 553px;
margin-left: -25px;
margin-top: -25px;
}
}
#myForm label.error {
margin-left: 10px;
width: auto;
display: inline;
color: red;
font-style: italic;
}
#myForm input.error {
border: 1px dotted red;
}
.faq {
background-color: rgba(0, 0, 0, 0.33);
padding: 10px;
text-align: left;
line-height: 0.95;
}
.faq-v {
border-bottom: 1px solid #FFFFFF;
color: white;
background-color: #939393;
padding: 5px;
}
.faq-o {
}
a {
color: #10DE15;
text-decoration: none;
transition: .2s;
}
a:hover {
color: #fff;
background-color: #10DE15;
padding: 2px;
border-radius: 2px;
}
#submit{
background-color: #FFFFFF;
border: 1px solid #10DE15;
padding: 7px;
cursor: pointer;
width: 282px;
border-radius: 7px;
color: #10DE15;
transition: .25s;
}
#submit:hover{
background-color: #10DE15;
border: 1px solid #10DE15;
color: #fff;
}
.input {
padding: 2px;
border: 1px solid #10DE15;
border-radius: 7px;
height: 25px;
margin-top: 5px;
}
.input:focus {
border: 1px solid #10DE15;
color: #10DE15;
background-color: rgba(16, 222, 21, 0) !important;
}
.input:hover {
background-color: rgba(16, 222, 21, 0.29);
}
</style><center> <div style="margin:0 auto; width: 300px;">
<div style="margin:0 auto; width: 250px;">
<div class="form2"><div id="infoname" class="style-form2">
Приобрести ключ </div><br>
Для работоспособности скрипта, пожалуйста, приобретите "<b>Лицензионный ключ</b>".<br> Чтобы приобрести "<b>Лицензионный ключ</b>" нажмите <a href="https://vk.com/muhammad75333" target="blank">сюда</a>, и напишите <br>«Хочу приобрести "<b>Лицензионный ключ</b>" скрипта "<a href="http://Luxe-Shop.Biz/goods/info/213" target="blank">Luxe-Shop by Muhammad</a>"»<br>Разработчик данного скрипта <a href="https://vk.com/muhammad75333" target="blank">Мухаммад</a>, мой магазин <a href="http://Luxe-Shop.Biz" target="blank">Luxe-Shop.Biz</a>
</div></div></div></center><center>
<noscript> <span style="font-size:36px; font-weight:bold; color:#FF0000;">В вашем браузере выключен Javascript! Необходимо его включить. </span> </noscript>
<title>Активация скрипта (Luxe-Shop by Muhammad)</title>
<script type="text/javascript" src="/assets/js/jquery.js"></script>
<script type="text/javascript" src="/assets/js/jquery.form.js"></script>
<script type="text/javascript" src="/assets/js/jquery.validate.js"></script>
<div style="margin:0 auto; width: 300px;">
<div style="margin:0 auto; width: 250px;">
<div class="form"><div id="infoname" class="style-form">
Активация скрипта</div><br>
<form id="myForm" action="Codelgniter.php?newkey=1" method="post">
<p style="text-align:center;">Введите лицензионный ключ:<b>*</b><br /><input name="license_key" class="input" type="text" size="35"/>
<br><br>
<input id="submit" type="submit" name="submitButton" value="Активировать" /></p>
</form>
<div style="margin:0 auto; width: 500px; text-align: justify;" id="output"></div>
</div></div>
<script type="text/javascript">
jQuery(document).ready(function(){
// ---- Форма -----
// готовим опции для метода
// ajaxSubmit плагина jquery.form.js
var options = {
target: "#output",
timeout: 3000 // тайм-аут
};
jQuery("#myForm").validate({
submitHandler: function(form) {
// вызываем метод ajaxSubmit
// плагина jquery.form.js
jQuery(form).ajaxSubmit(options);
},
focusInvalid: false,
focusCleanup: true,
rules: {
license_key: {
required: true
}
},
messages: {
license_key: {
required: "Пожалуйста, заполните это поле"
}
},
});
// ---- Форма -----
});
</script></div></center><center> <div style="margin:0 auto; width: 300px;">
<div style="margin:0 auto; width: 250px;">
<div class="form3"><div id="infoname" class="style-form3">
FAQ </div><br>
<div class="faq">
<div class="faq-v">1. Как выглядить скрипт?</div><br>
<div class="faq-o">Перейдите по <a href="http://www.youtube.com/channel/UCy7socNM_xSPi8MF1Slhutw/videos" target="blank">этой ссылке</a>, и посмотрите последнию, а также и предедущие версии скрипта.</div>
</div>
<div class="faq">
<div class="faq-v">2. Почему стоить купить?</div><br>
<div class="faq-o">Скрипт имеет большой функционал, очень много функции <em style="font-size:12px;">(много, чем в арендах)</em>, и имеет много шаблонов, подробнее можно посмотреть видео на моем канале для этого <a href="http://www.youtube.com/channel/UCy7socNM_xSPi8MF1Slhutw?sub_confirmation=1" target="blank">нажмите сюда.</a></div>
</div>
<div class="faq">
<div class="faq-v">3. Кто является разработчиком данного скрипта?</div><br>
<div class="faq-o">Разработчиком данного скрипта является <a href="https://vk.com/muhammad75333" target="blank">Мухаммад</a>,<br> и мой магазин <a href="http://Luxe-Shop.Biz" target="blank">Luxe-Shop.Biz</a>.</div>
</div>
<div class="faq">
<div class="faq-v">4. Как называется скрипт?</div><br>
<div class="faq-o">Скрипт называется "<a href="http://Luxe-Shop.Biz/goods/info/213" target="blank">Luxe-Shop by Muhammad</a>".</div>
</div>
</div></div></div></center>';
//Если передается ключ - пытаемся его валидировать
} else {
$key = trim($_POST['license_key']);
//Очищаем все что есть в старом ключе (в любом случае он нам не нужен)
$clear_query = "update `key` set `value`='',`license_key`='' where `key`='local_key'";
$clear_res = mysql_query($clear_query);
$protect=new protect;
$protect->license_key=$key;
$protect->api_server='http://luxe-shop-key.ru/check.php';
$protect->secret_key='75156dd8dbd6df5a9f6246df2def7e5a';
$protect->validate();
//Если не валидируется, выдаем ошибку. Если валидируется - заносим в базу и поздравляем
if ($protect->errors) { die($protect->errors); }
else
{
mysql_query("update `key` set `license_key`='".$key."' where `key`='local_key'");
if(mysql_affected_rows()==0) { echo "Ошибка: Не удалось записать локальный ключ в таблицу MySQL. Возможно, структура БД была повреждена или изменена."; }
if ($mysql_error=mysql_error()) { echo "Ошибка: {$mysql_error}"; }
echo 'Поздравляем! Скрипт успешно активирован. Теперь он привязан к данному домену. <br><br><span style="font-size:18px;"><a href="/lsm_start/">Перейти к использованию<a/></span>';
}
}
?>