Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!isset($NETCAT_FOLDER)) {
- $NETCAT_FOLDER = realpath(dirname(__FILE__) . '/..') . DIRECTORY_SEPARATOR;
- }
- // unset for security reasons
- $SYSTEM_FOLDER = "";
- // connect config file
- @include_once($NETCAT_FOLDER . "vars.inc.php");
- // if vars.inc.php not updated set default value for $SYSTEM_FOLDER
- if (!$SYSTEM_FOLDER) {
- global $SYSTEM_FOLDER;
- $SYSTEM_FOLDER = $ROOT_FOLDER . "system/";
- }
- // PHP version must be >= 5.2
- if (version_compare(phpversion(), '5.2', '<')) {
- echo "<b style='color:#A00'>PHP 5.2 or higher required!</b>";
- exit;
- }
- // short_open_tag must be on
- if (!ini_get('short_open_tag')) {
- echo "<b style='color:#A00'>short_open_tag value must be on!</b>";
- exit;
- }
- // include all new system classes and get nc_core object
- require_once($INCLUDE_FOLDER . "unicode.inc.php");
- require_once($SYSTEM_FOLDER . "index.php");
- // set db for compatibility
- $db = $nc_core->db;
- function nc_demo_evaluation_form() {
- // global $nc_core;
- //
- // echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional'>
- // <html>
- // <head>
- // <meta http-equiv='content-type' content='text/html; charset=" . $nc_core->NC_CHARSET . "'/>
- // <link type='text/css' rel='Stylesheet' href='" . $nc_core->ADMIN_TEMPLATE . "css/login.css'>
- // <link type='text/css' rel='Stylesheet' href='" . $nc_core->ADMIN_TEMPLATE . "css/style.css'>
- // <title>Система управления сайтами NetCat</title>
- // </head>
- // <body>
- // <div class='login_wrap'>
- // <div class='top_line'>
- // <div class='logo'><a href='#'><img src='" . $nc_core->ADMIN_TEMPLATE . "img/logo.png' alt='NetCat CMS' /></a></div>
- // <div class='top_text'><a href='http://www.netcat.ru'>NetCat</a></div>
- // </div>
- // <div class='content' align='center'>
- // <font size='+1' style='line-height: 1.5em'>Период знакомства с демонстрационной версией окончен.<br />
- // Вы хотите продолжить работу с NetCat?<br/>
- // Просто <a href='" . $nc_core->ADMIN_PATH . "patch/activation.php?not_ia=1'>активируйте</a> эту копию.<br /><br />
- // </font>
- // </div>
- // </div>
- // <div class='bottom_line'>
- // <div class='left'>© 1999—" . date("Y") . "
- // <a href='http://www.netcat.ru'>Система управления сайтами NetCat</a>
- // </div>
- // </div>
- // </body>
- // </html>";
- }
- function nc_demo_expired() {
- // global $nc_core, $db;
- //
- // if ( strstr($_SERVER['REQUEST_URI'], 'patch/activation.php') ) return 0;
- //
- // $r = 0;
- // $inst_id = $nc_core->get_settings('InstallationID');
- // $inst_date_out = $nc_core->get_settings('InstallationDateOut');
- //
- // if (!$inst_id || !$inst_date_out) $r = 1;
- //
- // if ( $inst_id != sha1("Net_^^_Cat".$inst_date_out."nc29488555299dc8519a999c13c6a9dc17e58e5ed4431f672b18ac4a6371f511ef325".substr($inst_date_out,7,3)) ) $r = 1;
- //
- // $now_date = mktime(0, 0, 0, date("n"), date("j"), date("Y")); $inst_date_out = strtotime($inst_date_out);
- //
- // if ($inst_date_out < $now_date) $r = 1;
- //
- // if ($r) {
- // nc_demo_evaluation_form();
- // exit;
- // }
- }
- nc_demo_expired();
Advertisement
Add Comment
Please, Sign In to add comment