忽略data下的运行时数据,首次运行会创建这些文件

pull/431/head
ljj 2020-05-07 23:11:44 +08:00
parent d127431303
commit daa30e04ce
19 changed files with 111 additions and 69 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.idea/

3
data/Group/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!index.html

0
data/Group/index.html Executable file → Normal file
View File

3
data/User/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!index.html

0
data/User/index.html Executable file → Normal file
View File

3
data/session/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!index.html

0
data/session/index.html Executable file → Normal file
View File

4
data/system/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*
!.gitignore
!index.html
!create.php

File diff suppressed because one or more lines are too long

83
data/system/create.php Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,59 +0,0 @@
<?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
data/system/index.html Executable file → Normal file
View File

View File

@ -1 +0,0 @@
<?php exit;?>{"1":{"groupID":1,"name":"public","parentID":"","children":"","config":{"sizeMax":0,"sizeUse":0},"path":"public","createTime":""}}

View File

@ -1 +0,0 @@
<?php exit;?>{"1":{"userID":"1","name":"admin","password":"21232f297a57a5a743894a0e4a801fc3","role":"1","config":{"sizeMax":1,"sizeUse":5369},"groupInfo":{"1":"write"},"path":"admin","status":1,"createTime":"","sizeMax":"1","lastLogin":""},"100":{"userID":"100","name":"demo","password":"fe01ce2a7fbac8fafaed7c982a04e229","role":"2","config":{"sizeMax":5,"sizeUse":1048576},"groupInfo":{"1":"write"},"path":"demo","status":1,"lastLogin":"","createTime":""},"101":{"userID":"101","name":"guest","password":"084e0343a0486ff05530df6c705c8bb4","role":"100","config":{"sizeMax":0.1,"sizeUse":1048576},"groupInfo":{"1":"read"},"path":"guest","status":1,"lastLogin":"","createTime":""}}

View File

@ -1 +0,0 @@
<?php exit;?>{"1":{"name":"Administrator","extNotAllow":"","explorer.mkdir":0,"explorer.mkfile":0,"explorer.pathRname":0,"explorer.pathDelete":0,"explorer.zip":0,"explorer.unzip":0,"explorer.pathCopy":0,"explorer.pathChmod":0,"explorer.pathCute":0,"explorer.pathCuteDrag":0,"explorer.pathCopyDrag":0,"explorer.clipboard":0,"explorer.pathPast":0,"explorer.pathInfo":0,"explorer.serverDownload":0,"explorer.fileUpload":0,"explorer.search":0,"explorer.pathDeleteRecycle":0,"explorer.fileDownload":0,"explorer.zipDownload":0,"explorer.fileDownloadRemove":0,"explorer.fileProxy":0,"explorer.officeView":0,"explorer.officeSave":0,"app.userApp":0,"app.initApp":0,"app.add":0,"app.edit":0,"app.del":0,"user.changePassword":0,"editor.fileGet":0,"editor.fileSave":0,"userShare.set":0,"userShare.del":0,"setting.set":0,"setting.systemSetting":0,"setting.phpInfo":0,"fav.add":0,"fav.del":0,"fav.edit":0,"systemMember.get":0,"systemMember.add":0,"systemMember.doAction":0,"systemMember.edit":0,"systemGroup.get":0,"systemGroup.add":0,"systemGroup.del":0,"systemGroup.edit":0,"systemRole.add":0,"systemRole.del":0,"systemRole.edit":0},"2":{"name":"default","extNotAllow":"htm|html|php|phtml|pwml|asp|aspx|ascx|jsp|pl|htaccess|shtml|shtm|phtm","explorer.mkdir":1,"explorer.mkfile":1,"explorer.pathRname":1,"explorer.pathDelete":1,"explorer.zip":1,"explorer.unzip":1,"explorer.pathCopy":1,"explorer.pathChmod":0,"explorer.pathCute":1,"explorer.pathCuteDrag":1,"explorer.pathCopyDrag":0,"explorer.clipboard":1,"explorer.pathPast":1,"explorer.pathInfo":1,"explorer.serverDownload":1,"explorer.fileUpload":1,"explorer.search":1,"explorer.pathDeleteRecycle":0,"explorer.fileDownload":1,"explorer.zipDownload":0,"explorer.fileDownloadRemove":0,"explorer.fileProxy":0,"explorer.officeView":0,"explorer.officeSave":0,"app.userApp":1,"app.initApp":0,"app.add":0,"app.edit":0,"app.del":0,"user.changePassword":1,"editor.fileGet":0,"editor.fileSave":1,"userShare.set":1,"userShare.del":1,"setting.set":1,"setting.systemSetting":0,"setting.phpInfo":0,"fav.add":1,"fav.del":1,"fav.edit":1,"systemMember.get":0,"systemMember.add":0,"systemMember.doAction":0,"systemMember.edit":0,"systemGroup.get":0,"systemGroup.add":0,"systemGroup.del":0,"systemGroup.edit":0,"systemRole.add":0,"systemRole.del":0,"systemRole.edit":0},"100":{"name":"guest","extNotAllow":"htm|html|php|phtml|pwml|asp|aspx|ascx|jsp|pl|htaccess|shtml|shtm|phtm","explorer.mkdir":0,"explorer.mkfile":0,"explorer.pathRname":0,"explorer.pathDelete":0,"explorer.zip":0,"explorer.unzip":0,"explorer.pathCopy":0,"explorer.pathChmod":0,"explorer.pathCute":0,"explorer.pathCuteDrag":0,"explorer.pathCopyDrag":0,"explorer.clipboard":0,"explorer.pathPast":0,"explorer.pathInfo":0,"explorer.serverDownload":0,"explorer.fileUpload":0,"explorer.search":1,"explorer.pathDeleteRecycle":0,"explorer.fileDownload":0,"explorer.zipDownload":0,"explorer.fileDownloadRemove":0,"explorer.fileProxy":0,"explorer.officeView":0,"explorer.officeSave":0,"app.userApp":0,"app.initApp":0,"app.add":0,"app.edit":0,"app.del":0,"user.changePassword":0,"editor.fileGet":0,"editor.fileSave":0,"userShare.set":0,"userShare.del":0,"setting.set":0,"setting.systemSetting":0,"setting.phpInfo":0,"fav.add":0,"fav.del":0,"fav.edit":0,"systemMember.get":0,"systemMember.add":0,"systemMember.doAction":0,"systemMember.edit":0,"systemGroup.get":0,"systemGroup.add":0,"systemGroup.del":0,"systemGroup.edit":0,"systemRole.add":0,"systemRole.del":0,"systemRole.edit":0}}

3
data/temp/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!index.html

0
data/temp/index.html Executable file → Normal file
View File

View File

@ -1,7 +1,12 @@
<?php
ob_start();
include ('config/config.php');
$app = new Application();
init_config();
$app->run();
?>
try {
require __DIR__ . '/data/system/create.php';
ob_start();
require __DIR__ . 'config/config.php';
$app = new Application();
init_config();
$app->run();
} catch (\Exception $e) {
echo $e->getMessage();
}