KodExplorer/data/system/create.php

84 lines
14 KiB
PHP

<?php
if (!file_exists(__DIR__ . '/apps.php')) {
file_put_contents(__DIR__ . '/apps.php', '<?php exit;?>{"\u65f6\u949f":{"type":"url","content":"http:\/\/hoorayos.com\/demo\/extapp\/clock\/index.php","group":"tools","name":"\u65f6\u949f","desc":"\u65f6\u949f\u6302\u4ef6","icon":"time.png","width":"140","height":"140","simple":1,"resize":0},"365\u65e5\u5386":{"type":"url","content":"http:\/\/baidu365.duapp.com\/wnl.html?bd_user=855814346&bd_sig=a64e6e262e8cfa1c42dd716617be2102&canvas_pos=platform","group":"life","name":"365\u65e5\u5386","desc":"365\u65e5\u5386","icon":"365.png","width":"544","height":"440","simple":0,"resize":1},"\u5feb\u9012\u67e5\u8be2":{"type":"url","content":"http:\/\/baidu.kuaidi100.com\/index2.html","group":"tools","name":"\u5feb\u9012\u67e5\u8be2","desc":"","icon":"kuaidi.gif","width":"545","height":"420","simple":0,"resize":1},"\u9ed18\u5bf9\u51b3":{"type":"url","content":"http:\/\/swf.baoku.360.cn\/swf\/20110921\/1\/ball.swf","group":"game","name":"\u9ed18\u5bf9\u51b3","desc":"\u7ecf\u5178\u53f0\u7403","icon":"ball8.png","width":"650","height":"500","simple":0,"resize":1},"\u767e\u5ea6\u968f\u5fc3\u542c":{"type":"url","content":"http:\/\/fm.baidu.com\/?embed=hao123","group":"music","name":"\u767e\u5ea6\u968f\u5fc3\u542c","desc":"\u767e\u5ea6\u968f\u5fc3\u542c","icon":"baidu.png","width":"980","height":"550","simple":0,"resize":1},"\u8ba1\u7b97\u5668":{"type":"url","content":"http:\/\/tools.jb51.net\/static\/skin\/flash\/773460494c0e2274d5f07e568fadf8e0.swf","group":"tools","name":"\u8ba1\u7b97\u5668","desc":"\u8ba1\u7b97\u5668","icon":"calcu.png","width":"538","height":"600","simple":0,"resize":1},"\u5929\u6c14":{"type":"url","content":"http:\/\/hoorayos.com\/demo\/extapp\/weather\/index.php","group":"tools","name":"\u5929\u6c14","desc":"\u5929\u6c14\u9884\u62a5","icon":"weather.png","width":"200","height":"300","simple":1,"resize":0},"js\u5728\u7ebf\u538b\u7f29":{"type":"url","content":"http:\/\/tool.lu\/js\/","group":"others","name":"js\u5728\u7ebf\u538b\u7f29","desc":"js\u5728\u7ebf\u538b\u7f29","icon":"js.png","width":"860","height":"620","simple":0,"resize":1},"\u4e2d\u56fd\u8c61\u68cb":{"type":"url","content":"http:\/\/sda.4399.com\/4399swf\/upload_swf\/ftp14\/cwb\/20140401\/y2.swf","group":"game","name":"\u4e2d\u56fd\u8c61\u68cb","desc":"\u4e2d\u56fd\u8c61\u68cb","icon":"xiangqi.jpg","width":"650","height":"502","simple":0,"resize":1},"\u97f3\u60a6\u53f0":{"type":"url","content":"http:\/\/www.yinyuetai.com\/baidu\/index","group":"movie","name":"\u97f3\u60a6\u53f0","desc":"\u97f3\u60a6\u53f0","icon":"yingyuetai.png","width":"810","height":"460","simple":0,"resize":1},"\u9ad8\u5fb7\u5730\u56fe":{"type":"url","content":"http:\/\/ditu.amap.com\/","group":"life","name":"\u9ad8\u5fb7\u5730\u56fe","desc":"gaode map","icon":"map.png","width":"800","height":"600","simple":0,"resize":1},"\u6709\u9053\u8bcd\u5178":{"type":"url","content":"http:\/\/dict.youdao.com\/app\/baidu","group":"tools","name":"\u6709\u9053\u8bcd\u5178","desc":"","icon":"youdao.jpg","width":"548","height":"490","simple":0,"resize":1,"undefined":0},"\u8c46\u74e3\u7535\u53f0":{"type":"url","content":"http:\/\/douban.fm\/partner\/qq_plus","group":"music","name":"\u8c46\u74e3\u7535\u53f0","desc":"\u8c46\u74e3\u7535\u53f0","icon":"douban.png","width":"545","height":"460","simple":0,"resize":1,"undefined":0},"iqiyi\u5f71\u89c6":{"type":"url","content":"http:\/\/www.qiyi.com\/mini\/baidu.html?from115","group":"movie","name":"iqiyi\u5f71\u89c6","desc":"iqiyi\u5f71\u89c6","icon":"iqiyi.png","width":"1000","height":"643","simple":0,"resize":1,"undefined":0},"Web PhotoShop":{"type":"url","content":"http:\/\/www.kantu.com\/tool\/ps\/","group":"tools","name":"Web PhotoShop","desc":"ps","icon":"ps.png","width":"800","height":"560","simple":0,"resize":1,"undefined":0},"icloud":{"type":"app","content":"window.open(\"https:\/\/www.icloud.com\/\");","group":"others","name":"icloud","desc":"icloud","icon":"icloud.png","width":"800","height":"600","simple":0,"resize":1,"undefined":0},"\u8fc5\u6377\u6587\u6863\u8f6c\u6362":{"type":"url","content":"http:\/\/app.xunjiepdf.com\/","group":"tools","name":"\u8fc5\u6377\u6587\u6863\u8f6c\u6362","desc":"\u5404\u7c7b\u6587\u4ef6\u683c\u5f0f\u8f6c\u6362","icon":"xunjie.png","width":"90%","height":"80%","simple":0,"resize":1,"undefined":0},"Vector Magic":{"type":"url","content":"https:\/\/zh.vectormagic.com\/","group":"tools","name":"Vector Magic","desc":"\u8f6c\u6362\u6210\u77e2\u91cf\u56fe","icon":"vector.png","width":"90%","height":"80%","simple":0,"resize":1,"undefined":0},"Kingdom Rush":{"type":"url","content":"http:\/\/s4.4399.com:8080\/4399swf\/upload_swf\/ftp6\/liwen\/20110913\/4.swf","group":"game","name":"Kingdom Rush","desc":"\u7687\u5bb6\u5b88\u536b\u519b","icon":"kingdom.png","width":"700","height":"600","simple":0,"resize":1,"undefined":0},"\u817e\u8bafcanvas":{"type":"app","content":"window.open(\"http:\/\/canvas.qq.com\/templates\");","group":"tools","name":"\u817e\u8bafcanvas","desc":"\u5728\u7ebf\u56fe\u7247\u8bbe\u8ba1\u5de5\u5177","icon":"qqcanvas.png","width":"800","height":"600","simple":0,"resize":1,"undefined":0},"OfficeConverter":{"type":"url","content":"http:\/\/cn.office-converter.com\/","group":"tools","name":"OfficeConverter","desc":"\u514d\u8d39\u5728\u7ebf\u6587\u4ef6\u8f6c\u6362\u5668","icon":"officeconvert.png","width":"90%","height":"80%","simple":0,"resize":1,"undefined":0},"pptv\u76f4\u64ad":{"type":"url","content":"http:\/\/app.aplus.pptv.com\/tgapp\/baidu\/live\/main","group":"movie","name":"pptv\u76f4\u64ad","desc":"","icon":"pptv.jpg","width":"798","height":"534","simple":0,"resize":1,"undefined":0},"\u641c\u72d0\u5f71\u89c6":{"type":"url","content":"http:\/\/tv.sohu.com\/upload\/sohuapp\/index.html?api_key=9ca7e3cdef8af010b947f4934a427a2c","group":"movie","name":"\u641c\u72d0\u5f71\u89c6","desc":"\u641c\u72d0\u5f71\u89c6","icon":"souhu.jpg","width":"798","height":"583","simple":0,"resize":1,"undefined":0},"\u767e\u5ea6\u8111\u56fe":{"type":"url","content":"http:\/\/naotu.baidu.com\/","group":"tools","name":"\u767e\u5ea6\u8111\u56fe","desc":"\u5728\u7ebf\u601d\u7ef4\u5bfc\u56fe","icon":"naotu.png","width":"80%","height":"80%","simple":0,"resize":1,"undefined":0},"\u7f51\u6613\u4e91\u97f3\u4e50":{"type":"app","content":"window.open(\"http:\/\/music.163.com\/#\/my\/\");","group":"music","name":"\u7f51\u6613\u4e91\u97f3\u4e50","desc":"\u5f3a\u5927","icon":"wangyi.jpg","width":"800","height":"600","simple":0,"resize":1,"undefined":0},"\u521b\u53ef\u8d34":{"type":"url","content":"https:\/\/www.chuangkit.com\/startdesign","group":"tools","name":"\u521b\u53ef\u8d34","desc":"\u514d\u8d39\u7684\u5728\u7ebf\u8bbe\u8ba1\u5de5\u5177","icon":"chuangketie.png","width":"90%","height":"80%","simple":0,"resize":1,"undefined":0},"trello":{"type":"app","content":"window.open(\"https:\/\/trello.com\/\");","group":"tools","name":"trello","desc":"\u9879\u76ee\u7ba1\u7406\u4e91\u5e73\u53f0","icon":"trello.png","width":"800","height":"600","simple":0,"resize":1,"undefined":0},"\u4e00\u8d77\u5199office":{"type":"url","content":"https:\/\/yiqixie.com\/d\/home","group":"tools","name":"\u4e00\u8d77\u5199office","desc":"\u5728\u7ebf\u534f\u4f5coffice","icon":"yiqixie.png","width":"90%","height":"80%","simple":0,"resize":1,"undefined":0},"ProcessOn":{"type":"url","content":"http:\/\/processon.com\/diagrams","group":"tools","name":"ProcessOn","desc":"\u514d\u8d39\u5728\u7ebf\u4f5c\u56fe\uff0c\u5b9e\u65f6\u534f\u4f5c","icon":"on.png","width":"90%","height":"80%","simple":0,"resize":1,"undefined":0},"\u77f3\u58a8\u6587\u6863":{"type":"url","content":"https:\/\/shimo.im\/desktop","group":"tools","name":"\u77f3\u58a8\u6587\u6863","desc":"shimo","icon":"shimo.png","width":"90%","height":"80%","simple":0,"resize":1,"undefined":0},"\u5fae\u4fe1":{"type":"app","content":"window.open(\"https:\/\/wx.qq.com\/\");","group":"tools","name":"\u5fae\u4fe1","desc":"\u5fae\u4fe1\u7f51\u9875\u7248","icon":"wechart.png","width":"800","height":"600","simple":0,"resize":1,"undefined":0}}');
}
if (!file_exists(__DIR__ . '/desktop_app.php')) {
file_put_contents(__DIR__ . '/desktop_app.php', <<<'PHP'
<?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;
PHP
);
}
if (!file_exists(__DIR__ . '/system_group.php')) {
file_put_contents(__DIR__ . '/system_group.php', '<?php exit;?>{"1":{"groupID":1,"name":"public","parentID":"","children":"","config":{"sizeMax":0,"sizeUse":0},"path":"public","createTime":""}}');
}
if (!file_exists(__DIR__ . '/system_member.php')) {
file_put_contents(__DIR__ . '/system_member.php', '<?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":""}}');
}
if (!file_exists(__DIR__ . '/system_role.php')) {
file_put_contents(__DIR__ . '/system_role.php', '<?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}}');
}