<?php /* --- incializace jadra --- */ require '../require/load.php'; SL::init('../'); /* --- nacteni argumentu --- */ if (!isset($_GET['redir_id'], $_GET['redir_type'])) { die; } $id = intval($_GET['redir_id']); $type = intval($_GET['redir_type']); if ($type !== 1) { $type = 0; } /* --- test existence --- */ if (0 === $type) { $query = DB::query('SELECT `id`,`title_seo` FROM `' . _mysql_prefix . '-root` WHERE `id`=' . $id); } else { $query = DB::query('SELECT art.`id`,art.`title_seo`,cat.`title_seo` AS cat_title_seo FROM `' . _mysql_prefix . '-articles` AS art JOIN `' . _mysql_prefix . '-root` AS cat ON(cat.id=art.home1) WHERE art.`id`=' . $id); } $query = DB::row($query); if ($query === false) { // neexistuje $_GET = array('m' => '404'); define('_index_noinit', true); require _indexroot . 'index.php'; die; } /* --- presmerovani --- */ // sestavit adresu $redir = $type === 0 ? _linkRoot($query['id'], $query['title_seo']) : _linkArticle($query['id'], $query['title_seo'], $query['cat_title_seo']);
<?php /* ---- inicializace jadra ---- */ chdir('../'); // nasimulovat skript v rootu require './require/load.php'; SL::init(''); // kontrola pristupu a dat if (!_loginright_administration || SL::$settings['admin_index_custom'] === '') { die; } // funkce motivu a administrace require _indexroot . "require/functions-template.php"; require _indexroot . "admin/functions.php"; /* ---- vystup ---- */ // konstanty define('_indexOutput_url', _indexroot); define('_indexOutput_pid', null); define('_indexOutput_ptype', 'aindex'); define('_indexOutput_content', ''); define('_indexOutput_title', ''); // tmave schema? $scheme_dark = _admin_schemeIsDark(); // html hlavicka require 'require/headstart.php'; ?> <base href="./../" target="_blank" /> <link href="admin/remote/style.css.php?s=<?php echo _adminscheme . ($scheme_dark ? '&d' : '') . '&' . _cacheid; ?> " type="text/css" rel="stylesheet" />
<?php /* --- incializace jadra --- */ require '../require/load.php'; define('_header', 'Content-Type: text/plain; charset=UTF-8'); SL::init('../', null, true, false, true, false); /* --- autorizace --- */ $auth = explode(':', SL::$settings['cron_auth'], 2); if (2 !== sizeof($auth) || !isset($_GET['user'], $_GET['password']) || $_GET['user'] !== $auth[0] || $_GET['password'] !== $auth[1]) { header('HTTP/1.0 401 Unauthorized'); echo 'Unauthorized'; exit(1); } /* --- spusteni cronu --- */ // priprava $start = microtime(true); $names = array(); function cron_log_name($args) { $GLOBALS['names'][] = $args['name']; } _extend('reg', 'sys.cron', 'cron_log_name'); // spusteni SL::runCron(); // vysledek echo 'OK(', round((microtime(true) - $start) * 1000), 'ms) ', implode(', ', $names);
<?php /* -- inicializace jadra -- */ require '../require/load.php'; SL::init('../', null, true, true); $msg = ""; /* -- instalace databaze -- */ if (isset($_POST['license'])) { // nacteni promennych $url = _removeSlashesFromEnd($_POST['url']); $pass = $_POST['pass']; $pass2 = $_POST['pass2']; $email = $_POST['email']; $rewrite = _checkboxLoad("rewrite"); $title = DB::esc(_htmlStr($_POST['title'])); $descr = DB::esc(_htmlStr($_POST['descr'])); $keywords = DB::esc(_htmlStr($_POST['kwrds'])); // kontrola promennych $errors = array(); if ($url == "" or $url == "http://") { $errors[] = "Nebyla zadána adresa serveru."; } if ($pass == "" or $pass2 == "") { $errors[] = "Nebylo vyplněno heslo."; } if ($pass != $pass2) { $errors[] = "Zadaná hesla nejsou shodná."; } if (!_validateEmail($email)) { $errors[] = "E-mailová adresa není platná."; }