function __construct() { parent::__construct(); /** * 获得请假类型数组表,将请假类型表的请假类型,转换成对应的不同类型 */ }
private function create() { init::importClass(config::$load); //получаем список классов.. init::importJS(config::$scripts); //скриптов.. init::importCSS(config::$styles); //стилей $control = new controller; $control->getData(); }
public static function loadStyles() { require_once ($_SERVER['DOCUMENT_ROOT'] . '/inc/less/Less.php'); Less_Cache::$cache_dir = $_SERVER['DOCUMENT_ROOT'] . '/css/cache/'; $files[$_SERVER['DOCUMENT_ROOT'] . '/css/style.less'] = '/css/'; $css_file_name = Less_Cache::Get($files); self::$styles = '<link rel="stylesheet" type="text/css" href="/css/cache/' . $css_file_name . '">'; }
function __construct() { parent::__construct(); /** * 获得请假类型数组表,将请假类型表的请假类型,转换成对应的不同类型 */ //var_dump($_COOKIE); }
public function init() { self::$db = \init::app()->getDBConnector(); if (!$this->_mod_access) { throw new \CException(\init::t('init', 'Access denied!')); } $this->_type = \init::app()->_getPanel(); $this->_pk = 'JobsID'; $this->_table_name = 'jobs'; }
function __construct() { parent::__construct(); /** * 获得请假类型数组表,将请假类型表的请假类型,转换成对应的不同类型 */ /*sql CREATE TABLE `aich_img` ( `i_id` int( 11 ) NOT NULL AUTO_INCREMENT COMMENT 'imgid', `title` varchar( 255 ) NOT NULL COMMENT 'imgtitle', `img_src` varchar( 255 ) NOT NULL COMMENT 'img图片路径', `detail` varchar( 255 ) DEFAULT NULL COMMENT 'img详细描述', `createdate` datetime NOT NULL COMMENT '创建时间', `updatedate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', `url` varchar( 255 ) DEFAULT NULL COMMENT 'img连接路径', `type` int( 11 ) NOT NULL COMMENT '是否显示:1,显示;0,不显示', PRIMARY KEY ( `i_id` ) ) ENGINE = MYISAM DEFAULT CHARSET = utf8; */ //var_dump($_COOKIE); }
function __construct() { parent::__construct(); }
<? if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) && empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest') die(header('Location: /')); require_once ($_SERVER[DOCUMENT_ROOT] . '/inc/define.php'); require_once (_ROOT_ . '/config.php'); require_once (_INC_ . 'init.class.php'); init::importClass(array_merge(config::$load, ['ajax'])); $ajax = new ajax; //Перебираем пришедшие данные (бомж-роутер) switch (true) { case !empty($_POST['search']) : $ajax->filterData($_POST); break; case !empty($_POST['id']) : $ajax->loadData($_POST['id']); break; case !empty($_POST['askemail']) : $ajax->sendEmail($_POST); break; }
function __construct() { parent::__construct(); $tmp = MANAGE_TEMPLATE . 'main.php'; }
public function getSearchQueryByText($text) { if (empty($this->_mdictinary_word)) { $this->_mdictinary_word = \init::app()->getModels('dictinary_word/mdictinary_word'); } if (empty($this->_msearch_word_group)) { $this->_msearch_word_group = \init::app()->getModels('search_word_group/msearch_word_group'); } if (empty($this->_msearch_stop_word)) { $this->_msearch_stop_word = \init::app()->getModels('search_stop_word/msearch_stop_word'); } if (empty($this->_mdictinary_prefix)) { $this->_mdictinary_prefix = \init::app()->getModels('dictinary_prefix/mdictinary_prefix'); } $search_query = false; // Фільтрація від STOP-символів ["/", "-", "\", ")", "}"]; $query_text = strtr($text, $this->_STOP_SIMVOL); // Фільтрація від STOP-слів ["с", "з", "в", "по", "на"]; $stop_words = []; $stop_words_array = $this->_msearch_stop_word->getStopWord(); foreach ($stop_words_array as $stop_words_array_item) { $stop_words[' ' . $stop_words_array_item->word . ' '] = ' '; } $query_text = strtr($query_text, $stop_words); $query_text = trim($query_text); // Видалення зайвих пробілів // Виділення масиву слів для пошуку шляхом розділення строки по пробілу $query_array = explode(' ', $query_text); $search_query = ''; foreach ($query_array as $query_array_item) { $search_query = $search_query . "'" . $query_array_item . "', "; } $search_query = substr($search_query, 0, strlen($search_query) - 2); $search_result = $this->_mdictinary_prefix->getWordsByQueryNotLang($search_query); $search_group_query = ''; $result['query_index'] = ''; $unique_group_index = []; $unique_word_index = []; foreach ($search_result as $search_result_item) { if (!isset($unique_group_index[$search_result_item->WordGroupID])) { $unique_group_index[$search_result_item->WordGroupID] = $search_result_item->WordGroupID; $search_group_query = $search_group_query . $search_result_item->WordGroupID . ", "; } if (!isset($unique_word_index[$search_result_item->word_index])) { $unique_word_index[$search_result_item->word_index] = $search_result_item->word_index; $result['query_index'] = $result['query_index'] . '+' . $search_result_item->word_index . ' '; } } if ($result['query_index']) { $result['query_index'] = substr($result['query_index'], 0, strlen($result['query_index']) - 1); } if ($search_group_query) { $search_group_query = substr($search_group_query, 0, strlen($search_group_query) - 2); } return $result['query_index']; }
<? /* @Salat Production @Unona Landing 2015 @admin@salat-production.ru */ define("_EXEC", true); require_once ($_SERVER['DOCUMENT_ROOT'] . '/inc/init.php'); init::autoload(); ?>
function __construct() { parent::__construct(); js_redir('index.php?a=home&m=index'); }
$wizard = new wizard(); if ($wizard->go()) { } else { exit; } } include_once "init_backend.php"; class init extends init_backend { function main() { $bUrl = new urls_backend(); $__dest = $bUrl->getGP("__itspDEST"); if ("/" . config::installpath != $_SERVER["REQUEST_URI"] && $__dest == "") { header("HTTP/1.0 404 Not Found"); $__dest = "error"; } else { if (!$__dest) { $__dest = "frontpage"; } } include_once "{$__dest}" . ".php"; $s = new $__dest(); $s->main($this); } } $_init = new init(); $_init->main(); ?>
fwrite($fp, $file); fclose($fp); @chmod(APP_PATH . "/" . CONTROLLER . "/Index" . ACTION_CLASS_FX . ".class.php", 0777); } if (!is_file(APP_PATH . "/" . MODELDIR . "/Index" . MODELDIR . ".class.php")) { $file = "<?php\r/**\r" . "*\r" . "*\r" . "*/\r" . "\rnamespace Model;" . "\ruse Model\\IndexModel;\r" . "class IndexModel extends Model{\r" . "\tpublic function __construct(){\r" . "\t\t\$this->database=''; \t\t\t//这个是数据库名\r" . "\t\t\$this->table=''; \t\t\t//这个是数据表\r" . "\t}\r\r" . "\tpublic function index(){\r" . "\t}\r" . "}\r?>"; $fp = @fopen(APP_PATH . "/" . MODELDIR . "/Index" . MODELDIR . ".class.php", "w+"); fwrite($fp, $file); fclose($fp); @chmod(APP_PATH . "/" . MODELDIR . "/Index" . MODELDIR . ".class.php", 0777); } if (!is_dir(APP_PATH . "/" . VIEWDIR . "/Index")) { @mkdir(APP_PATH . "/" . VIEWDIR . "/Index"); @chmod(APP_PATH . "/" . VIEWDIR . "/Index", 0777); } if (!is_file(APP_PATH . "/" . VIEWDIR . "/Index/index.html")) { $file = "<h1>{\$htmlcontent}</h1>"; $fp = @fopen(APP_PATH . "/" . VIEWDIR . "/Index/index.html", "w+"); fwrite($fp, $file); fclose($fp); @chmod(APP_PATH . "/" . VIEWDIR . "/Index/index.html", 0777); } $initclass = new init(); $initclass->isinit(); if (!is_file($initclass->Config . "/" . DB_FILE_NAME)) { $file = "<?php\r \t/**\r" . "\t*\r" . "\t*数据库配置文件不要删除\r" . "\t*/\r" . "\t\$dbconfig=array(\r" . "\t\t'dbhost'\t=>\t'',\t\t//数据库IP\r" . "\t\t'dbuser'\t=>\t'',\t\t//数据库用户名\r" . "\t\t'dbpassword'\t=>\t'',\t\t//数据库密码\r" . "\t\t'dbcharset'\t=>\t'',\t\t//数据库字符\r" . "\t\t'dbport'\t\t=>\t'',\t\t//数据库端口\r" . "\t\t'dbname'\t=>\t'',\t\t//数据库名\r" . "\t);\r?>"; $fp = @fopen($initclass->Config . "/" . DB_FILE_NAME, "w+"); fwrite($fp, $file); fclose($fp); @chmod($initclass->Config . "/" . DB_FILE_NAME, 0777); }
<?php require THINK_PATH . 'Base/Init.class.php'; init::_init(); App::_init();
<? /* @Salat Production @Unona Landing 2015 @admin@salat-production.ru */ define("_EXEC", true); require_once($_SERVER['DOCUMENT_ROOT'] . '/inc/helper.php'); require_once($_SERVER['DOCUMENT_ROOT'] . '/inc/init.php'); helper::isAjax(); init::getINI(); if (!empty($_POST['email'])) { $diplomDir = $_SERVER['DOCUMENT_ROOT'] . '/img/diplom/'; $iconsDir = $_SERVER['DOCUMENT_ROOT'] . '/img/icons/'; $sliderDir = $_SERVER['DOCUMENT_ROOT'] . '/img/slider/'; foreach ($_FILES as $key => $val) { foreach ($_FILES[$key]['name'] as $name => $file) { $ext = pathinfo($file, PATHINFO_EXTENSION); $num = preg_replace('/[^0-9]/', '', $name); if (!empty($file)) { if ($key == 'cont-1') { $dir = $sliderDir . $num . '.' . $ext; }
<?php require_once 'init.php'; $ex = new init(); $ex->get();
<? /* @Salat Production @Unona Landing 2015 @admin@salat-production.ru */ define("_EXEC", true); require_once ($_SERVER['DOCUMENT_ROOT'] . '/inc/init.php'); init::getINI(); init::loadStyles(); ?> <!DOCTYPE html> <html> <head> <title>Панель управления</title> <?php echo init::$styles; ?> <script type="text/javascript" src="/js/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="js/ajax.js"></script> <script type="text/javascript" src="js/navigation.js"></script> <meta charset="utf-8" /> <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> </head> <body> <div class="wrapper"> <main class="content">