4.45 release
parent
70f8e19251
commit
6d2521176e
|
@ -220,6 +220,7 @@ class share extends Controller{
|
|||
'staticPath' => STATIC_PATH,
|
||||
'appIndex' => $_SERVER['SCRIPT_NAME'],
|
||||
'version' => KOD_VERSION,
|
||||
'versionBuild' => KOD_VERSION_BUILD,
|
||||
'versionDesc' => $versionDesc,
|
||||
'kodID' => md5(BASIC_PATH.$this->config['settingSystem']['systemPassword']),
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ class user extends Controller{
|
|||
$this->notCheckST = array('share','debug');
|
||||
$this->notCheckACT = array(
|
||||
'loginFirst','login','logout','loginSubmit',
|
||||
'checkCode','publicLink','qrcode','sso','appConfig');
|
||||
'checkCode','publicLink','qrcode','sso');
|
||||
|
||||
$this->notCheckApp = array();//'pluginApp.to'
|
||||
if(!$this->user){
|
||||
|
@ -168,7 +168,7 @@ class user extends Controller{
|
|||
show_tips("密码长度必须大于6,同时包含英文和数字;<br/>请联系管理员修改后再试!",false);
|
||||
}
|
||||
private function checkPassword($password){
|
||||
if(INSTALL_CHANNEL =='hikvision.com'){
|
||||
if(defined('INSTALL_CHANNEL') && INSTALL_CHANNEL =='hikvision.com'){
|
||||
$this->config['settingSystemDefault']['passwordCheck'] = '1';
|
||||
}
|
||||
if($this->config['settingSystemDefault']['passwordCheck'] == '0') return true;
|
||||
|
@ -309,6 +309,7 @@ class user extends Controller{
|
|||
),
|
||||
'phpVersion' => PHP_VERSION,
|
||||
'version' => KOD_VERSION,
|
||||
'versionBuild' => KOD_VERSION_BUILD,
|
||||
'kodID' => md5(BASIC_PATH.$this->config['settingSystem']['systemPassword']),
|
||||
'jsonData' => "",
|
||||
'selfShare' => systemMember::userShareList($this->user['userID']),
|
||||
|
@ -361,6 +362,7 @@ class user extends Controller{
|
|||
'uploadCheckChunk' => $this->config['settings']['uploadCheckChunk'],
|
||||
),
|
||||
'version' => KOD_VERSION,
|
||||
'versionBuild' => KOD_VERSION_BUILD,
|
||||
// 'userConfig' => $this->config['user'],
|
||||
);
|
||||
show_json($theConfig);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
$desktopApps = array(
|
||||
'my_computer' => array(
|
||||
"type" => "app",
|
||||
"content" => "core.explorer('','".LNG('my_computer')."');",
|
||||
"icon" => STATIC_PATH."images/file_icon/icon_others/computer.png",
|
||||
"name" => LNG('my_computer'),
|
||||
"menuType" => "systemBox menu-default",
|
||||
"ext" => 'oexe',
|
||||
"path" => "",
|
||||
"resize" => 1
|
||||
),
|
||||
'recycle' => array(
|
||||
"type" => "app",
|
||||
"content" => "core.explorer('".KOD_USER_RECYCLE."','".LNG('recycle')."');",
|
||||
"icon" => STATIC_PATH."images/file_icon/icon_others/recycle.png",
|
||||
"name" => LNG('recycle'),
|
||||
"menuType" => "systemBox menu-recycle-button",
|
||||
"ext" => 'oexe',
|
||||
"path" => "",
|
||||
"resize" => 1
|
||||
),
|
||||
'PluginCenter' => array(
|
||||
"type" => "app",
|
||||
"content" => "core.openWindowBig('./index.php?pluginApp/index','".LNG('PluginCenter')."');",
|
||||
"icon" => STATIC_PATH."images/file_icon/icon_others/plugins.png",
|
||||
"name" => LNG('PluginCenter'),
|
||||
"menuType" => "systemBox menu-default",
|
||||
"ext" => 'oexe',
|
||||
"path" => "",
|
||||
"resize" => 1
|
||||
),
|
||||
'setting' => array(
|
||||
"type" => "app",
|
||||
"content" => "core.setting();",
|
||||
"icon" => STATIC_PATH."images/file_icon/icon_others/setting.png",
|
||||
"name" => LNG('setting'),
|
||||
"menuType" => "systemBox menu-default",
|
||||
"ext" => 'oexe',
|
||||
"path" => "/",
|
||||
"resize" => 1
|
||||
),
|
||||
'appStore' => array(
|
||||
"type" => "app",
|
||||
"content" => "core.appStore();",
|
||||
"icon" => STATIC_PATH."images/file_icon/icon_others/appStore.png",
|
||||
"name" => LNG('app_store'),
|
||||
"menuType" => "systemBox menu-default",
|
||||
"ext" => 'oexe',
|
||||
"path" => "",
|
||||
"resize" => 1
|
||||
)
|
||||
);
|
||||
|
||||
//管理员插件中心
|
||||
if(!$GLOBALS['isRoot']){
|
||||
unset($desktopApps['PluginCenter']);
|
||||
}
|
||||
return $desktopApps;
|
|
@ -257,10 +257,11 @@ class PluginBase{
|
|||
$lang = I18n::getType();
|
||||
$array = array();
|
||||
if(file_exists($path.$lang.'.php')){
|
||||
$array = include_once($path.$lang.'.php');
|
||||
$array = include($path.$lang.'.php');
|
||||
}else if(file_exists($path.$default.'.php')){
|
||||
$array = include_once($path.$default.'.php');
|
||||
$array = include($path.$default.'.php');
|
||||
}
|
||||
if(!is_array($array)) return array();
|
||||
if(count($array) > 0){
|
||||
I18n::set($array);
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ class kodZipArchive{
|
|||
$zip->close();
|
||||
|
||||
//子目录解压移除多余层级目录
|
||||
if( is_array(c) ){
|
||||
if( is_array($partName) ){
|
||||
$thePath = trim(str_replace("\\",'/',$partName[0]),'/');
|
||||
$pathGroup = explode('/',$thePath);
|
||||
//一级目录解压不用移动
|
||||
|
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue