4.45 release

pull/479/head
warlee 2021-04-09 16:49:05 +08:00
parent 70f8e19251
commit 6d2521176e
1315 changed files with 669 additions and 46 deletions

0
app/api/sso.class.php Normal file → Executable file
View File

0
app/controller/api.class.php Normal file → Executable file
View File

0
app/controller/app.class.php Normal file → Executable file
View File

0
app/controller/desktop.class.php Normal file → Executable file
View File

0
app/controller/editor.class.php Normal file → Executable file
View File

0
app/controller/explorer.class.php Normal file → Executable file
View File

0
app/controller/fav.class.php Normal file → Executable file
View File

0
app/controller/pluginApp.class.php Normal file → Executable file
View File

0
app/controller/setting.class.php Normal file → Executable file
View File

1
app/controller/share.class.php Normal file → Executable file
View File

@ -220,6 +220,7 @@ class share extends Controller{
'staticPath' => STATIC_PATH, 'staticPath' => STATIC_PATH,
'appIndex' => $_SERVER['SCRIPT_NAME'], 'appIndex' => $_SERVER['SCRIPT_NAME'],
'version' => KOD_VERSION, 'version' => KOD_VERSION,
'versionBuild' => KOD_VERSION_BUILD,
'versionDesc' => $versionDesc, 'versionDesc' => $versionDesc,
'kodID' => md5(BASIC_PATH.$this->config['settingSystem']['systemPassword']), 'kodID' => md5(BASIC_PATH.$this->config['settingSystem']['systemPassword']),

0
app/controller/systemGroup.class.php Normal file → Executable file
View File

0
app/controller/systemMember.class.php Normal file → Executable file
View File

0
app/controller/systemRole.class.php Normal file → Executable file
View File

6
app/controller/user.class.php Normal file → Executable file
View File

@ -28,7 +28,7 @@ class user extends Controller{
$this->notCheckST = array('share','debug'); $this->notCheckST = array('share','debug');
$this->notCheckACT = array( $this->notCheckACT = array(
'loginFirst','login','logout','loginSubmit', 'loginFirst','login','logout','loginSubmit',
'checkCode','publicLink','qrcode','sso','appConfig'); 'checkCode','publicLink','qrcode','sso');
$this->notCheckApp = array();//'pluginApp.to' $this->notCheckApp = array();//'pluginApp.to'
if(!$this->user){ if(!$this->user){
@ -168,7 +168,7 @@ class user extends Controller{
show_tips("密码长度必须大于6,同时包含英文和数字;<br/>请联系管理员修改后再试!",false); show_tips("密码长度必须大于6,同时包含英文和数字;<br/>请联系管理员修改后再试!",false);
} }
private function checkPassword($password){ private function checkPassword($password){
if(INSTALL_CHANNEL =='hikvision.com'){ if(defined('INSTALL_CHANNEL') && INSTALL_CHANNEL =='hikvision.com'){
$this->config['settingSystemDefault']['passwordCheck'] = '1'; $this->config['settingSystemDefault']['passwordCheck'] = '1';
} }
if($this->config['settingSystemDefault']['passwordCheck'] == '0') return true; if($this->config['settingSystemDefault']['passwordCheck'] == '0') return true;
@ -309,6 +309,7 @@ class user extends Controller{
), ),
'phpVersion' => PHP_VERSION, 'phpVersion' => PHP_VERSION,
'version' => KOD_VERSION, 'version' => KOD_VERSION,
'versionBuild' => KOD_VERSION_BUILD,
'kodID' => md5(BASIC_PATH.$this->config['settingSystem']['systemPassword']), 'kodID' => md5(BASIC_PATH.$this->config['settingSystem']['systemPassword']),
'jsonData' => "", 'jsonData' => "",
'selfShare' => systemMember::userShareList($this->user['userID']), 'selfShare' => systemMember::userShareList($this->user['userID']),
@ -361,6 +362,7 @@ class user extends Controller{
'uploadCheckChunk' => $this->config['settings']['uploadCheckChunk'], 'uploadCheckChunk' => $this->config['settings']['uploadCheckChunk'],
), ),
'version' => KOD_VERSION, 'version' => KOD_VERSION,
'versionBuild' => KOD_VERSION_BUILD,
// 'userConfig' => $this->config['user'], // 'userConfig' => $this->config['user'],
); );
show_json($theConfig); show_json($theConfig);

0
app/controller/userShare.class.php Normal file → Executable file
View File

2
app/controller/utils.php Normal file → Executable file

File diff suppressed because one or more lines are too long

0
app/core/Application.class.php Normal file → Executable file
View File

0
app/core/Controller.class.php Normal file → Executable file
View File

0
app/core/Model.class.php Normal file → Executable file
View File

59
app/desktop_app.php Executable file
View File

@ -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;

0
app/function/common.function.php Normal file → Executable file
View File

0
app/function/file.function.php Normal file → Executable file
View File

0
app/function/helper.function.php Normal file → Executable file
View File

0
app/function/others/JSON.php Normal file → Executable file
View File

0
app/function/web.function.php Normal file → Executable file
View File

0
app/kod/Downloader.class.php Normal file → Executable file
View File

0
app/kod/FileCache.class.php Normal file → Executable file
View File

0
app/kod/Hook.class.php Normal file → Executable file
View File

0
app/kod/I18n.class.php Normal file → Executable file
View File

0
app/kod/ImageThumb.class.php Normal file → Executable file
View File

0
app/kod/KodArchive.class.php Normal file → Executable file
View File

0
app/kod/Mcrypt.class.php Normal file → Executable file
View File

5
app/kod/PluginBase.class.php Normal file → Executable file
View File

@ -257,10 +257,11 @@ class PluginBase{
$lang = I18n::getType(); $lang = I18n::getType();
$array = array(); $array = array();
if(file_exists($path.$lang.'.php')){ if(file_exists($path.$lang.'.php')){
$array = include_once($path.$lang.'.php'); $array = include($path.$lang.'.php');
}else if(file_exists($path.$default.'.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){ if(count($array) > 0){
I18n::set($array); I18n::set($array);
} }

0
app/kod/archiveLib/bin/7z Normal file → Executable file
View File

0
app/kod/archiveLib/bin/7z.exe Normal file → Executable file
View File

0
app/kod/archiveLib/bin/rar Normal file → Executable file
View File

0
app/kod/archiveLib/bin/rar.exe Normal file → Executable file
View File

0
app/kod/archiveLib/kodRarArchive.class.php Normal file → Executable file
View File

2
app/kod/archiveLib/kodZipArchive.class.php Normal file → Executable file
View File

@ -83,7 +83,7 @@ class kodZipArchive{
$zip->close(); $zip->close();
//子目录解压移除多余层级目录 //子目录解压移除多余层级目录
if( is_array(c) ){ if( is_array($partName) ){
$thePath = trim(str_replace("\\",'/',$partName[0]),'/'); $thePath = trim(str_replace("\\",'/',$partName[0]),'/');
$pathGroup = explode('/',$thePath); $pathGroup = explode('/',$thePath);
//一级目录解压不用移动 //一级目录解压不用移动

0
app/kod/archiveLib/pclerror.lib.php Normal file → Executable file
View File

0
app/kod/archiveLib/pcltar.lib.php Normal file → Executable file
View File

0
app/kod/archiveLib/pcltrace.lib.php Normal file → Executable file
View File

0
app/kod/archiveLib/pclzip.class.php Normal file → Executable file
View File

0
app/kod/imageGdBMP.class.php Normal file → Executable file
View File

0
app/model/ConfigModel.class .php Normal file → Executable file
View File

0
app/model/PluginModel.class.php Normal file → Executable file
View File

0
app/sdks/MyCaptcha.class.php Normal file → Executable file
View File

0
app/sdks/MyCaptcha_fonts/font_1.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
app/sdks/MyCaptcha_fonts/font_2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

0
app/sdks/MyCaptcha_fonts/font_3.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

0
app/sdks/QRcode.class.php Normal file → Executable file
View File

0
app/sdks/lessc.class.php Normal file → Executable file
View File

0
app/template/api/view.html Normal file → Executable file
View File

0
app/template/app/index.html Normal file → Executable file
View File

0
app/template/common/footer.html Normal file → Executable file
View File

0
app/template/common/footerCommon.html Normal file → Executable file
View File

0
app/template/common/header.html Normal file → Executable file
View File

0
app/template/common/navbar.html Normal file → Executable file
View File

0
app/template/common/navbarShare.html Normal file → Executable file
View File

0
app/template/common/showTips.html Normal file → Executable file
View File

0
app/template/desktop/index.html Normal file → Executable file
View File

0
app/template/editor/edit.html Normal file → Executable file
View File

0
app/template/editor/editor.html Normal file → Executable file
View File

0
app/template/explorer/content.html Normal file → Executable file
View File

0
app/template/explorer/explorerWap.html Normal file → Executable file
View File

0
app/template/explorer/index.html Normal file → Executable file
View File

0
app/template/pluginApp/index.html Normal file → Executable file
View File

0
app/template/setting/index.html Normal file → Executable file
View File

0
app/template/share/edit.html Normal file → Executable file
View File

0
app/template/share/editor.html Normal file → Executable file
View File

0
app/template/share/explorer.html Normal file → Executable file
View File

0
app/template/share/explorerWap.html Normal file → Executable file
View File

0
app/template/share/file.html Normal file → Executable file
View File

0
app/template/share/tips.html Normal file → Executable file
View File

0
app/template/user/install.html Normal file → Executable file
View File

0
app/template/user/license.html Normal file → Executable file
View File

0
app/template/user/login.html Normal file → Executable file
View File

0
app/template/user/loginWap.html Normal file → Executable file
View File

559
app/update.php Executable file

File diff suppressed because one or more lines are too long

0
config/config.php Normal file → Executable file
View File

0
config/i18n/ar/about.html Normal file → Executable file
View File

0
config/i18n/ar/edit.html Normal file → Executable file
View File

0
config/i18n/ar/help.html Normal file → Executable file
View File

0
config/i18n/ar/main.php Normal file → Executable file
View File

0
config/i18n/bg/about.html Normal file → Executable file
View File

0
config/i18n/bg/edit.html Normal file → Executable file
View File

0
config/i18n/bg/help.html Normal file → Executable file
View File

0
config/i18n/bg/main.php Normal file → Executable file
View File

0
config/i18n/bn/about.html Normal file → Executable file
View File

0
config/i18n/bn/edit.html Normal file → Executable file
View File

0
config/i18n/bn/help.html Normal file → Executable file
View File

0
config/i18n/bn/main.php Normal file → Executable file
View File

0
config/i18n/ca/about.html Normal file → Executable file
View File

0
config/i18n/ca/edit.html Normal file → Executable file
View File

0
config/i18n/ca/help.html Normal file → Executable file
View File

0
config/i18n/ca/main.php Normal file → Executable file
View File

0
config/i18n/cs/about.html Normal file → Executable file
View File

0
config/i18n/cs/edit.html Normal file → Executable file
View File

0
config/i18n/cs/help.html Normal file → Executable file
View File

0
config/i18n/cs/main.php Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More