hzhz
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
class LE_MOD_LOAD {
|
class LE_MOD_LOAD {
|
||||||
public $m1=false,$m2=false,$space_list=[],$mod_aliases=[];
|
public $m1=false,$m2=false,$space_list=[],$mod_aliases=[],$space=false;
|
||||||
public $init_path=false,$mod_path=false,$url;
|
public $init_path=false,$mod_path=false,$url;
|
||||||
|
|
||||||
function __construct($autorun=1)
|
function __construct($autorun=1)
|
||||||
@@ -36,6 +36,8 @@ class LE_MOD_LOAD {
|
|||||||
|
|
||||||
if ($this->select_path($space)===false) return false;
|
if ($this->select_path($space)===false) return false;
|
||||||
|
|
||||||
|
$this->space = $space;
|
||||||
|
|
||||||
$mod=arr_v(SYSCONF::$DEFAULT_MODULE,$space,false); //default
|
$mod=arr_v(SYSCONF::$DEFAULT_MODULE,$space,false); //default
|
||||||
if (!empty($mod_in_q))
|
if (!empty($mod_in_q))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,6 +30,12 @@ class LE_TPL {
|
|||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function fetch2mcont($t,&$vars=array(),$prefix=false,$cache_en=false)
|
||||||
|
{
|
||||||
|
$this->mod_cont .= $this->fetch($t,$vars,$prefix,$cache_en);
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
public function path($tpl_path,$prefix=false)
|
public function path($tpl_path,$prefix=false)
|
||||||
{
|
{
|
||||||
if ($prefix===false) $prefix = $this->prefix;
|
if ($prefix===false) $prefix = $this->prefix;
|
||||||
@@ -71,6 +77,7 @@ class LE_TPL {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//static elements
|
//static elements
|
||||||
public $need_st_list=[],$static_list=[],$static_dep=[],$top_st=[],$bottom_st=[];
|
public $need_st_list=[],$static_list=[],$static_dep=[],$top_st=[],$bottom_st=[];
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ $le_mod_loader = new LE_MOD_LOAD();
|
|||||||
LE::$QUERY_DATA_TYPE = LE_REQUEST::TYPE_DETECT();
|
LE::$QUERY_DATA_TYPE = LE_REQUEST::TYPE_DETECT();
|
||||||
LE::$FULL_URL = LE_REQUEST::url2arr()['full_url'];
|
LE::$FULL_URL = LE_REQUEST::url2arr()['full_url'];
|
||||||
|
|
||||||
|
//default mod prefix = space (for example - admin)
|
||||||
|
if ($le_mod_loader->space!==false) LE::$TPL->prefix=$le_mod_loader->space;
|
||||||
|
|
||||||
//init space
|
//init space
|
||||||
if ($le_mod_loader->init_path!==false)
|
if ($le_mod_loader->init_path!==false)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
//default = current space name
|
||||||
LE::$TPL->prefix="admin";
|
//LE::$TPL->prefix="admin";
|
||||||
|
LE::$ALC->set_lev(4); //только для авторизованных с нужным уровнем
|
||||||
@@ -150,7 +150,11 @@ textarea:focus {
|
|||||||
display: block;
|
display: block;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
}
|
}
|
||||||
|
.le_he .le_fl span {
|
||||||
|
width:100%;
|
||||||
|
padding-right:1em;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
/*Multi Element Horizontal*/
|
/*Multi Element Horizontal*/
|
||||||
|
|
||||||
|
|||||||
2
PUB/css/le_form.min.css
vendored
2
PUB/css/le_form.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<ul class="mp_menu vertical">
|
<ul class="mp_menu vertical">
|
||||||
|
|
||||||
<li class="dropdown"><a href="#">Магазин <i class="lei-dropdown"></i></a>
|
<li class="dropdown"><a href="#">Магазин <i><svg class="lei_dropdown"><use href="#ico_dropdown"></svg></i></a>
|
||||||
<ul class="dropdown-content">
|
<ul class="dropdown-content">
|
||||||
<li><a href="/manager/catalog">Каталог</a></li>
|
<li><a href="/manager/catalog">Каталог</a></li>
|
||||||
<li><a href="/manager/update">Полное обновление</a></li>
|
<li><a href="/manager/update">Полное обновление</a></li>
|
||||||
|
|||||||
15
demo-setup.sql
Normal file
15
demo-setup.sql
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
--Access level control and accounts
|
||||||
|
CREATE TABLE `sys__accounts`
|
||||||
|
(
|
||||||
|
`id` INT(8) NOT NULL AUTO_INCREMENT ,
|
||||||
|
`login` VARCHAR(50) NOT NULL ,
|
||||||
|
`password` VARCHAR(32) NOT NULL ,
|
||||||
|
`level` INT(2) NOT NULL DEFAULT '0' ,
|
||||||
|
`data` JSON NOT NULL DEFAULT '{}' ,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
)
|
||||||
|
ENGINE = InnoDB CHARSET=utf8
|
||||||
|
COLLATE utf8_unicode_ci COMMENT = 'Aккаунты системы';
|
||||||
|
|
||||||
|
--add first account
|
||||||
|
INSERT INTO `sys__accounts` (`id`, `login`, `password`, `level`, `data`) VALUES (NULL, 'admin', MD5('123123'), '99', '{}');
|
||||||
Reference in New Issue
Block a user