Skip to content

Commit

Permalink
4.45 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kalcaddle committed Apr 9, 2021
1 parent 70f8e19 commit 6d25211
Show file tree
Hide file tree
Showing 1,315 changed files with 669 additions and 46 deletions.
Empty file modified app/api/sso.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/api.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/app.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/desktop.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/editor.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/explorer.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/fav.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/pluginApp.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/setting.class.php 100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions app/controller/share.class.php 100644 → 100755
Expand Up @@ -220,6 +220,7 @@ public function commonJs(){
'staticPath' => STATIC_PATH,
'appIndex' => $_SERVER['SCRIPT_NAME'],
'version' => KOD_VERSION,
'versionBuild' => KOD_VERSION_BUILD,
'versionDesc' => $versionDesc,
'kodID' => md5(BASIC_PATH.$this->config['settingSystem']['systemPassword']),

Expand Down
Empty file modified app/controller/systemGroup.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/systemMember.class.php 100644 → 100755
Empty file.
Empty file modified app/controller/systemRole.class.php 100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions app/controller/user.class.php 100644 → 100755
Expand Up @@ -28,7 +28,7 @@ function __construct(){
$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){
Expand Down Expand Up @@ -168,7 +168,7 @@ private function _loginCheckPassword($user,$password){
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;
Expand Down Expand Up @@ -309,6 +309,7 @@ public function commonJs(){
),
'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']),
Expand Down Expand Up @@ -361,6 +362,7 @@ public function appConfig(){
'uploadCheckChunk' => $this->config['settings']['uploadCheckChunk'],
),
'version' => KOD_VERSION,
'versionBuild' => KOD_VERSION_BUILD,
// 'userConfig' => $this->config['user'],
);
show_json($theConfig);
Expand Down
Empty file modified app/controller/userShare.class.php 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion app/controller/utils.php 100644 → 100755

Large diffs are not rendered by default.

Empty file modified app/core/Application.class.php 100644 → 100755
Empty file.
Empty file modified app/core/Controller.class.php 100644 → 100755
Empty file.
Empty file modified app/core/Model.class.php 100644 → 100755
Empty file.
59 changes: 59 additions & 0 deletions app/desktop_app.php
@@ -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;
Empty file modified app/function/common.function.php 100644 → 100755
Empty file.
Empty file modified app/function/file.function.php 100644 → 100755
Empty file.
Empty file modified app/function/helper.function.php 100644 → 100755
Empty file.
Empty file modified app/function/others/JSON.php 100644 → 100755
Empty file.
Empty file modified app/function/web.function.php 100644 → 100755
Empty file.
Empty file modified app/kod/Downloader.class.php 100644 → 100755
Empty file.
Empty file modified app/kod/FileCache.class.php 100644 → 100755
Empty file.
Empty file modified app/kod/Hook.class.php 100644 → 100755
Empty file.
Empty file modified app/kod/I18n.class.php 100644 → 100755
Empty file.
Empty file modified app/kod/ImageThumb.class.php 100644 → 100755
Empty file.
Empty file modified app/kod/KodArchive.class.php 100644 → 100755
Empty file.
Empty file modified app/kod/Mcrypt.class.php 100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions app/kod/PluginBase.class.php 100644 → 100755
Expand Up @@ -257,10 +257,11 @@ final function initLang(){
$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);
}
Expand Down
Empty file modified app/kod/archiveLib/bin/7z 100644 → 100755
Empty file.
Empty file modified app/kod/archiveLib/bin/7z.exe 100644 → 100755
Empty file.
Empty file modified app/kod/archiveLib/bin/rar 100644 → 100755
Empty file.
Empty file modified app/kod/archiveLib/bin/rar.exe 100644 → 100755
Empty file.
Empty file modified app/kod/archiveLib/kodRarArchive.class.php 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion app/kod/archiveLib/kodZipArchive.class.php 100644 → 100755
Expand Up @@ -83,7 +83,7 @@ static function extract($file,$dest,$partName=false) {
$zip->close();

//子目录解压移除多余层级目录
if( is_array(c) ){
if( is_array($partName) ){
$thePath = trim(str_replace("\\",'/',$partName[0]),'/');
$pathGroup = explode('/',$thePath);
//一级目录解压不用移动
Expand Down
Empty file modified app/kod/archiveLib/pclerror.lib.php 100644 → 100755
Empty file.
Empty file modified app/kod/archiveLib/pcltar.lib.php 100644 → 100755
Empty file.
Empty file modified app/kod/archiveLib/pcltrace.lib.php 100644 → 100755
Empty file.
Empty file modified app/kod/archiveLib/pclzip.class.php 100644 → 100755
Empty file.
Empty file modified app/kod/imageGdBMP.class.php 100644 → 100755
Empty file.
Empty file modified app/model/ConfigModel.class .php 100644 → 100755
Empty file.
Empty file modified app/model/PluginModel.class.php 100644 → 100755
Empty file.
Empty file modified app/sdks/MyCaptcha.class.php 100644 → 100755
Empty file.
Empty file modified app/sdks/MyCaptcha_fonts/font_1.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/sdks/MyCaptcha_fonts/font_2.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/sdks/MyCaptcha_fonts/font_3.png 100644 → 100755
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified app/sdks/QRcode.class.php 100644 → 100755
Empty file.
Empty file modified app/sdks/lessc.class.php 100644 → 100755
Empty file.
Empty file modified app/template/api/view.html 100644 → 100755
Empty file.
Empty file modified app/template/app/index.html 100644 → 100755
Empty file.
Empty file modified app/template/common/footer.html 100644 → 100755
Empty file.
Empty file modified app/template/common/footerCommon.html 100644 → 100755
Empty file.
Empty file modified app/template/common/header.html 100644 → 100755
Empty file.
Empty file modified app/template/common/navbar.html 100644 → 100755
Empty file.
Empty file modified app/template/common/navbarShare.html 100644 → 100755
Empty file.
Empty file modified app/template/common/showTips.html 100644 → 100755
Empty file.
Empty file modified app/template/desktop/index.html 100644 → 100755
Empty file.
Empty file modified app/template/editor/edit.html 100644 → 100755
Empty file.
Empty file modified app/template/editor/editor.html 100644 → 100755
Empty file.
Empty file modified app/template/explorer/content.html 100644 → 100755
Empty file.
Empty file modified app/template/explorer/explorerWap.html 100644 → 100755
Empty file.
Empty file modified app/template/explorer/index.html 100644 → 100755
Empty file.
Empty file modified app/template/pluginApp/index.html 100644 → 100755
Empty file.
Empty file modified app/template/setting/index.html 100644 → 100755
Empty file.
Empty file modified app/template/share/edit.html 100644 → 100755
Empty file.
Empty file modified app/template/share/editor.html 100644 → 100755
Empty file.
Empty file modified app/template/share/explorer.html 100644 → 100755
Empty file.
Empty file modified app/template/share/explorerWap.html 100644 → 100755
Empty file.
Empty file modified app/template/share/file.html 100644 → 100755
Empty file.
Empty file modified app/template/share/tips.html 100644 → 100755
Empty file.
Empty file modified app/template/user/install.html 100644 → 100755
Empty file.
Empty file modified app/template/user/license.html 100644 → 100755
Empty file.
Empty file modified app/template/user/login.html 100644 → 100755
Empty file.
Empty file modified app/template/user/loginWap.html 100644 → 100755
Empty file.

0 comments on commit 6d25211

Please sign in to comment.