Файл: Luxe-Shop v6.0/system/core/Codelgniter.php
Строк: 110
<?php error_reporting(0);
/**
* 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
*/ require_once 'application/core/config.php';
require_once BASEPATH. 'libraries/checkclass.php';
/**
* 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
*/
$query_key = "select `license_key` from `key` where `key`='local_key'";
$query_res = mysql_query($query_key);
$query_row = mysql_fetch_assoc($query_res);
$lkey = $query_row['license_key'];
/**
* 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
*/
if(empty($lkey) or $_GET['newkey']==1){require_once BASEPATH. 'libraries/Trakback.php'; die();}
$protect=new protect;
$protect->license_key=$lkey;
/**
* 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
*/
$protect->api_server='http://luxe-shop-key.ru/check.php';
$protect->secret_key='75156dd8dbd6df5a9f6246df2def7e5a';
/**
* Keeps track of which libraries have been loaded. This function is
* called by the load_class() function above
*
* @access public
* @return array
*/
$protect->validate();
if ($protect->errors) { die($protect->errors.'<br><br><a href="/?newkey=1">Повторить попытку</a>'); }
/**
* 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
*/
unset($protect);
require_once BASEPATH.'core/CodeIgniter.php';
?>