更新到2.02版

This commit is contained in:
zyx0814 2018-09-04 12:03:12 +08:00
parent 137d3cc3a3
commit 13ac8c9c67
181 changed files with 30981 additions and 2056 deletions

View File

@ -3,11 +3,9 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^wopi\/files\/(\w+)\/contents(.*)$ core/api/wopi/index.php?action=contents&path=$1&$2 [QSA,PT,L]
RewriteRule ^wopi\/files\/(\w+)\/(lock|unlock)(.*)$ core/api/wopi/index.php?action=$2&path=$1&$3 [QSA,PT,L]
RewriteRule ^wopi\/files\/(\w+)(.*)$ core/api/wopi/index.php?path=$1&$2 [QSA,PT,L]
RewriteRule ^wopi\/files\/(.*)$ core/api/wopi/index.php?$1 [QSA,PT,L]
RewriteRule ^dingredirect\/(\w+)$ index.php?mod=dingtalk&op=dingredirect&url=$1 [QSA,PT,L]
</IfModule>

View File

@ -8,27 +8,11 @@
### DzzOffice2.01主要更新内容
1. 增加 云设置和管理 支持阿里云存储、七牛云存储、FTP/SFTP、本地磁盘等存储方式
1. 缓存优化开启内存huanc(如memcached等)会显著提高效率
2. 增加 用户资料管理 ,支持自定义用户资料项,资料审核、认证和审核
2. 应用市场应用名称旁显示版本
3. 修改应用市场应用在线安装方式,提高应用下载速度;
4. 增加伪静态支持,可以通过应用“伪静态管理”灵活配置各个页面的伪静态规则;
5. 机构和用户管理 优化添加部门管理员的体验;
6. 导入导出用户功能优化调整;
7. 部分页面移动端适配;
8. 增加首次安装引导页,引导管理员首次能正确配置系统;
9. 开放讨论板应用(可在应用市场内在线安装);
10. 开放任务板应用(可在应用市场内在线安装);
11. 其他功能完善、及beta版反馈问题的修复
3. 其他功能完善、及已知问题的修复;
### DzzOffice在线更新方法

View File

@ -67,28 +67,5 @@ function curlcloudappmarket( $url="",$post_data="", $token="" ){
return($response);
}
function striplinks($document)
{
preg_match_all("'<\s*a\s.*?href\s*=\s* # find <a href=
([\"\'])? # find single or double quote
(?(1) (.*?)\\1 | ([^\s\>]+)) # if quote found, match up to next matching
# quote, otherwise match up to next space
'isx", $document, $links);
// catenate the non-empty matches from the conditional subpattern
while (list($key, $val) = each($links[2])) {
if (!empty($val))
$match[] = $val;
}
while (list($key, $val) = each($links[3])) {
if (!empty($val))
$match[] = $val;
}
// return the links
return $match;
}
?>

View File

@ -24,7 +24,7 @@ if ($do == 'export') {//应用导出
$app['appico'] = imagetobase64($app['appico']);
$app['extra'] = array();
$appid=$app['appid'];
unset($app['mid']);
//unset($app['mid']);
unset($app['appid']);
unset($app['orgid']);
unset($app['available']);
@ -58,8 +58,10 @@ if ($do == 'export') {//应用导出
$apparray['app'] = $app;
$apparray['version'] = strip_tags($_G['setting']['version']);
$hooks=array();
foreach(DB::fetch_all("SELECT name,addons FROM %t where `status`='1' and app_market_id='".$appid."' ORDER BY priority",array('hooks')) as $value) {
$hooks[$value['name']]=$value['addons'];
foreach(DB::fetch_all("SELECT * FROM %t where `status`='1' and app_market_id='".$appid."' ORDER BY priority",array('hooks')) as $value) {
$hooks[$value['name']]=$value['addons'];
$hooks['_attributes'][$value['name']]=array("priority"=>$value['priority'],'description'=>$value['description']);
}
if($hooks) $apparray['hooks']=$hooks;
@ -71,8 +73,7 @@ elseif ($do == 'import') {//导入应用
if (!submitcheck('importsubmit')) {
include template('import');
} else {
$apparray = getimportdata('Dzz! app');
$apparray = getimportdata('Dzz! app');
if ($apparray['app']['identifier']) {
if(empty($apparray['app']['app_path'])) $apparray['app']['app_path']='dzz';
if (!is_dir(DZZ_ROOT . './'.$apparray['app']['app_path'].'/' . $apparray['app']['identifier'])) {

View File

@ -1275,8 +1275,9 @@ QmCC
<item id="nodup"><![CDATA[0]]></item>
<item id="identifier"><![CDATA[appmarket]]></item>
<item id="app_path"><![CDATA[admin]]></item>
<item id="version"><![CDATA[2.0]]></item>
<item id="version"><![CDATA[2.01]]></item>
<item id="extra">
<item id="upgradefile"><![CDATA[upgrade.php]]></item>
</item>
</item>
<item id="version"><![CDATA[2.0 beta]]></item>

View File

@ -100,6 +100,7 @@ if (submitcheck('appsubmit')) {
$setarr['dateline'] = $_G['timestamp'];
if (!$setarr['appico'])
$setarr['appico'] = 'dzz/images/default/icodefault.png';
$setarr["version"]="1.0";//默认版本1.0开始
$appid = C::t('app_market') -> insert($setarr, 1);
}
//处理标签

View File

@ -32,38 +32,43 @@ if ( $do =="setdefault" ) {
}
error(lang('set_default').lang('failure'));
}
$sql_app="`available`>0";
$param_app=array('app_market');
$sql = '1';
$param=array('app_open');
if(preg_match("/[a-zA-Z0-9]{1,10}/i",$_GET['ext'])){
$ext = trim($_GET['ext']);
$sql .= " and `ext` = %s";
$param[]=$ext;
}elseif($_GET['ext']){
$appname=trim($_GET['ext']);
$sql_app.=' and appname LIke %s';
$param_app[]='%'.$appname.'%';
}
$ext = trim($_GET['ext']);
$appid = intval($_GET['appid']);
$orderby = trim($_GET['s']);
$page = empty($_GET['page']) ? 1 : intval($_GET['page']);
$perpage = 20;
$gets = array('mod' => 'appmarket', 'op' => 'extopen', 'ext' => $ext, 'appid' => $appid);
$theurl = BASESCRIPT . "?" . url_implode($gets);
$refer = urlencode($theurl . '&page=' . $page);
if ($orderby)
$order = 'ORDER BY ' . $orderby;
else
$order = 'order by disp DESC';
$start = ($page - 1) * $perpage;
$apps = array();
$sql = '1';
$param=array('app_open');
if ($appid) {
$sql .= " and `appid` = '{$appid}'";
$map["appid"]=$appid;
$sql .= " and `appid` = %d";
$param[]=$appid;
} elseif ($ext) {
$sql .= " and `ext` = '{$ext}'";
$map["ext"]=$ext;
$param[]=$ext;
}
}
$count = DB::result_first("select COUNT(*) from %t where 1",array('app_market'));//C::tp_t("app_open")->where($map)->count();
$count = DB::result_first("select COUNT(*) from %t where $sql_app ",$param_app);
if($count){
$appdatas =DB::fetch_all("select appid,appico,appname,appurl from %t where 1",array('app_market'),'appid');// C::tp_t('app_market')->getField("appid,appico,appname,appurl");
$list = DB::fetch_all("select * from %t where $sql ORDER BY appid DESC",$param);//C::tp_t("app_open")->where($map)->order("appid desc")->select();
$appdatas =DB::fetch_all("select appid,appico,appname,appurl from %t where $sql_app ",$param_app,'appid');
$sql .= ' and `appid` IN(%n)';
$param[] = array_keys($appdatas);
$list = DB::fetch_all("select * from %t where $sql ORDER BY ext DESC",$param);
$newlist=array();
foreach($list as $k=>$v ){
$appdata = $appdatas[$v["appid"]];
@ -78,6 +83,7 @@ if($count){
}
$multi = multi($count, $perpage, $page, $theurl );
//根据分页截取数组
ksort($newlist,SORT_STRING );
$list = array_slice($newlist,$start,$perpage);
foreach($list as $k=>$nlist){
$sort = array(
@ -95,6 +101,6 @@ foreach($list as $k=>$nlist){
}
$list[$k]=$nlist;
}
// print_r($list);exit;
//print_r($list);exit;
include template('extopen');
?>

View File

@ -51,9 +51,9 @@ if ($operation == 'check_install' ) {//根据appid检查app应用是否需要更
$return["msg"]=lang('app_upgrade_mysqlversion_error', array('version' => $baseinfo['mysqlversion']));
exit(json_encode($return));//不需要安装
}
$appinfo = DB::result_first("select COUNT(*) from %t where mid=%d",array('app_market',$baseinfo['mid']));//C::tp_t('app_market')->where($map)->find();
$time =dgmdate(TIMESTAMP,'Ymd');
$appinfo = DB::result_first("select COUNT(*) from %t where mid=%d",array('app_market',$baseinfo['mid']));//C::tp_t('app_market')->where($map)->find();
$return=array(
"url"=>ADMINSCRIPT .'?mod='.MOD_NAME.'&op=install_app_ajax',
"status"=>1,
@ -61,14 +61,40 @@ if ($operation == 'check_install' ) {//根据appid检查app应用是否需要更
"second"=>1,
"msg"=>lang("app_upgrade_check_is_install")
);
if( $appinfo ){
//start 处理检查是否已有该目录
$isinstall=0;
$app_folder=DZZ_ROOT.'./'.$baseinfo['app_path'].'/'.$baseinfo['identifier'];
if( is_dir($app_folder) ){
$isinstall=1;
$xmlfile = 'dzz_app_' . $baseinfo['identifier'] . '.xml';
$importfile = $app_folder . '/' . $xmlfile;
if ( file_exists($importfile) ) {
$importtxt = @implode('', file($importfile));
$apparray = getimportdata('Dzz! app', 0, 0, $importtxt);
$mid = isset($apparray['app']['mid'])?intval($apparray['app']['mid']):0;
if( $mid==$baseinfo['mid'] ){
$isinstall=0;
}
}
}
//end处理检查是否已有该目录
if( $appinfo || $isinstall){
$return["status"]=0;
$return["msg"]= lang("app_upgrade_installed");
if($appinfo){
$return["msg"]= lang("app_upgrade_installed");
}else{
$return["msg"]= lang( $baseinfo["app_path"]."/".$baseinfo["identifier"]." 目录已存在,请重命名该目录或移除,防止重复或覆盖" );
}
/*if( $appinfo["mid"]==0 ){
$return["msg"]= lang("app_upgrade_installed_local");
}*/
exit(json_encode($return));//不需要安装
}
//删除安装临时文件
$temp_download=DZZ_ROOT.'./data/update/app/'.$baseinfo['app_path'].'/'.$baseinfo['identifier'];
removedirectory($temp_download);
exit(json_encode($return));//未安装
}
elseif($operation == 'upgrade' ){
@ -250,7 +276,7 @@ elseif($operation == 'cross' || $operation == 'patch'){
exit(json_encode($return));
exit;
}
elseif($step==4){
elseif($step==4){
$return["percent"]=80;
$return["second"]=1;
$return["msg"]= lang("app_upgrade_installing");

View File

@ -121,7 +121,7 @@
<div id="progess_{$value[mid]}" class="progess"> <span id="upgrade_progess_{$value[mid]}" class="upgrade_progess"></span> </div>
<div class="col-md-5 col-sm-5 col-xs-5" style="padding-left: 4px;">
<div class="app-name-wrapper" > <a href="javascript:;" data-href="{$cloudurl}?mod=dzzmarket&op=ajax&do=view&mid=$value[mid]&refer=$refer" class="appicon view-detail" title="$value[name]"><img src="$value[coverimg]" style="margin:0" /></a>
<p class="appname"> <a href="javascript:;" data-href="{$cloudurl}?mod=dzzmarket&op=ajax&do=view&mid=$value[mid]&refer=$refer" target="_blank" class="view-detail" title="$value[name]">$value[name]</a> </p>
<p class="appname"> <a href="javascript:;" data-href="{$cloudurl}?mod=dzzmarket&op=ajax&do=view&mid=$value[mid]&refer=$refer" target="_blank" class="view-detail" title="$value[name]">$value[name]</a> <small class="text-muted" title="{lang version}">$value[version]</small></p>
<div class="appdesc" title="$value['appdesc']">{eval echo $value[desc_short]?$value[desc_short]:lang('none');}</div>
</div>
</div>

View File

@ -50,7 +50,7 @@
<thead>
<tr>
<th width="100">{lang default}</th>
<th><a href="{MOD_URL}&op=extopen&s=appid">{lang application_name}</a></th>
<th>{lang application_name}</th>
</tr>
</thead>

View File

@ -21,7 +21,7 @@
</div>
<div class="bs-main-container">
<div class="main-header clearfix">
<h4 class="main-header-title navbar-left"><a href="{BASESCRIPT}?mod=appmarket">返回</a>&nbsp;&nbsp;|&nbsp;&nbsp;{lang Install_and_uninstall}&nbsp;&nbsp;/&nbsp;&nbsp;{lang import_type_app}</h4>
<h4 class="main-header-title navbar-left"><a href="{BASESCRIPT}?mod=appmarket">返回</a>&nbsp;&nbsp;|&nbsp;&nbsp;{lang import_type_app}</h4>
<div class="button_add_content">
<a href="{BASESCRIPT}?mod=appmarket&op=edit&do=add" id="button_add1" title="{lang add_app}" class="hide">+</a>
<a href="{BASESCRIPT}?mod=appmarket&op=cp&do=import" id="button_add2" class="hide" title="{lang import_type_app}" style="font-size:20px ;"><span class="glyphicon glyphicon-download-alt"></span></a>

View File

@ -162,9 +162,10 @@
<a href="$value[appadminurl]" target="_blank" >$value[appname]</a>
<!--{else}-->
<a href="$value[appurl]" target="_blank" >$value[appname]</a>
<!--{/if}-->
<!--{/if}-->
<small class="text-muted" title="{lang version}">$value[version]</small>
</p>
<div class="appdesc" title="$value['appdesc']">{eval echo $value['appdesc']?$value['appdesc']:lang('none');}</div>
<div class="appdesc" title="$value['appdesc']"> {eval echo $value['appdesc']?$value['appdesc']:lang('none');}</div>
<!-- </div> -->
</td>
<td>$value[vendor]</td>

View File

@ -0,0 +1,35 @@
<?php
/* @authorcode codestrings
* @copyright Leyun internet Technology(Shanghai)Co.,Ltd
* @license http://www.dzzoffice.com/licenses/license.txt
* @package DzzOffice
* @link http://www.dzzoffice.com
* @author qchlian(3580164@qq.com)
*/
if(!defined('IN_DZZ') || !defined('IN_ADMIN')) {
exit('Access Denied');
}
@set_time_limit(0);
//卸载程序;
$applist_midnone=DB::fetch_all("select * from %t where mid=0 ",array('app_market'));
if( $applist_midnone ){
$dzz_upgrade = new dzz_upgrade_app();
foreach( $applist_midnone as $value){
$url=APP_CHECK_URL."market/app/getmid";//."index.php?mod=dzzmarket&op=index_ajax&operation=getmid";
$post_data = array(
"version"=>$value['version'],
"identifier"=>$value['identifier'],
"app_path"=>$value["app_path"]
);
$json = $dzz_upgrade->curlcloudappmarket($url,$post_data);
$json = json_decode($json,true);
if( $json["status"]==1){
$mid = $json["mid"];
DB::update('app_market',array('mid'=>$mid),"appid=".$value["appid"]);
}
}
}
$finish = true;

View File

@ -33,7 +33,10 @@ if ($operation == 'check_upgrade' ) {//根据appid检查app应用是否需要更
"mid"=>$appinfo["mid"],
"msg"=> lang("app_upgrade_check_need_update")
);
//删除安装临时文件
$temp_download=DZZ_ROOT.'./data/update/app/'.$appinfo['app_path'].'/'.$appinfo['identifier'];
removedirectory($temp_download);
if($appinfo["check_upgrade_time"]==$time){//今天已经检查过是否需要更新
if( $appinfo["upgrade_version"]!="" ){
$return["url"] = ADMINSCRIPT .'?mod=appmarket&op=upgrade_app_ajax&appid='.$appid;
@ -215,19 +218,29 @@ elseif($operation == 'cross' || $operation == 'patch'){
$upgradeinfo["latestversion"]= $upgradeinfo["version"];
//判断目录或标识发生变化 $upgradeinfo最新版本信息
if( md5($upgradeinfo["app_path"].$upgradeinfo["identifier"])!= md5($appinfo["app_path"].$appinfo["identifier"])) {
if( md5($upgradeinfo["app_path"].$upgradeinfo["identifier"])!= md5($appinfo["app_path"].$appinfo["identifier"])) {
$upgradeinfo=getappidentifier($upgradeinfo); //获取并判断新标识名称
//如果有新标识名称 抛出错误停止更新
if( isset( $upgradeinfo["new_identifier"]) && $upgradeinfo["new_identifier"] ){
$linkurl=ADMINSCRIPT.'?mod=appmarket&op=upgrade';
$return["url"]=$linkurl;
$return["status"]=0;
$return["msg"]= lang( $upgradeinfo["app_path"]."/".$upgradeinfo["identifier"]." 目录已存在,请重命名该目录或移除,防止重复或覆盖" );
exit(json_encode($return));
}
//判断是否是路径不相等
if( $appinfo["app_path"]!=$upgradeinfo["app_path"]) {
$appinfo["app_path"]=$upgradeinfo["app_path"];
}
//版本判断
if( $appinfo["identifier"]!=$upgradeinfo["identifier"]) {
//如果新版本目录存在则 获取另外一个新版本标识名称
$upgradeinfo=getappidentifier($upgradeinfo);
//如果新版本目录存在则 获取另外一个新版本标识名称
$appinfo["identifier"]=$upgradeinfo["identifier"];
//禁止标识相同的直接修改
if( isset( $upgradeinfo["new_identifier"]) && $upgradeinfo["new_identifier"] ){
$appinfo["identifier"]=$upgradeinfo["new_identifier"];
$appinfo["new_identifier"]=$upgradeinfo["new_identifier"];
}
}
}
}
$appinfo["upgradeinfo"]=$upgradeinfo;
@ -341,10 +354,10 @@ elseif($operation == 'cross' || $operation == 'patch'){
//与本地文件对比过滤出更新文件
list($updatefilelist, $updatemd5filelist) = $dzz_upgrade->compare_basefile_bymd5($appinfo, $updatefilelist,$updatemd5filelist);
$theurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$appid. '&locale=' . $locale . '&charset=' . $charset;
if(empty($updatefilelist)) {
$return["status"]=0;
$return["msg"]= lang('app_upgrade_exchange_none', array('upgradeurl' => upgradeinformation_app(-9)));
exit(json_encode($return));
if(empty($updatefilelist)) {//不存在修改的继续执行
//$return["status"]=0;
//$return["msg"]= lang('app_upgrade_exchange_none', array('upgradeurl' => upgradeinformation_app(-9)));
//exit(json_encode($return));
}
//end
@ -501,7 +514,7 @@ elseif($operation == 'cross' || $operation == 'patch'){
//保存对应的应用名及应用地址
if ( $appinfo['identifier']!=$upgradeinfo['identifier'] ) {
$apparray['app']['identifier']=$appinfo['new_identifier'];
$apparray['app']['identifier']=$appinfo['identifier'];//$appinfo['new_identifier'];
$apparray['app']['appurl']= str_replace("mod=".$upgradeinfo['identifier'],"mod=".$appinfo['identifier'],$appinfo['app']['appurl']);
$apparray['app']['appadminurl']= str_replace("mod=".$upgradeinfo['identifier'],"mod=".$appinfo['identifier'],$appinfo['app']['appadminurl']);
$apparray['app']['noticeurl']= str_replace("mod=".$upgradeinfo['identifier'],"mod=".$appinfo['identifier'],$appinfo['app']['noticeurl']);
@ -515,7 +528,7 @@ elseif($operation == 'cross' || $operation == 'patch'){
writelog('otherlog', "更新应用 ".$apparray['app']['appname']);
}
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$appid. '&step=5&confirm=' . $confirm;
$linkurl = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=' . $operation . '&appid=' .$_GET["appid"]. '&step=5&confirm=' . $confirm;
$return["url"]=$linkurl;
$return["percent"]=80;
$return["second"]=300;
@ -548,7 +561,7 @@ elseif($operation == 'cross' || $operation == 'patch'){
"upgrade_version"=>""
);
$re=C::tp_t('app_market')->where("appid=".$appid)->save( $map );
$re=C::t('app_market')->update( $appid,$map);
updatecache('setting');
$return["url"] = ADMINSCRIPT . '?mod=appmarket&op=upgrade_app_ajax&operation=check_upgrade&appid='.$appinfo["appid"];
@ -582,6 +595,7 @@ elseif($operation == 'localupgrade' ){
$filename = $apparray['app']['extra']['upgradefile'];
$toversion = $apparray['app']['version'];
$mid = isset($apparray['app']['mid'])?intval($apparray['app']['mid']):0;
if (!empty($apparray['app']['extra']['upgradefile']) && preg_match('/^[\w\.]+$/', $apparray['app']['extra']['upgradefile'])) {
$filename = $entrydir . '/' . $apparray['app']['extra']['upgradefile'];
if (file_exists($filename)) {
@ -594,10 +608,12 @@ elseif($operation == 'localupgrade' ){
}
if ($finish) {
$map=array(
"mid"=>$mid,
"version"=>$toversion,
"upgrade_version"=>"",
"check_upgrade_time"=>0
);
$re=C::t('app_market')->update($appid,$map);//C::tp_t('app_market')->where("appid=".$appid)->save( $map );
}

View File

@ -1,12 +1,12 @@
f2ec4f7b30463be48394efaed8f4472a *./.htaccess
e7f995486e61c6a0331fdc7d6da0a9f3 *./.htaccess
6dc0d2a0a7e27ee9a16e0b58b15809f7 *admin/appmarket/appupgrade.php
919cce3cb400d46ce85b542ffb764296 *admin/appmarket/check_upgrade.php
35bd9c07707035a1e88ce978e04346e0 *admin/appmarket/cloudappmarket.php
5d86e09be09503ad5331cf27cdfc624f *admin/appmarket/cp.php
333764e38783fc4dc20f84f445c75628 *admin/appmarket/cloudappmarket.php
cfd91022f1d8473f0ae55adfc7c61d9a *admin/appmarket/cp.php
9e542e07bada661e3097f8509160cb1c *admin/appmarket/default.php
1d6268c36b00d94c8be2f8f5310a1d16 *admin/appmarket/dzz_app_appmarket.xml
446c61ea0c13a747621b0dd960d1ba3e *admin/appmarket/edit.php
5a13af4bbe0f55b2a1bebc34a57aef98 *admin/appmarket/extopen.php
8061b74142c60835d0f8631e4631bba9 *admin/appmarket/dzz_app_appmarket.xml
c09a74606e4fd866ecb43cea83f13249 *admin/appmarket/edit.php
c02a864576b81325c93e60a633e4952a *admin/appmarket/extopen.php
6c40db49559a5cdc2b42619de3c8d1cf *admin/appmarket/function/function_appmarket.php
36d68c254c1d919154bd013ec7c8abd8 *admin/appmarket/images/bg.gif
a60a1301b066da3e2fdeaf35bb6f86a0 *admin/appmarket/images/bg.jpg
@ -17,18 +17,18 @@ a5ae57a33635c65da7a22c258ec8bf39 *admin/appmarket/images/market.css
338655a5d330e7af1ef36a314c689637 *admin/appmarket/images/new.gif
ee7381a43181ed4e09c5e420181fde57 *admin/appmarket/import.php
013b8979b2806657ecf5de4d8abe8d5a *admin/appmarket/index.php
c204a5a0313b980f26bdaf871330fb8a *admin/appmarket/install_app_ajax.php
27b682f26f84a34fdb4eae6e1a0f182a *admin/appmarket/install_app_ajax.php
562280ddfeb6d3b9fa671beb3a387bd8 *admin/appmarket/language/zh-cn/lang.php
41dc4a9ba19963d98dc75b22f8017c27 *admin/appmarket/list.php
7e6274a1780df6ddeeb2a88b8bbadb2a *admin/appmarket/scripts/jquery-ui.js
2b8aa0083494a2dc6b9a226dc8987c2a *admin/appmarket/template/appdefault.htm
c70d7ece197b417792434e1c3535684f *admin/appmarket/template/cloudappmarket.htm
a3ce2c8467f92aef6d2c63aaf13e789f *admin/appmarket/template/cloudappmarket.htm
5e934bd1298d64175e148e2d3f130f0b *admin/appmarket/template/cross.htm
46621df70e5d1d89267810eba3976159 *admin/appmarket/template/edit.htm
1ab792046123a4c933182c1fdf591fd5 *admin/appmarket/template/extopen.htm
c5e919821ce09ea1085a65f6d9ebbd6f *admin/appmarket/template/extopen.htm
153f49ce00f40760da21bc477b0a412d *admin/appmarket/template/header_search.htm
65c121ca580d4d3b9642ab286d17391d *admin/appmarket/template/import.htm
5649601b2b034b080250a7407531f234 *admin/appmarket/template/index.htm
98410351626e851e2a74284df0b0aab9 *admin/appmarket/template/import.htm
3dc749c413e1074a747c43bbaede6aa7 *admin/appmarket/template/index.htm
0911a569d6130c5101dc68430b64eee3 *admin/appmarket/template/left.htm
4258ce637050f6b8ca9ff14db7e5dd0f *admin/appmarket/template/list.htm
071dd61005cc9be0bbb176656df632b6 *admin/appmarket/template/list_list_available.htm
@ -36,7 +36,8 @@ c70d7ece197b417792434e1c3535684f *admin/appmarket/template/cloudappmarket.htm
b00ac089599fc47f9a454ad7ec99ca75 *admin/appmarket/template/list_list_upgrade.htm
69d3f752c254c5e02af95867abf0a465 *admin/appmarket/template/uninstall_confirm.htm
bd591d7bd24f89f6002c07d50c001473 *admin/appmarket/template/upgrade.htm
a7086be3f472bce7370c65b79131638d *admin/appmarket/upgrade_app_ajax.php
84c78c434783d82ef274084947bdf5e4 *admin/appmarket/upgrade.php
5fdf01589b66e1f42a88777f0e6f86b1 *admin/appmarket/upgrade_app_ajax.php
6150c674042c7de136a3a128c441dbc6 *admin/cloud/add.php
7eb4ad475512aafe5626ba24a660c3cb *admin/cloud/dzz_app_cloud.xml
9a8615fbb7362c3e9a391a4564f4791a *admin/cloud/edit.php
@ -70,24 +71,13 @@ d3f5f07037eb2c9370339bd765dc6a79 *admin/filemanage/dzz_app_filemanage.xml
561aeaaeefe3c791ef5f1eaf45856456 *admin/filemanage/images/folder.css
2352874b5f636ca331fe9509a2f9bdd7 *admin/filemanage/images/sort_asc.gif
d104fcf119d40c51554ddb8b377142e5 *admin/filemanage/images/sort_desc.gif
86917b2d18bd9f9a67ec38cdfeab2189 *admin/filemanage/index.php
a7a903bca116dbf5cf35b54f5da90de6 *admin/filemanage/language/zh-cn/lang.php
3c2451262e5677b4e5d63440f1df0d40 *admin/filemanage/template/list.htm
8a1c8aed30f4e5bea4cdaefa47d69555 *admin/function/function_admin.php
6bc52b9254c490bc2b387754b1577ae8 *admin/images/app.css
4c4d82a0d580966af306100829a50899 *admin/images/aside-hover-on.png
a5e74c4930ec435b32e58038bb70c021 *admin/images/aside-right-shadow.jpg
3638eeb93161b336e6e1987f2add052a *admin/filemanage/index.php
8c1eab3b4ac3bc90d228d333ca5dc136 *admin/filemanage/language/zh-cn/lang.php
286cae699a1f719881518ce103c85ed4 *admin/filemanage/template/list.htm
3e13993be77abb25aa6068d8a1fa200a *admin/function/function_admin.php
3ee26adfd5fdd169d2c303ed8fcdc04f *admin/images/color.jpg
63ce7b2aeb0a778a8913db95faf80640 *admin/images/getcolor.htm
99e8d181fb65094382dfa258aa758dde *admin/images/icon.png
04f6bdcff2ca03feba74fe22924c4cc7 *admin/images/loadding.gif
ff266b72e4c62b6d4757817d114cf1ad *admin/images/login_title.gif
c8936391e4e90cc6e03c00b4d45edd2b *admin/images/main.css
1a9bb897ce9fdacd48ac65dc4f38df12 *admin/images/member.css
f4752b454b5a54411da6962dcb6382d5 *admin/images/organization.css
9775fea362e21f211072c1b494d73a30 *admin/images/transcolor.gif
c3e63602d4d30c7f91b1cef3f3ff8ffe *admin/images/transparent.gif
a637fd4719e99a8603cb93668b4af3a4 *admin/images/_Window.js
313f655a315f1454823c8468664a775b *admin/language/zh-cn/lang.php
9eb753c6f0902b4f0104f81c07664167 *admin/login/classes/adminlogin.php
51bcacee1c7fed967c6f91b256e9c139 *admin/login/images/adminlogin.css
@ -109,13 +99,13 @@ e4ed91ad5de8eebcfbcb0e94d4dac420 *admin/member/images/themes/default/user.png
66c169809677b2147eb8d52312885e7c *admin/member/profileset.php
09747a8e233cf26f9eeb9bc12e2eccf9 *admin/member/scripts/orguser.js
b1d8985e0aa3e73ee4b875402d20afa6 *admin/member/template/left.htm
57ddf40abc267c9c5d4e872bd931acff *admin/member/template/profile.htm
c190984ec656d1553b921e3b8cdf6bcf *admin/member/template/profileset.htm
a3db72d6e566435a2765bc6ceba64628 *admin/member/template/profileset_edit.htm
706b6393609cb6d13c51a577da779ac0 *admin/member/template/verify.htm
726e6554c845ea42c4ef7ea4b712229f *admin/member/template/profile.htm
743703802821e870686d010927eb7e01 *admin/member/template/profileset.htm
1ca4f10aae3c07733471c1ed16482db2 *admin/member/template/profileset_edit.htm
bcdbf2aec91d38d4b369372ee656bcc2 *admin/member/template/verify.htm
ce82e99af40f4f6208f7bba45d993f56 *admin/member/template/verifyset.htm
21c33098168015eddb336ee1cd37a3fd *admin/member/template/verifyset_edit.htm
195c8df5cf7774cf82ff7cbd6d87bc07 *admin/member/verify.php
685c87afd431f0e617cdf8760f7b6804 *admin/member/verify.php
449d0edcd96dabe280d445408fa26c38 *admin/member/verifyset.php
0581feb012b1edb2c7f4b57dcba2c5c9 *admin/orguser/ajax.php
b0a59cf91fc5438aea9d5887677f0d2b *admin/orguser/dzz_app_orguser.xml
@ -137,19 +127,19 @@ b66c481771c3da042b6119ef956be56a *admin/orguser/images/themes/default/style.css
9ed4669f524bec38319be63a2ee4ba26 *admin/orguser/images/themes/default/throbber.gif
e4ed91ad5de8eebcfbcb0e94d4dac420 *admin/orguser/images/themes/default/user.png
93896df44bc705c81022aeb152d33917 *admin/orguser/images/user_bg.png
7c8afcb59eb336d8decb1f7b66075581 *admin/orguser/import.php
02ad0340678670df6ff375dccda9440b *admin/orguser/import.php
328456cb05d0366d7bd28a2a55588e01 *admin/orguser/index.php
7f51291cb835a2a59a5d1a1d9fb1f260 *admin/orguser/language/zh-cn/lang.php
ed6bf5b6831d19f1148ab828c61bef63 *admin/orguser/scripts/orguser.js
6c7c2b4c5b37004cb4ad8ef89fbabc83 *admin/orguser/template/adduser.htm
963b4fb863272a1f2967f02c8415f6db *admin/orguser/scripts/orguser.js
1349e1c9f427e434c43cad45655c62a0 *admin/orguser/template/adduser.htm
8b68f310214b65d9960658edd9aa07ff *admin/orguser/template/detail_org.htm
a1ba58645da58921c4deddff284dacd4 *admin/orguser/template/detail_user.htm
c8ae0c28e030bca63a18469010b1612e *admin/orguser/template/edituser.htm
b9187cf38be244e7e87aa2bcdce144a0 *admin/orguser/template/edituser.htm
ee188d05e058f2c3030941b3c3bef1b0 *admin/orguser/template/export.htm
cd4075afe95addd6a1dde7c90647dae9 *admin/orguser/template/guide.htm
5bb95d9914284024bfbde8e8cb60286f *admin/orguser/template/header_left.htm
497f0e395a23b521fbc1cfa776d10f41 *admin/orguser/template/header_search.htm
4513c4d0e712f3d6d976242f8cb8a7e7 *admin/orguser/template/import_guide.htm
9c53a4118061b28dcd75230935e4b4db *admin/orguser/template/import_guide.htm
780adb4e888b07bbb23465c35f27b124 *admin/orguser/template/import_list.htm
22406b2e5991a5359b8230f90953b4a0 *admin/orguser/template/main.htm
5afe9ef3efc2f8479e53236de858e701 *admin/orguser/template/profile.htm
@ -167,7 +157,7 @@ b765d84edd07b710d40795eacbac9b34 *admin/setting/images/0.png
83901ce79bb088d33639e8b0793dd022 *admin/setting/images/template1.jpg
d7c3760175ba38a52cc1a91023a3bf5b *admin/setting/images/template2.jpg
2f819e15ed963ee87da7cdc5bfd2744c *admin/setting/images/template3.jpg
58655ca2cfaa0c13228ff03851b20647 *admin/setting/index.php
779ad97fb15fc0a64079f331e74f3885 *admin/setting/index.php
8e6ea53e403536b5111de5bd1dba50ac *admin/setting/language/zh-cn/lang.php
4efb844e384283cb9f326fab554fe6ff *admin/setting/mailcheck.php
cca460363ba240cd8b70de3e1ce93527 *admin/setting/permgroup.php
@ -177,34 +167,17 @@ dd9782184510489aefd44425ece0b198 *admin/setting/template/assistant.htm
5bb95d9914284024bfbde8e8cb60286f *admin/setting/template/header_left.htm
2be011b50cad3167550571b12f2e1ed9 *admin/setting/template/left.htm
0c94f48220af46f4c0e1e19883af190e *admin/setting/template/mailcheck.htm
6ce565208ebc28d090530dca2c3e4fb1 *admin/setting/template/main.htm
209d5226b35fded216412d0f49a0973a *admin/setting/template/main.htm
38a288d3c5888d318a541b7efa8bf061 *admin/setting/template/perm_group.htm
974cc5101006b66f96b1932dd6b2f9d1 *admin/setting/template/smiley.htm
08faf8f44f67eacb7c3a23109edbd913 *admin/setting/template/smileyedit.htm
350ebaeba5841f728b35fafe7ecc77b6 *admin/setting/template/wxsyn.htm
67f9feb273a4027516371111ef82573c *admin/setting/upload.php
d2bfa03bc13c4572845f9dba026fe201 *admin/setting/wxsyn.php
bda9365eecd8ba85a32ed1e8c171b91a *admin/setting/wxsyn_down.php
0596ccb56c8a8dc08fa2c217346cc921 *admin/share/ajax.php
ce0118c248a0471ad331fc5e9620535d *admin/share/dzz_app_share.xml
3ce7b7f807d0f663831f98c224a27079 *admin/share/images/checkbox.png
5b3ac58fc29ecc1622cfc845c5c4d310 *admin/share/images/locked.gif
b8671da22d7216797b78c4fb667c97fa *admin/share/images/locked.png
5843b9fc18df7200389c69d872348f6c *admin/share/images/selected.png
c5b13e6cdfe91855a872d962f93aa492 *admin/share/images/share.css
2352874b5f636ca331fe9509a2f9bdd7 *admin/share/images/sort_asc.gif
d104fcf119d40c51554ddb8b377142e5 *admin/share/images/sort_desc.gif
fdd2639e71b3ecf2d46ab060fba5f515 *admin/share/index.php
3391357004df104ceb6081fda70a1041 *admin/share/language/zh-cn/lang.php
ab196ffc35f8b98049dcf39675d7444c *admin/share/template/header_search.htm
e8a95727d570120ecfca07f5b16075f7 *admin/share/template/left.htm
8767adc8c21952cd05743dd57cf8b543 *admin/share/template/share.htm
ee848010db9a3f161df9f438ed7a9889 *admin/system/cron.php
a17cd6ce62918c025e093399f1e56490 *admin/system/database.php
5b2e345f0e6c51c8b3aaef74074f045a *admin/system/database.php
8d7c07092d47f55663ca434b39de7032 *admin/system/dzz_app_system.xml
e47256d23636eb3804995d964212df79 *admin/system/index.php
e9b2426f3829bb74dfd3d605dc414e62 *admin/system/language/zh-cn/lang.php
44df4859dde5cd8ced798b9f12970101 *admin/system/systemupgrade.php
6e4eadec51a48a5007a23e502d5a4355 *admin/system/systemupgrade.php
e20e686567f3687922fb302ba805b956 *admin/system/template/cron.htm
ca1b28e030ced95bc1b2d3a8395a0c12 *admin/system/template/database.htm
720f28a01c9278ec17b75082e696928a *admin/system/template/left.htm
@ -226,9 +199,8 @@ dca7feaeaecbf7a3a4ca643b314bceeb *admin/systemlog/uninstall.php
5bb95d9914284024bfbde8e8cb60286f *admin/template/header_left.htm
1fec385d821c7a3884a5705aa6fc1545 *./admin.php
09920c28e407e3831bb20c614652f7f4 *./avatar.php
23f78c219293a7e7f5167013171a9203 *config/config_default.php
266cc89e747934800cfd66c3be589cb6 *config/config_default.php
99136f1f8b2b24c12000120ed2ab2c33 *config/config_frame.php
d41d8cd98f00b204e9800998ecf8427e *config/index.html
17b5c3b0f95e15f0734599c5dd16e05c *core/adminstart.php
46135ffbb393b51b168f31507e640b01 *core/api/BaiduPCS/Baidu.php
728d247907dfa6d5a70aef31c98599e2 *core/api/BaiduPCS/BaiduApiClient.php
@ -259,7 +231,7 @@ da9fde315737bbebb8bd6bd0ef9fd158 *core/api/qiniu/rs.php
6f599832ca3fded2c694bc42d01ac3e5 *core/api/qiniu/rs_utils.php
c558e210da4c7d6b86d5325467988dae *core/api/qiniu/utils.php
ceb292e4764a62ddf1a7e890fa7d6f34 *core/api/wopi/index.php
ea04a1df42129dd9a9879abe74ffa974 *core/api/wopi/wopi.php
cb85fadf5dd5ba7a72a3713e833eeafb *core/api/wopi/wopi.php
ecfb7f3b16abc36f8e5d57e1251d1b10 *core/class/cache/cache_file.php
429a01afbdeca7c93df2ad4bae3980d8 *core/class/cache/cache_sql.php
731e494c7d4cf8833967b87c63915ef2 *core/class/chinesetable/big5-unicode.table
@ -269,12 +241,12 @@ e914c1c998605c629042698c546d9b84 *core/class/chinesetable/gb-unicode.table
14bf991b0431396b48990a3b297dff07 *core/class/class_CException.php
f379c1822673f1081197ae14976034f2 *core/class/class_Chinese.php
45c1dd33e8e79e9983896a1726964c0e *core/class/class_command.php
abd334797460c53fc8a81620bb524c73 *core/class/class_core.php
4416b7f8cd45d1e53813c3b7f05d8601 *core/class/class_core.php
581b0b21604ee23cd14f548caf88f17a *core/class/class_DbException.php
3ce9db683150a76cd033167c7e281391 *core/class/class_Des.php
4719703ed3b405846258108237228a1f *core/class/class_FileDownload.php
632b1d48325f718b94626061b47c7bd5 *core/class/class_GifMerge.php
60a90d6874eab3de0fae96e8a47fff0b *core/class/class_image.php
9d4af0da8ff8b0418a7380a4c40783a9 *core/class/class_image.php
1b836428237ca8d2bb58695cbe37df67 *core/class/class_JSSDK.php
986ad79bf8a9bff90c64c82918c0fa74 *core/class/class_Minifier.php
8987c817fd10d12a23dc995a40e00869 *core/class/class_PHPExcel.php
@ -285,7 +257,7 @@ c72c0c4c7ab60a46afc34a6ac1ac801c *core/class/class_qyWechat.php
410c9e016d2bbc91c51af4897cae9019 *core/class/class_template.php
e919f32dbde540fc7bc7613e3b7db7f9 *core/class/class_uploadhandler.php
707d3ad1748a53deb8d139c0d6f6cdfe *core/class/class_Wechat.php
e569bf1de139a7dce62d8442a5acc568 *core/class/class_xml.php
aad678f562cc69d34e1a52f249e45ec1 *core/class/class_xml.php
5ecbae2549bd8d3b1ad6a7123a41d862 *core/class/class_zip.php
fa9de8fcb879e1c72f765268f798393d *core/class/class_zip1.php
f06571c2d1d260c9f4a4bab49ad1d0fa *core/class/class_ZipStream.php
@ -295,9 +267,9 @@ a5ee1ee82acf648f07127353f8b2116b *core/class/db/db_driver_mysqli_slave.php
8d33849f3d582eb8faa608386105a28e *core/class/db/db_driver_mysql_slave.php
aa439e22adcd2c891dc614294517c6f4 *core/class/dzz/apprun.php
5c421f32cbe73f55fd2ee6b738d4236d *core/class/dzz/config.php
a3bfcbfd01390f69a9b5ae222d1d8959 *core/class/dzz/datareturn.php
a3bfcbfd01390f69a9b5ae222d1d8959 *core/class/dzz/Datareturn.php
de5663485ca8d68bb3ab6f460685ac49 *core/class/dzz/dzz_admincp.php
84f3eb4c356dd18f875641de8c6eaa08 *core/class/dzz/dzz_app.php
9c781121b82726ff81c1652069a1c7a6 *core/class/dzz/dzz_app.php
91adfa54c54bf8db812f4b65e5f2f2c5 *core/class/dzz/dzz_base.php
3918258ed5ebdbed13efe8a563f1f7e1 *core/class/dzz/dzz_censor.php
5f0774d004cd5e8dde0ece8f83626c32 *core/class/dzz/dzz_container.php
@ -305,18 +277,18 @@ de5663485ca8d68bb3ab6f460685ac49 *core/class/dzz/dzz_admincp.php
d4504e1ba91d3577827fff6f326c1603 *core/class/dzz/dzz_database.php
0cb79bf8363dceb6fe1509799fd4cb40 *core/class/dzz/dzz_error.php
52a5b6b92b54e82e1564f1b613d852e9 *core/class/dzz/dzz_ftp.php
01d34b319da8e96c20b1110a1c47450c *core/class/dzz/dzz_io.php
d9e971b92a8fb153966dda3b575f048b *core/class/dzz/dzz_io.php
ef217cab20e4391a31198ea4cb47ecbe *core/class/dzz/dzz_memory.php
eb5c167211bc5df07bcb8dad61c3649a *core/class/dzz/dzz_mime.php
0c20769180e19a1160b859f8b7b4ec8b *core/class/dzz/dzz_mode.php
5df7d61f22109eed380ad8ee07bff378 *core/class/dzz/dzz_notification.php
dcfe326238b95cc4507a0e2428882777 *core/class/dzz/dzz_notification.php
6e5edf97d402f3da32d57507d60c3f81 *core/class/dzz/dzz_process.php
f6da4473134a84fd321b7c38b7049c69 *core/class/dzz/dzz_session.php
52179613a0b32abcc5e90307ef84cf7c *core/class/dzz/dzz_session_close.php
00961aa427aeb7f054ac7251d9110c97 *core/class/dzz/dzz_sftp.php
af8a8b3cdd6cbd7a5c5e510a5fd7b58a *core/class/dzz/dzz_table.php
f076e75181a19fc4623cbfc9c5a3aa3c *core/class/dzz/dzz_table_archive.php
5663c7fbffcea14593ec016e4559ca01 *core/class/dzz/dzz_upgrade.php
434da5c3c35f95f33f84119246028de0 *core/class/dzz/dzz_upgrade.php
93bd7052342fff7ec1eb0c107986c192 *core/class/dzz/dzz_upgrade_app.php
81436a74a8db58c639dc617c3f5bcc13 *core/class/dzz/dzz_view_mode.php
9a560e743bd7c0642537e635fcfad2cd *core/class/dzz/Hook.php
@ -328,7 +300,7 @@ d92d3c5fa95f9400ead652f4af451159 *core/class/dzz/route.php
e49c3bae8780823c440320a0811002f4 *core/class/dzz/Tpdb.php
586276596952c421a8fe66588c545a1a *core/class/dzz/Tpsql.php
892c4d10eeb365e00bb8ab69e7407945 *core/class/dzz/Tpsqli.php
f506b5ecfd4adcc9927f2b802598d72d *core/class/helper/helper_browser.php
5afac2fd7c46fc369547b89096f6b1ff *core/class/helper/helper_browser.php
0ab7e122d9219c694379f6d66fd8110f *core/class/helper/helper_config.php
69bdb93a25987843f92cf86888fcedee *core/class/helper/helper_dbtool.php
03d001a775d61b78a731609a1a8cae05 *core/class/helper/helper_form.php
@ -336,14 +308,14 @@ f506b5ecfd4adcc9927f2b802598d72d *core/class/helper/helper_browser.php
8531c5986295c9a1922e98aee625e3df *core/class/helper/helper_log.php
95880c795414dd0afa1b0c5bea1b28cb *core/class/helper/helper_output.php
fc1a3aee7b9c57c86e678e1fb5ca4c19 *core/class/helper/helper_page.php
9ac5562335395e3a35968e0351478595 *core/class/helper/helper_security.php
db84946a56450d9e7a59a560d89cc51e *core/class/helper/helper_security.php
32f0ac45d5e6cc280f4ef9f5aeefab14 *core/class/helper/helper_sysmessage.php
3439600362cb0d913ff506684e108985 *core/class/helper/helper_util.php
7bf96e081815be033a1172e0b1c7a4c9 *core/class/io/io_ALIOSS.php
19791b917ad5b7eab111b7b36957b48c *core/class/io/io_api.php
a43090149d42bdd7ec9e08abcc5d4e71 *core/class/io/io_baiduPCS.php
00733138accf395cac74e1029e71f766 *core/class/io/io_baiduPCS.php
7a30c4e322b5ed41c06c648411500576 *core/class/io/io_disk.php
e55cfdd6a21a2368c5802bf2b0235448 *core/class/io/io_dzz.php
ee78e7628ecb0c956ca9b39046542fef *core/class/io/io_dzz.php
e9a046f8a52aec03b58e7fe93752a4b8 *core/class/io/io_ftp.php
65f6a912c91184852ac8fd6b1ca46f71 *core/class/io/io_OneDrive.php
48b9924d0fc7abd3c61aee349a350db0 *core/class/io/io_qiniu.php
@ -351,11 +323,11 @@ e9a046f8a52aec03b58e7fe93752a4b8 *core/class/io/io_ftp.php
2043a83f4174b5324560eb9b384dfaf5 *core/class/memory/memory_driver_apc.php
54dda3ac75d87081e56d4c7dd696633b *core/class/memory/memory_driver_eaccelerator.php
28e50565d89e5912dfc110e0d3a03417 *core/class/memory/memory_driver_memcache.php
b6f9d067bb2daa2c45c69548d163a013 *core/class/memory/memory_driver_redis.php
e6affa982f81ae228caa0c989738a397 *core/class/memory/memory_driver_redis.php
9171a62d7d35e654c2127fecca81a448 *core/class/memory/memory_driver_wincache.php
e4afa33b2dfc7d77d004b8fc0bca2a72 *core/class/memory/memory_driver_xcache.php
e3889b97f905a8cf85b04229a5cfed3e *core/class/perm/perm_binPerm.php
396fd6ca6cff8c3e6cec0cfa046510d2 *core/class/perm/perm_check.php
3612b3fc10285f3c8df40645e1c70503 *core/class/perm/perm_check.php
b20ab4c389e6ba952dd75e39c92d83f3 *core/class/perm/perm_FileSPerm.php
d5ab9253e0657f0b179631838da82373 *core/class/perm/perm_FolderSPerm.php
7f514b8f61b36c8de14d9f53c5ee8882 *core/class/PHPExcel/Autoloader.php
@ -599,7 +571,7 @@ f01baefae751e4356b2371a16a5cf5c2 *core/class/table/table_app_relative.php
269f7123de14877ebb542e15ec5bc153 *core/class/table/table_collect.php
2b7614fbe606c470ea0b5f0b1d8710c4 *core/class/table/table_comment.php
a5eecd0dd840a4032d28a07fecb16cb2 *core/class/table/table_comment_at.php
191c7e370c88946e2c234eb8616bda25 *core/class/table/table_comment_attach.php
026f27eed5d40316b7641ce614538421 *core/class/table/table_comment_attach.php
9b0d3df264662c2f126bb6726bb54348 *core/class/table/table_connect.php
f7b6e998e6e32083de6fd5464d7317d4 *core/class/table/table_connect_disk.php
3f3f225daf9fa2d44fc03cafd54455eb *core/class/table/table_connect_ftp.php
@ -612,37 +584,47 @@ e7500c15cb7641082de4d2cbb1f29e2e *core/class/table/table_cron.php
3f5d91e94299cfb6373fbd2c7fee1e47 *core/class/table/table_document_event.php
26f85ab5e5076377d4e448ae9719b353 *core/class/table/table_document_reversion.php
b3e80746173074e9075c5bbf3136c0ae *core/class/table/table_failedlogin.php
1698fa73d82b5728ac3dbfd25edcdb60 *core/class/table/table_folder.php
fa9c92993126482ca261226b11f2f80f *core/class/table/table_feed_at.php
90ac03b7504f7bdc793ab414e019a503 *core/class/table/table_feed_attach.php
79c62b854612b740692980432fac51f4 *core/class/table/table_feed_collection.php
9263fa4228fe969e3704e6f96e1c06a4 *core/class/table/table_feed_post.php
9c4d1fa678e3458ef399a55f6d12e663 *core/class/table/table_feed_reply.php
cc20e52e401eab6a5df9b8664074f52c *core/class/table/table_feed_thread.php
13de4a7ffd7b471e38bafadbdf17591a *core/class/table/table_folder.php
d21f6a965bb99e54d00f47fdedfec495 *core/class/table/table_folder_attr.php
711bed5d3de20aff6e476259c42eb2ac *core/class/table/table_folder_default.php
5849df89b59dbc51f9cffed0e2389d54 *core/class/table/table_hooks.php
807b32194e1128467552a1b72ecbdf80 *core/class/table/table_hooks.php
9f535b0fb3c7d29355f2ca12a5d820ec *core/class/table/table_icon.php
b04b6b407ca658549cdf211a21a53050 *core/class/table/table_iconview.php
24bb041d2d61827a2537958d39cd3c2e *core/class/table/table_imagetype.php
f668d913d16288c27880d17bd20639ea *core/class/table/table_local_router.php
165cb100356fe52c78e5bceb4abf8cee *core/class/table/table_local_router.php
c04f3913aac69d2c21d84142a15db2a2 *core/class/table/table_local_storage.php
c71baa033e08eabf9ed83418ec05f073 *core/class/table/table_mailcron.php
074bc5e1b90961f768a1bfa294786f39 *core/class/table/table_mailqueue.php
36b8f0ccf06f74762a49f9be46363aa9 *core/class/table/table_market.php
331e68a091e59866fdab1a1ffe315860 *core/class/table/table_market_class.php
37d6220d3559f89e624dd629c34cba23 *core/class/table/table_market_developer.php
cab81ce9cdd9b5738566f5722fbe3665 *core/class/table/table_market_field.php
b07a37b2b1029450e951600439afdcce *core/class/table/table_notification.php
018c57fdf8e98caa2f3ec0ad514d0b0e *core/class/table/table_onlinetime.php
d17616ac47e861ba227322c98ccc454c *core/class/table/table_organization.php
3b113c502933cc243e8f72b163fd5741 *core/class/table/table_organization_admin.php
096ef3f7b9ae1117de08c0ff67f1a858 *core/class/table/table_organization.php
57b04631c2ccabc98c514d6eac02929b *core/class/table/table_organization_admin.php
f5e3e7ceb99da1ac14e826b997cb8757 *core/class/table/table_organization_job.php
5be3037a987d3c456eea51c7d26d49c2 *core/class/table/table_organization_upjob.php
3f58af08e1f713505e56d4064bc17c8a *core/class/table/table_organization_user.php
541167a535740b1451676ce9364a2902 *core/class/table/table_organization_user.php
6f3e7d98422122a98d5b61ff47f734ac *core/class/table/table_process.php
07780bac6c79b0679e68033a85e84123 *core/class/table/table_resources.php
f5724cf7656b669330ccf88d61f38f92 *core/class/table/table_resources_attr.php
e7b6a1f01f0962866034cd27537a978d *core/class/table/table_resources.php
83880bdde28232dcf7379e72bbc01601 *core/class/table/table_resources_attr.php
0c5653e1fc3cf578e0f67704b595d187 *core/class/table/table_resources_cat.php
2c66368d17f62a69a7fdaace083d6a01 *core/class/table/table_resources_clipboard.php
4e2e767ece895087567aa687fdbb21e5 *core/class/table/table_resources_collect.php
55ea5ffa4414995bcbd0ca63c0f24dd7 *core/class/table/table_resources_event.php
7e4e6ca65ddd7c42918ddba963625150 *core/class/table/table_resources_path.php
2da6c38588059d6d2527e50b3c1a6171 *core/class/table/table_resources_path.php
05db9f79c46c41fd8ec7a364d8a43932 *core/class/table/table_resources_permgroup.php
0775d26bdb64d7397776f8743a298231 *core/class/table/table_resources_recyle.php
6bfe3e068d5826e23f404c7b8d048fd2 *core/class/table/table_resources_recyle.php
c87db2542ecf9d63f67a7f021d1b2ac7 *core/class/table/table_resources_statis.php
83e575093d6f2e813baae62db3c08303 *core/class/table/table_resources_tag.php
3340ab472f43c3ea64f7be93fe9b4fea *core/class/table/table_resources_version.php
a3c2355198bb40c0294696fd7b584712 *core/class/table/table_resources_version.php
6c5ad047f0787a52397bf525ac819dab *core/class/table/table_session.php
35111db3ec2ac5d6ef06f9444c731665 *core/class/table/table_setting.php
bf9165ba9903ee75160f7d72a438708d *core/class/table/table_shares.php
@ -651,15 +633,13 @@ c60e2abf3fc9213ef8c68c055ad7640e *core/class/table/table_shorturl.php
4bfd1f3f64f71027489b13a35a6f796c *core/class/table/table_syscache.php
7d1f96ba8053bbac76cbf38b0ccdec1c *core/class/table/table_tag.php
b79e9b3b2dda9cabb829930e6834add7 *core/class/table/table_thame.php
8d3b711788151c0ad6fb9c629203b07b *core/class/table/table_user.php
2e3332296ce5fa69554dfd8c8e3293ef *core/class/table/table_user.php
7d7fa83769645842594a296d20ac6a61 *core/class/table/table_usergroup.php
695311cdc7baf197d0568ebb9f36bb43 *core/class/table/table_usergroup_field.php
81c66178196d5373fa84f9e8224ec5cb *core/class/table/table_user_field.php
fd8f3c37978c4fb12efeac33b671e236 *core/class/table/table_user_profile.php
324475984445ae35d2947f0778bc57f5 *core/class/table/table_user_profile.php
66dcfe5a1a7c72d5600e6cb89ffee519 *core/class/table/table_user_profile_setting.php
aa4e02be436ffe5f49cb9f5a0b1c3a9a *core/class/table/table_user_salf.php
d962fc8fa4385d7a0f891aa73e5faf7c *core/class/table/table_user_sdk.php
15cb62196d02ecc328804f7542621e05 *core/class/table/table_user_setting.php
b5c87242389ec8fb33a71922db91b4b4 *core/class/table/table_user_setting.php
855ff57bf61027f8334e56b728f745f4 *core/class/table/table_user_status.php
8ca018fc835a50d50d11dec02c531961 *core/class/table/table_user_verify.php
fb5df76186947374235edfb3860fa66d *core/class/table/table_user_verify_info.php
@ -668,12 +648,12 @@ ebf391291e92075c3ce7b7c285cf13c8 *core/class/table/table_vote.php
95510145cfc3f0f7f8aa310f3fe874d8 *core/class/table/table_vote_item.php
6ee1d1ad1b9cccabf10eff0b2d1eec7b *core/class/table/table_vote_item_count.php
14ea64ba36379648a043c384dc9b0c50 *core/class/table/table_wx_app.php
91e87b3ea4a55ed25a25750f172abe64 *core/coreBase.php
f420371dfaaa53f631c72b9b7cc95856 *core/core_version.php
cf8d43fc516021e7cd5644de3155319f *core/coreBase.php
fbca4cd8327b06aed44dd8c01dc4ed56 *core/core_version.php
e5973e34787ad5bd32286eab3a9a758b *core/cron/cron_cache_cleanup_week.php
52e52d8c88376dea6200039170562001 *core/cron/cron_clean_copys0_attachment_by_month.php
b7a021218c1a6253ba85fa35559f8217 *core/cron/cron_clean_copys0_attachment_by_month.php
24a84f90b0839e8e6a3e697da7896f5d *core/cron/cron_clean_notification_month.php
0c427b615617ae65b31eb667f27ad132 *core/cron/cron_database_backup.php
6708d3f41fb5435a08994f5cc38cab46 *core/cron/cron_database_backup.php
aef39338edf00b040abc6db5fe1ec843 *core/cron/cron_fragment_cleanup_day.php
ea44194d8583db2c3333a91d1ddad5d0 *core/cron/cron_getAtoken_by_Rtoken_week.php
928f636606eab8c241f79c32dcbf30e8 *core/cron/cron_imgcache_cleanup_week.php
@ -692,7 +672,7 @@ f2adbe22f5fae255c730024998283b74 *core/function/cache/cache_usergroups.php
76d1658764d98655606c1a67c68712bc *core/function/cache/cache_userstats.php
3b17eeb2d84ce01d3e7df337202e6352 *core/function/function_cache.php
2b96127ffb53498611ed69a22f7bfd55 *core/function/function_code.php
271af7e1c0dd482a36cd3e23a278db8c *core/function/function_core.php
c71e226d059f724417016984325737b2 *core/function/function_core.php
1c007b07588eb2dc1054eb46f7143072 *core/function/function_filesock.php
0c97b2967d924bbe3e88d1821e730fee *core/function/function_mail.php
eb2fc5813f9b4da92c7e4927ee2edd61 *core/function/function_message.php
@ -700,9 +680,9 @@ eb2fc5813f9b4da92c7e4927ee2edd61 *core/function/function_message.php
bf630cbd6caa4024e16fc62301eaff12 *core/function/function_organization.php
eae202687756c11c51cb9d972b04ccef *core/function/function_seccode.php
fb2092242775371cc2fd1ea2251c4e33 *core/function/function_security.php
cec7758f62ec177ad0883fec816dd391 *core/language/zh-cn/lang.php
ab937389810430e132b6c86faa387e01 *core/language/zh-cn/lang.php
09a93b7ed07a65d0897ab635ce69062c *core/template/default/common/about.htm
af38fa2bafdb5c711f56e3d163f4d3f2 *core/template/default/common/commer_header.htm
3934332340f3f0890096120d2a42a042 *core/template/default/common/commer_header.htm
24365d785caa54cd1fd94dc08a3ae9d1 *core/template/default/common/footer.htm
dcecf9502c1ceadebea0ae4c229d3364 *core/template/default/common/footer_ajax.htm
9aca73d28649b755b4a8b75e87fcd8aa *core/template/default/common/footer_reload.htm
@ -716,12 +696,13 @@ f67de157cbfceb3ecbaa040471176538 *core/template/default/common/header_common.htm
ec6eb1a7a88e529a43df62b8f3af204b *core/template/default/common/header_right.htm
9de4659d520e3bbae0efdd85af2c1652 *core/template/default/common/header_simple.htm
2d3290bd2d37e19040655c5fcaf7ec4e *core/template/default/common/header_simple_end.htm
632e88d37340014c63ae7e9f473083f2 *core/template/default/common/header_simple_start.htm
62944c1f167d8a87048d80d89aeb39fe *core/template/default/common/header_simple_start.htm
d6487a677351f23ca8d84b6153963bd1 *core/template/default/common/header_simple_start_none.htm
074801b30c5e8b069f72818e630edccc *core/template/default/common/header_simple_start_shou.htm
0036c55188791f5520f336fa596c0c4e *core/template/default/common/header_start.htm
f20c98c7804c6d50a2a5108feb2facee *core/template/default/common/mobile_about.htm
028400f85b4cea122460713a0e8a8c3a *core/template/default/common/mobile_simple_end.htm
f23fec3884a9633ec1a218295fb3c64a *core/template/default/common/mobile_simple_start.htm
68ad818529d45d119a84cd743cd2da14 *core/template/default/common/mobile_about.htm
028400f85b4cea122460713a0e8a8c3a *core/template/default/common/mobile_simple_process.htm
c7fc67eea17c110556f811fdfc07b566 *core/template/default/common/mobile_simple_start.htm
4998c1105a464ced43aa0eb9bbaf3756 *core/template/default/common/safechk.htm
79fa787397d5da73910266ef70cb3c34 *core/template/default/common/seccheck.htm
1cb4d8cee04c97c0a580f882bc9da940 *core/template/default/common/showmessage.htm
@ -731,7 +712,6 @@ f73b4e96153e7d5e10de63aa55c31007 *core/template/default/common/wx_appinfo.htm
9990d7555fdf8210fa4a2a8672f20fd5 *core/template/default/common/wx_menu.htm
768cfd48e43c4a205b1d40ab82acde57 *core/template/default/common/wx_mpinfo.htm
2c434d049b105f3f51bb1d6d7da484f1 *./crossdomain.xml
76816fac64e42999777a36595254a639 *data/attachment/.htaccess
488bcacd7cad8d74d8e5641224b14ab4 *data/attachment/appico/201712/21/103805dczcm89b0gi8i9gc.png
dac24e24bace4acd73c2a5d1612d5d09 *data/attachment/appico/201712/21/113527zz2665xg7d3h2777.png
7009fe55c04186e21da269e88eeb76f9 *data/attachment/appico/201712/21/123754pb0s666i6sjws1jc.png
@ -788,7 +768,7 @@ f8aec68ab3d16b5b9b2912b2291f0e3e *dzz/attach/ajax.php
bfa6363585dba0346a8ce9f895c26d26 *dzz/attach/controller.php
2784dcca3d8a314c438fc5cc02175317 *dzz/attach/down.php
db79e7752ea9464ede864e1a0a1bb319 *dzz/attach/preview.php
2f782fcdefb8b1ac41d48d4af3202b60 *dzz/attach/saveto.php
cbff3d02cf14de4b505ad7de059e9762 *dzz/attach/saveto.php
d14686608818ee591868ea028cf6affd *dzz/attach/Uploader.class.php
272a7b7e1883d1b12c77f65fbf676a05 *dzz/attach/view.php
f79e3c61653f067e72141e72cb510e52 *dzz/class/class_caiji.php
@ -796,10 +776,10 @@ f79e3c61653f067e72141e72cb510e52 *dzz/class/class_caiji.php
6911980da1032262c22f51db577ac3f5 *dzz/class/class_ico.php
13c254265bb582c52f96d64971ab24df *dzz/class/class_json.php
5c181de058570f574b29ff49c38261df *dzz/class/class_UploadHandler.php
45966ced08482af2d9800ac62a573e16 *dzz/comment/ajax.php
37bbaae3190656b7321f3b9ef1ededcf *dzz/comment/ajax.php
2129c5b4c274321aedf505fa2e89241f *dzz/comment/down.php
157fa913142a749610d08a99bebbb553 *dzz/comment/dzz_app_comment.xml
1cdcb020a32eecafbdee9cd33db2152b *dzz/comment/images/comment.css
95cf0878b95e6798869a56ea49bf997b *dzz/comment/images/comment.css
523a6426ca3bf24d068f24f0afb7bb68 *dzz/comment/images/comment_triangle.gif
b5e8fc70c992e4311bb6b762161d924f *dzz/comment/images/icons.png
8c108cb541f9fadbd45e0d1dd91b60d7 *dzz/comment/images/ico_feed.gif
@ -821,15 +801,15 @@ dbc4562b881658c2328a46c73ba5b77a *dzz/comment/images/video50.png
805e9d70e907f9b8151c43357de8af77 *dzz/comment/images/zoomin.cur
e5f236bf2b60f8c8fc1867d70636a046 *dzz/comment/images/zoomout.cur
c23e65a7cfa12bd4ba82c8495df4b4a8 *dzz/comment/preview.php
3b6e6513c8d274920272df89ecc84d0e *dzz/comment/saveto.php
6c73a1c731dc4c91f4cf51c355fd48a0 *dzz/comment/scripts/comment.js
8f9d52929e11241382cdaae64834db1e *dzz/comment/saveto.php
256106dc16f0196e589c657117d36de9 *dzz/comment/scripts/comment.js
e4f08555a17775cdb96f0b83cccef3bf *dzz/comment/template/ajax.htm
4c55a7e1ce9007bf50153f950f94e76a *dzz/comment/template/edit_form.htm
5fce1becbf1bf6d33e358bc1926cd1ff *dzz/comment/template/publish_form.htm
46b0e72304839062ad3e12fd60fbbc0b *dzz/comment/template/reply_form.htm
cd3414faa581412247c007e9254bcb1f *dzz/comment/template/reply_item.htm
2fb608a4289e09b1915a620aecfe7b9c *dzz/comment/template/thread_item.htm
0692cb2ce17440c128e97ff5df411c22 *dzz/config/config-sample.php
a522cfcda55d2d773258cb6eb07ba72a *dzz/comment/template/publish_form.htm
8abf1ad4c650c7a6c7061017d517c79e *dzz/comment/template/reply_form.htm
2da1b37ef46b0ce6a0cc8cda00a7cb0b *dzz/comment/template/reply_item.htm
558b34d8891a591d3ae40c2f8245f583 *dzz/comment/template/thread_item.htm
07c451588feef0d0745ba7aa568bd7ed *dzz/config/config-sample.php
6d2550a5c92115cf0a7cd988517679b3 *dzz/config/config.php
1c23481d370408e07ef71c36da36d6a4 *dzz/connect/addcloud.php
4359bafb633e6ec623c583d39e915a81 *dzz/connect/ajax.php
@ -879,7 +859,7 @@ eab7b77fc556c19e0d47ad48cecb6587 *dzz/images/cur/aero_ru.cur
173fe4c17631ba7789f03f42df06f3be *dzz/images/default/delete.png
8ba563a37aeddf42c0433f63aa6c43ce *dzz/images/default/e.png
88c2a4a8ef5a02e82c6715155b645ce0 *dzz/images/default/icobg.png
8ba563a37aeddf42c0433f63aa6c43ce *dzz/images/default/icodefault.png
08036e4f06503080e1f4dea72cf140ab *dzz/images/default/icodefault.png
4836e477448b514ed4316723253dd9cb *dzz/images/default/imageloading.gif
a69a0a404fedd3a334f295db86001589 *dzz/images/default/loading.gif
25b023c9a97dc186e7ef8283c67af083 *dzz/images/default/loading.png
@ -958,6 +938,7 @@ ccd2210801aa8cf388d200899a62e9bb *dzz/images/extimg/et.png
27d3a7498d3b2430485b6168a7ab8216 *dzz/images/extimg/flv.png
21cbd600a6f15595bd2da3e064fd8010 *dzz/images/extimg/folder.png
5aa402aa67a5012673fc6fd25a5f60ed *dzz/images/extimg/fon.png
8fb5a1819e7f38a87006c9e22e8bbc2c *dzz/images/extimg/gif.png
e94d4351df4dd3a543218bdb65ee9c99 *dzz/images/extimg/h.png
d43fa8605d50920db6c4760b4603ed34 *dzz/images/extimg/hta.png
84727447c443eb20529f58be8261f322 *dzz/images/extimg/htc.png
@ -969,6 +950,8 @@ ab3f0ed10c01bd7e4390c5490aae2405 *dzz/images/extimg/ini.png
0927e53ea32041d948bb0c4314566e73 *dzz/images/extimg/iso.png
2c7e711aed0a955966289c67ba65cf24 *dzz/images/extimg/jar.png
8416d4f50341a3ef286ed33d0cb39233 *dzz/images/extimg/java.png
8fb5a1819e7f38a87006c9e22e8bbc2c *dzz/images/extimg/jpeg.png
8fb5a1819e7f38a87006c9e22e8bbc2c *dzz/images/extimg/jpg.png
e2dbad90a0f202c3df360229d0f0b17d *dzz/images/extimg/js.png
0d287047eff051cd870a77944aa198bb *dzz/images/extimg/json.png
7f3f894c0078c2dd5f517ba383701332 *dzz/images/extimg/jsp.png
@ -1001,6 +984,7 @@ df27cb50bffb010ac11a2b2b7546d878 *dzz/images/extimg/php.png
19cb95e098c2a5204acffa972ff24b36 *dzz/images/extimg/php3.png
08722aeed56e50d37692e2224512f3c7 *dzz/images/extimg/php4.png
e24fc1721c7a4609b4513543f8cb2d43 *dzz/images/extimg/php5.png
8fb5a1819e7f38a87006c9e22e8bbc2c *dzz/images/extimg/png.png
3cd97c1e359a13e45387ededb995284a *dzz/images/extimg/ppt.png
796944e10a4882a04db931454e44fb92 *dzz/images/extimg/pptx.png
e008a5717d253acff971e9ea142309f5 *dzz/images/extimg/proj.png
@ -1157,8 +1141,8 @@ b6a60060a023abcdb3316fdfc1a76cac *dzz/images/icons/xlsx.png
50c5e3e79b276c92df6cc52caeb464f0 *dzz/images/loading.gif
a3f446147e4e8c40f3bbb923a4a0b0ee *dzz/images/logo-blue.png
ea3e5ec285504e56213f8d3a75367195 *dzz/images/logo.png
aad44c277412d7d72795ad456e424840 *dzz/images/newfile/excel.xlsx
2a65b19ecc4a3a6d90f31c33e4567960 *dzz/images/newfile/ppt.pptx
fde5727e64f35e01f53b56f5b50fef76 *dzz/images/newfile/excel.xlsx
6541a5557bb885ede7d5587a44bc1641 *dzz/images/newfile/ppt.pptx
78c8ffe41469fd232c99c281ea1f8c14 *dzz/images/newfile/word.docx
ae9ca305f7567a9dff7d29d3920897ff *dzz/images/taskicon/appmarket.png
c0dbe83de0d8064f5c8e8dda42cf0a27 *dzz/images/taskicon/baiduplayer.png
@ -1206,14 +1190,14 @@ bef427cd859768705aaf16a15d5ae0b6 *dzz/images/taskicon/绯荤粺璁剧疆.png
bcf1b924f442bcf1c6be85f65f270334 *dzz/index/images/gitee.png
b8489fc8ccf934910c74b9672fabd893 *dzz/index/images/github.png
8e9ae687ea62ce7b672238c8c4914dfa *dzz/index/images/qqwpa.png
f70f496f5a7f9667b83e617a743c4e90 *dzz/index/index.php
cc91fe766b56fb7158fb18a1d299185c *dzz/index/index.php
4ce5d6c44e68a76f7a049f07c3fd39b4 *dzz/index/language/zh-cn/lang.php
c35a8d6e16d72b7abc7f0f8621ae38d3 *dzz/index/template/main.htm
5a0e0fc22591445b7f00801a79621cf6 *dzz/io/download.php
ad75c35fea05c9dc036d6464877c69ef *dzz/io/getStream.php
2e6fe45698d56a394705fd0150446d22 *dzz/io/setStream.php
429e9d9d6d2635386607cf3904f599f6 *dzz/io/thumbnail.php
25e67c63c456eeb63fb210e3cb87e994 *dzz/language/zh-cn/lang.php
0ed27c6f9475dee6ec4e033734bc219f *dzz/language/zh-cn/lang.php
11a39ccf47178d07f11e3fc2ffba0d3a *dzz/market/dzz_app_market.xml
325864d85a6d82fab3bb781291582669 *dzz/market/index.php
c62e6af65e69b6911e51422eb4ac7385 *dzz/market/language/zh-cn/lang.php
@ -1230,7 +1214,7 @@ d41f7962ad08e37707c943635dc3cae8 *dzz/shares/images/folder.css
01f5f471ba8adf97f7dd05e461f01f09 *dzz/shares/images/ic-files54.png
5b3ac58fc29ecc1622cfc845c5c4d310 *dzz/shares/images/locked.gif
b8671da22d7216797b78c4fb667c97fa *dzz/shares/images/locked.png
43a52f16c2cd1fff5c847a4bf2915f02 *dzz/shares/images/mobile/password.css
573690f8c52697f7d79a2c69fdaf80f3 *dzz/shares/images/mobile/password.css
325472601571f31e1bf00674c368d335 *dzz/shares/images/preview/b.gif
6276eb066bce3e9e2c383f998e3ac5cf *dzz/shares/images/preview/btn_switch.gif
c4b7eb55bc26adb07a8f56832265a041 *dzz/shares/images/preview/btn_switch.png
@ -1244,21 +1228,21 @@ f24228c3ce9b416442e4dfe16e3607c6 *dzz/shares/images/preview/popup_title.png
5843b9fc18df7200389c69d872348f6c *dzz/shares/images/selected.png
2352874b5f636ca331fe9509a2f9bdd7 *dzz/shares/images/sort_asc.gif
d104fcf119d40c51554ddb8b377142e5 *dzz/shares/images/sort_desc.gif
cdc6306e88e1a01d2aabb33183b57872 *dzz/shares/index.php
0ebf8e0dcc2fd976490c7e7ea32acf8e *dzz/shares/index.php
87b23c608c4792b3387087b753930eac *dzz/shares/language/zh-cn/lang.php
11120bacbe65d5f6da12937dc6f4e532 *dzz/shares/save.php
72c2bb771f482843842b91d1db8c22fd *dzz/shares/save.php
01845fd4def2e00884936b425489fe66 *dzz/shares/scripts/jquery.dzzthumb.js
911a507597916339c573e9ee23c70d15 *dzz/shares/scripts/mobile/appevent.js
33d111df3c8daabd4eaa069f191e05e9 *dzz/shares/scripts/mobile/share.js
09cac06217386208439a5eb77015fa3d *dzz/shares/template/header_left.htm
c2f1c155602dab063342eb6e6417fbd8 *dzz/shares/scripts/mobile/share.js
8ec65c3f33341493a5afd6a3814dd246 *dzz/shares/template/header_left.htm
55aa02ae164ebba0e2045d30a252e405 *dzz/shares/template/header_right.htm
c5e943686c5b9cb03bc0fbd3a9d6c6a7 *dzz/shares/template/header_search.htm
204cddb0a1724c8162fb5ab8df17d424 *dzz/shares/template/list.htm
51aaac8e9b282dedcfb84b3c1184084e *dzz/shares/template/list.htm
ac530a31f5733f204a0d725bc744b96e *dzz/shares/template/list_item.htm
3cd74c531537297004227957efc84f9e *dzz/shares/template/mobile/list.htm
4a9350f2c1dde16fba31d24d9259a367 *dzz/shares/template/mobile/list_item.htm
2ad5debd1cbab9b6cffcc20d2ee93f4c *dzz/shares/template/mobile/share_password.htm
61c0f69d827f1ace3455d0b2b4208574 *dzz/shares/template/password.htm
07982c7cbd7af8b1aefece190822f173 *dzz/shares/template/mobile/list.htm
9559db4aee8a4d55caa79c2f1a458e2a *dzz/shares/template/mobile/list_item.htm
64395b3a3d2410c87560620cf281363f *dzz/shares/template/mobile/share_password.htm
13a4556fe20b8d705c594d5bb7a8bea5 *dzz/shares/template/password.htm
7193f18e1398082a787280a118bf9dd0 *dzz/shares/template/share_password.htm
2352874b5f636ca331fe9509a2f9bdd7 *dzz/styles/filemanage/window_jd/images/sort_asc.gif
d104fcf119d40c51554ddb8b377142e5 *dzz/styles/filemanage/window_jd/images/sort_desc.gif
@ -1504,7 +1488,7 @@ dbc4562b881658c2328a46c73ba5b77a *dzz/system/css/filelist_middleicon/images/vide
d41d8cd98f00b204e9800998ecf8427e *dzz/system/css/filelist_middleicon/index.htm
d1105f6bae355149db115609331f4a39 *dzz/system/css/filelist_middleicon/style.css
9f7a958a07ba7262ccc1932745762070 *dzz/system/css/file_detailed.css
d69c9f897ff73db1de66b99aa88f5157 *dzz/system/css/mobile/mobile_member.css
4c45d673d159e1c14f7fce63aa686b37 *dzz/system/css/mobile/mobile_member.css
8a8d46c852e137917cb6f0d6c3988276 *dzz/system/css/rightmenu/images/icons.gif
a3eb71ed1cdb4911099b8ac05b715b30 *dzz/system/css/rightmenu/images/icons.png
d41d8cd98f00b204e9800998ecf8427e *dzz/system/css/rightmenu/images/index.htm
@ -1516,20 +1500,20 @@ ced974d5c685e5dfa0a37b824a6b5d48 *dzz/system/css/rightmenu/images/menu_split_dow
d41d8cd98f00b204e9800998ecf8427e *dzz/system/css/rightmenu/index.htm
cfa7986441440419e19c3d26d8d33f5e *dzz/system/css/rightmenu/style.css
e94ac8176b281956955e3b5425e1afc9 *dzz/system/css/rightmenu.css
9ef6a0705e8dd275e9c5d9fb8bad80c8 *dzz/system/css/select-file.css
02c6de9b35ac1e6c14ef0896ea1e986f *dzz/system/css/selfilewindow.css
8ca3f1a9c01e9034af0623aad3c80954 *dzz/system/css/select-file.css
d3177bffb8de1edd68bfc355b4bad158 *dzz/system/css/selfilewindow.css
4346053e0a14ad0c0e12fc4cbb9e16cc *dzz/system/filelist.php
566c12096002c83fd6c86138c0105f4d *dzz/system/fileselection/ajax.php
f548cd2abf7a7628de34b6e69b7bed30 *dzz/system/fileselection/dzzcp.php
deb93ffb11aa3f9bc66eb8516d9d51da *dzz/system/fileselection/explorerfile.php
f7eb5195424a01c126f3beef0c88378c *dzz/system/fileselection/file.php
f27bdeee2468aba8312415c366c7fa8b *dzz/system/fileselection/json.php
9eeed160ed69666ea9edfc9f0fc6ecf3 *dzz/system/fileselection/explorerfile.php
021cf9cdb7a12cd2831baf6b46504d24 *dzz/system/fileselection/file.php
1c8bf331f565f3fb7d8849a0dbaf26c3 *dzz/system/fileselection/json.php
770af22c62d69c69a9e4ac51cab56891 *dzz/system/fileselection/listcontent.php
429ad5760831ebf1adeba30cb97df24c *dzz/system/fileselection/listtree.php
5121fe8ef7dc91ab2d9998da25e01a34 *dzz/system/fileselection/listtree.php
add07479faf0fc31453f1aa961a2fad8 *dzz/system/fileselection/save.php
bfbee32ffe49867d146bf3ebcbd7ba41 *dzz/system/fileselection.php
566f25c2fe4e79b8cccbf7b7154c78e3 *dzz/system/filewindow.php
f92629a195d952a56ed79e7fc57b291b *dzz/system/function/function_filerouterule.php
6d2cd0fc5899ecb48e272fe2b18cde07 *dzz/system/fileselection.php
4d4aff3da2e4abfabe68c8d0aeae9b99 *dzz/system/filewindow.php
85abded6009c60b22f85097225b5dfaa *dzz/system/function/function_filerouterule.php
723b6c92c1bd9d60484fa92abb0c72fd *dzz/system/images/32px.png
ce51355f92c8fd6132e4b2c6609f7c9b *dzz/system/images/ALIOSS.png
ce51355f92c8fd6132e4b2c6609f7c9b *dzz/system/images/baiduPCS.png
@ -1567,7 +1551,7 @@ e4ed91ad5de8eebcfbcb0e94d4dac420 *dzz/system/images/user.png
4f94f0bf2df0a3b5fa89302a825f2cfe *dzz/system/images/video.png
69457ec0f7a1ab2bbea81c40588c4a10 *dzz/system/language/zh-cn/lang.php
e149fb1e6f94c1fd65604b7f8f2df0c0 *dzz/system/mobilefileselection/ajax.php
0f373db8b3eb92566b402cb25da4b116 *dzz/system/mobilefileselection/file.php
36cfa42ea2a66a591fb65fb5675e4bed *dzz/system/mobilefileselection/file.php
dd805ad49d4c46a8c74d1f02bbda8f8f *dzz/system/mobilefileselection/group.php
5d263468f47d57935011faad4760a4de *dzz/system/mobilefileselection/home.php
684fd045120bf39b57c64cc5502ecb54 *dzz/system/mobilefileselection/json.php
@ -1578,11 +1562,11 @@ dd805ad49d4c46a8c74d1f02bbda8f8f *dzz/system/mobilefileselection/group.php
b7bf7b9750777cb9d23c28d7a75c4b18 *dzz/system/mobilefileselection.php
82a67a5f019c661d52d6a7498b0d855c *dzz/system/mobile_selectuser.php
ef634dbd74bd1aa9b1eb51b5f700e11b *dzz/system/notification.php
4bab796b82b6560f0d29943405ea2998 *dzz/system/orgtree.php
881c39bbd2476e048d98ebe0c38e2cb1 *dzz/system/positionlist.php
ace7d3b5841589b6996af60e17262f1b *dzz/system/orgtree.php
466e69964c17c5e0c4597397769bd121 *dzz/system/positionlist.php
f67684dc7ed0453c8a592b61a8b1504b *dzz/system/save.php
117830959dd5ad2e68969ba95e2e8789 *dzz/system/scripts/contextmenu.js
bd41ec35a66e746c81e149df8f88e485 *dzz/system/scripts/explorer.js
8df67ffbc7d0662af75ce75587fe27ad *dzz/system/scripts/contextmenu.js
c4c9098f3a3252c6c7dccdf936031e73 *dzz/system/scripts/explorer.js
a788e955ad32ae1bfe871c56c5f33fbe *dzz/system/scripts/filemanage.js
e2ef57a7834817cb31f270a555f22a21 *dzz/system/scripts/jquery.cookie.js
0c9023c15701761e4d67554c6097553b *dzz/system/scripts/jquery.hotkeys.js
@ -1591,10 +1575,10 @@ edaf1176cc0dcd6b07ea287b6e46c3ac *dzz/system/scripts/jquery.jstree.js
529be43900119fca34f21961b4bb0e14 *dzz/system/scripts/jquery.jstree.min.js
911a507597916339c573e9ee23c70d15 *dzz/system/scripts/mobile/appevent.js
34251ffa94136ca327f73b910d5d95c9 *dzz/system/scripts/mobile/explorer.js
b9e07bd443863975e1e67ecef6042288 *dzz/system/scripts/mobile/file_keep.js
eea9a1aad3de6ef678b02a5409f042ff *dzz/system/scripts/select-file.js
eec205779f06850b23788bcbdb791963 *dzz/system/scripts/mobile/file_keep.js
fb080370c74a70f54dabd1780456e20b *dzz/system/scripts/select-file.js
8bdcd695f15e41197d7c0e23c207b505 *dzz/system/scripts/selorg.js
7ea0d16715b5854b1b18e1920fbee161 *dzz/system/scripts/selorguser.js
87b26c22b3634317270d4f44da2b07de *dzz/system/scripts/selorguser.js
eb12f0d34682685e9c0765c86f849230 *dzz/system/scripts/themes/apple/bg.jpg
84c5c7217fd02dc781c5bffd619e6f2a *dzz/system/scripts/themes/apple/d.png
8c304279c4e1d2ff621937a27c636f68 *dzz/system/scripts/themes/apple/dot_for_ie.gif
@ -1616,17 +1600,17 @@ d26c0f2c59237a6bdc1e9ca9a604075b *dzz/system/scripts/themes/default-rtl/style.cs
7b9776076d5fceef4993b55c9383dedd *dzz/system/scripts/themes/default-rtl/throbber.gif
0395803468e464876f63b25aea5889ad *dzz/system/scripts/uplodfile.js
14f91b4b5f7c7741f2dab03a97340206 *dzz/system/scripts/_hotkey.js
a5669344f30c92c568751f441fdf1739 *dzz/system/scripts/_perm.js
8b94bfe6ca28a2f1a030a1170373efc8 *dzz/system/scripts/_perm.js
8cc38e377cc8a6294ed6647cd224bf23 *dzz/system/scripts/_select.js
e28c28fc8b94e3aecab50d8a7b7c875c *dzz/system/selectfile.php
7722f936f4c2c3c283b6e72c30ef6ee3 *dzz/system/selorguser.php
b45249006fcb42321f23bd834f25a005 *dzz/system/selposition.php
ea612db9647dfa2f8f11d5bad239ae81 *dzz/system/selposition.php
dc1664a6d20210197360bba428c9de4e *dzz/system/template/app_ajax.htm
7771730702c65fcd8f51e3a9fb40c3b7 *dzz/system/template/filelist.htm
9184872d11d3b826cd6965a8379a7235 *dzz/system/template/filelist.htm
73cd8519b4ee8b4c2324fc0935455ef1 *dzz/system/template/fileselection/ajax.htm
02a807bc4a511347ab0f3f5efcdc76fa *dzz/system/template/fileselection/content.htm
d45f3e3b3efe2eabc577b2063080f857 *dzz/system/template/fileselection/index.htm
8f0d7ca6d3a70948721cda3b7a8013b9 *dzz/system/template/fileselection/listcontent.htm
b95ba99f2696cbde12732b83d2e5acce *dzz/system/template/fileselection/content.htm
776a90962af40fa1a2199f01c2614a00 *dzz/system/template/fileselection/index.htm
4a90743d744bd6ac36057b997aacf72d *dzz/system/template/fileselection/listcontent.htm
a73d4b733d3c1a54a25c1bba8449dc45 *dzz/system/template/fileselection/right_contextmenu.htm
6a38a1b2d567c40843bdc0080f8c9201 *dzz/system/template/fileselection/template_file_detaillist.htm
df4f41db142786f8832eb99c29f3c416 *dzz/system/template/fileselection/template_file_detaillist_cat.htm
@ -1634,23 +1618,23 @@ df4f41db142786f8832eb99c29f3c416 *dzz/system/template/fileselection/template_fil
a5a81c7303ae24414c9a9087e46a81b4 *dzz/system/template/header_left.htm
8de513f82582c2989d238c598f3f3cd5 *dzz/system/template/header_search.htm
bc910331b0e60aa33e26ade348d52ae9 *dzz/system/template/mobilefileselection/commer_header.htm
bcc7353925a55cffb28494658f9b39ed *dzz/system/template/mobilefileselection/filelist.htm
fc8a51dabb8dbc2607fb3c7dd79cb215 *dzz/system/template/mobilefileselection/filelist.htm
961bd665874805708c56fe31b33f2175 *dzz/system/template/mobilefileselection/flie_select.htm
9b58f729512964432ca3d831135ca9e3 *dzz/system/template/mobilefileselection/footer_menu.htm
53019107bd5e325ccc21079603e003c3 *dzz/system/template/mobilefileselection/group.htm
9411e701f2bbfca4ddcf1d1ffb508f24 *dzz/system/template/mobilefileselection/index.htm
031a6422b858ec0277eb048e69e2e5e3 *dzz/system/template/mobilefileselection/footer_menu.htm
ad87ddcb6434f626ca945ab06cb8709c *dzz/system/template/mobilefileselection/group.htm
e3889d3405e7529e75ea886a5df3e68a *dzz/system/template/mobilefileselection/index.htm
42eb29cad003483f7040696f9eefde76 *dzz/system/template/mobilefileselection/index_content.htm
058db13f6bb5a7d0f7eff1b2aaf163fb *dzz/system/template/mobilefileselection/search.htm
634289bb97bf0d5535d1b84804971969 *dzz/system/template/mobilefileselection/searchfile.htm
b948a426e7a9e679e06e23b399fcc636 *dzz/system/template/mobilefileselection/search.htm
3da5d148f3f2272bf4af9e354af4403c *dzz/system/template/mobilefileselection/searchfile.htm
fe4fe9cbb1a72383f720cb20a30fdfee *dzz/system/template/mobile_commer_header.htm
e535bcca4a9c027ad87ad54feaa540a8 *dzz/system/template/mobile_selectuser.htm
e640f18f579a2e11d77562aad5d908bf *dzz/system/template/notification.htm
e8812fae9454a2b0115412e2b3b88e7c *dzz/system/template/notification_list.htm
43723415cf8dcbdeb504ffb82db073a0 *dzz/system/template/notification_list_item.htm
2a00fe3e452faa5673c8565e73ddf0b0 *dzz/system/template/orgtree.htm
f3b05a45a98edc1a5ca37d5ab074895e *dzz/system/template/positionlist.htm
e6ee2e651a173533cb03a2310bdebced *dzz/system/template/selectfile.htm
fe7157dc63ca91fb69a2cbb065473f54 *dzz/system/template/selorguser.htm
5c79664f2b688683aeb20ffb2855605b *dzz/system/template/orgtree.htm
041a0fa004c38103ffd676f586d4244a *dzz/system/template/positionlist.htm
11206a88b559ee346c98caa3f14cb5ba *dzz/system/template/selectfile.htm
84a7e4ae610cb515fc791a16d2dcfb2c *dzz/system/template/selorguser.htm
6156d251d05196a574a8db0e6b41f964 *dzz/system/template/selposition.htm
f76251acf9a314912f04f1623b902ffd *dzz/system/ueditor/dialogs/anchor/anchor.html
18637ff2025925f1c8efcafcffc341a6 *dzz/system/ueditor/dialogs/attachment/attachment.css
@ -2287,7 +2271,7 @@ bfc1b0155bfe9e60373c6e7f131f2771 *dzz/system/ueditor/lang/en-us/images/rotaterig
c754e6ca1921cd639739499d3cf45875 *dzz/system/ueditor/lang/zh-cn/images/localimage.png
6d299069db6f24cf2ba1a90a64b49db7 *dzz/system/ueditor/lang/zh-cn/images/music.png
e0a1a76441b4da770097e1af0a650b93 *dzz/system/ueditor/lang/zh-cn/images/upload.png
bbd2bce27833f90f8d2787521ea2186a *dzz/system/ueditor/lang/zh-cn/zh-cn.js
c046922f62bdacb37bcbe4b590d56f5c *dzz/system/ueditor/lang/zh-cn/zh-cn.js
e2a0fce1f89aed4b628c944c3ab9cde0 *dzz/system/ueditor/php/action_crawler.php
1e0dd382e3d7a94342038a311f1231d9 *dzz/system/ueditor/php/action_list.php
2dfe45bcfd12a3936418e79e0ba82877 *dzz/system/ueditor/php/action_upload.php
@ -2416,35 +2400,56 @@ ac30cd2e245e5988d8cfb2dc6f185ec2 *dzz/system/ueditor/third-party/webuploader/web
56acbc88efd2b5c82448f8db32f1efa9 *dzz/system/ueditor/third-party/zeroclipboard/ZeroClipboard.js
cd022aa32cf4146a2d405bdade9a7316 *dzz/system/ueditor/third-party/zeroclipboard/ZeroClipboard.min.js
cc114c6d12a97635096956aab117b4d4 *dzz/system/ueditor/third-party/zeroclipboard/ZeroClipboard.swf
7f687126612e0ec2fe1ce34e24072a6d *dzz/system/ueditor/ueditor.all.js
037a4ecaf4744a4e122f39af23615c95 *dzz/system/ueditor/ueditor.all.js
7a7034f1b4e1add20f1c4b8739a41148 *dzz/system/ueditor/ueditor.all.min.js
782a36f7764d2c0a2fd91226c2f91cda *dzz/system/ueditor/ueditor.config.js
3697da73a28950bf921cb5f0b5b04152 *dzz/system/ueditor/ueditor.parse.js
b58abee074812a05133b8cecdc06b49c *dzz/system/ueditor/ueditor.parse.min.js
1997baed351597d2dacb8bc921dcf61f *dzz/system/wxredirect.php
ab0852188312b7059fb7a78d213120ee *dzz/system/wxreply.php
2a2cbdad679635d3e76e7b97249fdfae *dzz/test/admin.php
8eead96d5baf21c2204bd5956b85bd6c *dzz/test/cache/cache_test.php
db67ed148fb578eb3e3ee14fdea9acfd *dzz/test/class/class_Chareset.php
e7714107857584c473c088f975231ed1 *dzz/test/class/table/table_test.php
8f278022a583913adebae2d6c6448513 *dzz/test/classes/testone.php
eb9da3876ed34d0f7239e581b24bbed1 *dzz/test/config/config.php
1f95d935487378a755a1a96af150eef3 *dzz/test/cron/cron_test.php
0e95aa2aef8245417b076f4fc2d7129d *dzz/test/css/test.css
f4bfd375d461b8077c29a44f4c122a9f *dzz/test/disable.php
372ddf8e466ec304f791d3da5bf28c45 *dzz/test/dzz_app_test.xml
c8a141e2527dab16eb9502a528d861d1 *dzz/test/enable.php
018d15b47263832e24bce90e05b3054e *dzz/test/function/function_test.php
509626f87d1ca30ae03f2afd5262e0ef *dzz/test/images/logo.png
e41c4f28b9de883d0e5b155f03a860dd *dzz/test/index.php
85da2c89973a3fc5c7734858d0c35a4d *dzz/test/install.php
7f40b5d55586d87453e9fef94503a0bd *dzz/test/language/en-us/lang.php
e4ce999c74bf07c54a5c46fdfcaeb384 *dzz/test/language/zh-cn/lang.php
4740a4dd4a8095bc45da34fc38271867 *dzz/test/template/admin.htm
f500a7020429344dae9e95f14a6bbfc0 *dzz/test/template/header_left.htm
0eb15621c0d3f2b2802087c925ce4edc *dzz/test/template/index.htm
37549f4314517229b03320b5a43c5f52 *dzz/test/template/left.htm
21b020a05351834f3301b42924288d4c *dzz/test/uninstall.php
b4ca1cf5972929a7362cfb7a036c6868 *dzz/test/upgrade.php
5f8ca227b92f482430e36f46cc5c066d *./favicon.ico
a4a998d1fe372c0aa6e678465afa9839 *./htaccess_default.txt
8e55bdb192a3aefe82e03292527819ca *./htaccess_default.txt
7848b9ceb88ab90365a845b5d39f7093 *./index.php
0dc82c721c05ff3448accc3630f6ffd8 *install/data/common_district_1.sql
0a8a4a1c9add7650d4bb613984275876 *install/data/common_district_2.sql
c5de82c7d4b3c9c1531e9974bc038c54 *install/data/common_district_3.sql
aa031dd2afb8665046655d7613032397 *install/data/install.sql
a07bbbc286113b70b75be3be49b4da20 *install/data/install_data.sql
8fb659fc5897db4ee83fdd82500368e8 *install/data/install.sql
90b8242889ae53f00ba37bb38e975fb2 *install/data/install_data.sql
feabf4e4c8e20dc73548dfd6ba8400f9 *install/images/error.png
2052fa74d6a2fe7db86fbfb5c995651d *install/images/logo.png
69a3166af18f4a6be031e2e97dc5dbe1 *install/images/right.png
94b02097d5c11c5ca1c1f7ee563a3d82 *install/images/sel.png
7d7bb734d5e82ccbb7900e974b0b623a *install/images/seled.png
67adb7cd7830800342b907c551019a9c *install/images/style.css
8642606a5e849c83fb5c490fbfc41348 *install/include/install_function.php
ea85201cad0a9db4783ee273ba2d120f *install/include/install_function.php
78664d577bbaee9782bf9557faadf023 *install/include/install_mysql.php
016a91e090554f947dc50aae4d9e775e *install/include/install_mysqli.php
4b3d7be5174156972d113e5380c57f3f *install/include/install_var.php
b1a6347892ab759628c7cfe188828017 *install/index.php
46973cdaf6abcfacfd5aa1622d973202 *install/language/zh-cn/lang.php
cc4425a8d590bc44a7f2b2520ea2f89e *install/update.php
070a5857e02a2f44894f1498bab6431d *./INSTALL.md
c29dba799dc987e98b67d3d522ce0104 *misc/ajax.php
66ee773a4c2e373da92f48f81930cf3f *misc/classes/init.php
0b53e65b9906cd59af11acee54c5a404 *misc/movetospace.php
@ -2453,13 +2458,13 @@ ca40e2b20bdc5878ca9acaaa5686bbce *misc/seluser.php
9fb354ca17a886428060b0d9cf11d7a6 *misc/sendmail.php
d520f709aafa21279e7f287dc6a8e757 *misc/sendwx.php
7fb004e91c789ea64c1bd94f6fb64408 *misc/setunrun.php
4ae6ed90ea171d5a5b918c29431938c7 *misc/shoutospace.php
90048a0cb5d78acd3b032d4a93d75809 *misc/stat.php
338e34df44c0b0b70c6d4bb0230e7d7a *misc/syscache.php
d365238875a6457eaea991f1e7913309 *misc/template/misc_seluser.htm
7659b35db4c11586402ab9270f6b02e9 *misc/upgrade.php
ead2f4a4b24397ab4eb610d0c1d56e39 *./misc.php
7f872b8689feda4297fc28f746ff560c *./oauth.php
313eb03434d1d0d32877e4b268f342ea *./README.md
e766f2e68c1b7cc106dca37073b657a2 *./oauth.php
fb7e5f3bf418508c5f8f9af190518c45 *./share.php
94062059a2d95028d8277eeb6744e035 *./short.php
b5e8fc70c992e4311bb6b762161d924f *static/artZoom/icons.png
@ -2515,20 +2520,20 @@ ccb7f3909e30b1eb8f65a24393c6e12b *static/bootstrap/js/npm.js
3e5e0fa949e0e7c5ed5fed7b4cc0ee00 *static/clipboard/clipboard.min.js
049d0dd421fcccd81a1348b30ddefec3 *static/colorPicker/jquery.colorPicker.css
0a09681bc6b8bf3628085ef083ee476a *static/colorPicker/jquery.colorPicker.js
e8742bc21d5c92f665707651928ef891 *static/css/app_manage.css
c613dea8a9d674854c7a9801042ac2e8 *static/css/app_manage.css
0558805a20efbceaea35039a548fab7f *static/css/calendar.css
3c7b7885051c739119294ba3aaee1246 *static/css/checkbox.css
f1c6e1642067c3566aba9c2b98dfa9c3 *static/css/common.css
16ff8032931d554133fb90e0e090d23b *static/css/common.css
12813c6cae76dcdcf0ca0673a085362b *static/css/jquery-ui-1.10.4.custom.min.css
2ad158db1f748f93e608bbb264f4ea93 *static/css/mabile_common.css
de5cc99580baf95f1bc098b92245a547 *static/css/pc-commer-header.css
1f85070b3a3652886cba741f23b9eef2 *static/css/smilies.css
b3d07bda63452a4c717858f586653c28 *static/css/tip.css
3136991c56120ca276d6e0184f664b39 *static/dzzicon/fonts/dzz.eot
550c5d5904be0de71fc276a2482357f6 *static/dzzicon/fonts/dzz.svg
d87f8e6fb9f1ed54488b93d0e3d6dd74 *static/dzzicon/fonts/dzz.ttf
17bac9f0673bb8acb45d84e525bd6d63 *static/dzzicon/fonts/dzz.woff
9a7713536989edf056c7151189a5fae0 *static/dzzicon/icon.css
20f7dec08bcdab872f92e5fd00658bf7 *static/dzzicon/fonts/dzz.eot
bab5426c2e41cac25a364bca0d0687bf *static/dzzicon/fonts/dzz.svg
2545315cf884316f38d4ca50e07f5bc3 *static/dzzicon/fonts/dzz.ttf
68e44d78b03d25cb3d817eb619920fc2 *static/dzzicon/fonts/dzz.woff
09b33a5885a3ff265ca5ce6684031bb0 *static/dzzicon/icon.css
012634aaff45d55d359f7d7f43a8ebbd *static/dzzthumb/jquery.dzzthumb.css
2dce0d1499511aa23bda5b11b611c1b9 *static/dzzthumb/jquery.dzzthumb.js
325472601571f31e1bf00674c368d335 *static/dzzthumb/preview/b.gif
@ -2997,14 +3002,16 @@ b6ec8daaae10608b00f8c8661d97aab8 *static/jquery/jquery.json-2.4.min.js
e071abda8fe61194711cfc2ab99fe104 *static/jquery/jquery.min.js
0da6f8ef76956f6ce7842dcf8941d1fa *static/jquery_file_upload/jquery.fileupload-process.js
16e6097813691c721f0e442f66360671 *static/jquery_file_upload/jquery.fileupload-validate.js
82187ca3f8a464cda4c5a9e3305cd56c *static/jquery_file_upload/jquery.fileupload.js
9d50227c013d7811de3d78deb8f7130a *static/jquery_file_upload/jquery.fileupload.js
487d5e5434beb03193861df573f01a93 *static/jquery_file_upload/jquery.iframe-transport.js
2f930cbfc9194f627fcc81f38cc73f04 *static/jquery_file_upload/jquery.ui.widget.js
f8fdde04bdba1cc2763489e9475db740 *static/jquery_weui/.project
1d7f35266a0212c704e1fe066bf6f925 *static/jquery_weui/css/jquery-weui.min.css
830c01b15f1878fb94955ce159b1b603 *static/jquery_weui/css/weui.min.css
d09dc6fa2f453e5f51d331b05f80da22 *static/jquery_weui/js/appevent.js
3f3688138a1b9fc4ef669ce9056b6674 *static/jquery_weui/js/clipboard.min.js
215a68f06c7a0ffc44a579e8d18c19ab *static/jquery_weui/js/iscroll.js
5b355252b434617b7698333dee32cd0c *static/jquery_weui/js/jquery-weui.js
5336279efb617948c7975329a36eda43 *static/jquery_weui/js/jquery-weui.min.js
e8a6b09a1b7f9b446eb201bb8011f86b *static/jquery_weui/js/navbarscroll.js
508d39206ef0008f8f468d3319b5da39 *static/jquery_weui/js/swiper.min.js
@ -3141,7 +3148,7 @@ b44074283db826a5f313757d6491f83a *static/js/bootstrap_datetimepicker/locales/boo
1c1e7187f0f4e00351fa7bdde9ee659e *static/js/bootstrap_datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js
3c85783a31ea941cd4e1b032564c06d2 *static/js/bootstrap_datetimepicker/locales/bootstrap-datetimepicker.zh-TW.js
17b22da8aa4a35cac01d4816ad4c6eb9 *static/js/calendar.js
7bfea4f846f4e1552cbc9513df0b25e9 *static/js/common.js
b8c88d6de7981570261bb61511e30fa9 *static/js/common.js
a3adf3f1ec2b774b272cbad60225a07b *static/js/datepicker/datepicker.css
36300a5ad0df4ef4ffe96934e940a219 *static/js/datepicker/jquery-ui-sliderAccess.js
159a27f2a686fb26e4a2045791f2380d *static/js/datepicker/jquery-ui-timepicker-addon.css
@ -3156,11 +3163,11 @@ df3fc0134f614f3879fb9005ba84abe4 *static/js/datepicker/jquery.ui.datepicker.js
7c44be106a61d3d1f5a22891d09fd734 *static/js/echarts.min.js
dab27680f9accd4904c2106d5a439aea *static/js/header.js
4f94014ad9416a32e4a666e2c1a1bdd0 *static/js/imgReady.js
e36054c4f30541569565da8fe26ef1e9 *static/js/input_field.js
73b4b4085631867187276763e27ec392 *static/js/input_field.js
5849f3ff1537c3f9541bc7ad6e488ba0 *static/js/jquery.dragsort.js
b4a8e5f8ec11754486eb8bf13a564d31 *static/js/jquery.highlight.js
6661199d97a935a23d46e9aa417a34c8 *static/js/jquery.kpdragsort.js
d630c3f5a0ecf53cb465eb04bc4c70d5 *static/js/jquery.leftDrager.js
21bbe39a4b911093afb22330c93a5eda *static/js/jquery.leftDrager.js
214ee334bd63ceb72b99b11a64799843 *static/js/jquery.mousewheel.js
fca2e25aa726c6b099b4927782c96c2b *static/js/jquery.mousewheel.min.js
c3dc7adae0c99f9a2010db8b29597a57 *static/js/jquery.placeholder.js
@ -3262,17 +3269,22 @@ fc4180203086f4db5723547477eb472f *static/select2/select2_locale_uk.js
ce82206856d06c84b34b4750cf97fdf9 *static/select2/select2_locale_vi.js
81534c478c919097a58b0154664c1ee2 *static/select2/select2_locale_zh-CN.js
4c8498c7c7c582df2fe30520e64d8656 *static/select2/select2_locale_zh-TW.js
5c0f2c77026394b48961a2072e95068b *static/swiper/css/swiper.min.css
b109a73709caae2f915322813d5c220c *static/swiper/js/swiper.esm.bundle.js
21b877f9a29f091476b354f8379bcf62 *static/swiper/js/swiper.esm.js
7e8c599bc997edce03bdb105d93d5778 *static/swiper/js/swiper.js
b117060487d6ec17a9af7c5604a2c149 *static/swiper/js/swiper.min.js
82e4bfd0d39227dd6c33fefd69273788 *static/swiper/js/swiper.min.js.map
3d5c5f2d195cad6c3658bec52095df6b *static/switchery/switchery.min.css
82cf31e4c3a14ee9394c27cb900594c4 *static/switchery/switchery.min.js
5595c0a1d4b5200c42d3f10ee1a6f84e *static/tagsinput/jquery.tagsinput.css
16514f2dfada9501ab4e67c06b1706c6 *static/tagsinput/jquery.tagsinput.js
0e35a4f4d3b2da5b4d63cdd03b12e931 *./UPDATE.md
cf0217a7943a59544537c29bfbee4e04 *user/ajax.php
fea650655045ad578b46a224a3160e6b *user/classes/checklogin.php
eb22faca2d0fe52c1e07a2719d2993a7 *user/classes/init.php
7369a569df07dad3b5d04b0938f13d7c *user/classes/route.php
29040baeef0147f66b8f939a815238d0 *user/classes/safechk.php
dd9483d4486854c4a342a197ca0efb19 *user/config/config.php
dea154c78c41460a64208fc72c33da8b *user/config/config.php
135aa86eb76ce37e5486d4fdc09c6f09 *user/function/function_profile.php
ad0e8c5d9dca7a71e1064afafcab2d1d *user/function/function_user.php
ddc9fcc5febab3bffe367bd2ba13dd6b *user/images/qq.png
@ -3307,7 +3319,7 @@ e962c9542c32b16cb7fb4e1407f24eff *user/profile/avatar.php
191b74f0d557e01e510e676d0eda1dc8 *user/profile/config/config.php
91eb6c4b4f48e2c20ce2b839e4629178 *user/profile/css/passsafe.css
575242cca40051543b7e43d398475bd0 *user/profile/images/step.png
a9f5f196289c95451df854c717322ddf *user/profile/index.php
dd01a34308cae40a3ae1cd2e297a4316 *user/profile/index.php
8e92af61ec0c2cc39d9b17a13186983b *user/profile/password.php
ba0919fac2f4cd8666b00e150f9cf702 *user/profile/safeverify.php
767d077f52985cd74f3af4dfc8256e8b *user/profile/scripts/email.js
@ -3316,10 +3328,10 @@ ba0919fac2f4cd8666b00e150f9cf702 *user/profile/safeverify.php
4e01e0744f8e227ca5a9808d86d24209 *user/profile/template/editpass.htm
846c2810477f30a3d9d4faa86f8cb536 *user/profile/template/left.htm
9822c6a89a9318164933b70c02e27d36 *user/profile/template/pass_safe.htm
2ec8a66dcc8968f15f3dd91fe5f8a066 *user/profile/template/profile.htm
10d2fdc4f8b6ccca3031b8bc70fba6f0 *user/profile/template/profile.htm
69d7060500bcff9ec2286d95b16680da *user/register/ajax.php
b4abf039c134d84eb99e5646adb5c139 *user/register/classes/checkvalue.php
412b68f4f812be1ded4dafcb9d47f13c *user/register/classes/regcommon.php
465b3ce03364c88154cd36c6d36978ac *user/register/classes/regcommon.php
8f50bca9aa9098dc8e1495b33cde9036 *user/register/classes/register.php
80c6a1daadb5fb4296a415118f529372 *user/register/images/register.css
c9b53eec589aebfa4250ebeaa04ad283 *user/register/register.php
@ -3340,12 +3352,5 @@ ad472bd6461c3b3193ef20f147da5d61 *user/scripts/setbacksize.js
9f1473e15c10a73853e160f6c51e5c76 *user/space/navmenu.php
1d40e59cddf7a8d01e710b637806d59d *user/space/template/navmenu.htm
b1a1c62e9c79bd181152c0d97755c5d8 *user/space/template/space.htm
2cb7057cee9c0907fcb813c85c410929 *user/sso/classes/oauth.php
c544db827330cf2327a4a4c32456d287 *user/sso/index.php
c71db25f9dacca81e124c6e3b7f0f8e1 *user/sso/template/index.htm
8085cb01df6b09a8fcad2273ffd679cc *user/sso/template/login.htm
da1a6eb90532a13e2399939be5e47d30 *user/sso/template/login_single.htm
ae27d428ddc42df55a01fa29fb342c43 *user/sso/template/login_single_mobile.htm
d28233af369fb8dbff23ae32ed050102 *user/sso/template/login_skip.htm
19ed3f8ff75b0bff6d0c8ee2ee5d744c *user/template/ajax.htm
0afe99a0801e30516384c5de21a35f7f *./user.php

View File

@ -6,143 +6,145 @@
* @link http://www.dzzoffice.com
* @author zyx(zyx@dzz.cc)
*/
if(!defined('IN_DZZ') || !defined('IN_ADMIN')) {
exit('Access Denied');
if (!defined('IN_DZZ') || !defined('IN_ADMIN')) {
exit('Access Denied');
}
$navtitle= lang('appname');
define('DZZSCRIPT','index.php');
$typearr=array('image'=>lang('photo'),
'document'=>lang('type_attach'),
'link'=>lang('type_link'),
'video'=>lang('online_video'),
'dzzdoc'=>'DZZ'.lang('type_attach'),
'attach'=>lang('rest_attachment')
);
$navtitle = lang('appname');
define('DZZSCRIPT', 'index.php');
$typearr = array('image' => lang('photo'),
'document' => lang('type_attach'),
'link' => lang('type_link'),
'video' => lang('online_video'),
'dzzdoc' => 'DZZ' . lang('type_attach'),
'attach' => lang('rest_attachment')
);
require libfile('function/organization');
if($_GET['do']=='delete'){
$icoid=isset($_GET['icoid'])?trim($_GET['icoid']):'';
$icoids=explode(',',$icoid);
$ridarr = array();
$bz= isset($_GET['bz']) ? trim($_GET['bz']):'';
foreach($icoids as $icoid){
if(empty($icoid)){
continue;
}
$return=IO::Delete($icoid,true);
if(!$return['error']){
//处理数据
$arr['sucessicoids'][$return['rid']]=$return['rid'];
$arr['msg'][$return['rid']]='success';
$arr['name'][$return['rid']] = $return['name'];
$ridarr[]= $return['rid'];
$i++;
}else{
$arr['msg'][$return['rid']]=$return['error'];
}
}
if(!$return['error']){
showmessage('do_success',$_GET['refer']);
}else{
showmessage($return['error'],$_GET['refer']);
}
if ($_GET['do'] == 'delete') {
$icoid = isset($_GET['icoid']) ? trim($_GET['icoid']) : '';
$icoids = explode(',', $icoid);
$ridarr = array();
$bz = isset($_GET['bz']) ? trim($_GET['bz']) : '';
foreach ($icoids as $icoid) {
if (empty($icoid)) {
continue;
}
$return = IO::Delete($icoid, true);
if (!$return['error']) {
//处理数据
$arr['sucessicoids'][$return['rid']] = $return['rid'];
$arr['msg'][$return['rid']] = 'success';
$arr['name'][$return['rid']] = $return['name'];
$ridarr[] = $return['rid'];
$i++;
} else {
$arr['msg'][$return['rid']] = $return['error'];
$dels[] = $icoid.'_0';
}
}
if (!$return['error']) {
Hook::listen('solrdel',$dels);
showmessage('do_success', $_GET['refer']);
} else {
showmessage($return['error'], $_GET['refer']);
}
}else{
$perpage=20;
$pfid = isset($_GET['pfid']) ? intval($_GET['pfid']):'';
$type=isset($_GET['type']) ? trim($_GET['type']):'';
$keyword=isset($_GET['keyword']) ? trim($_GET['keyword']):'';
$orgid= isset($_GET['orgid']) ? intval($_GET['orgid']):'';
$page = (isset($_GET['page'])) ? intval($_GET['page']):1;
$start = ($page - 1) * $perpage;
$gets = array(
'mod'=>'filemanage',
'keyword'=>$keyword,
'type' => $_GET['type'],
'size'=>$_GET['size'],
'dateline'=>$_GET['dateline'],
'orgid'=>$orgid,
'pfid'=>$pfid
);
$theurl = BASESCRIPT."?".url_implode($gets);
$refer=$theurl.'&page='.$page;
if($_GET['size']=='desc'){
$order='ORDER BY size DESC';
}elseif($_GET['size']=='asc'){
$order='ORDER BY size ASC';
}elseif($_GET['dateline']=='asc'){
$order='ORDER BY dateline ASC';
}else{
$_GET['dateline']='desc';
$order='ORDER BY size DESC';
}
$sql="type!='app' and type!='shortcut'";
$foldername = array();
$param=array();
if($keyword) {
$sql.=' and (name like %s OR username=%s)';
$param[]='%'.$keyword.'%';
$param[]=$keyword;
}
if($type){
$sql.=' and type=%s';
$param[]=$type;
}
if($pfid){
$sql.=' and (pfid = %d)';
$param[]=$pfid;
$pathkey = DB::result_first("select pathkey from %t where fid = %d",array('resources_path',$pfid));
$patharr = explode('-',str_replace('_','',$pathkey));
unset($patharr[0]);
foreach(DB::fetch_all("select fname,fid from %t where fid in(%n)",array('folder',$patharr)) as $v){
$foldername[] = array('fid'=>$v['fid'],'fname'=>$v['fname']);
}
}else{
if($orgid){
if($org=C::t('organization')->fetch($orgid)){
$fids=array($org['fid']);
foreach(DB::fetch_all("select fid from %t where pfid=%d",array('folder',$org['fid'])) as $value){
$fids[]=$value['fid'];
}
$sql.=' and pfid IN(%n)';
$param[]=$fids;
}
}else{
$flags = array('home','organization');
$fids = C::t('folder')->fetch_fid_by_flags($flags);
$sql.=' and pfid IN(%n)';
$param[]=$fids;
}
}
$limitsql = 'limit '.$start .','. $perpage;
if($count=DB::result_first("SELECT COUNT(*) FROM ".DB::table('resources')." WHERE $sql",$param)){
/*if(ceil($count/$perpage)<$page){
$page=ceil($count/$perpage);
$start=($page-1)*$perpage;
}*/
$data=DB::fetch_all("SELECT rid FROM ".DB::table('resources')." WHERE $sql $order $limitsql",$param);
$multi=multi($count, $perpage, $page, $theurl);
}
$list=array();
foreach($data as $value){
if(!$sourcedata=C::t('resources')->fetch_by_rid($value['rid'])){
continue;
}
$list[]=$sourcedata;
}
if($org=C::t('organization')->fetch($orgid)){
$orgpath=getPathByOrgid($org['orgid']);
$org['depart']=implode('-',($orgpath));
}else{
$org=array();
$org['depart']=lang('select_a_organization_or_department');
$org['orgid']=$orgid;
}
/*if ($count > $perpage*$page) {
$nextpage = $page + 1;
} else {
$naxtpage = 0;
}*/
include template('list');
} else {
$perpage = 20;
$pfid = isset($_GET['pfid']) ? intval($_GET['pfid']) : '';
$type = isset($_GET['type']) ? trim($_GET['type']) : '';
$keyword = isset($_GET['keyword']) ? trim($_GET['keyword']) : '';
$orgid = isset($_GET['orgid']) ? intval($_GET['orgid']) : '';
$page = (isset($_GET['page'])) ? intval($_GET['page']) : 1;
$start = ($page - 1) * $perpage;
$gets = array(
'mod' => 'filemanage',
'keyword' => $keyword,
'type' => $_GET['type'],
'size' => $_GET['size'],
'dateline' => $_GET['dateline'],
'orgid' => $orgid,
'pfid' => $pfid
);
$theurl = BASESCRIPT . "?" . url_implode($gets);
$refer = $theurl . '&page=' . $page;
if ($_GET['size'] == 'desc') {
$order = 'ORDER BY size DESC';
} elseif ($_GET['size'] == 'asc') {
$order = 'ORDER BY size ASC';
} elseif ($_GET['dateline'] == 'asc') {
$order = 'ORDER BY dateline ASC';
} else {
$_GET['dateline'] = 'desc';
$order = 'ORDER BY size DESC';
}
$sql = "type!='app' and type!='shortcut'";
$foldername = array();
$param = array();
if ($keyword) {
$sql .= ' and (name like %s OR username=%s)';
$param[] = '%' . $keyword . '%';
$param[] = $keyword;
}
if ($type) {
$sql .= ' and type=%s';
$param[] = $type;
}
if ($pfid) {
$sql .= ' and (pfid = %d)';
$param[] = $pfid;
$pathkey = DB::result_first("select pathkey from %t where fid = %d", array('resources_path', $pfid));
$patharr = explode('-', str_replace('_', '', $pathkey));
unset($patharr[0]);
foreach (DB::fetch_all("select fname,fid from %t where fid in(%n)", array('folder', $patharr)) as $v) {
$foldername[] = array('fid' => $v['fid'], 'fname' => $v['fname']);
}
} else {
if ($orgid) {
if ($org = C::t('organization')->fetch($orgid)) {
$fids = array($org['fid']);
foreach (DB::fetch_all("select fid from %t where pfid=%d", array('folder', $org['fid'])) as $value) {
$fids[] = $value['fid'];
}
$sql .= ' and pfid IN(%n)';
$param[] = $fids;
}
}/*else{
$sql .= ' and pfid > 0';
}*//* else {
$flags = array('home', 'organization');
$fids = C::t('folder')->fetch_fid_by_flags($flags);
$sql .= ' and pfid IN(%n)';
$param[] = $fids;
}*/
}
$limitsql = 'limit ' . $start . ',' . $perpage;
if ($count = DB::result_first("SELECT COUNT(*) FROM " . DB::table('resources') . " WHERE $sql", $param)) {
$data = DB::fetch_all("SELECT rid FROM " . DB::table('resources') . " WHERE $sql $order $limitsql", $param);
$multi = multi($count, $perpage, $page, $theurl);
}
$list = array();
foreach ($data as $value) {
if (!$sourcedata = C::t('resources')->fetch_by_rid($value['rid'])) {
continue;
}
if($sourcedata['relpath'] == '/'){
$sourcedata['relpath'] = '回收站';
}
$list[] = $sourcedata;
}
if ($org = C::t('organization')->fetch($orgid)) {
$orgpath = getPathByOrgid($org['orgid']);
$org['depart'] = implode('-', ($orgpath));
} else {
$org = array();
$org['depart'] = lang('select_a_organization_or_department');
$org['orgid'] = $orgid;
}
/*if ($count > $perpage*$page) {
$nextpage = $page + 1;
} else {
$naxtpage = 0;
}*/
include template('list');
}
?>

View File

@ -2,6 +2,8 @@
$lang = array (
'appname' => '文件管理',
'rotation'=>'旋转',
'checkednum'=>'<span>已选择<span class="ex-number"></span>项'
'checkednum'=>'<span>已选择<span class="ex-number"></span>项',
'file_position'=>'文件位置',
'in_recycle'=>'在回收站',
);
?>

View File

@ -80,12 +80,19 @@
<!--{/loop}-->
</select>
</li>
<!-- <li>
<select class="form-control select-option" name="pfid">
<option value="" selected="selected">{lang file_position}</option>
<option value="-1" &lt;!&ndash;{if $pfid==-1}&ndash;&gt;selected="selected"&lt;!&ndash;{/if}&ndash;&gt;>{lang in_recycle}
</option>
</select>
</li>-->
<!--{if !isset($pfid) || $pfid <= 0}-->
<li class="dropdown org">
<input id="sel_orgid_{$org[orgid]}" type="hidden" name="orgid" value="$org[orgid]" onchange="selDepart(this)" />
<button type="button" id="orgid_{$org[orgid]}_Menu" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> $org[depart] <span class="caret"></span> </button>
<div id="orgid_$orgid_dropdown_menu" class="dropdown-menu org-sel-box" role="menu" aria-labelledby="orgid_{$org[orgid]}_Menu">
<iframe name="orgid_{$org[orgid]}_iframe" class="org-sel-box-iframe" src="index.php?mod=system&op=orgtree&ctrlid=orgid_{$org[orgid]}&nouser=1&moderator=1&zero={eval echo urlencode('{lang unselect_a_organization_or_department}');}" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" allowtransparency="true" ></iframe>
<iframe name="orgid_{$org[orgid]}_iframe" class="org-sel-box-iframe" src="index.php?mod=system&op=orgtree&ctrlid=orgid_{$org[orgid]}&nouser=1&range=0&moderator=1&zero={eval echo urlencode('{lang unselect_a_organization_or_department}');}" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" allowtransparency="true" ></iframe>
</div>
</li>
<!--{/if}-->
@ -187,11 +194,6 @@
var page_loading = false;
jQuery('.left-drager').leftDrager_layout();
function setLoadedNum() {
jQuery('.loaded-num').html(jQuery('.list-share .item').length);
if(!jQuery('.list-share .more').length) {
@ -243,7 +245,7 @@ var theurl='$theurl';
var param=el.data('key')+'='+ (el.find('.asc').hasClass('desc') ? 'desc' : 'asc');
var regx=new RegExp('&(dateline|size)=(asc|desc)','i');
var url=theurl.replace(regx,'')+'&'+param;
location.href=url;
location.href=correcturl(url);
});
jQuery(document).on('click', 'a[data-key=download]', function() {
download(this);
@ -256,9 +258,9 @@ var theurl='$theurl';
var url = DZZSCRIPT + '?mod=io&op=download&path=' + li.data('dpath');
if(BROWSER.ie) {
window.open(url);
window.open(correcturl(url));
} else {
window.frames['hideframe'].location = url;
window.frames['hideframe'].location = correcturl(url);
}
}
@ -349,4 +351,4 @@ function delete_file(){
}
</script>
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
<!--{template common/footer_simple}-->
<!--{template common/footer_simple}-->

View File

@ -14,7 +14,8 @@ function runquery($sql) {
$tablepre = $_G['config']['db'][1]['tablepre'];
$dbcharset = $_G['config']['db'][1]['dbcharset'];
$sql = str_replace(array(' dzz_', ' `dzz_',' cdb_', ' `cdb_', ' pre_', ' `pre_'), array(' {tablepre}', ' `{tablepre}',' {tablepre}', ' `{tablepre}', ' {tablepre}', ' `{tablepre}'), $sql);
$sql = str_replace(array(' dzz_', ' `dzz_',' cdb_', ' `cdb_' ), array(' {tablepre}', ' `{tablepre}',' {tablepre}', ' `{tablepre}' ), $sql);
$sql = str_replace("\r", "\n", str_replace(array(' {tablepre}', ' `{tablepre}'), array(' '.$tablepre, ' `'.$tablepre), $sql));
$ret = array();
@ -162,10 +163,10 @@ function exportdata($name, $filename, $data) {
'Version' => $_G['setting']['version'],
'Time' => dgmdate(TIMESTAMP, 'Y-m-d H:i'),
'From' => $_G['setting']['bbname'].' ('.$_G['siteurl'].')',
'Data' => exportarray($data, 1)
);
'Data' => exportarray($data, 1)
);
$filename = strtolower(str_replace(array('!', ' '), array('', '_'), $name)).'_'.$filename.'.xml';
$plugin_export = array2xml($root, 1);
$plugin_export = array2xml($root, 1);
ob_end_clean();
dheader('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
dheader('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
@ -242,8 +243,8 @@ function importByarray($arr,$force=0){
$app['available']=0;
$appid=$app['appid']=C::t('app_market')->insert($app,1);
}
if($arr['hooks']){//初始化钩子
C::t('hooks')->insert_by_appid($appid,$arr['hooks']);
if($arr['hooks']){//初始化钩子
C::t('hooks')->insert_by_appid($appid,$arr['hooks'],$arr['_attributes']['hooks']);
}
if($appid){
C::t('app_open')->insert_by_exts($appid,($app['fileext']?explode(',',$app['fileext']):array()));

View File

@ -35,22 +35,22 @@
<div class="main-header" style="padding:0 15px">
<ul class="nav nav-pills nav-pills-bottomguide">
<li>
<a href="{BASESCRIPT}?mod=member">{lang member_list}</a>
<a href="{MOD_URL}">{lang member_list}</a>
</li>
<li>
<a href="{BASESCRIPT}?mod=member&op=edituser&uid=$uid">{lang basic_information}</a>
<a href="{MOD_URL}&op=edituser&uid=$uid">{lang basic_information}</a>
</li>
<li class="active">
<a href="{BASESCRIPT}?mod=member&op=edituser&do=profile&uid=$uid">{lang details_information}</a>
<a href="{MOD_URL}&op=edituser&do=profile&uid=$uid">{lang details_information}</a>
</li>
<!-- <li><a href="{BASESCRIPT}?mod=member&op=import">从文件导入</a></li>
<li><a href="{BASESCRIPT}?mod=member&op=invite">Email邀请</a></li>-->
<!-- <li><a href="{MOD_URL}&op=import">从文件导入</a></li>
<li><a href="{MOD_URL}&op=invite">Email邀请</a></li>-->
</ul>
</div>
<div class="main-body" style="padding:15px 15px 15px 22px;">
<div id="return_edituserprofile"></div>
<form id="accountform" name="accountform" class="form-horizontal form-horizontal-left" action="{BASESCRIPT}?mod=member&op=edituser&do=profile" method="post" onsubmit="account_submit();return false">
<form id="accountform" name="accountform" class="form-horizontal form-horizontal-left" action="{MOD_URL}&op=edituser&do=profile" method="post" onsubmit="account_submit();return false">
<input type="hidden" name="profilesubmit" value="true" />
<input type="hidden" name="uid" value="$uid" />
<input type="hidden" name="handlekey" value="edituserprofile" />

View File

@ -49,11 +49,11 @@
<div class="main-header">
<ul class="nav nav-pills nav-pills-bottomguide">
<li <!--{if !$fieldid}-->class="active"<!--{/if}-->>
<a href="{BASESCRIPT}?mod=member&op=profileset">{lang data_item_list}</a>
<a href="{MOD_URL}&op=profileset">{lang data_item_list}</a>
</li>
<!--{if $fieldid}-->
<li class="active">
<a href="{BASESCRIPT}?mod=member&op=profileset&fieldid=$fieldid">{lang data_edit}</a>
<a href="{MOD_URL}&op=profileset&fieldid=$fieldid">{lang data_edit}</a>
</li>
<!--{/if}-->
</ul>
@ -74,7 +74,7 @@
</table>
<div class="itemContainer">
<div class="main-content">
<form id="cpform" action="{BASESCRIPT}?mod=member&op=profileset" method="post" name="cpform">
<form id="cpform" action="{MOD_URL}&op=profileset" method="post" name="cpform">
<input type="hidden" value="{FORMHASH}" name="formhash">
<input type="hidden" value="true" name="ordersubmit">
<table class="table table-hover">
@ -89,9 +89,9 @@
<td width="60"><input type="checkbox" class="checkbox" name="showincard[$fieldid]" <!--{if $value[showincard]}-->checked="checked"<!--{/if}-->value="1"></td>
<td width="60"><input type="checkbox" class="checkbox" name="showinregister[$fieldid]" <!--{if $value[showinregister]}-->checked="checked"<!--{/if}-->value="1"></td>
<td width="100">
<a href="{BASESCRIPT}?mod=member&op=profileset&fieldid=$fieldid" class="ibtn glyphicon glyphicon-edit " title="{lang edit}"></a>
<a href="{MOD_URL}&op=profileset&fieldid=$fieldid" class="ibtn glyphicon glyphicon-edit " title="{lang edit}"></a>
<!--{if $value['customable']}-->&nbsp;&nbsp;&nbsp;&nbsp;
<a href="{BASESCRIPT}?mod=member&op=profileset&do=delete&fieldid=$fieldid" onclick="return confirm('{lang profileset_delete}')" class="ibtn glyphicon glyphicon-trash " title="{lang delete}"></a>
<a href="{MOD_URL}&op=profileset&do=delete&fieldid=$fieldid" onclick="return confirm('{lang profileset_delete}')" class="ibtn glyphicon glyphicon-trash " title="{lang delete}"></a>
<!--{/if}-->
</td>
</tr>
@ -112,7 +112,7 @@
</div>
<script type="text/javascript">
jQuery('.left-drager').leftDrager_layout(initHeight);
var url = '{BASESCRIPT}?mod=member';
var url = '{MOD_URL}';
jQuery(document).ready(function(e) {
jQuery('input').iCheck({

View File

@ -66,17 +66,17 @@
<div class="main-header">
<ul class="nav nav-pills nav-pills-bottomguide">
<li <!--{if !$fieldid}-->class="active"<!--{/if}-->>
<a href="{BASESCRIPT}?mod=member&op=profileset">{lang data_item_list}</a>
<a href="{MOD_URL}&op=profileset">{lang data_item_list}</a>
</li>
<!--{if $fieldid}-->
<li class="active">
<a href="{BASESCRIPT}?mod=member&op=profileset&fieldid=$fieldid">{lang data_edit}</a>
<a href="{MOD_URL}&op=profileset&fieldid=$fieldid">{lang data_edit}</a>
</li>
<!--{/if}-->
</ul>
</div>
<div class="main-content" style="padding:15px 0 0 10px;">
<form id="cpform" action="{BASESCRIPT}?mod=member&op=profileset" class="form-horizontal form-horizontal-left" method="post" name="cpform">
<form id="cpform" action="{MOD_URL}&op=profileset" class="form-horizontal form-horizontal-left" method="post" name="cpform">
<input type="hidden" value="{FORMHASH}" name="formhash">
<input type="hidden" value="true" name="editsubmit">
<input type="hidden" value="$fieldid" name="fieldid">
@ -97,14 +97,14 @@
<div class="form-group">
<label class="control-label ">{lang form_type}</label>
<div class="controls-adapt">
<label class="radio-inline"><input type="radio" name="formtype" value="text" onclick="$('valuenumber').style.display = '';$('fieldchoices').style.display = 'none';$('fieldvalidate').style.display = '';" <!--{if $field[formtype]=='text'}-->checked="checked"<!--{/if}-->>{lang HtmlInputText}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="text" onclick="document.getElementById('valuenumber').style.display = '';document.getElementById('fieldchoices').style.display = 'none';document.getElementById('fieldvalidate').style.display = '';" <!--{if $field[formtype]=='text'}-->checked="checked"<!--{/if}-->>{lang HtmlInputText}</label>
<!--{if $fieldid!='realname'}-->
<label class="radio-inline"><input type="radio" name="formtype" value="textarea" onclick="$('valuenumber').style.display = '';$('fieldchoices').style.display = 'none';$('fieldvalidate').style.display = '';" <!--{if $field[formtype]=='textarea'}-->checked="checked"<!--{/if}-->>{lang HtmlTextArea}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="radio" onclick="$('valuenumber').style.display = 'none';$('fieldchoices').style.display = '';$('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='radio'}-->checked="checked"<!--{/if}-->>{lang radio}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="checkbox" onclick="$('valuenumber').style.display = '';$('fieldchoices').style.display = '';$('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='checkbox'}-->checked="checked"<!--{/if}-->>{lang checkBox}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="select" onclick="$('valuenumber').style.display = 'none';$('fieldchoices').style.display = '';$('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='select'}-->checked="checked"<!--{/if}-->>{lang combobox}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="list" onclick="$('valuenumber').style.display = '';$('fieldchoices').style.display = '';" <!--{if $field[formtype]=='list'}-->checked="checked"<!--{/if}-->>{lang more_choose_list}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="file" onclick="$('valuenumber').style.display = '';$('fieldchoices').style.display = 'none';$('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='file'}-->checked="checked"<!--{/if}-->>{lang upload_image}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="textarea" onclick="document.getElementById('valuenumber').style.display = '';document.getElementById('fieldchoices').style.display = 'none';document.getElementById('fieldvalidate').style.display = '';" <!--{if $field[formtype]=='textarea'}-->checked="checked"<!--{/if}-->>{lang HtmlTextArea}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="radio" onclick="document.getElementById('valuenumber').style.display = 'none';document.getElementById('fieldchoices').style.display = '';document.getElementById('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='radio'}-->checked="checked"<!--{/if}-->>{lang radio}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="checkbox" onclick="document.getElementById('valuenumber').style.display = '';document.getElementById('fieldchoices').style.display = '';document.getElementById('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='checkbox'}-->checked="checked"<!--{/if}-->>{lang checkBox}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="select" onclick="document.getElementById('valuenumber').style.display = 'none';document.getElementById('fieldchoices').style.display = '';document.getElementById('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='select'}-->checked="checked"<!--{/if}-->>{lang combobox}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="list" onclick="document.getElementById('valuenumber').style.display = '';document.getElementById('fieldchoices').style.display = '';" <!--{if $field[formtype]=='list'}-->checked="checked"<!--{/if}-->>{lang more_choose_list}</label>
<label class="radio-inline"><input type="radio" name="formtype" value="file" onclick="document.getElementById('valuenumber').style.display = '';document.getElementById('fieldchoices').style.display = 'none';document.getElementById('fieldvalidate').style.display = 'none';" <!--{if $field[formtype]=='file'}-->checked="checked"<!--{/if}-->>{lang upload_image}</label>
<!--{/if}-->
</div>
</div>
@ -209,7 +209,7 @@
</div>
<script type="text/javascript">
jQuery('.left-drager').leftDrager_layout();
var url = '{BASESCRIPT}?mod=member';
var url = '{MOD_URL}';
jQuery(document).ready(function(e) {
jQuery('input').iCheck({
checkboxClass: 'icheckbox_minimal-blue',

View File

@ -372,10 +372,10 @@ if($do=='importing'){
$ext=strtolower(substr(strrchr($_FILES['importfile']['name'], '.'), 1, 10));
if(!in_array($ext,$allowext)) showmessage('orguser_import_xls_xlsx',dreferer());
if($file=uploadtolocal($_FILES['importfile'],'cache','',array('xls','xlsx'))){
$url=ADMINSCRIPT.'?mod=orguser&op=import&do=list&file='.urlencode($file);
$url=outputurl($_G['siteurl'].MOD_URL.'&op=import&do=list&file='.urlencode($file));
@header("Location: $url");
exit();
showmessage('orguser_import_user_message',ADMINSCRIPT.'?mod=orguser&op=import&do=list&file='.urlencode($file));
showmessage('orguser_import_user_message',outputurl($_G['siteurl'].MOD_URL.'?mod=orguser&op=import&do=list&file='.urlencode($file)));
}else{
showmessage('orguser_import_tautology',dreferer());
}

View File

@ -446,6 +446,10 @@ function appendModerator(json){
html+=' <p class="text-center" style="height:20px;margin:5px 0;line-height:25px;overflow:hidden;"> '+json.username+'</p>';
html+=' </li>';
jQuery('#moderators_container_'+json.orgid+' .moderators-acceptor').after(html);
var inst = jQuery("#classtree").jstree(true);
var node= inst.get_node('#'+json.orgid);
inst.refresh_node(node);
}
function moderator_del(id,orgid,obj){
jQuery.post(ajaxurl+'do=moderator_del',{'orgid':orgid,'id':id,'t':new Date().getTime()},function(json){

View File

@ -65,8 +65,9 @@
</label>
--> <select name="groupid" class="form-control" <!--{if $_G[ 'adminid']!=1}-->disabled="disabled"<!--{/if}-->>
<!--{loop $_G['cache']['usergroups'] $groupid $group}-->
<!--{{if !in_array($groupid ,array('2','3','4','5','6','7','8'))}-->
<option <!--{if $groupid==9}-->selected="selected"<!--{/if}-->value="$groupid">$group['grouptitle']
</option>
</option><!--{/if}-->
<!--{/loop}-->
</select>
</div>

View File

@ -107,8 +107,9 @@
<!-- <label class="checkbox-inline" ><input type="checkbox" name="adminid" <!--{if $_G['adminid']!=1}-->disabled="disabled"<!--{/if}-->value="1"<!--{if $user[adminid]==1}-->checked<!--{/if}-->>{lang set_system_administrator}</label>-->
<select name="groupid" class="form-control" <!--{if $_G[ 'adminid']!=1}-->disabled="disabled"<!--{/if}-->style="width:160px;">
<!--{loop $_G['cache']['usergroups'] $groupid $group}-->
<!--{{if !in_array($groupid ,array('2','3','4','5','6','7','8'))}-->
<option <!--{if $user[ 'groupid']==$groupid}-->selected="selected"<!--{/if}-->value="$groupid">$group['grouptitle']</option>
<!--{/if}-->
<!--{/loop}-->
</select>
</div>

View File

@ -39,7 +39,7 @@
<p style="line-height:4"><strong>{lang step}</strong><strong>2</strong>{lang inport_guide_user}。</p>
<div>
<form name="importfile" class="form-horizontal form-horizontal-left" method="post" action="{ADMINSCRIPT}?mod=orguser&op=import" id="importfile" enctype="multipart/form-data">
<form name="importfile" class="form-horizontal form-horizontal-left" method="post" action="{MOD_URL}&op=import" id="importfile" enctype="multipart/form-data">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="importfilesubmit" value="true">

View File

@ -72,11 +72,11 @@ if (!submitcheck('settingsubmit')) {
$setting['maxChunkSize'] = round($setting['maxChunkSize'] / (1024 * 1024), 2);
$navtitle = lang('upload_set');
$setting['unRunExts'] = implode(',', dunserialize($setting['unRunExts']));
$usergroups = DB::fetch_all("select f.*,g.grouptitle from %t f LEFT JOIN %t g ON g.groupid=f.groupid where f.groupid IN ('1','2','9') order by groupid DESC", array('usergroup_field', 'usergroup'));
$usergroups = DB::fetch_all("select f.*,g.grouptitle from %t f LEFT JOIN %t g ON g.groupid=f.groupid where f.groupid NOT IN ('2','3','4','5','6','7','8') order by groupid DESC", array('usergroup_field', 'usergroup'));
} elseif ($operation == 'at') {
$navtitle = '@'.lang('sector_set');
$setting['at_range'] = dunserialize($setting['at_range']);
$usergroups = DB::fetch_all("select f.*,g.grouptitle from %t f LEFT JOIN %t g ON g.groupid=f.groupid where f.groupid IN ('1','2','9') order by groupid DESC", array('usergroup_field', 'usergroup'));
$usergroups = DB::fetch_all("select f.*,g.grouptitle from %t f LEFT JOIN %t g ON g.groupid=f.groupid where f.groupid NOT IN ('2','3','4','5','6','7','8') order by groupid DESC", array('usergroup_field', 'usergroup'));
} elseif ($operation == 'access') {
$navtitle = lang('register_visit');
/*if($setting['welcomemsg'] == 1) {
@ -144,7 +144,7 @@ if (!submitcheck('settingsubmit')) {
}*/
$openarr=json_encode(array('orgids'=>$open));
//获取用户组空间设置数据
$usergroups = DB::fetch_all("select f.*,g.grouptitle from %t f LEFT JOIN %t g ON g.groupid=f.groupid where f.groupid IN ('1','2','9') order by groupid DESC", array('usergroup_field', 'usergroup'));
$usergroups = DB::fetch_all("select f.*,g.grouptitle from %t f LEFT JOIN %t g ON g.groupid=f.groupid where f.groupid NOT IN ('2','3','4','5','6','7','8') order by groupid DESC", array('usergroup_field', 'usergroup'));
}elseif($operation == 'permgroup'){
$perms = get_permsarray();//获取所有权限;
@ -209,6 +209,7 @@ if (!submitcheck('settingsubmit')) {
}
$settingnew['thumbsize'][$key] = $value;
}
//设置默认应用
if($settingnew["default_mod"] && $settingnew["default_mod"]!=$_GET["old_default_mod"]){
$configfile = DZZ_ROOT.'data/cache/default_mod.php';
@ -387,6 +388,14 @@ if (!submitcheck('settingsubmit')) {
if ($settings) {
C::t('setting') -> update_batch($settings);
}
if($operation == 'basic'){
if($settingnew['sitelogo'] && $settingnew['sitelogo']!=$setting['sitelogo']){
if($setting['sitelogo']) C::t('attachment')->delete_by_aid($setting['sitelogo']);
C::t('attachment')->addcopy_by_aid($settingnew['sitelogo'],1);
}
}
if ($updatecache) {
updatecache('setting');
}

View File

@ -181,7 +181,7 @@
<img src="static/image/common/logo.png" class="upold-add">
<!--{/if}-->
<input type="file" name="files[]" value="" class="file-hidde" />
<input type="hidden" name="settingnew[sitelogo]" value="$settingnew[sitelogo]" class="build-images" />
<input type="hidden" name="settingnew[sitelogo]" value="$setting[sitelogo]" class="build-images" />
<div class="progress-bar"></div>
</div>

View File

@ -175,7 +175,6 @@ if ($operation == 'export') {
C::t('cache') -> insert(array('cachekey' => 'db_export', 'cachevalue' => serialize(array('dateline' => $_G['timestamp'])), 'dateline' => $_G['timestamp'], ), false, true);
$msg .= lang('database_export_multivol_succeed', array('volume' => $volume, 'filelist' => $filelist));
$msg_type = 'text-success';
//cpmsg('database_export_multivol_succeed', '', 'succeed', array('volume' => $volume, 'filelist' => $filelist));
}
unset($sqldump, $zip, $content);
fclose($fp);
@ -184,7 +183,6 @@ if ($operation == 'export') {
C::t('cache') -> insert(array('cachekey' => 'db_export', 'cachevalue' => serialize(array('dateline' => $_G['timestamp'])), 'dateline' => $_G['timestamp'], ), false, true);
$msg .= lang('database_export_zip_succeed', array('filename' => $filename));
$msg_type = 'text-success';
//cpmsg('database_export_zip_succeed', '', 'succeed', array('filename' => $filename));
} else {
@touch('./data/' . $backupdir . '/index.htm');
for ($i = 1; $i <= $volume; $i++) {
@ -252,7 +250,6 @@ if ($operation == 'export') {
} else {
$msg = lang('database_shell_fail');
$msg_type = 'text-error';
//cpmsg('database_shell_fail', '', 'error');
}
@ -331,19 +328,8 @@ if ($operation == 'export') {
$info['datafile_server'] = '.' . $info['filename'];
$key = substr(strrchr($info['filename'], "/"), 1);
$list[$key] = $info;
/*showtablerow('', '', array(
"<input class=\"checkbox\" type=\"checkbox\" name=\"delete[]\" value=\"".basename($info['filename'])."\">",
"<a href=\"$info[filename]\">".substr(strrchr($info['filename'], "/"), 1)."</a>",
'',
$info['dateline'],
$lang['db_export_'.$info['type']],
$info['size'],
$info['method'],
'',
"<a href=\"".$datasiteurl."restore.php?operation=importzip&datafile_server=$datafile_server&importsubmit=yes\" onclick=\"return confirm('$lang[db_import_confirm_zip]');\" class=\"act\" target=\"_blank\">$lang[db_import_unzip]</a>"
));*/
}
//print_r($list);
} else {
if (is_array($_GET['delete'])) {
@ -385,7 +371,6 @@ if ($operation == 'export') {
exit();
}
$runquerys = array();
//include_once(DZZ_ROOT.'source/admincp/admincp_quickquery.php');
if (!submitcheck('sqlsubmit')) {
} else {
@ -499,7 +484,7 @@ function sqldumptablestruct($table) {
}
$tablestatus = DB::fetch_first("SHOW TABLE STATUS LIKE '$table'");
$tabledump .= ($tablestatus['Auto_increment'] ? " AUTO_INCREMENT=$tablestatus[Auto_increment]" : '') . ";\n\n";
$tabledump .= ($tablestatus['Auto_increment'] ? " AUTO_INCREMENT=$tablestatus[Auto_increment]" : ''). ";\n\n";
if ($_GET['sqlcompat'] == 'MYSQL40' && $db -> version() >= '4.1' && $db -> version() < '5.1') {
if ($tablestatus['Auto_increment'] <> '') {
$temppos = strpos($tabledump, ',');
@ -552,7 +537,7 @@ function sqldumptable($table, $startfrom = 0, $currsize = 0) {
while ($row = $db -> fetch_row($rows)) {
$comma = $t = '';
for ($i = 0; $i < $numfields; $i++) {
$t .= $comma . ($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x' . bin2hex($row[$i]) : '\'' . (function_exists('mysqli_real_escape_string')?mysqli_real_escape_string($row[$i]): addslashes($row[$i])) . '\'');
$t .= $comma . ($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x' . bin2hex($row[$i]) : '\'' . (function_exists('mysql_escape_string')?mysql_escape_string($row[$i]): addslashes($row[$i])) . '\'');
$comma = ',';
}
if (strlen($t) + $currsize + strlen($tabledump) + 500 < $_GET['sizelimit'] * 1000) {
@ -584,7 +569,7 @@ function sqldumptable($table, $startfrom = 0, $currsize = 0) {
while ($row = $db -> fetch_row($rows)) {
$t2 = $comma2 = '';
for ($i = 0; $i < $numfields; $i++) {
$t2 .= $comma2 . ($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x' . bin2hex($row[$i]) : '\'' . (function_exists('mysqli_real_escape_string')?mysqli_real_escape_string($row[$i]): addslashes($row[$i])) . '\'');
$t2 .= $comma2 . ($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x' . bin2hex($row[$i]) : '\'' . (function_exists('mysql_escape_string')?mysql_escape_string($row[$i]): addslashes($row[$i])) . '\'');
$comma2 = ',';
}
if (strlen($t1) + $currsize + strlen($tabledump) + 500 < $_GET['sizelimit'] * 1000) {

View File

@ -110,31 +110,6 @@ $_config['memory']['eaccelerator'] = 0; // 启动对 eaccelerator 的支持
$_config['memory']['wincache'] = 1; // 启动对 wincache 的支持
// 命名空间相关设置
/**
* 配置相应命名空间路径
* $_config['namespacelist'] = array(
* 'root' =>DZZ_ROOT,
* 'coreroot' => DZZ_ROOT.'core')
*
*/
$_config['namespacelist'] = array(
'root' =>DZZ_ROOT,
'coreroot' => DZZ_ROOT.'core',
'admin' => DZZ_ROOT.'admin',
'core' => CORE_PATH,
'dzz' => DZZ_ROOT.APP_DIRNAME,
'user' => DZZ_ROOT.'user',
'misc' => DZZ_ROOT.'misc'
);
$_config['default_mod'] = 'index';
$_config['default_op'] = 'index';
$_config['dafault_action'] = 'index';
// 服务器相关设置
$_config['server']['id'] = 1; // 服务器编号多webserver的时候用于标识当前服务器的ID
@ -147,6 +122,8 @@ $_config['output']['charset'] = 'utf-8'; // 页面字符集
$_config['output']['forceheader'] = 1; // 强制输出页面字符集,用于避免某些环境乱码
$_config['output']['gzip'] = 0; // 是否采用 Gzip 压缩输出
$_config['output']['tplrefresh'] = 1; // 模板自动刷新开关 0=关闭, 1=打开
$_config['output']['language'] = 'zh-cn'; // 页面语言 zh-cn/zh-tw
$_config['output']['language_list']['zh-cn']='简体中文'; // 页面语言 zh-cn/en-us

View File

@ -52,15 +52,23 @@ class Wopi
static function GetFile($path)
{
$filepath=IO::getStream($path);
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=' .$meta['name']);
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' .filesize($filepath));
readfile($filepath);
exit;
$meta=IO::getMeta($path);
if(!$filesize=filesize($filepath)) $filesize=$meta['size'];
$chunk = 10 * 1024 * 1024;
if(!$fp = @fopen($filepath, 'rb')) {
exit();
}
dheader('Content-Disposition: attachment; filename='.$meta['name']);
dheader('Content-Type: application/octet-stream');
dheader('Content-Length: '.$filesize);
@ob_end_clean();if(getglobal('gzipcompress')) @ob_start('ob_gzhandler');
while (!feof($fp)) {
echo fread($fp, $chunk);
@ob_flush(); // flush output
@flush();
}
fclose($fp);
exit();
}
static function PutFile($path,$lock='')
@ -268,7 +276,7 @@ class Wopi
'urlsrc'=>(string)$value['urlsrc']
);
if(empty($temparr['ext'])) continue;
if(isset($actions[$temparr['action']][$temparr['ext']])) continue;
//if(isset($actions[$temparr['action']][$temparr['ext']])) continue;
$exts[$temparr['ext']]=$temparr['ext'];
$actions[$temparr['action']][$temparr['ext']]=$temparr['urlsrc'];
}

View File

@ -18,7 +18,10 @@ class core
private static $prefixDirsPsr4 = array();
private static $fallbackDirsPsr4 = array();
public static function app() {
public static function app($params=array()) {
if(!is_object(self::$_app)) {
self::$_app = dzz_app::instance($params);
}
return self::$_app;
}
@ -321,7 +324,7 @@ class core
public static function loadConfig($file = null){
if($file && file_exists($file)){
return include_once $file;
return include $file;
}else{
return false;

View File

@ -3,7 +3,12 @@
if(!defined('IN_DZZ')) {
exit('Access Denied');
}
if(function_exists('ini_get')) {
$memorylimit = @ini_get('memory_limit');
if($memorylimit && return_bytes($memorylimit) < 536870912 && function_exists('ini_set')) {
ini_set('memory_limit', '512m');
}
}
class image {

View File

@ -4,20 +4,60 @@ if(!defined('IN_DZZ')) {
}
function xml2array(&$xml, $isnormal = FALSE,$encodeing='ISO-8859-1') {
$xml_parser = new XMLparse($isnormal,$encodeing);
$xml_parser = new XMLparse($isnormal,$encodeing);
$data = $xml_parser->parse($xml);
$xml_parser->destruct();
return $data;
}
function xmlattribute( $xml, $encodeing='ISO-8859-1') {
$xml = str_replace($encodeing, 'UTF-8', $xml);
libxml_disable_entity_loader(true);
$values = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement')), true);
if( $values["item"] ){
$data=attribute2arr($values["item"]);
}
return $data;
}
function attribute2arr( $values,$data=array() ){
foreach( $values as $k=>$v ){
if( isset($v["item"]) ){
$return = attribute2arr($v["item"]);
if($return) $data[$v['@attributes']["id"]]=$return ;
}
if( count($v['@attributes'])>1 ){
$data[$v['@attributes']["id"]]["_attributes"]=$v['@attributes'];
unset($data[$v['@attributes']["id"]]["_attributes"]["id"]);
}
}
return $data;
}
function array2xml($arr, $htmlon = TRUE, $isnormal = FALSE, $level = 1,$encodeing='ISO-8859-1') {
$s = $level == 1 ? "<?xml version=\"1.0\" encoding=\"".$encodeing."\"?>\r\n<root>\r\n" : '';
$space = str_repeat("\t", $level);
foreach($arr as $k => $v) {
if($k=="_attributes"){
continue;
}
$string="";
if( isset($arr['_attributes'])){
foreach($arr["_attributes"] as $k2=>$v2){
if($k2==$k){
foreach($v2 as $k3=>$v3){
$string.=' '.$k3.'="'.$v3.'"';
}
}
}
}
if(!is_array($v)) {
$s .= $space."<item id=\"$k\">".($htmlon ? '<![CDATA[' : '').$v.($htmlon ? ']]>' : '')."</item>\r\n";
} else {
$s .= $space."<item id=\"$k\">\r\n".array2xml($v, $htmlon, $isnormal, $level + 1,$encodeing).$space."</item>\r\n";
$s .= $space."<item id=\"$k\"$string>".($htmlon ? '<![CDATA[' : '').$v.($htmlon ? ']]>' : '')."</item>\r\n";
} else {
$s .= $space."<item id=\"$k\"$string>\r\n".array2xml($v, $htmlon, $isnormal, $level + 1,$encodeing).$space."</item>\r\n";
}
}
$s = preg_replace("/([\x01-\x08\x0b-\x0c\x0e-\x1f])+/", ' ', $s);

File diff suppressed because it is too large Load Diff

View File

@ -34,6 +34,7 @@ class dzz_io
}else{
return false;
}
return new $classname($path);
}
function MoveToSpace($path,$attach,$ondup='overwrite'){

View File

@ -111,10 +111,15 @@ class helper_browser
{
$agent = strtolower($_SERVER['HTTP_USER_AGENT']);
if (preg_match("/WindowsWechat/i", $agent)) {
return 'WindowsWechat';
} elseif (preg_match("/MicroMessenger/i", $agent)) {
return false;//return 'WindowsWechat';pc微信客户端打开pc版
}
elseif (preg_match("/macintosh/i", $agent) && preg_match("/MicroMessenger/i", $agent)) {
return false;//苹果电脑系统pc端
}
elseif (preg_match("/MicroMessenger/i", $agent)) {
return 'wechat';
} elseif (preg_match("/iphone/i", $agent) && preg_match("/mac os/i", $agent)) {
}
elseif (preg_match("/iphone/i", $agent) && preg_match("/mac os/i", $agent)) {
return 'iPhone';
} elseif (preg_match("/ipod/i", $agent) && preg_match("/mac os/i", $agent)) {
return 'iPod';

View File

@ -54,7 +54,7 @@ class helper_security {
$replaces[] = '&gt;';
if($ms[1]) {
$allowtags = 'img|a|font|div|table|tbody|caption|tr|td|th|br|p|b|strong|i|u|em|span|ol|ul|li|blockquote|pre|hr|embed';
$allowtags = 'img|a|font|div|table|tbody|caption|tr|td|th|br|p|b|strong|i|u|em|span|ol|ul|li|blockquote|pre|hr|embed|h1|h2|h3|h4|h5|h6';
$ms[1] = array_unique($ms[1]);
foreach ($ms[1] as $value) {
$searchs[] = "&lt;".$value."&gt;";

View File

@ -44,7 +44,7 @@ class io_baiduPCS extends io_api
if(($re=$this->makeDir($fpath)) && $re['error']){ //创建目录
return $re;
}
$obz=io_remote::getBzByRemoteid($attach['remote']);
if($obz=='dzz'){
$opath='dzz::'.$attach['attachment'];
@ -55,7 +55,7 @@ class io_baiduPCS extends io_api
if($re=$this->multiUpload($opath,$fpath,$filename,$attach,$ondup)){
if($re['error']) return $re;
else{
return true;
return $re;
}
}
return false;
@ -325,6 +325,8 @@ class io_baiduPCS extends io_api
$imgcachePath='imgcache/';
$cachepath=str_replace(':','/',$path);
$cachepath=preg_replace("/\/+/",'/',str_replace(':','/',$path));
echo $path;
die;
$target = $imgcachePath . ($cachepath) . '.' . $width . '_' . $height. '_'.$thumbtype.'.jpeg';
if(!$original && @getimagesize($_G['setting']['attachdir'].'./'.$target)){
if($returnurl) return $_G['setting']['attachurl'].'/'.$target;
@ -366,7 +368,7 @@ class io_baiduPCS extends io_api
$bzarr=self::parsePath($path);
$pcs=self::init($path,1);
if(is_array($pcs) && $pcs['error']) return $pcs;
$result = $pcs->thumbnail($bzarr['path'], $width, $height, $quality);
$result = $pcs->thumbnail($bzarr['path'], $width, $height,80);
$targetpath = dirname($_G['setting']['attachurl'].'./'.$target);
dmkdir($targetpath);
file_put_contents($_G['setting']['attachdir'].'./'.$target,$result);

View File

@ -502,7 +502,7 @@ class io_dzz extends io_api
$oldaid = $icoarr['aid'];
//更新附件数量
if ($oldaid != $attach['aid']) {
C::t('resources')->update($rid, array('size' => $attach['filesize']));
C::t('resources')->update_by_rid($rid, array('size' => $attach['filesize']));
C::t('resources_statis')->add_statis_by_rid($rid, array('editdateline' => TIMESTAMP));
C::t('resources_attr')->update_by_skey($icoarr['rid'], $icoarr['vid'], array('aid' => $attach['aid']));
C::t('attachment')->update($attach['aid'], array('copys' => $attach['copys'] + 1));
@ -1042,7 +1042,7 @@ class io_dzz extends io_api
}
$fname = self::name_filter($fname);
if (!$folder = DB::fetch_first("select fid,pfid,iconview,disp,gid,perm_inherit from %t where fid=%d", array('folder', $pfid))) {
if (!$folder = C::t('folder')->fetch($pfid)){//DB::fetch_first("select fid,pfid,iconview,disp,gid,perm_inherit from %t where fid=%d", array('folder', $pfid))) {
return array('error' => lang('parent_directory_not_exist'));
}
if (!perm_check::checkperm_Container($pfid, 'folder')) {
@ -1127,7 +1127,8 @@ class io_dzz extends io_api
}
return array('icoarr' => $setarr1, 'folderarr' => $setarr);
} else {
C::t('folder')->delete_by_fid();
C::t('folder')->delete_by_fid($setarr['fid'],true);
return array('error' => lang('data_error'));
}
}
return false;
@ -1517,7 +1518,7 @@ class io_dzz extends io_api
}
$re['monthdate'] = dgmdate($re['dateline'],'m-d');
$re['hourdate'] = dgmdate($re['dateline'],'H:i');
$re['pfid'] = $pfid;
$re['pfid'] = $data['pfid'];
$re['colect'] = 0;
$data['icoarr'][] = $re;
return $data;
@ -2212,9 +2213,11 @@ class io_dzz extends io_api
$newname = self::getFolderName($fname, $pfid);
self::rename($finfo['rid'], $newname);
}
DB::update('resources', array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $pfid), array('rid' => $finfo['rid']));
//DB::update('resources', array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $pfid), array('rid' => $finfo['rid']));
C::t('resources')->update_by_rid($finfo['rid'],array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $pfid));
}
DB::update('folder', array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $pfid), array('fid' => $finfo['fid']));
//DB::update('folder', array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $pfid), array('fid' => $finfo['fid']));
C::t('folder')->update($finfo['fid'],array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $pfid));
}
$pfid = $data['pfid'] = $finfo['fid'];
} else {
@ -2291,8 +2294,10 @@ class io_dzz extends io_api
$rids[] = $v['rid'];
}
}
if (count($rids) > 0) DB::update('resources', array('pfid' => $rinfo['oid']), 'rid in(' . dimplode($rids) . ')');
if (count($fids) > 0) DB::update('folder', array('pfid' => $rinfo['oid']), 'fid in(' . dimplode($fids) . ')');
// DB::update('resources', array('pfid' => $rinfo['oid']), 'rid in(' . dimplode($rids) . ')');
if (count($rids) > 0) C::t('resources')->update_by_rid($rids,array('pfid' => $rinfo['oid']));
//DB::update('folder', array('pfid' => $rinfo['oid']), 'fid in(' . dimplode($fids) . ')');
if (count($fids) > 0) C::t('folder')->update($fids, array('pfid' => $rinfo['oid']));
//更改当前目录下所有下级文件路径
C::t('resources_path')->update_pathdata_by_fid($icoarr['oid'], $rinfo['oid'], true);
//更改动态归属
@ -2317,7 +2322,8 @@ class io_dzz extends io_api
if ($icoarr['isdelete'] > 0) {
$recoverarr = array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $icoarr['pfid']);
//恢复文件夹表数据和resources表数据
if (DB::update('folder', $recoverarr, 'fid =' . $icoarr['oid']) && DB::update('resources', $recoverarr, "rid ='{$rid}'")) {
//if (DB::update('folder', $recoverarr, 'fid =' . $icoarr['oid']) && DB::update('resources', $recoverarr, "rid ='{$rid}'")) {
if(C::t('folder')->update($icoarr['oid'],$recoverarr) && C::t('resources')->update_by_rid($rid,$recoverarr)){
$hash = C::t('resources_event')->get_showtpl_hash_by_gpfid($icoarr['pfid'], $icoarr['gid']);
//添加事件
$eventdata1 = array('username' => $_G['username'], 'position' => $path, 'filename' => $icoarr['name'], 'hash' => $hash);
@ -2361,7 +2367,8 @@ class io_dzz extends io_api
}
//恢复文件
if (DB::update('resources', $recoverarr, array('rid' => $rid))) {
//if (DB::update('resources', $recoverarr, array('rid' => $rid))) {
if(C::t('resources')->update_by_rid($rid,$recoverarr)){
//删除回收站收据
C::t('resources_recyle')->delete_by_rid($icoarr['rid']);
//添加事件
@ -2490,19 +2497,22 @@ class io_dzz extends io_api
$rids[] = $v['rid'];
}
//修改文件夹表数据和resources表数据
// DB::update('resources', array('oid' => $folder['fid'], 'pfid' => $pfid, 'gid' => $gid, 'uid' => $_G['uid'], 'username' => $_G['username']), array('rid' => $rid)
if (C::t('folder')->update($folder['fid'], $folder) &&
DB::update('resources', array('oid' => $folder['fid'], 'pfid' => $pfid, 'gid' => $gid, 'uid' => $_G['uid'], 'username' => $_G['username']), array('rid' => $rid))
C::t('resources')->update_by_rid($rid,array('oid' => $folder['fid'], 'pfid' => $pfid, 'gid' => $gid, 'uid' => $_G['uid'], 'username' => $_G['username']))
) {
//更改文件夹路径
C::t('resources_path')->update_pathdata_by_fid($folder['fid'], $pfid);
if ($fids) {
//修改资源表数据
DB::update('resources', $folderinfo, "pfid IN(" . dimplode($fids) . ")");
//DB::update('resources', $folderinfo, "pfid IN(" . dimplode($fids) . ")");
C::t('resources')->update_by_pfids($fids,$folderinfo);
//更改动态表数据
DB::update('resources_event', $folderinfo, "pfid IN(" . dimplode($fids) . ")");
//更改folder表数据
DB::update('folder', $folderinfo, "pfid IN(" . dimplode($fids) . ")");
// DB::update('folder', $folderinfo, "pfid IN(" . dimplode($fids) . ")");
C::t('folder')->update_by_pfids($fids,$folderinfo);
}
if ($contains['size'] > 0) {
SpaceSize(-$contains['size'], $ogid, 1);
@ -2552,7 +2562,7 @@ class io_dzz extends io_api
$icoarr['pfid'] = $pfid;
$icoarr['isdelete'] = 0;
if (C::t('resources')->update($icoarr['rid'], $icoarr)) {
if (C::t('resources')->update_by_rid($icoarr['rid'], $icoarr)) {
//更改文件动态归属位置
C::t('resources_event')->update_position_by_rid($icoarr['rid'], $icoarr['pfid'], $icoarr['gid']);
//修改分享表状态
@ -2578,7 +2588,7 @@ class io_dzz extends io_api
}
} else {
C::t('resources')->update($icoarr['rid'], array('isdelete' => 0, 'deldateline' => 0));
C::t('resources')->update_by_rid($icoarr['rid'], array('isdelete' => 0, 'deldateline' => 0));
addtoconfig($icoarr);
}
if ($icoarr['type'] == 'folder') C::t('folder')->update($icoarr['oid'], array('isdelete' => 0));

View File

@ -14,7 +14,11 @@ class memory_driver_redis
} else {
$connect = @$this->obj->connect($config['server'], $config['port']);
}
if($config['password']){
@$this->obj->auth($config['password']);
}
} catch (RedisException $e) {
echo $e;
}
$this->enable = $connect ? true : false;
if($this->enable) {

View File

@ -20,6 +20,7 @@ class perm_check{
}
return $perm;
}
function getPerm($fid, $bz='',$i=0){
global $_G;
$i++;
@ -57,9 +58,9 @@ class perm_check{
$power1=new perm_binPerm($perm);
return $power1->mergePower(self::getuserPerm());;
}else{ //继承上级,查找上级
/*if($folder['pfid']>0 && $folder['pfid']!=$folder['fid']){ //有上级目录
/* if($folder['pfid']>0 && $folder['pfid']!=$folder['fid']){ //有上级目录
return self::getPerm($folder['pfid'],$bz,$i);
}else{ //其他的情况使用*/
}else{ */ //其他的情况使用
return self::getuserPerm();
//}
}
@ -68,6 +69,53 @@ class perm_check{
return 3;
}
}
/*function getPerm($fid, $bz=''){
global $_G;
if($paths=C::t('resources_path')->fetch($fid)){
$pfids=array_reverse((array)explode('-',str_replace('_','',$paths['pathkey'])));
foreach($pfids as $fid){
if($folder=C::t('folder')->fetch($fid)){
$perm=intval($folder['perm']);
$power=new perm_binPerm($perm);
if($folder['gid']){
if(C::t('organization_admin')->chk_memberperm($folder['gid'],$_G['uid'])) return perm_binPerm::getGroupPower('all');
if($power->isPower('flag')){//不继承,使用此权限
if($_G['setting']['allowshare']){
$perm=$power->delPower('share');
}
$power1=new perm_binPerm($perm);
return $power1->power;//mergePower(self::getuserPerm());
}else{ //继承上级,查找上级
if($folder['pfid']>0 && $folder['pfid']!=$folder['fid']){ //有上级目录
continue;
}else{ //其他的情况使用
return perm_binPerm::getGroupPower('read');
}
}
}else{
if($power->isPower('flag')){//不继承,使用此权限
if($_G['setting']['allowshare']){
$perm=$power->delPower('share');
}
$power1=new perm_binPerm($perm);
return $power1->mergePower(self::getuserPerm());;
}else{ //继承上级,查找上级
if($folder['pfid']>0 && $folder['pfid']!=$folder['fid']){ //有上级目录
//return self::getPerm($folder['pfid'],$bz,$i);
continue;
}else{ //其他的情况使用
return self::getuserPerm();
}
}
}
}
}
return 7;
}else{
return 7;
}
}*/
function getPerm1($fid, $bz='',$i=0,$newperm = 0){
global $_G;
@ -185,7 +233,7 @@ class perm_check{
if(!perm_FolderSPerm::isPower(perm_FolderSPerm::flagPower($bz),$action)) return false;
return true;
}else{
if($folder=C::t('folder')->fetch_by_fid($pfid)){
if($folder=C::t('folder')->fetch($pfid)){
//首先判断目录的超级权限;
if(!perm_FolderSPerm::isPower($folder['fsperm'],$action)) return false;
//默认目录只有管理员有权限改变排列

View File

@ -47,11 +47,11 @@ class table_comment_attach extends dzz_table
$setarr=array('cid'=>$cid,
'dateline'=>TIMESTAMP,
'aid'=>intval($attach['aid'][$key]),
'title'=>trim($value),
'type'=>trim($attach['type'][$key]),
'img'=>trim($attach['img'][$key]),
'url'=>trim($attach['url'][$key]),
'ext'=>trim($attach['ext'][$key])
'title'=>getstr($value),
'type'=>getstr($attach['type'][$key]),
'img'=>getstr($attach['img'][$key]),
'url'=>getstr($attach['url'][$key]),
'ext'=>getstr($attach['ext'][$key])
);
if(parent::insert($setarr)){
@ -132,6 +132,12 @@ class table_comment_attach extends dzz_table
$data=array();
//$openext=C::t('app_open')->fetch_all_orderby_ext($_G['uid']);
foreach(DB::fetch_all("select * from %t where cid= %d",array($this->_table,$cid)) as $value){
$value['title']=getstr($value['title']);
$value['type']=getstr($value['type']);
$value['url']=getstr($value['url']);
$value['ext']=getstr($value['ext']);
$value['img']=getstr($value['img']);
if($value['aid']>0){
$attach=C::t('attachment')->fetch($value['aid']);
if(in_array(strtolower($attach['filetype']),array('png','jpeg','jpg','gif','bmp'))){
@ -151,6 +157,7 @@ class table_comment_attach extends dzz_table
$value['preview']=1;
$data[$value['qid']]=$value;
}
}
return $data;
}

View File

@ -14,7 +14,6 @@ class table_folder extends dzz_table
$this->_pk = 'fid';
$this->_pre_cache_key = 'folder_';
$this->_cache_ttl = 60 * 60;
$this->noperm = (getglobal('appGreenChannel')) ? getglobal('appGreenChannel') : false;
parent::__construct();
}
@ -38,6 +37,17 @@ class table_folder extends dzz_table
}
return $ret;
}
public function update_by_pfids($pfids,$setarr){
if(!is_array($pfids)) $pfids = (array)$pfids;
$fids = array();
foreach(DB::fetch_all("select fid from %t where pfid in(%n)",array($this->_table,$pfids)) as $v){
$fids[] = $v['fid'];
}
foreach($fids as $v){
self::update($v,$setarr);
}
return true;
}
//更改继承权限
public function update_perm_inherit_by_fid($fids)
@ -45,22 +55,19 @@ class table_folder extends dzz_table
if (!is_array($fids)) $fids = (array)$fids;
foreach ($fids as $value) {
$perm_inherit = perm_check::getPerm1($value);
DB::update('folder', array('perm_inherit' => $perm_inherit), "fid='{$value}'");
parent::update($value,array('perm_inherit' => $perm_inherit));
}
}
public function insert($data, $appid = 0)
{
if (empty($data)) {
return false;
}
if ($path['fid'] = parent::insert($data, 1)) {
$perm_inherit = perm_check::getPerm1($path['fid']);
parent::update($path['fid'], array('perm_inherit' => $perm_inherit));
if ($data['pfid']) {
if (!$pdata = C::t('resources_path')->fetch_pathby_pfid($data['pfid'], true)) {
//根据fid生成path和pathkey
$pdata = self::create_pathinfo_by_fid($data['pfid'], $appid);
@ -70,39 +77,32 @@ class table_folder extends dzz_table
}
$path['path'] = $pdata['path'] . $data['fname'] . "/";
$path['pathkey'] = ($pdata['pathkey']) ? $pdata['pathkey'] . '-_' . $path['fid'] . '_' : '_' . $path['fid'] . '_';
} else {
if ($appid) {
$path['path'] = "dzz:app_" . $appid . ":" . $data['fname'] . "/";
} else {
$path['path'] = ($data['gid']) ? "dzz:gid_" . $data['gid'] . ":" . $data['fname'] . "/" : "dzz:uid_" . $data['uid'] . ":" . $data['fname'] . "/";
}
$path['pathkey'] = '_' . $path['fid'] . '_';
}
if (C::t('resources_path')->insert($path)) {
return $path['fid'];
} else {
parent::delete($path['fid']);
}
}
return false;
}
public function get_folder_pathinfo_by_fid($fid, $folderarr = array())
public function get_folder_pathinfo_by_fid($fid, $folderarr = array(), $i = 0)
{
if (!$folderinfo = parent::fetch($fid)) return;
array_unshift($folderarr, array('fname' => $folderinfo['fname'], 'fid' => $folderinfo['fid'], 'gid' => $folderinfo['gid'], 'uid' => $folderinfo['uid']));
if ($folderinfo['pfid']) {
$folderarr = self::get_folder_pathinfo_by_fid($folderinfo['pfid'], $folderarr);
if ($folderinfo['pfid'] > 0 && $i < 100) {
$i++;
$folderarr = self::get_folder_pathinfo_by_fid($folderinfo['pfid'], $folderarr, $i);
}
return $folderarr;
}
@ -110,25 +110,20 @@ class table_folder extends dzz_table
//根据fid生成path和pathkey
public function create_pathinfo_by_fid($fid, $appid = 0)
{
$patharr = array();
if (!$pathdata = self::get_folder_pathinfo_by_fid($fid)) return $patharr;
$pathprefix = ($appid) ? "dzz:app_" . $appid . ":" : '';
$path = '';
$pathkey = '';
foreach ($pathdata as $v) {
if (!$pathprefix) {
$pathprefix = ($v['gid']) ? "dzz:gid_" . $v['gid'] . ":" : "dzz:uid_" . $v['uid'] . ":";
}
$path .= $pathprefix;
$path .= $v['fname'] . '/';
$pathkey .= '_' . $v['fid'] . '_-';
}
$patharr['path'] = $path;
if (!$pathprefix) {
$pathprefix = ($v['gid']) ? "dzz:gid_" . $v['gid'] . ":" : "dzz:uid_" . $v['uid'] . ":";
}
$patharr['path'] = $pathprefix . $path;
$patharr['pathkey'] = substr($pathkey, 0, -1);
return $patharr;
}
@ -159,7 +154,6 @@ class table_folder extends dzz_table
'flag' => 'home',
'innav' => 1,
'fsperm' => perm_FolderSPerm::flagPower('home')
);
if ($rootfid = DB::result_first("select fid from " . DB::table('folder') . " where uid='{$uid}' and flag='home' ")) {
C::t('folder')->update($rootfid, array('fname' => $root['fname'], 'isdelete' => 0, 'pfid' => 0, 'fsperm' => $root['fsperm'], 'perm' => $root['perm']));
@ -171,17 +165,8 @@ class table_folder extends dzz_table
$root['path'] = C::t('resources_path')->fetch_pathby_pfid($rootfid);
return $root;
}
}
/*//查询目录下所有数据
public function fetch_all_by_fid($fids)
{
$data = array();
foreach (self::fetch_all($fids) as $fid => $value) {
if ($arr = self::fetch_by_fid($fid)) $data[$fid] = $arr;
}
return $data;
}*/
//依文件名查询顶级目录
public function fetch_topby_fname($fname)
{
@ -193,11 +178,9 @@ class table_folder extends dzz_table
public function fetch_by_fid($fid, $gid = '')
{
global $_G;
$fid = intval($fid);
if (!$data = self::fetch($fid)) array('error' => lang('file_not_exist'));
$data['title'] = $data['fname'];
//统计文件数
if ($data['gid'] > 0) {//如果是群组
//文件数
@ -210,16 +193,15 @@ class table_folder extends dzz_table
//文件夹数
$data['foldernum'] = DB::result_first("select COUNT(*) from " . DB::table('resources') . " where pfid='{$fid}' and type='folder' and isdelete < 1");
}
$data['perm'] = perm_check::getPerm($fid);
$data['perm1'] = $data['perm_inherit'];
if ($data['gid'] > 0) {
$data['isadmin'] = $data['ismoderator'] = C::t('organization_admin')->is_admin_by_orgid($data['gid'], $_G['uid']);
$permtitle = perm_binPerm::getGroupTitleByPower($data['perm1']);
if (file_exists('dzz/images/default/system/folder-' . $permtitle['flag'] . '.png')) {
$data['icon'] = 'dzz/images/default/system/folder-' . $permtitle['flag'] . '.png';
$data['icon'] = './dzz/images/default/system/folder-' . $permtitle['flag'] . '.png';
} else {
$data['icon'] = 'dzz/images/default/system/folder-read.png';
$data['icon'] = './dzz/images/default/system/folder-read.png';
}
}
$data['realpath'] = C::t('resources_path')->fetch_pathby_pfid($fid);
@ -230,6 +212,26 @@ class table_folder extends dzz_table
return $data;
}
//过滤文件名称
public function name_filter($name)
{
return str_replace(array('/', '\\', ':', '*', '?', '<', '>', '|', '"', "\n"), '', $name);
}
public function getFolderName($name, $pfid, $fid)
{
static $i = 0;
$name = self::name_filter($name);
//echo("select COUNT(*) from ".DB::table('folder')." where fname='{$name}' and pfid='{$pfid}'");
if (DB::result_first("select COUNT(*) from %t where fname=%s and pfid=%d and fid != %d and isdelete<1", array('folder', $name, $pfid, $fid))) {
$name = preg_replace("/\(\d+\)/i", '', $name) . '(' . ($i + 1) . ')';
$i += 1;
return self::getFolderName($name, $pfid, $fid);
} else {
return $name;
}
}
//更改文件夹名称
public function rename_by_fid($fid, $name)
{
@ -243,6 +245,7 @@ class table_folder extends dzz_table
return true;
}
} else {
$name = self::getFolderName($name, $folder['pfid'], $fid);
//更改路径表数据
if (C::t('resources_path')->update_path_by_fid($fid, $name)) {
//增加统计数
@ -262,12 +265,17 @@ class table_folder extends dzz_table
}
//查询组织id
public function fetch_gid_by_fid($fid)
public function fetch_gid_by_fid($fid, $i = 0)
{
if (!$folder = parent::fetch($fid)) return 0;
if ($folder['flag'] == 'organization') return $folder['gid'];
elseif ($folder['pfid']) {
return self::fetch_gid_by_fid($folder['pfid']);
elseif ($folder['pfid'] > 0) {
$i++;
if ($i > 100) {
return $folder['gid'];
}
return self::fetch_gid_by_fid($folder['pfid'], $i);
}
}
@ -276,23 +284,28 @@ class table_folder extends dzz_table
{
if (!$folder = parent::fetch($fid)) return;
$fids[] = $folder['fid'];
if ($folder['pfid']) {
if ($folder['pfid'] > 0) {
$fids = self::fetch_path_by_fid($folder['pfid'], $fids);
}
return $fids;
}
/*
此函数不会删除 $fid对应的 rid数据正常调用是作为C::t('resources')->deletesourcedata()的内部调用;
如果单独调用请注意这个fid应该没有对应的rid
我的网盘 应用主目录 群组和部门主目录 都是没有对应的rid的特殊目录
*/
public function delete_by_fid($fid, $force = false)
{ //清空目录
$folder = self::fetch($fid);
//默认只允许删除文件夹和群组根目录,暂时不允许删除应用根目录
if ($folder['flag'] != 'folder' && $folder['flag'] != 'organization') {
if (!$force && $folder['flag'] != 'folder' && $folder['flag'] != 'organization') {
return false;
}
//判断删除权限
if (!perm_check::checkperm_container($fid, 'delete')) {
return array('error' => lang('no_privilege'));
}
/* if (!perm_check::checkperm_container($fid, 'delete')) {
return array('error' => lang('no_privilege'));
}*/
$rids = array();
$isdelrids = array();
$nodelrids = array();
@ -325,6 +338,7 @@ class table_folder extends dzz_table
}
return self::delete($fid);
}
//删除目录
public function delete($fid)
{
@ -351,11 +365,6 @@ class table_folder extends dzz_table
return $data;
}
public function fetch_all_by_uid()
{
return DB::fetch_all("SELECT * FROM %t WHERE uid='0' ", array($this->_table), 'fid');
}
public function fetch_all_by_pfid($pfid, $count)
{
global $_G;
@ -409,11 +418,13 @@ class table_folder extends dzz_table
public function fetch_folderinfo_by_fid($fid)
{//查询群组目录及文件基本信息
$fid = intval($fid);
$folderinfo = array();
if ($info = DB::fetch_first("select f.*,p.path,p.pathkey from %t f left join %t p on f.fid = p.fid where f.fid = %d ", array($this->_table, 'resources_path', $fid))) {
return $info;
if (!$folderinfo = self::fetch($fid)) {
return false;
}
return false;
$pathinfo = C::t('resources_path')->fetch_pathby_pfid($fid, true);
$info = array_merge($folderinfo, $pathinfo);
return $info;
}
//获取文件夹权限
@ -482,7 +493,6 @@ class table_folder extends dzz_table
} elseif (perm_binPerm::havePower('read1', $folder['perm'])) {
$where1[] = "uid='{$_G[uid]}'";
}
}
$where1 = array_filter($where1);
if (!empty($where1)) $temp[] = "(" . implode(' OR ', $where1) . ")";
@ -501,33 +511,33 @@ class table_folder extends dzz_table
return $infoarr;
}
//查询所有有权限文件夹
public function fetch_all_fid()
{
global $_G;
$uid = $_G['uid'];
$fids = array();
//个人根目录
$personfid = DB::result_first("select fid from %t where uid = %d and flag = %s", array($this->_table, $uid, 'home'));
$fids[] = $personfid;
foreach ($this->fetch_all_folderfid_by_pfid($personfid) as $v) {
$fids[] = $v;
}
//群组部门顶级目录
$orgs = C::t('organization')->fetch_all_orgid();
$orgids = $orgs['orgids'];
$fidarr = DB::fetch_all("select fid from %t where orgid in(%n)", array('organization', $orgids));
//群组目录及下级所有目录fid
foreach ($fidarr as $v) {
$fids[] = $v['fid'];
foreach ($this->fetch_all_folderfid_by_pfid($v['fid']) as $val) {
$fids[] = $val;
/* //查询所有有权限文件夹
public function fetch_all_fid()
{
global $_G;
$uid = $_G['uid'];
$fids = array();
//个人根目录
$personfid = DB::result_first("select fid from %t where uid = %d and flag = %s", array($this->_table, $uid, 'home'));
$fids[] = $personfid;
foreach ($this->fetch_all_folderfid_by_pfid($personfid) as $v) {
$fids[] = $v;
}
}
return $fids;
//群组部门顶级目录
$orgs = C::t('organization')->fetch_all_orgid();
$orgids = $orgs['orgids'];
$fidarr = DB::fetch_all("select fid from %t where orgid in(%n)", array('organization', $orgids));
}
//群组目录及下级所有目录fid
foreach ($fidarr as $v) {
$fids[] = $v['fid'];
foreach ($this->fetch_all_folderfid_by_pfid($v['fid']) as $val) {
$fids[] = $val;
}
}
return $fids;
}*/
//查询目录下所有文件夹的fid

View File

@ -44,18 +44,29 @@ class table_hooks extends dzz_table
}
return $ret;
}
public function insert_by_appid($appid,$hooks){
public function insert_by_appid($appid,$hooks,$attributes=array()){
if(!$appid) return false;
$ret=0;
foreach($hooks as $name =>$addons){
$priority=0;
$description="";
if( $attributes ){//xml导入时附带其他属性如优先级描述等信息
if(isset($attributes[$name]["_attributes"]) ) {
$priority = isset($attributes[$name]["_attributes"]["priority"])?$attributes[$name]["_attributes"]["priority"]:$priority;
$description = isset($attributes[$name]["_attributes"]["description"])?$attributes[$name]["_attributes"]["description"]:$description;
}
}
if($hid=DB::result_first("select id from %t where name=%s and addons=%s",array($this->_table,$name,$addons))){
if(parent::update($hid,array('app_market_id'=>$appid,'status'=>0))){
if(parent::update($hid,array('app_market_id'=>$appid,'priority'=>$priority,'description'=>$description,'status'=>0))){
$ret+=1;
}
}else{
$data=array(
'app_market_id'=>$appid,
'name'=>$name,
'priority'=>$priority,
'description'=>$description,
'type'=>'1',
'addons'=>$addons,
'status'=>0

View File

@ -79,12 +79,14 @@ class table_local_router extends dzz_table
$guize=self::fetch_all_orderby_priority(true);
foreach($guize as $value){
//没有此存储位置
if(!C::t('local_storage')->fetch($value['remoteid'])){
if(!$ldata = C::t('local_storage')->fetch($value['remoteid'])){
continue;
}else{
$available = DB::result_first("select available from %t where bz = %s", array('connect',$ldata['bz']));
if($available <1) continue;
}
//云停用跳转
if($cdata['available']<1) continue;
if($available<1) continue;
if($value['router']['exts']){
if(!in_array(strtolower($data['filetype']),$value['router']['exts'])) continue;
}

View File

@ -320,12 +320,12 @@ class table_organization extends dzz_table
public function setFolderAvailableByOrgid($orgid, $available=0)
{
if (!$org = parent::fetch($orgid)) return false;
/*if ($available > 0 && $org['forgid'] > 0) {//上级没有开启目录共享,下级无法开启
if ($available > 0 && $org['forgid'] > 0) {//上级没有开启目录共享,下级无法开启
$parent = parent::fetch($org['forgid']);
if ($parent['diron'] < 1) return false;
}*/
}
if (parent::update($orgid, array('diron' => $available))) {
self::setFolderByOrgid($orgid);
//self::setFolderByOrgid($orgid);
//include_once libfile('function/cache');
//updatecache('organization');
return true;
@ -372,11 +372,11 @@ class table_organization extends dzz_table
}
if ($fid = DB::result_first("select fid from " . DB::table('folder') . " where gid='{$orgid}' and flag='organization'")) {
C::t('folder')->update($fid, array('fname' => $org['orgname'], 'display' => $org['disp'], 'pfid' => $pfid, 'innav' => $org['available']));
C::t('resources_path')->update_path_by_fid($fid, $org['orgname']);
self::update($orgid, array('fid' => $fid));
if(C::t('folder')->rename_by_fid($fid,$org['orgname'])){
self::update($orgid, array('fid' => $fid));
}
} else {
$folder = array('fname' => $org['orgname'],
$folder = array('fname' => C::t('folder')->getFolderName($org['orgname'],$pfid,$org['fid']),
'pfid' => $pfid,
'display' => $org['disp'],
'flag' => 'organization',
@ -450,9 +450,9 @@ class table_organization extends dzz_table
return $disp;
}
public function chk_by_orgname($orgname)
public function chk_by_orgname($orgname,$type = 0)
{
if (DB::result_first("select count(*) from %t where orgname = %s", array($this->_table, $orgname, getglobal('uid'))) > 0) {
if (DB::result_first("select count(*) from %t where orgname = %s and `type` = %d", array($this->_table, $orgname,$type, getglobal('uid'))) > 0) {
return false;
}
return true;

View File

@ -22,10 +22,11 @@ class table_organization_admin extends dzz_table
public function insert($uid, $orgid,$admintype = 1) {
if(!$uid || !$orgid) return 0;
if(!C::t('organization_user')->fetch_num_by_orgid_uid($orgid,$uid)){
C::t('organization_user')->insert_by_orgid(orgid,uid);
$ret = C::t('organization_user')->insert_by_orgid($orgid,$uid);
}
$id=parent::insert(array("orgid"=>$orgid,'uid'=>$uid,'opuid'=>getglobal('uid'),'dateline'=>TIMESTAMP,'admintype'=>$admintype),1,1);
//self::update_groupid_by_uid($uid);
self::update_groupid_by_uid($uid);
return DB::result_first('select id from %t where uid=%d and orgid=%d',array($this->_table,$uid,$orgid));
}
@ -45,7 +46,7 @@ class table_organization_admin extends dzz_table
$data=self::fetch($id);
if($data['admintye'] == 2) return false;
if($return=parent::delete($id)){
self::update_groupid_by_uid($data['uid']);
self::update_groupid_by_uid($data['uid']);
}
return $return;
}
@ -77,9 +78,11 @@ class table_organization_admin extends dzz_table
return $username;
}
public function update_groupid_by_uid($uid){
return true;
$user=getuserbyuid($uid);
if($user['groupid']==1) return ;
if(DB::result_first("select COUNT(*) from %t where uid=%d",array($this->_table,$uid))){
//判断当前用户是否仍为机构和部门管理员
if(DB::result_first("select COUNT(*) from %t a left join %t o on o.orgid = a.orgid where a.uid=%d and o.type = 0 ",array($this->_table,'organization',$uid))){
$groupid=2;
}else{
$groupid=9;

View File

@ -33,7 +33,7 @@ class table_organization_user extends dzz_table
$ret[$v]=$v;
}
}
if( $org["type"]==0){//非群才同步
if( $org["type"]==0){//非群才同步
self::syn_user( $ret );
}
return $ret;

View File

@ -12,19 +12,19 @@ class table_resources extends dzz_table
$this->_table = 'resources';
$this->_pk = 'rid';
$this->_pre_cache_key = 'resources_';
$this->_cache_ttl = 60 * 60;
parent::__construct();
}
public function insert_data($data)
public function insert_data($data, $rid = '')
{
$rid = self::create_id();
$data['rid'] = $rid;
$data['rid'] = ($rid) ? $rid : self::create_id();
if (parent::insert($data)) {
return $rid;
return $data['rid'];
}
return false;
}
//生成主键rid
@ -37,18 +37,27 @@ class table_resources extends dzz_table
return $idstr;
}
public function getparentsuri($pfid)
/* public function getparentsuri($pfid)
{
$path = array();
if ($parent = DB::result_first('select pfid,fname from %t where fid = %d', array('folder', $pfid))) {
if ($parent['pfid'] > 0 && $parent['pfid'] != $pfid) {
$path[] = $parent['fname'];
self::getparenturi($parent['pfid']);
}
}
$path = array_reverse($path);
$path = implode('/', $path);
return $path;
}*/
public function update_by_pfids($pfids, $setarr)
{
$path = array();
if ($parent = DB::result_first('select pfid,fname from %t where fid = %d', array('folder', $pfid))) {
if ($parent['pfid'] > 0 && $parent['pfid'] != $pfid) {
$path[] = $parent['fname'];
self::getparenturi($parent['pfid']);
}
if (!is_array($pfids)) $pfids = (array)$pfids;
$rids = array();
foreach (DB::fetch_all("select rid from %t where pfid in(%n)", array('resources', $pfids)) as $v) {
$rids[] = $v['rid'];
}
$path = array_reverse($path);
$path = implode('/', $path);
return $path;
return self::update_by_rid($rids, $setarr);
}
public function rename_by_rid($rid, $newname)
@ -58,6 +67,7 @@ class table_resources extends dzz_table
if (!$infoarr = $this->fetch_info_by_rid($rid)) {
return array('error' => lang('file_not_exist'));
}
$cachkey = 'resourcesdata_' . $rid;
$updatepath = false;
if ($infoarr['type'] == 'folder') {
$updatepath = true;
@ -78,13 +88,17 @@ class table_resources extends dzz_table
);
$position = C::t('resources_path')->fetch_pathby_pfid($fid);
$position = preg_replace('/dzz:(.+?):/', '', $position);
if (DB::update($this->_table, array('name' => $newname, 'dateline' => TIMESTAMP), array('rid' => $rid))) {
//DB::update($this->_table, array('name' => $newname, 'dateline' => TIMESTAMP), array('rid' => $rid))
if (self::update_by_rid($rid, array('name' => $newname, 'dateline' => TIMESTAMP))) {
if ($updatepath) {
C::t('folder')->update($infoarr['oid'], array('fname' => $newname));
C::t('resources_path')->update_path_by_fid($infoarr['oid'], $newname);
}
//更新属性表数据
C::t('resources_attr')->update_by_skey($rid, $infoarr['vid'], array('title' => $newname));
//更新缓存
$cachkey = 'resourcesdata_' . $rid;
$this->clear_cache($cachkey);
$statisdata = array(
'uid' => getglobal('uid'),
'edits' => 1,
@ -93,25 +107,22 @@ class table_resources extends dzz_table
C::t('resources_statis')->add_statis_by_rid($rid, $statisdata);
$hash = C::t('resources_event')->get_showtpl_hash_by_gpfid($infoarr['pfid'], $infoarr['gid']);
$eventdata = array('username' => $_G['username'], 'position' => $position, 'filename' => $infoarr['name'], 'newfilename' => $newname, 'hash' => $hash);
if (C::t('resources_event')->addevent_by_pfid($infoarr['pfid'], 'rename_file', 'rename', $eventdata, $infoarr['gid'], $rid, $infoarr['name'])) {
return array('newname' => $newname);
} else {
DB::update('resources_attr', array('title' => $infoarr['name']), array('rid' => $rid, 'vid' => $infoarr['vid']));
DB::update($this->_table, array('name' => $infoarr['name'], 'dateline' => $infoarr['dateline']), array('rid' => $rid));
return array('error' => true);
}
C::t('resources_event')->addevent_by_pfid($infoarr['pfid'], 'rename_file', 'rename', $eventdata, $infoarr['gid'], $rid, $infoarr['name']);
$this->clear_cache($cachkey);
$this->clear_cache($rid);
return array('newname' => $newname);
}
return array('error' => true);
}
//查询文件表基础信息 $notisdelete是否是已删除
public function fetch_info_by_rid($rid, $notisdelete = false)
{
$rid = trim($rid);
$where = ' and 1 ';
if (!$data = parent::fetch($rid)) return false;
if ($notisdelete) {
$where .= ' and isdelete < 1 ';
if ($data['isdelete'] > 0) return false;
}
return DB::fetch_first("select * from %t where rid = %s $where", array($this->_table, $rid));
return $data;
}
//检查权限
@ -135,18 +146,21 @@ class table_resources extends dzz_table
}
$uid = $_G['uid'];
if ($_G['adminid'] == 1) return true;
$ismoderator = C::t('organization_admin')->chk_memberperm($gid, $_G['uid']);
if ($ismoderator) return true;
//判断目录权限
if (DB::result_first("select count(*) from %t where uid=%d and orgid=%d", array('organization_user', $uid, $gid)) < 1) {
return false;
}
$permarr = perm_binPerm::getPowerArr();
foreach ($folderpermarr as $v) {
if (!($v['perm_inherit'] & $permarr[$action . '2']) && !($v['perm_inherit'] & $permarr[$action . '1'])) {
if ($gid) {
//是管理员,肯定有权限
$ismoderator = C::t('organization_admin')->chk_memberperm($gid, $_G['uid']);
if ($ismoderator) return true;
//不是成员,没有权限
if (DB::result_first("select count(*) from %t where uid=%d and orgid=%d", array('organization_user', $uid, $gid)) < 1) {
return false;
}
}
$permarr = perm_binPerm::getPowerArr();
foreach ($folderpermarr as $v) {
if (!((($v['perm_inherit'] & $permarr[$action . '1']) && $v['uid'] == $_G['uid']) || (($v['perm_inherit'] & $permarr[$action . '2'])))) return false;
}
return true;
}
@ -159,7 +173,7 @@ class table_resources extends dzz_table
$rid = trim($rid);
$dels = array();
//判断文件是否存在
if (!$infoarr = DB::fetch_first("select * from %t where rid = %s", array($this->_table, $rid))) {
if (!$infoarr = parent::fetch($rid)) {
return false;
}
$fid = $infoarr['pfid'];
@ -195,28 +209,35 @@ class table_resources extends dzz_table
unset($rfids[$index]);
$ridsstatus = (count($rids) > 0) ? true : false;
$fidssstatus = (count($rfids) > 0) ? true : false;
if (DB::update($this->table, $setarr, array('rid' => $rid))) {
//DB::update($this->table, $setarr, array('rid' => $rid))
if (self::update_by_rid($rid, $setarr)) {
$infoarr['deldateline'] = $setarr['deldateline'];
$infoarr['isdelete'] = $setarr['isdelete'];
//更改下级目录删除状态
if ($ridsstatus) DB::update($this->table, $setarr1, 'rid in(' . dimplode($rids) . ')');
//DB::update($this->table, $setarr1, 'rid in(' . dimplode($rids) . ')');
if ($ridsstatus) self::update_by_rid($rids, $setarr1);
//查询回收站是否有相同数据,如果有合并回收站数据
if ($recyledata = C::t('resources_recyle')->fetch_by_rid($infoarr['rid'])) {
if (DB::update('folder', $setarr, 'fid =' . $currentfid)) {
//DB::update('folder', $setarr, 'fid =' . $currentfid)
if (C::t('folder')->update($currentfid, $setarr)) {
if ($fidssstatus) DB::update('folder', $setarr1, 'fid in(' . dimplode($rfids) . ')');
DB::update('resources_recyle', array('deldateline' => $infoarr['deldateline'], 'uid' => $uid), array('id' => $recyledata['id']));
} else {
if ($ridsstatus) DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), 'rid in(' . dimplode($rids) . ')');
DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), 'rid = ' . $rid);
//DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), 'rid = ' . $rid);
self::update_by_rid($rid, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']));
return array('error' => lang('do_failed'));
}
} else {
if (DB::update('folder', $setarr, 'fid =' . $currentfid)) {
//DB::update('folder', $setarr, 'fid =' . $currentfid)
if (C::t('folder')->update($currentfid, $setarr)) {
if ($fidssstatus) DB::update('folder', $setarr1, 'fid in(' . dimplode($rfids) . ')');
C::t('resources_recyle')->insert_data($infoarr);
} else {
if ($ridsstatus) DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), 'rid in(' . dimplode($rids) . ')');
DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), 'rid = ' . $rid);
//DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), 'rid in(' . dimplode($rids) . ')');
if ($ridsstatus) self::update_by_rid($rids, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']));
//DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), 'rid = ' . $rid);
self::update_by_rid($rid, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']));
return array('error' => lang('do_failed'));
}
}
@ -234,7 +255,8 @@ class table_resources extends dzz_table
return array('error' => lang('file_isdelete_in_recycle'));
}
//执行删除
if (DB::update($this->table, $setarr, array('rid' => $rid))) {
//DB::update($this->table, $setarr, array('rid' => $rid))
if (self::update_by_rid($rid, $setarr)) {
//修改分享表状态
C::t('shares')->change_by_rid($rid);
$infoarr['deldateline'] = $setarr['deldateline'];
@ -243,7 +265,8 @@ class table_resources extends dzz_table
if (C::t('resources_recyle')->insert_data($infoarr)) {
$dels[] = $rid;
} else {//放入回收站失败处理
DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), array('rid' => $rid));
//DB::update($this->table, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']), array('rid' => $rid));
self::update_by_rid($rid, array('isdelete' => 0, 'deldateline' => 0, 'pfid' => $infoarr['pfid']));
}
}
}
@ -273,7 +296,7 @@ class table_resources extends dzz_table
case 'storage':
return 1;
default :
if(!$resource['vid']){
if (!$resource['vid']) {
C::t('attachment')->addcopy_by_aid($resource['aid'], -1);
}
return 1;
@ -283,10 +306,8 @@ class table_resources extends dzz_table
public function delete_by_rid($rid, $force = false)
{ //删除图标
global $_G;
$data = self::fetch_by_rid($rid);
if (!perm_check::checkperm('delete', $data)) {
return array('error' => lang('no_privilege'));
}
$cachekey = 'resourcesdata_' . $rid;
$data = self::getsourcedata($rid);
$status = self::deletesourcedata($data, $force);
//删除相关数据
if ($status == 1) {
@ -301,25 +322,25 @@ class table_resources extends dzz_table
//删除版本表数据
if ($data['vid']) {
C::t('resources_version')->delete_by_rid($rid);
}/* else {
//空间计算移动至版本表
if ($data['size']) SpaceSize(-$data['size'], $data['gid'], 1, $data['uid']);
}*/
}
//删除收藏表数据
C::t('resources_collect')->delete_by_rid($rid);
//删除统计表数据
C::t('resources_statis')->delete_by_rid($rid);
//删除resources表数据
if (self::delete($rid)) {
if (parent::delete($rid)) {
//记录删除事件
$hash = C::t('resources_event')->get_showtpl_hash_by_gpfid($data['pfid'], $data['gid']);
$eventdata = array('username' => $_G['username'], 'position' => $data['relpath'], 'filename' => $data['name'], 'hash' => $hash);
C::t('resources_event')->addevent_by_pfid($data['pfid'], 'finallydel_file', 'finallydelete', $eventdata, $data['gid'], $rid, $data['name']);
$this->clear_cache($cachekey);
return true;
} else {
return false;
}
} elseif ($status == 2) {
$this->clear_cache($rid);
$this->clear_cache($cachekey);
//删除回收站数据
C::t('resources_recyle')->delete_by_rid($rid);
} else {
@ -353,12 +374,7 @@ class table_resources extends dzz_table
$versiondata = array();
if ($vdata) {
$versiondata = array(
/*'aid'=>$vdata['aid'],
'name'=>$vdata['vname'],
'size'=>$vdata['size'],*/
'dateline' => $vdata['dateline'],//文件修改时间
/*'ext'=>$vdata['ext'],
'type'=>$vdata['type']*/
);
}
//查询文件属性信息
@ -380,6 +396,10 @@ class table_resources extends dzz_table
public function fetch_by_rid($rid, $force_from_db = false)
{ //返回一条数据同时加载资源表数据
global $_G;
$cachekey = 'resourcesdata_' . $rid;
if ($data = $this->fetch_cache($cachekey)) {
return $data;
}
$data = array();
if (!$data = self::getsourcedata($rid)) {
return array();
@ -390,10 +410,8 @@ class table_resources extends dzz_table
$data['url'] = DZZSCRIPT . '?mod=io&op=thumbnail&size=large&path=' . dzzencode('attach::' . $data['aid']);
} elseif ($data['type'] == 'attach' || $data['type'] == 'document') {
$data['img'] = geticonfromext($data['ext'], $data['type']);
//$data['img']=DZZSCRIPT.'?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$data['aid']);
$data['url'] = DZZSCRIPT . '?mod=io&op=getStream&path=' . dzzencode('attach::' . $data['aid']);
} elseif ($data['type'] == 'shortcut') {
//$data['img']=isset($data['tdata']['img'])?$data['tdata']['img']:geticonfromext($data['tdata']['ext'],$data['tdata']['type']);
$data['ttype'] = $data['tdata']['type'];
$data['ext'] = $data['tdata']['ext'];
} elseif ($data['type'] == 'dzzdoc') {
@ -407,7 +425,7 @@ class table_resources extends dzz_table
$data['fsize'] = formatsize($contaions['size']);
$data['ffsize'] = lang('property_info_size', array('fsize' => formatsize($contaions['size']), 'size' => $contaions['size']));
$data['contain'] = lang('property_info_contain', array('filenum' => $contaions['contain'][0], 'foldernum' => $contaions['contain'][1]));
$data['img'] = '/dzz/images/extimg/folder.png';
$data['img'] = './dzz/images/extimg/folder.png';
} else {
$data['img'] = isset($data['img']) ? $data['img'] : geticonfromext($data['ext'], $data['type']);
}
@ -433,47 +451,48 @@ class table_resources extends dzz_table
$data['apath'] = $data['aid'] ? dzzencode('attach::' . $data['aid']) : $data['dpath'];
if (!$data['sperm']) $data['sperm'] = perm_FileSPerm::typePower($data['type'], $data['ext']);
Hook::listen('filter_resource_rid', $data);//数据过滤挂载点
$this->store_cache($cachekey, $data);
return $data;
}
//查询群组id
public function fetch_gid_by_rid($rid)
{
return DB::result_first("select gid from %t where rid = %d", array($this->_table, $rid));
}
/* //查询群组id
public function fetch_gid_by_rid($rid)
{
return DB::result_first("select gid from %t where rid = %d", array($this->_table, $rid));
}*/
//查询多个文件右侧信息
public function fetch_rightinfo_by_rid($rids)
{
if (!is_array($rids)) $rids = (array)$rids;
$fileinfo = array();
$contains = array('size' => 0, 'contain' => array(0, 0));
foreach (DB::fetch_all("select * from %t where rid in(%n)", array($this->_table, $rids)) as $value) {
$contains['size'] += $value['size'];
if ($value['type'] == 'folder') {
$contains['contain'][1] += 1;
$containchild = '';
$containchild = $this->get_contains_by_fid($value['oid'], true);
if (!empty($containchild)) {
$contains['contain'][1] += $containchild['contain'][1];
$contains['contain'][0] += $containchild['contain'][0];
$contains['size'] += $containchild['size'];
}
/* //查询多个文件右侧信息
public function fetch_rightinfo_by_rid($rids)
{
if (!is_array($rids)) $rids = (array)$rids;
$fileinfo = array();
$contains = array('size' => 0, 'contain' => array(0, 0));
foreach (DB::fetch_all("select * from %t where rid in(%n)", array($this->_table, $rids)) as $value) {
$contains['size'] += $value['size'];
if ($value['type'] == 'folder') {
$contains['contain'][1] += 1;
$containchild = '';
$containchild = $this->get_contains_by_fid($value['oid'], true);
if (!empty($containchild)) {
$contains['contain'][1] += $containchild['contain'][1];
$contains['contain'][0] += $containchild['contain'][0];
$contains['size'] += $containchild['size'];
}
} else {
$contains['contain'][0] += 1;
}
if (!isset($fileinfo['path'])) {
$path = C::t('resources_path')->fetch_pathby_pfid($value['pfid']);
$fileinfo['position'] = preg_replace('/dzz:(.+?):/', '', $path);
}
} else {
$contains['contain'][0] += 1;
}
if (!isset($fileinfo['path'])) {
$path = C::t('resources_path')->fetch_pathby_pfid($value['pfid']);
$fileinfo['position'] = preg_replace('/dzz:(.+?):/', '', $path);
}
}
$fileinfo['ffsize'] = lang('property_info_size', array('fsize' => formatsize($contains['size']), 'size' => $contains['size']));
$fileinfo['contain'] = lang('property_info_contain', array('filenum' => $contains['contain'][0], 'foldernum' => $contains['contain'][1]));
$fileinfo['filenum'] = count($rids);
return $fileinfo;
}
}
$fileinfo['ffsize'] = lang('property_info_size', array('fsize' => formatsize($contains['size']), 'size' => $contains['size']));
$fileinfo['contain'] = lang('property_info_contain', array('filenum' => $contains['contain'][0], 'foldernum' => $contains['contain'][1]));
$fileinfo['filenum'] = count($rids);
return $fileinfo;
}*/
//查询目录文件数,$getversion =>是否获取版本数据
public function get_contains_by_fid($fid, $getversion = true)
@ -510,11 +529,11 @@ class table_resources extends dzz_table
return DB::result_first("select rid from %t where oid = %d and `type` = 'folder' ", array($this->_table, $fid));
}
//查询文件夹对应的fid
public function fetch_fid_by_rid($rid)
{
return DB::result_first("select oid from %t where rid = %s and `type` = %s", array($this->_table, $rid, 'folder'));
}
/* //查询文件夹对应的fid
public function fetch_fid_by_rid($rid)
{
return DB::result_first("select oid from %t where rid = %s and `type` = %s", array($this->_table, $rid, 'folder'));
}*/
//获取文件夹基本信息
public function get_folderinfo_by_fid($fid)
@ -531,7 +550,7 @@ class table_resources extends dzz_table
}
//查詢文件夹下文件信息
public function fetch_folderinfo_by_pfid($fid)
/*public function fetch_folderinfo_by_pfid($fid)
{
global $_G;
if ($fid) {
@ -541,7 +560,6 @@ class table_resources extends dzz_table
$folder['perm'] = perm_check::getPerm($folder['fid']);
if ($folder['perm'] > 0) {
if (perm_binPerm::havePower('read2', $folder['perm'])) {
//$where1[]="uid!='{$_G[uid]}'"; //原来查询思路read2权限只能看到其他人建立文件不能看到自己的
$where1[] = "1";
} elseif (perm_binPerm::havePower('read1', $folder['perm'])) {
$where1[] = "uid='{$_G[uid]}'";
@ -562,9 +580,9 @@ class table_resources extends dzz_table
return DB::fetch_all("select * from %t where pfid = %d and isdelete = 0 and $wheresql", array($this->_table, $fid));
}
}
}*/
public function fetch_all_by_pfid($pfid, $conditions=array(), $limit = 0, $orderby = '', $order = '', $start = 0, $count = false)
public function fetch_all_by_pfid($pfid, $conditions = array(), $limit = 0, $orderby = '', $order = '', $start = 0, $count = false)
{
global $_G;
$limitsql = $limit ? DB::limit($start, $limit) : '';
@ -580,9 +598,9 @@ class table_resources extends dzz_table
} elseif (is_array($conditions)) {
foreach ($conditions as $k => $v) {
if (!is_array($v)) {
if($k == 'mustdition'){
if ($k == 'mustdition') {
$mustdition = $v;
}else{
} else {
$connect = 'and';
$wheresql .= $connect . ' `' . $k . "` = '" . $v . "' ";
}
@ -597,7 +615,7 @@ class table_resources extends dzz_table
$wheresql .= $connect . " " . $k . " like %s ";
$para[] = '%' . $v[0] . '%';
} else {
$wheresql .= $connect . " `" . $k . "` " . $relative . " '". $v[0] . "' ";
$wheresql .= $connect . " `" . $k . "` " . $relative . " '" . $v[0] . "' ";
}
}
}
@ -613,7 +631,6 @@ class table_resources extends dzz_table
$folder['perm'] = perm_check::getPerm($folder['fid']);
if ($folder['perm'] > 0) {
if (perm_binPerm::havePower('read2', $folder['perm'])) {
//$where1[]="uid!='{$_G[uid]}'"; //原来查询思路read2只能查询其他人建立文件
$where1[] = "1";
} elseif (perm_binPerm::havePower('read1', $folder['perm'])) {
$where1[] = "uid='{$_G[uid]}'";
@ -640,7 +657,6 @@ class table_resources extends dzz_table
$folder['perm'] = perm_check::getPerm($folder['fid']);
if ($folder['perm'] > 0) {
if (perm_binPerm::havePower('read2', $folder['perm'])) {
//$where1[]="uid!='{$_G[uid]}'"; //原来查询思路read2只能查询其他人建立文件
$where1[] = "1 = 1";
} elseif (perm_binPerm::havePower('read1', $folder['perm'])) {
$where1[] = "uid='{$_G[uid]}'";
@ -656,7 +672,7 @@ class table_resources extends dzz_table
$where[] = '(' . implode(' and ', $temp) . ')';
unset($temp);
}
if($mustdition) $wheresql = '('.$wheresql .$mustdition.')';
if ($mustdition) $wheresql = '(' . $wheresql . $mustdition . ')';
if ($where) $wheresql .= ' and ' . implode(' AND ', $where);
if ($count) return DB::result_first("SELECT COUNT(*) FROM %t $wheresql ", $para);
$ordersql = '';
@ -675,13 +691,13 @@ class table_resources extends dzz_table
}
//查询群组下的文件、文件夹信息
public function fetch_all_by_gid($gid)
/*public function fetch_all_by_gid($gid)
{
$gid = intval($gid);
if ($folderinfo = C::t('folder')->fetch_folderinfo_by_gid($gid)) {
return self::fetch_by_pfid($folderinfo['fid']);
}
}
}*/
//查询目录下所有文件基本信息
public function fetch_basicinfo_by_pfid($pfid)
@ -691,7 +707,7 @@ class table_resources extends dzz_table
}
//查询目录下的文件信息
public function fetch_by_pfid($pfid, $uid = '',$checkperm = true)
public function fetch_by_pfid($pfid, $uid = '', $checkperm = true)
{
$currentuid = getglobal('uid');
$pfid = intval($pfid);
@ -702,12 +718,11 @@ class table_resources extends dzz_table
$where .= " and uid = %d";
$param[] = $uid;
}
$path = C::t('resources_path')->fetch_pathby_pfid($pfid);
foreach (DB::fetch_all("select * from %t where $where and isdelete < 1 order by dateline desc", $param) as $k => $value) {
if ($value['type'] == 'folder') {
$value['path'] = $path . $value['name'] . '/';//路径
if($checkperm){
if ($checkperm) {
if ($value['uid'] == $currentuid && !perm_check::checkperm_Container($value['oid'], 'read1')) {
continue;
} elseif (!perm_check::checkperm_Container($value['oid'], 'read2')) {
@ -715,7 +730,7 @@ class table_resources extends dzz_table
}
}
} else {
if($checkperm){
if ($checkperm) {
$value['path'] = $path . $value['name'];//路径
if ($value['uid'] == $currentuid && !perm_check::checkperm_Container($value['pfid'], 'read1')) {
continue;
@ -730,11 +745,11 @@ class table_resources extends dzz_table
$datainfo[$k] = array_merge($datainfo[$k], $data);
if (!isset($datainfo[$k]['img'])) {
if ($datainfo[$k]['type'] == 'folder') {
$datainfo[$k]['img'] = '/dzz/images/extimg/folder.png';
$datainfo[$k]['img'] = './dzz/images/extimg/folder.png';
} elseif ($datainfo[$k]['type'] == 'image') {
$datainfo[$k]['img'] = DZZSCRIPT . '?mod=io&op=thumbnail&size=small&path=' . dzzencode('attach::' . $datainfo[$k]['aid']);
} else {
$datainfo[$k]['img'] = '/dzz/images/extimg/' . $datainfo[$k]['ext'] . '.png';
$datainfo[$k]['img'] = './dzz/images/extimg/' . $datainfo[$k]['ext'] . '.png';
}
}
$datainfo[$k]['taginfo'] = C::t('resources_tag')->fetch_tag_by_rid($value['rid']);
@ -744,13 +759,17 @@ class table_resources extends dzz_table
return $datainfo;
}
//通过rid更新数据
public function update_by_rid($rid, $setarr)
{
if (DB::update($this->_table, $setarr, "rid = '{$rid}'")) {
return true;
} else {
return false;
if (!is_array($rid)) $rid = (array)$rid;
if (parent::update($rid, $setarr)) {
foreach ($rid as $v) {
$cachekey = 'resourcesdata_' . $v;
$this->clear_cache($cachekey);
}
}
return true;
}
//查询某目录下的所有文件夹
@ -765,33 +784,14 @@ class table_resources extends dzz_table
return DB::result_first("select count(*) from %t where pfid = %d and `type` = %s and deldateline < 1", array($this->_table, $fid, 'folder'));
}
//通过rid获取属性信息
public function get_property_by_rid($rids)
{
global $_G;
// $uid = $_G['uid'];
$uid = $_G['uid'];
$wheresql = " where r.rid in(%n) ";
$param = array($this->_table, 'folder', 'resources_path', $rids);
// $orgids = C::t('organization')->fetch_all_orgid();//获取所有有管理权限的部门
// $powerarr = perm_binPerm::getPowerArr();
if (!is_array($rids)) $rids = (array)$rids;
/* $or = array();
//用户自己的文件;
$or[] = "(r.gid=0 and r.uid=%d)";
$param[] = $_G['uid'];
//我管理的群组或部门的文件
if ($orgids['orgids_admin'] && $_G['adminid']!=1) {
$or[] = "r.gid IN (%n)";
$param[] = $orgids['orgids_admin'];
}
//我参与的群组的文件
if ($orgids['orgids_member']) {
$or[] = "(r.gid IN(%n) and ((f.perm_inherit & %d) OR (r.uid=%d and f.perm_inherit & %d)))";
$param[] = $orgids['orgids_member'];
$param[] = $powerarr['read2'];
$param[] = $_G['uid'];
$param[] = $powerarr['read1'];
}
if ($or) $wheresql .= " and (" . implode(' OR ', $or) . ")";*/
if (count($rids) > 1) {
//获取文件基本信息
$fileinfos = DB::fetch_all("select r.*,f.perm_inherit,p.path from %t r left join %t f on r.pfid = f.fid left join %t p on p.fid = r.pfid $wheresql", $param);
@ -862,18 +862,18 @@ class table_resources extends dzz_table
unset($tmpinfo);
} else {//单个文件信息
//文件基本信息
$fileinfo =DB::fetch_first("select r.*,f.perm_inherit,p.path from %t r
$fileinfo = DB::fetch_first("select r.*,f.perm_inherit,p.path from %t r
left join %t f on r.pfid = f.fid left join %t p on r.pfid = p.fid $wheresql", $param);
if (!$fileinfo) {
return array('error' => lang('no_privilege'));
}
//文件统计信息
$filestatis = C::t('resources_statis')->fetch_by_rid($rids[0]);
//位置信息
$fileinfo['realpath'] = preg_replace('/dzz:(.+?):/', '', $fileinfo['path']);
$fileinfo['realpath'] = preg_replace('/dzz:(.+?):/', '', $fileinfo['path']);
//统计信息
$fileinfo['opendateline'] = ($filestatis['opendateline']) ? dgmdate($filestatis['opendateline'], 'Y-m-d H:i:s') : dgmdate($fileinfo['dateline'], 'Y-m-d H:i:s');
$fileinfo['editdateline'] = ($filestatis['editdateline']) ? dgmdate($filestatis['editdateline'], 'Y-m-d H:i:s') : dgmdate($fileinfo['dateline'], 'Y-m-d H:i:s');
@ -881,6 +881,7 @@ class table_resources extends dzz_table
//编辑权限信息
$fileinfo['editperm'] = 1;
if ($fileinfo['gid'] > 0) {
$powerarr = perm_binPerm::getPowerArr();
if (!(C::t('organization_admin')->chk_memberperm($fileinfo['gid'])) && !($uid == $fileinfo['uid'] && $fileinfo['perm_inherit'] & $powerarr['edit1']) && !($fileinfo['perm_inherit'] & $powerarr['edit2'])) {
$fileinfo['editperm'] = 0;
}
@ -911,15 +912,14 @@ class table_resources extends dzz_table
return $fileinfo;
}
//根据fid获取属性信息
public function get_property_by_fid($fid)
{
global $_G;
$uid = $_G['uid'];
$powerarr = perm_binPerm::getPowerArr();
$fileinfo = array();
$param = array('folder', 'resources_path', $fid, $powerarr['read2'], $uid, $powerarr['read1']);
$folders = DB::fetch_first("select f.*,p.path from %t f left join %t p on f.fid = p.fid
where f.fid = %d and ((f.perm_inherit & %d) OR (f.uid=%d and f.perm_inherit & %d))", $param);
$param = array('folder', 'resources_path', $fid);
$folders = DB::fetch_first("select f.*,p.path from %t f left join %t p on f.fid = p.fid where f.fid = %d ", $param);
if (!$folders) {
return array('error' => lang('no_privilege'));
}
@ -935,8 +935,13 @@ class table_resources extends dzz_table
$fileinfo['fsize'] = lang('property_info_size', array('fsize' => formatsize($contaions['size']), 'size' => $contaions['size']));
$fileinfo['contain'] = lang('property_info_contain', array('filenum' => $contaions['contain'][0], 'foldernum' => $contaions['contain'][1]));
//编辑权限信息
if ($folders['pfid'] == 0 || (!($uid == $folders['uid'] && $folders['perm_inherit'] & $powerarr['edit1']) && !($folders['perm_inherit'] & $powerarr['edit2']))) {
$fileinfo['editperm'] = 0;
if ($folders['gid'] > 0) {
$powerarr = perm_binPerm::getPowerArr();
if (!($uid == $folders['uid'] && $folders['perm_inherit'] & $powerarr['edit1']) && !($folders['perm_inherit'] & $powerarr['edit2'])) {
$fileinfo['editperm'] = 0;
} else {
$fileinfo['editperm'] = 1;
}
} else {
$fileinfo['editperm'] = 1;
}
@ -963,7 +968,7 @@ class table_resources extends dzz_table
$data['img'] = isset($data['img']) ? $data['img'] : geticonfromext($data['ext'], $data['type']);
} elseif ($data['type'] == 'folder') {
$data['img'] = '/dzz/images/extimg/folder.png';
$data['img'] = './dzz/images/extimg/folder.png';
} else {
$data['img'] = isset($data['img']) ? $data['img'] : geticonfromext($data['ext'], $data['type']);
}

View File

@ -8,14 +8,21 @@ class table_resources_attr extends dzz_table
{
$this->_table = 'resources_attr';
$this->_pre_cache_key = 'resourcesattr_';
$this->_cache_ttl = 60 * 60;
parent::__construct();
}
public function fetch_by_rid($rid,$vid = 0){
$cachekey = 'resourcesattrdata_'.$rid.$vid;
if($returndata = $this->fetch_cache($cachekey)){
return $returndata;
}
$returndata = array();
foreach(DB::fetch_all("select * from %t where rid = %s and vid = %d",array($this->_table,$rid,$vid)) as $val ){
$returndata[$val['skey']] = $val['sval'];
}
$this->store_cache($cachekey,$returndata);
return $returndata;
}
public function insert_attr($rid,$vid,$attrs){
@ -33,11 +40,21 @@ class table_resources_attr extends dzz_table
return false;
}
public function delete_by_rvid($rid,$vid){
return DB::delete($this->_table,array('rid'=>$rid,'vid'=>$vid));
$cachekey = 'resourcesattrdata_'.$rid.$vid;
if(DB::delete($this->_table,array('rid'=>$rid,'vid'=>$vid))){
$this->clear_cache($cachekey);
return true;
}
return false;
}
public function delete_by_rid($rid){
if(!is_array($rid)) $rid = (array)$rid;
$cachkeys = array();
foreach(DB::fetch_all("select vid from %t where rid in(%n)",array($this->_table,$rid)) as $v){
$cachkeys[] = 'resourcesattrdata_'.$rid.$v['vid'];
}
if(DB::delete($this->_table,'rid in('.dimplode($rid).')')){
$this->clear_cache($cachkeys);
return true;
}
return false;
@ -45,8 +62,10 @@ class table_resources_attr extends dzz_table
public function update_by_skey($rid,$vid,$skeyarr){
$setarr = array();
$cachekey = 'resourcesattrdata_'.$rid.$vid;
foreach($skeyarr as $k=>$v){
DB::update($this->_table,array('sval'=>$v),array('rid'=>$rid,'vid'=>$vid,'skey'=>$k));
$this->clear_cache($cachekey);
}
}

View File

@ -8,15 +8,11 @@ class table_resources_path extends dzz_table
{
$this->_table = 'resources_path';
$this->_pk = 'fid';
$this->_pre_cache_key = 'resourcespath_';
$this->_cache_ttl = 60 * 60;
parent::__construct();
}
/*public function fetch_fid_by_path($path){
$path = trim($path);
if($res = DB::fetch_first("select fid from %t where path = %s",array($this->_table,$path))){
return $res['fid'];
}
return false;
}*/
/*
* 返回文件夹路径
* $pfid=>文件夹id
@ -24,16 +20,33 @@ class table_resources_path extends dzz_table
* */
public function fetch_pathby_pfid($pfid,$pathkey = false){
$pfid = intval($pfid);
$fileds = ($pathkey) ? 'path,pathkey':'path';
if($pathkey){
$cachekey = 'patharr_'.$pfid;
$fileds = 'path,pathkey';
}else{
$cachekey = 'path_'.$pfid;
$fileds = 'path';
}
if($data = $this->fetch_cache($cachekey)){
return $data;
}
if($data = DB::fetch_first("select {$fileds} from %t where fid = %d",array($this->_table,$pfid))){
return (!$pathkey) ? $data['path']:$data;
$data = (!$pathkey) ? $data['path']:$data;
$this->store_cache($cachekey,$data);
return $data;
}
return false;
}
public function update_by_fid($fid,$setarr){
return DB::update($this->_table,$setarr,array('fid'=>$fid));
if(DB::update($this->_table,$setarr,array('fid'=>$fid))){
$cacheky1 = 'patharr_'.$fid;
$cacheky2 = 'path_'.$fid;
$this->clear_cache($cacheky1);
$this->clear_cache($cacheky2);
return true;
}
return false;
}
public function fetch_fid_bypath($path){
if($data = DB::fetch_first("select p.fid from %t p left join %t f on f.fid = p.fid where p.path = %s and f.isdelete < %d",array($this->_table,'folder',$path,1))){
@ -65,6 +78,7 @@ class table_resources_path extends dzz_table
foreach(DB::fetch_all("select fid from %t where path regexp %s",array($this->_table,'^'.$path.'.*')) as $v){
$fids[] = $v['fid'];
}
if(self::delete_by_fid($fids)){
return true;
}
@ -73,14 +87,22 @@ class table_resources_path extends dzz_table
public function delete_by_fid($fid){
if(!is_array($fid)) $fids = array($fid);
else $fids = $fid;
$cachekey1 = array();
$cachekey2 = array();
foreach($fids as $v){
$cachekey1[] = 'patharr_'.$v;
$cachekey2[] = 'path_'.$v;
}
if(DB::delete($this->_table,"fid in (".dimplode($fids).")")){
$this->clear_cache($cachekey1);
$this->clear_cache($cachekey2);
return true;
}
return false;
}
public function delete_by_pathkey($pathkey){
/*public function delete_by_pathkey($pathkey){
return DB::delete($this->_table,"pathkey = ".$pathkey);
}
}*/
//通过pathkey获取文件夹下级及自身fid
public function fetch_folder_containfid_by_pfid($pfid){
$pfids = array($pfid);
@ -100,11 +122,9 @@ class table_resources_path extends dzz_table
if($prefix){
switch ($prefix){
case 'g':
$orgid = DB::result_first("select orgid from %t where orgname = %s and forgid = %d and `type` = %d",array('orgnization',$patharr[0],0,1));
$orgid = DB::result_first("select orgid from %t where orgname = %s and forgid = %d and `type` = %d",array('organization',$patharr[0],0,1));
$path = 'dzz:gid_'.$orgid.':'.$path;
echo $path;
die;
$fid = DB::result_first("select fid from %t where path = %s ",array($this->_table,$opath));
$fid = DB::result_first("select fid from %t where path = %s ",array($this->_table,$path));
break;
case 'o':
$orgid = DB::result_first("select orgid from %t where orgname = %s and forgid = %d and `type` = %d",array('organization',$patharr[0],0,0));
@ -117,8 +137,8 @@ class table_resources_path extends dzz_table
}
}else{
$upath = 'dzz:uid_'.$uid.':'.$opath;
if(!$fid = DB::result_first("select fid from %t where path = %s ",array($this->_table,$upath))){
$fid = DB::result_first("select fid from %t where path regexp %s ",array($this->_table,'^dzz:.+:'.$path.'$'));
if(!$fid = DB::result_first("select p.fid from %t p left join %t f on p.fid = f.fid where p.path = %s and f.deldateline < 1 ",array($this->_table,'folder',$upath))){
$fid = DB::result_first("select p.fid from %t p left join %t f on p.fid = f.fid where p.path regexp %s and f.deldateline < 1",array($this->_table,'folder','^dzz:.+:'.$path.'$'));
}
}
return $fid;
@ -138,8 +158,16 @@ class table_resources_path extends dzz_table
if($content != $name) $newpath = str_replace($content,$name,$path);
else return true;
$regpath = self::path_transferred_meaning($path);
$cachkey1 = array();
$cachkey2 = array();
foreach(DB::fetch_all("select fid from %t where path regexp %s",array($this->_table,'^'.$regpath.'.*')) as $v){
$cachkey1[] = 'patharr_'.$v['fid'];
$cachkey2[] = 'path_'.$v['fid'];
}
$sql = "update %t set path = replace(path,%s,%s) where path regexp %s";
if(DB::query($sql,array($this->_table,$path,$newpath,'^'.$regpath.'.*'))){
$this->clear_cache($cachkey1);
$this->clear_cache($cachkey2);
return true;
}else{
return false;
@ -150,7 +178,6 @@ class table_resources_path extends dzz_table
if($paths = $this->fetch_pathby_pfid($fid,true)){
$opaths = $this->fetch_pathby_pfid($ofid,true);
$path = dirname($paths['path']).'/';
//$path = self::path_transferred_meaning($path);
$opath = $opaths['path'];
$pathkey = explode('-',$paths['pathkey']);
array_pop($pathkey);
@ -160,7 +187,15 @@ class table_resources_path extends dzz_table
$paths['path'] = self::path_transferred_meaning($paths['path']);
if($noself) $likepath = $paths['path'].'.+';
else $likepath = $paths['path'].'.*';
$cachkey1 = array();
$cachkey2 = array();
foreach(DB::fetch_all("select fid from %t where path regexp %s",array($this->_table,'^'.$likepath)) as $v){
$cachkey1[] = 'patharr_'.$v['fid'];
$cachkey2[] = 'path_'.$v['fid'];
}
if(DB::query($sql,array($this->_table,$path,$opath,$pathkey,$opathkey,'^'.$likepath))){
$this->clear_cache($cachkey1);
$this->clear_cache($cachkey2);
return true;
}else{
return false;

View File

@ -12,12 +12,6 @@ class table_resources_recyle extends dzz_table
$this->_pk = 'id';
parent::__construct();
}
/* public function delete_by_rid($rid){
if(DB::delete($this->_table,array('rid'=>$rid))){
return array('success'=>lang('exploder_do_succeed'));
}
return array('error'=>lang('exploder_do_failed'));
}*/
//插入回收站文件
public function insert_data($setarr)
{
@ -57,16 +51,6 @@ class table_resources_recyle extends dzz_table
}
}
/* public function fetch_by_uid($uid){
$uid = intval($uid);
$result = array();
foreach(DB::fetch_all("select * from %t where uid = %d and gid = %d",array($this->_table,$uid,0)) as $v){
$v['info'] = C::t('resources')->fetch_by_rid($v['rid']);
$v['info']['deldateline'] = dgmdate($v['info']['deldateline']);
$result[] = $v;
}
return $result;
}*/
//查询群组回收站文件
public function fetch_by_gid($gid)
{

View File

@ -9,18 +9,17 @@ class table_resources_version extends dzz_table
$this->_table = 'resources_version';
$this->_pk = 'vid';
$this->_pre_cache_key = 'resources_version_';
$this->_cache_ttl = 5 * 60;
parent::__construct();
}
//获取文件图标
public function getfileimg($data){
if($data['type']=='image'){
$data['img']=DZZSCRIPT.'?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$data['aid']);
//$data['url']=DZZSCRIPT.'?mod=io&op=thumbnail&size=large&path='.dzzencode('attach::'.$data['aid']);
}elseif($data['type']=='attach' || $data['type']=='document'){
$data['img']=geticonfromext($data['ext'],$data['type']);
//$data['url']=DZZSCRIPT.'?mod=io&op=getStream&path='.dzzencode('attach::'.$data['aid']);
}elseif($data['type']=='dzzdoc'){
//$data['url']=DZZSCRIPT.'?mod=document&icoid='.dzzencode('attach::'.$data['aid']);
$data['img']=isset($data['img'])?$data['img']:geticonfromext($data['ext'],$data['type']);
}else{
$data['img']=isset($data['img'])?$data['img']:geticonfromext($data['ext'],$data['type']);
@ -39,7 +38,12 @@ class table_resources_version extends dzz_table
}else{
$limitsql = "limit 0,$limitarr[0]";
}
}
}/*else{
$cachekey = 'resourcesversiondata_'.$rid;
if($versions = $this->fetch_cache($cachekey)){
return $versions;
}
}*/
if($count){
return DB::result_first("select count(*) from %t where rid = %s",array($this->_table,$rid));
}
@ -69,23 +73,28 @@ class table_resources_version extends dzz_table
$versions[$val['vid']] = $filedata;
}
}
//$this->store_cache($cachekey,$versions);
return $versions;
}
public function delete_by_vid($vid,$rid){
$vid = intval($vid);
$cachekey = 'resourcesversiondata_'.$rid;
$datainfo = C::t('resources')->fetch_info_by_rid($rid);
$vinfo = parent::fetch($vid);
if(parent::delete($vid)){
SpaceSize(-$vinfo['size'],$datainfo['gid'],1,$datainfo['uid']);
C::t('resources_attr')->delete_by_rvid($rid,$vid);
$this->clear_cache($cachekey);
}
return true;
}
public function delete_by_version($icoid,$vid){
/* public function delete_by_version($icoid,$vid){
global $_G ;
$cachekey = 'resourcesversiondata_'.$icoid;
if(parent::delete($vid)){
DB::delete('resources_attr',array('rid'=>$icoid,'vid'=>$vid));
C::t('resources_attr')->delete_by_rvid($icoid,$vid);
//DB::delete('resources_attr',array('rid'=>$icoid,'vid'=>$vid));
$eventdata = array(
'rid'=>$icoid,
'uid'=>$_G['uid'],
@ -96,14 +105,15 @@ class table_resources_version extends dzz_table
);
DB::insert('resources_event',$eventdata);
$v = DB::result_first("select vid from %t where rid=%s order by dateline DESC ",array($this->_table,$icoid));
DB::update('resources',array('vid'=>$v),array('rid'=>$icoid));
C::t('resources')->update($icoid,array('vid',$v));
return array('msg'=>$v);
}else return array('error'=>lang('error_delete_version_failed'));
}
}*/
public function delete_by_rid($rid){
if(!$return = DB::fetch_all("select * from %t where rid = %s",array($this->_table,$rid))){
return ;
}
$cachekey = 'resourcesversiondata_'.$rid;
$aids = array();
foreach($return as $v){
$aids[] = $v['aid'];
@ -112,10 +122,12 @@ class table_resources_version extends dzz_table
C::t('attachment')->addcopy_by_aid($aids,-1);
}
DB::delete($this->_table,array('rid'=>$rid));
$this->clear_cache($cachekey);
}
//上传新版本
public function add_new_version_by_rid($rid,$setarr){
global $_G,$documentexts;
$cachekey = 'resourcesversiondata_'.$rid;
if(!$resources = C::t('resources')->fetch_info_by_rid($rid)){
return array('error'=>lang('file_not_exist'));
}
@ -135,6 +147,8 @@ class table_resources_version extends dzz_table
$setarr['type'] = 'image';
}elseif(in_array(strtoupper($setarr['ext']), $documentexts)){
$setarr['type'] = 'document';
}else{
$setarr['type'] = 'attach';
}
$oldattr = C::t('resources_attr')->fetch_by_rid($rid);
//没有版本时,属性表和版本数据处理
@ -153,7 +167,8 @@ class table_resources_version extends dzz_table
//将原数据插入版本表
$oldvid = parent::insert($setarr1,1);
//更新原属性表数据
DB::update('resources_attr',array('vid'=>$oldvid),array('rid'=>$rid,'vid'=>0));
// DB::update('resources_attr',array('vid'=>$oldvid),array('rid'=>$rid,'vid'=>0));
C::t('resources_attr')->update_by_skey($rid,0,array('vid'=>$oldvid));
}
//文件名
@ -164,8 +179,10 @@ class table_resources_version extends dzz_table
//新数据插入版本表
if($vid = parent::insert($setarr,1)){
$this->clear_cache($cachekey);
//更新主表数据
if(DB::update('resources',array('vid'=>$vid,'size'=>$setarr['size'],'ext'=>$setarr['ext'],'type'=>$setarr['type'],'name'=>$filename),array('rid'=>$rid))){
//DB::update('resources',array('vid'=>$vid,'size'=>$setarr['size'],'ext'=>$setarr['ext'],'type'=>$setarr['type'],'name'=>$filename),array('rid'=>$rid))
if(C::t('resources')->update_by_rid($rid,array('vid'=>$vid,'size'=>$setarr['size'],'ext'=>$setarr['ext'],'type'=>$setarr['type'],'name'=>$filename))){
SpaceSize($setarr['size'],$resources['gid'],true);
//插入属性表数据
$sourceattrdata = array(
@ -245,7 +262,8 @@ class table_resources_version extends dzz_table
}
//更改resources表数据
$updatearr = array('vid'=>$vid,'name'=>$filename,'size'=>$versioninfo['size'],'ext'=>$versioninfo['ext'],'type'=>$versioninfo['type']);
if(DB::update('resources',$updatearr,array('rid'=>$versioninfo['rid']))){
//DB::update('resources',$updatearr,array('rid'=>$versioninfo['rid']))
if(C::t('resources')->update_by_rid($versioninfo['rid'],$updatearr)){
//文件路径信息
$path = C::t('resources_path')->fetch_pathby_pfid($fileinfo['pfid']);
$path = preg_replace('/dzz:(.+?):/','',$path);
@ -310,6 +328,7 @@ class table_resources_version extends dzz_table
if(!$versioninfo = parent::fetch($vid)){
return array('error'=>lang('file_not_exist'));
}
$cachekey = 'resourcesversiondata_'.$versioninfo['rid'];
if(DB::result_first("select count(*) from %t where vname = %s and rid = %s",array($this->_table,$vname,$versioninfo['rid'])) > 0 ){
return array('error'=>lang('explorer_name_repeat'));
}
@ -348,6 +367,8 @@ class table_resources_version extends dzz_table
);
C::t('resources_statis')->add_statis_by_rid($versioninfo['rid'],$statis);
C::t('resources_event')->addevent_by_pfid($fileinfo['pfid'], $event, 'editversionname', $eventdata, $fileinfo['gid'], $fileinfo['rid'], $fileinfo['name']);
$this->clear_cache($cachekey);
$this->clear_cache($versioninfo['rid']);
return array('vid'=>$vid,'primaryvid'=>$fileinfo['vid'],'fdateline'=>dgmdate($versioninfo['dateline'],'Y-m-d H:i:s'));
}else{
return array('error'=>lang('explorer_do_failed'));
@ -360,6 +381,7 @@ class table_resources_version extends dzz_table
if(!$fileinfo = C::t('resources')->fetch_info_by_rid($rid)){
return array('error'=>lang('file_not_exist'));
}
//判断编辑权限
if ($fileinfo['gid'] > 0) {
$pfid = $fileinfo['pfid'];
@ -384,9 +406,11 @@ class table_resources_version extends dzz_table
//将数据插入版本表
if($vid = parent::insert($setarr,1)){
//更新属性表数据
DB::update('resources_attr',array('vid'=>$vid),array('rid'=>$rid,'vid'=>0));
//DB::update('resources_attr',array('vid'=>$vid),array('rid'=>$rid,'vid'=>0));
C::t('resources_attr')->update_by_skey($rid,0,array('vid'=>$vid));
//更新主表数据
if(DB::update('resources',array('vid'=>$vid),array('rid'=>$rid))){
//DB::update('resources',array('vid'=>$vid),array('rid'=>$rid))
if(C::t('resources')->update_by_rid($rid,array('vid'=>$vid))){
$path = C::t('resources_path')->fetch_pathby_pfid($fileinfo['pfid']);
$path = preg_replace('/dzz:(.+?):/','',$path);

View File

@ -83,6 +83,7 @@ class table_user extends dzz_table
if(self::checkfounder($user)){//创始人不能删除
return false;
}
if(parent::delete($uid)){
C::t('user_field')->delete($uid);
C::t('user_profile')->delete($uid);
@ -91,8 +92,8 @@ class table_user extends dzz_table
C::t('organization_user')->delete_by_uid($uid,0);
//删除用户文件
foreach(DB::fetch_all("select fid from %t where uid=%d and gid<1 ",array('folder',$uid)) as $value){
C::t('folder')->delete_by_fid($value['fid'],true);
if($homefid=DB::result_first("select fid from %t where uid=%d and flag='home' ",array('folder',$uid))){
C::t('folder')->delete_by_fid($homefid,true);
}
Hook::listen('syntoline_user',$uid,'del');//删除对应到三方用户表
@ -506,4 +507,29 @@ class table_user extends dzz_table
return $users;
}
public function fetch_userinfo_detail_by_uid($uid){
$uid = intval($uid);
$users = DB::fetch_first("select u.uid,u.phone,u.email,ug.* from %t u left join %t ug on u.groupid=ug.groupid where uid = %d",array('user','usergroup',$uid));
foreach(DB::fetch_all("select * from %t where uid = %d",array('user_profile',$uid)) as $v){
if(!$v['privacy']){
$users['information'][$v['fieldid']] = $v['value'];
}
}
return $users;
}
/*//获取用户信息,包含资料等信息
public function fetch_user_infomessage_by_uid($uid){
$users = array();
foreach(DB::fetch_all("select u.*,s.svalue from %t u left join %t s on u.uid=s.uid and s.skey=%s where u.uid =%d",array('user','user_setting','headerColor',$uid)) as $v){
if($v['avatarstatus'] == 1){
$v['avatarstatus'] = 1;
}else{
$v['avatarstatus'] = 0;
$v['headerColor'] = $v['svalue'];
}
$users[$v['uid']] = $v;
}
return $users;
}*/
}

View File

@ -106,8 +106,8 @@ class table_user_setting extends dzz_table
$uids=(array)$uids;
$cachekeys=array();
foreach(DB::fetch_all("select skey from %t where uid IN (%n)",array($this->_table,$uids)) as $skey){
$cachekeys[]=$uid.'_'.$skey;
foreach(DB::fetch_all("select skey,uid from %t where uid IN (%n)",array($this->_table,$uids)) as $value){
$cachekeys[]=$value['uid'].'_'.$value['skey'];
}
if($ret= DB::delete($this->_table,"uid IN (".dimplode($uids).")")){
$this->clear_cache($cachekeys);

View File

@ -75,6 +75,6 @@ require DZZ_ROOT.'core/function/function_misc.php';
// HookRead::_init();//注册钩子
//}
C::creatapp();
//C::creatapp();

View File

@ -11,7 +11,7 @@ if(!defined('IN_DZZ')) {
}
if(!defined('CORE_VERSION')) {
define('CORE_VERSION', '2.01');
define('CORE_RELEASE', '20180528');
define('CORE_VERSION', '2.02');
define('CORE_RELEASE', '20180906');
define('CORE_FIXBUG' , '20000000');
}

View File

@ -13,9 +13,9 @@ if(!defined('IN_DZZ')) {
exit('Access Denied');
}
$limit=100;//考虑到计划任务占用的系统资源一次最大删除100个;
foreach(DB::fetch_all("select * from %t where dateline<%d and copys<1 ORDER BY dateline limit $limit",array('attachment',TIMESTAMP,$limit)) as $value){
$delay=TIMESTAMP-60*60*1;//仅删除1小时以前的未用附件
foreach(DB::fetch_all("select * from %t where dateline<%d and copys<1 ORDER BY dateline limit $limit",array('attachment',$delay,$limit)) as $value){
if(io_remote::DeleteFromSpace($value)){
C::t('attachment')->delete($value['aid']);
}
}
?>
}

View File

@ -135,7 +135,7 @@ function sqldumptablestruct($table) {
$tablename = substr($table, strpos($table, '.') + 1);
$create[1] = str_replace("CREATE TABLE $tablename", 'CREATE TABLE '.$table, $create[1]);
}
$tabledump .= $create[1];
$tabledump .= $create[1].";\n";
$tablestatus = DB::fetch_first("SHOW TABLE STATUS LIKE '$table'");
$tabledump .= ($tablestatus['Auto_increment'] ? " AUTO_INCREMENT=$tablestatus[Auto_increment]" : '').";\n\n";
return $tabledump;
@ -180,7 +180,7 @@ function sqldumptable($table, $startfrom = 0, $currsize = 0) {
while($row = $db->fetch_row($rows)) {
$comma = $t = '';
for($i = 0; $i < $numfields; $i++) {
$t .= $comma.($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x'.bin2hex($row[$i]) : '\''.addslashes($row[$i]).'\'');
$t .= $comma.($_GET['usehex'] && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x'.bin2hex($row[$i]) : '\''.mysql_escape_string($row[$i]).'\'');
$comma = ',';
}

View File

@ -1163,10 +1163,7 @@ function aidencode($aid, $type = 0, $tid = 0)
function output()
{
global $_G;
if (defined('DZZ_OUTPUTED')) {
return;
} else {
@ -1190,12 +1187,6 @@ function outputurl( $url="" )
global $_G;
if ($_G['config']['rewritestatus']) {
$url = output_replace($url);
ob_end_clean();
$_G['gzipcompress'] ? ob_start('ob_gzhandler') : ob_start();
return $url;
}
if (defined('DZZ_DEBUG') && DZZ_DEBUG && @include(libfile('function/debug'))) {
function_exists('debugmessage') && debugmessage();
}
return $url;
}
@ -1205,9 +1196,7 @@ function output_replace($content)
global $_G;
if (defined('IN_ADMINCP')) return $content;
if (!empty($_G['setting']['output']['str']['search'])) {
/*if(empty($_G['setting']['domain']['app']['default'])) {
$_G['setting']['output']['str']['replace'] = str_replace('{CURHOST}', $_G['siteurl'], $_G['setting']['output']['str']['replace']);
}*/
$content = str_replace($_G['setting']['rewrite']['str']['search'], $_G['setting']['rewrite']['str']['replace'], $content);
}
if (!empty($_G['config']['rewrite']['preg']['search'])) {
@ -1258,8 +1247,6 @@ function output_replace($content)
$content = preg_replace($search_new, $replace_new, $content);
$content=str_replace($md5,$string,$content);
//$content = preg_replace($_G['config']['rewrite']['preg']['search'], $_G['config']['rewrite']['preg']['replace'], $content);
}
return $content;
@ -2282,7 +2269,6 @@ function dzzgetspace($uid)
if ($_G['adminid'] == 1) {
$space['self'] = 2;
}
//用户组信息
if (!isset($_G['cache']['usergroups'])) loadcache('usergroups');
$usergroup = $_G['cache']['usergroups'][$space['groupid']];
@ -2290,7 +2276,6 @@ function dzzgetspace($uid)
//获取相关设置信息
$setting = $_G['setting'];
if ($config = DB::fetch_first("select usesize,attachextensions,maxattachsize,addsize,buysize,perm,taskbar,userspace from " . DB::table('user_field') . " where uid='{$uid}'")) {
$config['perm'] = ($config['perm'] < 1) ? $usergroup['perm'] : $config['perm'];
$config['attachextensions'] = ($config['attachextensions'] < 0) ? $usergroup['attachextensions'] : $config['attachextensions'];
@ -3131,7 +3116,7 @@ function get_resources_some_setting()
$users[] = $val['uid'];
}
} elseif (preg_match('/^uid_\d+$/', $v)) {
$users[] = preg_replace('/uid_/', '');
$users[] = preg_replace('/uid_/', '',$v);
}
}
@ -3277,9 +3262,10 @@ function getimportdata($name = '', $addslashes = 0, $ignoreerror = 0,$data='') {
}
}
}
require_once libfile('class/xml');
require_once libfile('class/xml');
$xmldata = xml2array($data);
$_attributes=xmlattribute($data); //item 属性获取
if(!is_array($xmldata) || !$xmldata) {
if(!$ignoreerror) {
showmessage('data_import_error', dreferer());
@ -3299,7 +3285,7 @@ function getimportdata($name = '', $addslashes = 0, $ignoreerror = 0,$data='') {
if($addslashes) {
$data = daddslashes($data, 1);
}
if($data && $_attributes) $data["_attributes"]=$_attributes["Data"];
return $data;
}
@ -3436,7 +3422,7 @@ function dzz_userconfig_init()
}
if (!$fid) continue;
if ($rid = DB::result_first("select rid from " . DB::table('resources') . " where uid='{$_G[uid]}' and oid='{$appid}' and type='app'")) {
C::t('resources')->update($rid, array('pfid' => $fid, 'isdelete' => 0));
C::t('resources')->update_by_rid($rid, array('pfid' => $fid, 'isdelete' => 0));
if ($app['position'] == 2) $userconfig['screenlist'][] = $rid;
else $userconfig['docklist'][] = $rid;
} else {
@ -3465,3 +3451,75 @@ function dzz_userconfig_init()
if ($userconfig['applist']) C::t('app_user')->insert_by_uid($_G['uid'], $userconfig['applist'], 1);
return C::t('user_field')->fetch($_G['uid']);
}
/*判断字符串是否是序列化后的数据*/
/* @param string $data Value to check to see if was serialized.
* @param bool $strict Optional. Whether to be strict about the end of the string. Default true.
* @return bool False if not serialized and true if it was.
*/
function is_serialized( $data, $strict = true ) {
// if it isn't a string, it isn't serialized.
if ( ! is_string( $data ) ) {
return false;
}
$data = trim( $data );
if ( 'N;' == $data ) {
return true;
}
if ( strlen( $data ) < 4 ) {
return false;
}
if ( ':' !== $data[1] ) {
return false;
}
if ( $strict ) {
$lastc = substr( $data, -1 );
if ( ';' !== $lastc && '}' !== $lastc ) {
return false;
}
} else {
$semicolon = strpos( $data, ';' );
$brace = strpos( $data, '}' );
// Either ; or } must exist.
if ( false === $semicolon && false === $brace )
return false;
// But neither must be in the first X characters.
if ( false !== $semicolon && $semicolon < 3 )
return false;
if ( false !== $brace && $brace < 4 )
return false;
}
$token = $data[0];
switch ( $token ) {
case 's' :
if ( $strict ) {
if ( '"' !== substr( $data, -2, 1 ) ) {
return false;
}
} elseif ( false === strpos( $data, '"' ) ) {
return false;
}
case 'a' :
case 'O' :
return (bool) preg_match( "/^{$token}:[0-9]+:/s", $data );
case 'b' :
case 'i' :
case 'd' :
$end = $strict ? '$' : '';
return (bool) preg_match( "/^{$token}:[0-9.E-]+;$end/", $data );
}
return false;
}
/**
* 短信发送函数
* @$param $tplsign string 模板标识
* @$param $to number 短信接收手机号
* @$param $params array 拓展参数 expire 过期时间 codelength 验证码长度 gateways指定网关
* @return 如果发送成功则返回 验证码发送时间 验证码 过期时间,如果失败返回错误信息
* */
function sms($tplsign,$to,$params=array('expire'=>15,'codelength'=>6)){
$params['tplsign'] = $tplsign;
$params['to'] = $to;
$result = Hook::listen('sms',$params);
return $result[0];
}

View File

@ -37,21 +37,23 @@ $lang = array (
'login_email_username'=>'登录邮箱或用户名',
'success_copied_clipboard' => '成功复制到粘贴板',
'js_prompt1_sethome' => '非 IE 浏览器请手动将本站设为首页',
'Monday' => '星期一',
'Tuesday' => '星期二',
'Wednesday' => '星期三',
'Thursday' => '星期四',
'Friday' => '星期五',
'Saturday' => '星期六',
'Sunday' => '星期日',
'date_expect' => '日期',
'Monday' => '星期一',
'Tuesday' => '星期二',
'Wednesday' => '星期三',
'Thursday' => '星期四',
'Friday' => '星期五',
'Saturday' => '星期六',
'Sunday' => '星期日',
'ytoday'=>'昨天',
'bytoday'=>'前天',
'all_username'=>'全部用户',
'confirm_del_username'=>'确定删除该用户吗?',
'login_email'=>'登录邮箱',
'login_username'=>'登录用户名',
'login_username_placeholder'=>'登录用户名',
'login_username_tips'=>'必填,用户在系统中的唯一标识,可用于系统登录',
'update_success' => '更新成功',
'confirm_add' => '确认添加',
'simulate'=>'模拟',
'icon'=>'图标',
@ -62,6 +64,7 @@ $lang = array (
'theme_set'=>'主题设置',
'theme_manage'=>'主题管理',
'name'=>'名称',
'input_name'=>'输入名称',
'theme_name'=>'主题名称',
'all_theme'=>'全部主题',
'add_theme'=>'添加主题',
@ -70,7 +73,8 @@ $lang = array (
'cover'=>'封面',
'preview'=>'预览',
'classify'=>'分类',
'classify_name'=>'分类名称',
'distributed'=>'分配',
'undistributed'=>'未分配',
'classify_save_success'=>'分类名称保存成功',
'size' => '尺寸',
'big_small'=>'大小',
@ -86,6 +90,7 @@ $lang = array (
'password' => '密 码',
'board_message' => '提示信息',
'there_no_such_results'=>'没有相关的结果',
'there_no_such_content'=>'没有相关的内容',
'enable' => '启用',
'no_enable' => '不启用',
'forbidden'=>'禁用',
@ -93,6 +98,9 @@ $lang = array (
'stop'=>'停止',
'and'=>'和',
'homepage' => '首页',
'input_content' => '输入内容',
'describe' => '描述',
'input_describe_content' => '输入描述内容',
'confirms'=>'确定',
'time' => '时间',
'add_time' => '添加时间',
@ -100,7 +108,9 @@ $lang = array (
'no' => '否',
'public' => '公开',
'delete'=>'删除',
'deleter'=>'删除人',
'delete_success'=>'删除成功',
'delete_time'=>'删除时间',
'delete_unsuccess'=>'删除失败',
'delete_selected'=>'删除所选',
'delete_item'=>'删除此项',
@ -114,16 +124,21 @@ $lang = array (
'select_all' => '全选',
'filtrate'=>'筛选',
'filtrate_condition'=>'筛选条件',
'attention'=>'关注',
'sort'=>'排序',
'possessor'=>'所有者',
'download'=>'下载',
'uploading'=>'新建和上传',
'uploading_files'=>'上传文件',
'uploading_size'=>'上传大小',
'uploading_type'=>'上传类型',
'upload_installation_package'=>'上传安装包',
'install'=>'安装',
'been_install'=>'已安装',
'web_upload'=>'本地上传',
'upload_cover'=>'上传封面',
'set_cover'=>'设为封面',
'cancel_cover'=>'取消封面',
'upload_image'=>'上传图片',
'photo'=>'图片',
'download_photo'=>'下载图片',
@ -136,6 +151,12 @@ $lang = array (
'drag_img_can_be_sorted'=>'拖动图片可以排序',
'intro'=>'简介',
'type' => '类型',
'type_files' => '文档类',
'type_images' => '图片类',
'type_videos' => '视频类',
'type_musics' => '音频类',
'type_package' => '压缩包',
'file_type'=>'文件类型',
'file_location'=>'文件位置',
'file_name'=>'文件名称',
@ -170,6 +191,7 @@ $lang = array (
'add_success'=>'添加成功',
'add_unsuccess'=>'添加失败',
'add_member'=>'添加成员',
'invite_member'=>'邀请成员',
'member_list'=>'成员列表',
'add_unsuccess_tautology'=>'添加失败,请稍后重试',
'monthly' => '每月',
@ -199,6 +221,8 @@ $lang = array (
'all_export'=>'全部导出',
'export_immediately'=>'立即导出',
'export_failure'=>'导出失败!',
'options'=>'选项',
'add_options'=>'添加选项',
'export_change'=>'导出选项',
'nape'=>'项',
'export_range'=>'导出范围',
@ -212,7 +236,10 @@ $lang = array (
'modification_hou'=>'修改后',
'desktop'=>'桌面',
'start_menu'=>'开始菜单',
'mission'=>'任务',
'mission_details'=>'任务详情',
'taskbar'=>'任务栏',
'taskbar_name'=>'任务名称',
'execute'=>'执行',
'save'=>'保存',
'save_success'=>'保存成功',
@ -220,6 +247,8 @@ $lang = array (
'set'=>'设置',
'unable_set'=>'无法设置',
'save_set'=>'保存设置',
'set_success'=>'设置成功',
'set_unsuccess'=>'设置失败',
'cut'=>'剪切',
'copy'=>'复制',
'copy_success'=>'复制成功',
@ -238,6 +267,9 @@ $lang = array (
'undelete' => '还原',
'filename' => '文件名',
'loaded'=>'已加载',
'recovery'=>'恢复',
'recovery_unsuccess'=>'恢复失败',
'not_moreContent'=>'没有更多内容了',
'please_wait1'=>'请稍候',
'loading_please_wait'=>'正在加载,请稍候...',
'loading_in'=>'载入中...',
@ -249,6 +281,8 @@ $lang = array (
'please_wait'=>'请稍候...',
'release'=>'发布中...',
'in_recovery'=>'恢复中...',
'in_setting'=>'正在设置...',
'in_remove'=>'移除中...',
'in_clear'=>'清除中...',
'moving'=>'正在移动...',
'move_file_in_the_samefolder'=>'要移动文件已经在目标目录',
@ -261,6 +295,10 @@ $lang = array (
'skip_links'=>'跳转链接',
'jump_page'=>'跳转到页面',
'upload_more'=>'加载更多',
'upload_unsuccess'=>'加载失败',
'move'=>'移动',
'replica'=>'拷贝',
'replica_unsuccess'=>'拷贝失败',
'need'=>'需要',
'not_need'=>'不需要',
'new_Window'=>'新窗口',
@ -272,19 +310,25 @@ $lang = array (
'name_cannot_empty'=>'名称不能为空',
'developer'=>'开发者',
'list'=>'列表',
'list_name'=>'列表名称',
'version' => '版本',
'up_year' => '上一月',
'click_select_date' => '点击选择年份',
'click_select_month' => '点击选择月份',
'down_year' => '下一月',
'once' => '一',
'twin' => '二',
'three' => '三',
'four' => '四',
'five' => '五',
'six' => '六',
'click' => '点',
'today' => '今天',
'up_year' => '上一月',
'click_select_date' => '点击选择年份',
'click_select_month' => '点击选择月份',
'down_year' => '下一月',
'once' => '一',
'twin' => '二',
'three' => '三',
'four' => '四',
'five' => '五',
'six' => '六',
'click' => '点',
'today' => '今天',
'tomorrow' => '明天',
'this_week' => '本周',
'next_week' => '下周',
'this_month' => '本月',
'schedule'=>'进度',
'please_select_a_organization_or_department'=>'请选择机构或部门',
'please_select_one_organization_department'=>'请选择一个机构或部门',
'select_a_organization_or_department'=>'选择机构或部门',
@ -295,7 +339,10 @@ $lang = array (
'users_list'=>'用户列表',
'last_visit'=>'最后访问',
'downright_delete'=>'彻底删除,请谨慎操作',
'downright_delete_all'=>'所有的删除操作都将无法恢复,请慎重!',
'completely_delete'=>'彻底删除',
'can_not_repeat'=>'不能重复',
'shellinit'=>'限定',
'hawkeye_shellinit'=>'大小限定',
'if_required'=>'是否必填',
'required'=>'必填',
@ -303,6 +350,7 @@ $lang = array (
'input'=>'输入',
'creation'=>'创建',
'creation_success'=>'创建成功',
'creation_unsuccess'=>'创建失败',
'no_creation'=>'不创建',
'rechristen'=>'重命名',
'rechristen_failure'=>'重命名失败',
@ -314,6 +362,7 @@ $lang = array (
'lengthways_arrange'=>'纵向排列',
'crosswise_arrange'=>'横向排列',
'page_background'=>'页面背景',
'background'=>'背景',
'catalogue'=>'目录',
'number'=>'数量',
'checked'=>'已选中',
@ -323,6 +372,8 @@ $lang = array (
'success'=>'成功',
'failure'=>'失败',
'set_default'=>'设为默认',
'set_undefault'=>'取消默认',
'default_index'=>'默认到首页',
'tiled'=>'平铺',
'stretch'=>'拉伸',
'share' => '分享',
@ -357,6 +408,7 @@ $lang = array (
'shared_links_screened_administrator'=>'此分享链接已被管理员屏蔽',
'link_already_reached_max_number'=>'此分享链接已经到达最大使用次数',
'share_link_expired'=>'此分享链接已经过期',
'attach_save_failure'=>'附件保存失败',
'file_not_exist'=>'文件不存在或已经被删除!',
'file_save_failure'=>'文件保存失败',
'folder_not_exist'=>'文件夹不存在',
@ -376,7 +428,10 @@ $lang = array (
'add_all'=>'添加所有',
'remover_all'=>'移除所有',
'selected'=>'已选择',
'selected_ge_user'=>'个用户',
'selecte_user_to_add'=>'选择需要添加的用户',
'administrator'=>'管理员',
'need_a_administrator'=>'至少需要一名管理员',
'cancel_administrator'=>'取消管理员',
'set_administrator'=>'设置管理员',
'member_management'=>'成员管理',
@ -387,7 +442,10 @@ $lang = array (
'Upgrade_Now'=>'现在升级',
// core/misc/misc_ajax.php
'please_select_department'=>'请选择部门',
'please_select_users'=>'请选择用户',
'month_magazine'=>'月报',
'week_magazine'=>'周报',
'sun_magazine'=>'日报',
'please_open_after_setting'=>'请设置后开启',
'inexistence'=>'不存在',
'create_document'=>'创建了文档',
@ -400,6 +458,7 @@ $lang = array (
'limit'=>'限制',
'no_limit'=>'不限制',
'unlimited' => '无限制',
'at'=>'于',
'lt'=>'大于',
'gt'=>'小于',
'In_a'=>'换一个',
@ -638,6 +697,7 @@ $lang = array (
'new_video'=>'新建视频',
'new_other_types_files'=>'新建其他类型文件(除文件夹、网址、文档、视频以外)',
'dzzpan'=>'企业盘',
'operation'=>'操作',
'do_success'=>'操作成功',
'do_failed'=>'操作失败',
'undefined_action'=>'未定义的操作',
@ -645,7 +705,10 @@ $lang = array (
'submit_seccode_invalid' => '抱歉,验证码填写错误',
'getpasswd_illegal' => '抱歉,您所用的 ID 不存在或已过期,无法取回密码',
'getpasswd_succeed' => '您的密码已重新设置,请使用新密码登录',
'jurisdictions'=>'权限',
'jurisdictions_set'=>'权限设置',
'privilege'=>'没有权限',
'privilege_noEmpty'=>'权限不能为空',
'no_privilege'=>'抱歉!您没有权限',
'file_nonexistence'=>'文件缺失,请检查{modfile}是否存在',
'file_isdelete_in_recycle'=>'该文件已经在回收站',
@ -685,6 +748,7 @@ $lang = array (
'attach_not_exist'=>'附件不存在,或已经删除!',
'document_not_exist'=>'抱歉!文档不存在或已删除!',
'widget_not_exist'=>'挂件不存在,或已删除!',
'attach'=>'附件',
'man' => '男',
'woman' => '女',
'gender_0' => '保密',
@ -840,6 +904,8 @@ $lang = array (
'user_space'=>'个人存储',
'all_user_space'=>'所有人员',
'appoint_user_space'=>'指定人员或部门人员',
'solo'=>'单人',
'multiplayer'=>'多人',
'select_departments_or_users'=>'选择部门或用户',
'all_userspace_text'=>'根据机构部门管理中的组织架构,生成所有部门的个人存储空间。',
'system_space_set'=>'系统空间设置',
@ -1196,8 +1262,6 @@ $_G[siteurl]',
<br />
{sitename} 管理团队.<br />
{siteurl}',
// 'title_login'=>'登录',
// 'title_board_message' => '提示信息',
'nextpage' => '下一页',
'prevpage' => '上一页',
'pageunit' => '页',
@ -1224,7 +1288,15 @@ $_G[siteurl]',
6 => '周六',
7 => '周日',
),
'English_weeks' => array(
'Monday' => '周一',
'Tuesday' => '周二',
'Wednesday' => '周三',
'Thursday' => '周四',
'Friday' => '周五',
'Saturday' => '周六',
'Sunday' => '周日',
),
'dot' => '、',
'archive' => '存档',
'end' => '末尾',
@ -1245,6 +1317,7 @@ $_G[siteurl]',
'script_name'=>'DzzOffice云桌面',
'script_name_tips'=>'是上海乐云网络科技开发的基于web的云桌面系统可以通过这个平台对无数的网络应用进行操作管理。',
'forcesecques' => '必填项',
'forcesecques_cannot_empty' => '必填项不能为空',
'security_question' => '提 问',
'security_answer' => '回 答',
'security_question_0' => '无安全提问',
@ -1298,6 +1371,7 @@ $_G[siteurl]',
'account' => '帐号',
'password' => '密码',
'activation' => '激活',
'activation_unsuccess' => '激活失败',
'agree' => '同意',
'disagree' => '不同意',
'de' => '的',

View File

@ -37,11 +37,11 @@ _notice.showTips=function(sum){
if(sum>0){
jQuery('#dzz_notification>span.badge').html(sum).removeClass('hide');
jQuery('#dzz_notification>span.dzz').hide();
_notice.flashTitle();
//_notice.flashTitle();
}else{
jQuery('#dzz_notification>span.badge').addClass('hide');
jQuery('#dzz_notification>span.dzz').show();
_notice.flashTitle(1);
//_notice.flashTitle(1);
}
}
_notice.flashTitle=function(flag){

View File

@ -27,7 +27,7 @@
<script src="static/bootstrap/js/html5shiv.min.js"></script>
<script src="static/bootstrap/js/respond.min.js"></script>
<![endif]-->
<!--{hook header_tpl}-->
<script type="text/javascript">
if(!!window.ActiveXObject || "ActiveXObject" in window){
try{$.ajaxSetup({ cache: false });}catch(e){}

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>关于</title>
<title>{lang about}</title>
<link rel="stylesheet" href="static/jquery_weui/css/weui.min.css">
<link rel="stylesheet" href="static/jquery_weui/css/jquery-weui.min.css">
<link rel="stylesheet" href="static/dzzicon/icon.css">

View File

@ -0,0 +1,5 @@
<script type="text/javascript">var DZZSCRIPT='{DZZSCRIPT}',LANG='{$_G[language]}', STATICURL = 'static/', IMGDIR = '{$_G[setting][imgdir]}', VERHASH = '{VERHASH}', charset = '{CHARSET}', dzz_uid = '$_G[uid]', cookiepre = '{$_G[config][cookie][cookiepre]}', cookiedomain = '{$_G[config][cookie][cookiedomain]}', cookiepath = '{$_G[config][cookie][cookiepath]}',attackevasive = '{$_G[config][security][attackevasive]}', disallowfloat = '{$_G[setting][disallowfloat]}', REPORTURL = '$_G[currenturl_encode]', SITEURL = '$_G[siteurl]', JSPATH = '$_G[setting][jspath]',MOD_PATH='{MOD_PATH}',APP_URL='{MOD_URL}',MOD_URL='{MOD_URL}';</script>
</head>
<body id="nv_{$_G[basescript]}" class="$bodyClass" >
<div id="append_parent" style="z-index:99999;"></div>
<div id="ajaxwaitid" style="z-index:99999;"></div>

View File

@ -14,8 +14,10 @@
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta name="renderer" content="webkit">
<base href="{$_G['siteurl']}" />
<link rel="stylesheet" type="text/css" href="static/jquery_weui/css/jquery-weui.min.css" >
<link rel="stylesheet" type="text/css" href="static/jquery_weui/css/weui.min.css">
<link rel="stylesheet" type="text/css" href="static/jquery_weui/css/jquery-weui.min.css" >
<link rel="stylesheet" type="text/css" href="static/dzzicon/icon.css?{VERHASH}"/>
<script type="text/javascript" src="static/jquery/jquery.min.js?{VERHASH}"></script>
<script type="text/javascript" src="static/jquery/jquery.json-2.4.min.js?{VERHASH}"></script>
<script type="text/javascript" src="static/jquery/jquery.json-2.4.min.js?{VERHASH}"></script>
<script src="static/jquery_weui/js/jquery-weui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="static/jquery_weui/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>

View File

@ -50,8 +50,8 @@ if($_GET['type']=='link'){
if(isset($icoarr['error'])) topshowmessage($icoarr['error']);
include template('common/header_simple');
echo "<script type=\"text/javascript\">";
echo "try{top._ico.createIco(".json_encode($icoarr).");}catch(e){alert(".lang('saved_my_documents').")}";
echo "try{top.Alert('".$attach['filename'].lang('successfully_added_desktop')."',3,'','','info');}catch(e){}";
echo "try{top._ico.createIco(".json_encode($icoarr).");}catch(e){alert('".lang('saved_my_documents')."')}";
echo "try{top.Alert('".$attach['filename'].lang('successfully_added_desktop')."',3,'','','info');}catch(e){}";
echo "</script>";
include template('common/footer');
exit();

View File

@ -87,7 +87,7 @@ if (submitcheck('replysubmit')) {
} elseif ($do == 'getcomment') {
$id = trim($_GET['id'], 60);
$id = getstr($_GET['id'], 60);
$idtype = trim($_GET['idtype']);
$page = empty($_GET['page']) ? 1 : intval($_GET['page']);
$perpage = 10;

View File

@ -514,7 +514,9 @@ a.ui-artZoom-hide:hover span, ._tt_tasklist li .ui-artZoom-hide.title_tttl:hover
.item_afed{
padding-bottom:10px;
}
.item_afed:hover {
background-color: #FBFBFB;
}
.lquote_mmfed {
width: 16px;
height: 11px;
@ -754,7 +756,6 @@ a.ui-artZoom-hide:hover span, ._tt_tasklist li .ui-artZoom-hide.title_tttl:hover
}
.img_pfed .txt_ipfed {
padding: 2px 5px;
font: 12px/14px Verdana, "\5B8B\4F53", "\65B0\5B8B\4F53", sans-serif;
border: 1px solid #aaa;
display: inline-block
}
@ -767,12 +768,8 @@ a.ui-artZoom-hide:hover span, ._tt_tasklist li .ui-artZoom-hide.title_tttl:hover
display: inline-block
}
.img_pfed .min_ipfed img {
max-width: 120px;
max-height: 80px
}
* .img_pfed .min_ipfed img{
width: expression(this.width > 120 && this.width>=this.height ? 120: true);
height: expression(this.height > 80 && this.width<=this.height ? 80 : true);
max-width: 100%;
/*max-height: 80px*/
}
.name_pfed {

View File

@ -10,29 +10,12 @@
if (!defined('IN_DZZ')) {
exit('Access Denied');
}
if (empty($_G['uid'])) {
include template('common/header_reload');
echo "<script type=\"text/javascript\">";
echo "try{top._login.logging();}catch(e){}";
echo "try{win.Close();}catch(e){}";
echo "</script>";
include template('common/footer_reload');
exit('<a href="user.php?mod=login&action=login">'.lang('need_login').'</a>');
}
$qid = intval($_GET['qid']);
$attach = C::t('comment_attach') -> fetch_by_qid($qid);
if (!$attach) {
topshowmessage(lang('attachment_nonexistence'));
}$attach['filename'] = $attach['title'];
$pfid = DB::result_first("select fid from %t where flag='document' and uid= %d", array('folder', $_G['uid']));
$pfid = $_GET['fid'];
$icoarr = io_dzz::uploadToattachment($attach, $pfid);
if (isset($icoarr['error']))
topshowmessage($icoarr['error']);
include template('common/header_simple');
echo "<script type=\"text/javascript\">";
echo "try{top._ico.createIco(" . json_encode($icoarr) . ");}catch(e){alert(".lang('saved_my_documents').")}";
echo "try{top.Alert('”" . $attach['title'] . lang('successfully_added_desktop')."',3,'','','info');}catch(e){}";
echo "</script>";
include template('common/footer');
exit();
?>
exit(json_encode($icoarr));

View File

@ -14,7 +14,7 @@ for(var i in arr['attachs']){
html+=' <div class="item_afed">';
if(attach.type=='image'){
html+=' <div class="pic_fed clearfix">';
html+=' <div class="img_pfed"> <a class="min_ipfed" hidefocus="true" href="'+attach['url']+'" rel="'+attach['url']+'" target="_blank"><img src="'+attach['img']+'" alt="'+attach['title']+'" class="artZoom" style="cursor: url(dzz/feed/images/zoomin.cur), pointer;" ></a> </div>';
html+=' <div class="img_pfed"> <a class="min_ipfed" hidefocus="true" href="javascript:;"><img src="'+attach['img']+'" data-original="'+attach['img']+'&original=1" alt="'+attach['title']+'" class=""></a> </div>';
html+=' </div>';
html+=' <div class="file_fed imgfile_fed clearfix"> '+attach['title']+'<span class="kb_nffed">('+attach['filesize']+')</span>';
html+=' <p class="down_ffed">';
@ -23,7 +23,7 @@ for(var i in arr['attachs']){
}else{
html+=' <a href="javascript:;" title="" hidefocus="true" class="btn_dffed skip_mmfed" onclick="feed_downAttach(\''+attach['qid']+'\')">'+__lang.download+'</a>';
}
html+=' <a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto(\''+attach['qid']+'\')">'+__lang.js_saved_my_documents+'</a> ';
html+=' <a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto(\''+attach['qid']+'\')">'+__lang.js_saved_my_documents+'</a> ';
html+=' </p>';
html+=' </div>';
}else if(attach.type=='video'){
@ -71,7 +71,7 @@ for(var i in arr['attachs']){
html+=' <div class="action_mfed clearfix">';
html+=' <div class="btn_amfed">';
html+=' <ul>';
html+=' <li class="more_bacfed"><a hidefocus="true" href="javascript:void(0);" onclick="feed_edit(\''+arr['cid']+'\',\''+arr['allowattach']+'\',\''+arr['allowat']+'\',\''+arr['allowsmiley']+'\')">'+__lang.edit+'</a></li>';
//html+=' <li class="more_bacfed"><a hidefocus="true" href="javascript:void(0);" onclick="feed_edit(\''+arr['cid']+'\',\''+arr['allowattach']+'\',\''+arr['allowat']+'\',\''+arr['allowsmiley']+'\')">'+__lang.edit+'</a></li>';
html+=' <li class="more_bamfed"><a hidefocus="true" href="javascript:void(0);" onclick="feed_delete(\''+arr['cid']+'\',\'comment_'+arr['cid']+'\')">'+__lang.delete+'</a></li>';
html+=' <li class="reply_bamfed"><a hidefocus="true" href="javascript:void(0);" onclick="getReplyForm(\''+arr['cid']+'\',\'0\',\''+arr['allowattach']+'\',\''+arr['allowat']+'\',\''+arr['allowsmiley']+'\');">'+__lang.reply+'</a></li>';
html+=' </ul>';
@ -100,7 +100,7 @@ for(var i in arr['attachs']){
jQuery('#message_'+tid).css({'height':25});
jQuery('#attachmentViewBox_'+tid).empty();
//location.hash='#comment_'+arr['cid'];
jQuery('#comment_'+arr['cid']+' img[data-original]').dzzthumb();
try{
callback_by_comment('comment_'+arr['cid'],'add');
}catch(e){}
@ -126,7 +126,7 @@ function feed_reply(arr){
html+=' <div class="item_afed">';
if(attach.type=='image'){
html+=' <div class="pic_fed clearfix">';
html+=' <div class="img_pfed"> <a class="min_ipfed" hidefocus="true" href="'+attach['url']+'" rel="'+attach['url']+'" target="_blank"><img src="'+attach['img']+'" alt="'+attach['title']+'" class="artZoom" style="cursor: url(dzz/feed/images/zoomin.cur), pointer;" ></a> </div>';
html+=' <div class="img_pfed"> <a class="min_ipfed" hidefocus="true" href="javascript:;"><img src="'+attach['img']+'" data-original="'+attach['img']+'&original=1" alt="'+attach['title']+'" class=""></a> </div>';
html+=' </div>';
html+=' <div class="file_fed imgfile_fed clearfix"> '+attach['title']+'<span class="kb_nffed">('+attach['filesize']+')</span>';
html+=' <p class="down_ffed">';
@ -144,7 +144,7 @@ function feed_reply(arr){
html+=' <p class="name_ffed">'+attach['title']+'</p>';
html+=' <p class="down_ffed">';
html+=' <a href="javascript:;" title="" hidefocus="true" class="btn_dffed skip_mmfed" onclick="feed_attach_preview(\''+attach['qid']+'\')">'+__lang.preview+'</a>';
html+=' <a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto(\''+attach['qid']+'\')">'+__lang.js_saved_my_documents+'</a> ';
// html+=' <a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto(\''+attach['qid']+'\')">'+__lang.js_saved_my_documents+'</a> ';
html+=' </p>';
html+=' </div>';
}else if(attach.type=='dzzdoc' || attach.type=='link'){
@ -179,7 +179,7 @@ function feed_reply(arr){
html+=' <div class="btn_acfed">';
html+=' <ul>';
if(arr['haveperm']>0){
html+=' <li class="more_bacfed"><a hidefocus="true" href="javascript:void(0);" onclick="feed_edit(\''+arr['cid']+'\',\''+arr['allowattach']+'\',\''+arr['allowat']+'\',\''+arr['allowsmiley']+'\')">'+__lang.edit+'</a></li>';
// html+=' <li class="more_bacfed"><a hidefocus="true" href="javascript:void(0);" onclick="feed_edit(\''+arr['cid']+'\',\''+arr['allowattach']+'\',\''+arr['allowat']+'\',\''+arr['allowsmiley']+'\')">'+__lang.edit+'</a></li>';
html+=' <li class="more_bacfed"><a hidefocus="true" href="javascript:void(0);" onclick="feed_delete(\''+arr['cid']+'\',\'comment_'+arr['cid']+'\',\''+arr['pcid']+'\')">'+__lang.delete+'</a></li>';
}
html+=' <li class="reply_bacfed"><a hidefocus="true" href="javascript:void(0);" onclick="getReplyForm(\''+arr['pcid']+'\',\''+arr['cid']+'\',\''+arr['allowattach']+'\',\''+arr['allowat']+'\',\''+arr['allowsmiley']+'\');">'+__lang.reply+'</a></li>';
@ -213,6 +213,7 @@ function feed_reply(arr){
jQuery('#reply_publish_'+arr['pcid']).slideUp(500);
jQuery('#attachmentViewBox_'+arr['pcid']).empty();
//location.hash=('#comment_'+arr['pcid']);
jQuery('#comment_'+arr['cid']+' img[data-original]').dzzthumb();
}
function getReplyForm(tid,pid,allowattach,allowat,allowsmiley){
@ -321,8 +322,16 @@ function feed_downAttach(qid){
}
function feed_attach_saveto(qid){
var url=DZZSCRIPT+'?mod=comment&op=saveto&qid='+qid;
if(!window.frames['hidefram']) jQuery('<iframe id="hideframe" name="hideframe" src="about:blank" frameborder="0" marginheight="0" marginwidth="0" width="0" height="0" allowtransparency="true" style="display:none;z-index:-99999"></iframe>').appendTo('body');
window.frames['hideframe'].location=url;
showWindow('saveto','index.php?mod=system&op=filewindow&type=2','get','0',function(fid,data){
jQuery.post(url,{fid:fid},function(json){
if(json.error){
showmessage(json.error,'danger',3000,1);
}else{
showmessage(__lang.savetosuccess+data.relativepath+json.filename,'success',3000,1);
}
},'json');
});
}
function feed_attach_preview(qid){
@ -333,6 +342,10 @@ function feed_attach_preview(qid){
window.frames['hideframe'].location=url;
}
}
function feed_attach_del(qid){
var url=DZZSCRIPT+'?mod=comment&op=delete&qid='+qid;
}
function check_attach_share_tid(tid){
if(!tid) tid='0';
@ -361,13 +374,18 @@ function removeAttach(el,tid){
function uploadfrom_desktop(tid){
if(!tid) tid='0';
try{
parent.OpenFile('open',__lang.open_file,{attach:[__lang.typename_attach,['ATTACH','IMAGE','DOCUMENT','VIDEO','LINK','DZZDOC'],''],image:[__lang.type_image+'(*.jpg,*.jpeg,*.png,*.gif)',['IMAGE','JPG','JPEG','PNG','GIF'],'']},{bz:'',multiple:true},function(data){//只打开本地盘
var datas=[];
if(data.params.multiple){
datas=data.icodata
}else{
datas=[data.icodata];
}
var openexts = {
attach:[__lang.typename_attach,["ATTACH","IMAGE","DOCUMENT","VIDEO","LINK","DZZDOC"],""],
image:[__lang.typename_image+"(*.jpg,*.jpeg,*.png,*.gif)",["IMAGE","JPG","JPEG","PNG","GIF"],""]
};
var exts=JSON.stringify(openexts);
exts = exts.replace(/\"/g,'&quot;');
exts = exts.replace(/\(/g,'|');
exts = exts.replace(/\)/g,'$');
exts = encodeURIComponent(exts);
showWindow('openfile', 'index.php?mod=system&op=filewindow&handlekey=svaefile&mulitype=1&exts='+exts+'&callback=opencallback', 'get', '0',function(data){//只打开本地盘
var datas=data;
for(var i in datas){
var arr=datas[i];
@ -403,7 +421,7 @@ function uploadfrom_desktop(tid){
}
});
}catch(e){
alert(__lang.please_use_desktop);
}
}

View File

@ -53,7 +53,7 @@
<input id="fileupload_{$idtype}_{$id}" type="file" name="files[]" multiple >
</a> </div><!--{/if}-->
<!--{if $_GET[allowattach]==1 || $_GET[allowattach]>2}-->
<!-- <div class="own_auatth" style=""><a href="javascript:void(0);" hidefocus onclick="uploadfrom_desktop('{$idtype}_{$id}');jQuery(this).parent().parent().hide();">{lang choose_from_my_file}</a></div> -->
<div class="own_auatth" style=""><a href="javascript:void(0);" hidefocus onclick="uploadfrom_desktop('{$idtype}_{$id}');jQuery(this).parent().parent().hide();">{lang choose_from_my_file}</a></div>
<!--{/if}-->
</div>
</div>

View File

@ -54,7 +54,7 @@
<div class="actionUploadAttachment tobody" id="upload_from_{$cid}_menu" style="display:none;">
<!--{if $_GET[allowattach]>=2 }--><div class="local_auatth" style="position:relative;overflow:hidden"> <a href="javascript:void(0);" hidefocus onclick="jQuery(this).parent().parent().hide();">{lang web_upload} <input id="fileupload_{$cid}" type="file" name="files[]" multiple ></a> </div><!--{/if}-->
<!--{if $_GET[allowattach]==1 || $_GET[allowattach]>2}-->
<!-- <div class="own_auatth" style=""><a href="javascript:void(0);" hidefocus onclick="uploadfrom_desktop('{$cid}');jQuery(this).parent().parent().hide();">{lang choose_from_my_file}</a></div> -->
<div class="own_auatth" style=""><a href="javascript:void(0);" hidefocus onclick="uploadfrom_desktop('{$cid}');jQuery(this).parent().parent().hide();">{lang choose_from_my_file}</a></div>
<!--{/if}-->
</div>
</div>

View File

@ -25,11 +25,11 @@
</div>
<div class="file_fed imgfile_fed clearfix"> $attach[title]<span class="kb_nffed">($attach[filesize])</span>
<p class="down_ffed">
<a href="javascript:;" title="" hidefocus="true" class="btn_dffed skip_mmfed" onclick="feed_downAttach('$attach[qid]')">{lang {lang download}}
<a href="javascript:;" title="" hidefocus="true" class="btn_dffed skip_mmfed" onclick="feed_downAttach('$attach[qid]')">{lang download}
<!--{if $attach[downloads]>0}-->($attach[downloads]{lang degree})
<!--{/if}-->
</a>
<!--<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>-->
<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>
</p>
</div>
<!--{elseif $attach['type']=='video'}-->
@ -70,7 +70,7 @@
<!--{if $attach[downloads]>0}--><span class="text-gray">($attach[downloads]{lang degree})</span>
<!--{/if}-->
</a>
<!--<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>-->
<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>
</p>
</div>
<!--{/if}-->

View File

@ -23,7 +23,7 @@
</a><a href="javascript:;" title="" hidefocus="true" class="btn_dffed skip_mmfed" onclick="feed_downAttach('$attach[qid]')">{lang download}
<!--{if $attach[downloads]>0}-->($attach[downloads]{lang degree})<!--{/if}-->
</a>
<!--<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>-->
<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>
</p>
</div>
<!--{elseif $attach['type']=='video'}-->
@ -62,7 +62,7 @@
<a href="javascript:;" title="" hidefocus="true" class="btn_dffed skip_mmfed" onclick="feed_downAttach('$attach[qid]')">{lang download}
<!--{if $attach[downloads]>0}--><span class="text-gray">($attach[downloads]{lang degree})</span><!--{/if}-->
</a>
<!--<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>-->
<a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed skip_mmfed" onclick="feed_attach_saveto('$attach[qid]')">{lang js_saved_my_documents}</a>
</p>
</div>
<!--{/if}-->

View File

@ -3,7 +3,7 @@ return array(
/*是否有访问权限0=>任何人都可访问,1=>需登录可访问,2=>管理员可访问,3=>创始人可访问;默认值为1*/
'allow_view'=>1,
'allow_robot'=>false,//是否允许机器人爬取
/*此三项配置如果未配置,将读取系统默认配置访问index*/
/*此三项配置如果未配置,将读取系统默认配置访问*/
'default_mod'=>'index',//默认应用CONFIG DEFAULT_MOD
'default_op' => 'index',//CONFIG DEFAULT_OP
'dafault_action' => 'index',//CONFIG DAFAULT_ACTION
@ -12,5 +12,5 @@ return array(
* 2.数组格式array('file_name'=>'test','file_folder'=>'fun','mod_name'=>'test'),将会加载test模块下的fun下的test.php
* 此配置默认为空
*/
'loadFile'=>'',
'libfile'=>'',
);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
dzz/images/extimg/gif.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
dzz/images/extimg/jpeg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
dzz/images/extimg/jpg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
dzz/images/extimg/png.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,5 @@
<?php
/*默认页跳转*/
Hook::listen('check_login');//检查是否登录,未登录跳转到登录界面
include template('main');
exit();

View File

@ -32,7 +32,7 @@ $lang = array(
),
'bottom_selectallinfo' => '<span class="pull-left">选定{n}个对象({size})</span>',
'bottom_leftinfo' => '<span class="pull-left">{n}个对象({size})</span><span class="pull-right">共{total}个对象</span>',
'please_use_desktop' => '请在桌面内使用!',
'please_use_desktop' => '请在桌面内使用!',
'share_the' => '分享了',
'js_a_file' => '个文件',
'js_now_email' => '现在去邮箱',
@ -181,8 +181,13 @@ $lang = array(
'folder_to_lowerfolder_failure' => '不能移动文件夹到自己的下级文件夹中',
'image_desc_default' => '<a href="home.php?mod=space&uid={uid}&from=dzz">{username}</a>上传于{dateline}',
'notice' => '通知',
'finish' => '完成',
'degree_exhaust' => '次数用尽',
'to_of_completed' => '待完成',
'over_of_date' => '已完成',
'out_of_date' => '已过期',
'out_of_pigeonhole' => '已归档',
'out_of_delete' => '已删除',
'normal' => '正常',
'been_blocked' => '已屏蔽',
'tips' => '技巧提示',
@ -241,8 +246,9 @@ $lang = array(
'app_not_exist' => '应用不存在',
'newtopic' => '创建话题',
'js_saved_my_documents' => '保存到我的文档',
'saved_my_documents' => '已保存到我的文档!',
'js_saved_my_documents' => '保存',
'saved_my_documents' => '已保存!',
'at_saved_my_documents' => '已保存到我的文档!',
'successfully_added_desktop' => '“ 成功添加到桌面“我的文档”中!',
'pack_up' => '收起',
'rotation' => '旋转',
@ -262,6 +268,7 @@ $lang = array(
'discuss_nonentity_del' => '评论不存在或已删除',
'need_login' => '需要登录',
'app_not_support_open_alone' => '此应用不支持单独打开',
'related' => '动态',
'has_not_related' => '还没有相关的动态',
'has_not_related1' => '没有相关的动态',
'unallocated_space' => '未分配空间',
@ -308,6 +315,7 @@ $lang = array(
'simple_mp3_player' => '简易mp3播放器',
'copyright' => '版权',
'start' => '开始',
'start_search' => '开始搜索',
'space_usage' => '空间使用',
'no_disturbing' => '免打扰',
'no_disturbing1' => '免打扰模式',
@ -462,8 +470,9 @@ $lang = array(
'pictures' => '图片',
'document' => '文档',
'all_type' => '全部类型',
'please_select_file' => '请选择文件',
'some_day_after' => '{day}天后',
'within_a_day' => '1天内',
'savetosuccess'=>' 保存成功,文件路径: '
);
?>

View File

@ -125,3 +125,6 @@ ul,ul li{
position: fixed;
box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
}
.weui-cells_checkbox .weui-check:checked+.weui-icon-checked:before{
color: #4c8afb;
}

View File

@ -48,6 +48,7 @@ if ($do == 'adddowns') {
}
dsetcookie('pass_' . $sid, authcode($_GET['password'], 'ENCODE'));
} else {
$rightpassword = dzzdecode($share['password']);
if ($ismobile) {
include template('mobile/share_password');
} else {

View File

@ -42,7 +42,12 @@ if(!$doing){
$data['error'][$fid] = lang('no_privilege');
$data['msg'][$fid] = 'error';
$data['name'][$fid] = '';
exit(json_encode($data));
if(isset($_GET['token'])){
exit(json_encode(array('error'=>lang('no_privilege'))));
}else{
exit(json_encode($data));
}
}
$totalsize = 0;

View File

@ -13,6 +13,7 @@ $(document).off('tap.openfile').on('tap.openfile', '.filelist', function () {
return false;
} else {
if (is_wxwork) {
var href = obj.data('href');
window.location.href = href;
return false;
} else {

View File

@ -1 +1 @@
<div class="sharepame-title pull-left" style="padding-left:30px;">{$shareusername}{lang de}{lang file_share}</div>
<div class="sharepame-title pull-left" style="padding-left:30px;">{$share[username]}{lang de}{lang file_share}</div>

View File

@ -589,13 +589,12 @@
location.href = '$_G[siteurl]user.php?mod=login';
return false;
}
/*jQuery.post('{MOD_URL}&do=adddowns&sid={$_GET[sid]}', function(data) {
if(data['success']) {*/
//var userhref = 'index.php?mod=system&op=selposition&handlekey=seldir&allowcreate=1&callback=save_file';
var userhref = 'index.php?mod=system&op=filewindow&handlekey=seldir&range=group,home&type=0&allowcreate=1&callback=save_file';
showWindow('seldir', userhref, 'get', '0');
/* }
}, 'json');*/
jQuery.post('{MOD_URL}&do=adddowns&sid={$_GET[sid]}', function(data) {
if(data['success']) {
var userhref = 'index.php?mod=system&op=filewindow&handlekey=svaefile&type=2&perm=write&allowcreate=1&callback=save_file';
showWindow('seldir', userhref, 'get', '0');
}
}, 'json');
return false;
})
//点击空白处,取消全选
@ -610,17 +609,14 @@
})
function allsave(obj) {
if (uid == 0) {
location.href = '$_G[siteurl]user.php?mod=login';
return false;
}
var userhref = 'index.php?mod=system&op=selposition&handlekey=seldir&allowcreate=1&callback=saveall_file';
var userhref = 'index.php?mod=system&op=filewindow&type=2&perm=write&allowcreate=1&callback=saveall_file';
showWindow('seldir', userhref, 'get', '0');
}
function saveall_file(fid) {
//var rids = $('#allsave').data('allrids');
return false
var rids = [];
jQuery('div[data-value="true"]').each(function () {
rids.push(jQuery(this).data('dpath'));

View File

@ -58,7 +58,7 @@
</div>
</div>
<!--{else}-->
<div class="weui-cell weui-cell_access weui-cell_longpress filelist" data-dpath="$v[dpath]" data-dpath="{DZZSCRIPT}?mod=io&op=download&path=$v[dpath]" data-rid="$v[rid]">
<div class="weui-cell weui-cell_access weui-cell_longpress filelist" data-dpath="$v[dpath]" data-href="{DZZSCRIPT}?mod=io&op=download&path=$v[dpath]" data-rid="$v[rid]">
<div class="weui-cell__hd"><img src="$v[img]" class="weui-cell__recentimg"></div>
<div class="weui-cell__bd">
<h4 >$v[name]</h4>
@ -97,8 +97,13 @@
<script type="text/javascript" src="{MOD_PATH}/scripts/mobile/appevent.js"></script>
<script type="text/javascript" src="{MOD_PATH}/scripts/mobile/share.js"></script>
<script type="text/javascript">
var nextpage = '{$nextpage}',morepath = '{$morepath}',is_wxwork = '{$is_wxwork}';
var nextpage = '{$nextpage}',morepath = '{$morepath}',is_wxwork = '{$is_wxwork}', u = navigator.userAgent;;
$(function(){
if(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) || is_wxwork){
$('.downfile').addClass('hide');
}else{
$('.downfile').removeClass('hide');
}
$('#weui_address_scroll').navbarscroll();
height();
});

View File

@ -23,7 +23,7 @@
</div>
</div>
<!--{else}-->
<div class="weui-cell weui-cell_access weui-cell_longpress filelist" data-dpath="$v[dpath]" data-dpath="{DZZSCRIPT}?mod=io&op=download&path=$v[dpath]" data-rid="$v[rid]">
<div class="weui-cell weui-cell_access weui-cell_longpress filelist" data-dpath="$v[dpath]" data-href="{DZZSCRIPT}?mod=io&op=download&path=$v[dpath]" data-rid="$v[rid]">
<div class="weui-cell__hd"><img src="$v[img]" class="weui-cell__recentimg"></div>
<div class="weui-cell__bd">
<h4 >$v[name]</h4>

View File

@ -20,7 +20,7 @@
<h4>{$share[username]}{lang password_share_to}</h4>
</div>
</div>
<form method="post" action="{$_G[siteurl]}index.php?&mod=shares&sid=$osid">
<form method="post" action="{$_G[siteurl]}index.php?mod=shares&sid=$osid" onsubmit="return success();">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="weui-cell weui-cells">
<div class="weui-cell__hd"><label class="weui-label">提取密码</label></div>
@ -36,4 +36,18 @@
</body>
<script type="text/javascript" src="static/jquery/jquery.min.js"></script>
<script type="text/javascript" src="static/jquery_weui/js/jquery-weui.min.js"></script>
<script type="text/javascript">
function success(){
var passwords ='{$rightpassword}';
var val=$('.weui-input').val();
console.log(passwords);
if(passwords==val){
return true;
}else{
console.log(passwords);
$.alert("密码不正确,请重新填写");
return false;
}
}
</script>
</html>

View File

@ -1,26 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<base href="$_G[siteurl]" />
<title>{lang password_share}</title>
<link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="static/css/app_manage.css">
<link rel="stylesheet" href="static/css/checkbox.css">
<script type="text/javascript" src="static/jquery/jquery.min.js"></script>
<!--{template common/header_simple_start}-->
<style type="text/css">
html,body{text-align:center;height:100%;background:rgb(58, 110, 165)}
.spacer{
height:50%;
margin-top:-200px;
}
.en-encryption{
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display:inline-block;
margin: auto;
max-width: 500px;
height: 200px;
box-shadow:0 5px 10px RGBA(0,0,0,.15);
text-align: left;
}
.en-encryption .panel-heading{
background-color: #2196f3;
@ -56,16 +49,16 @@
}
</style>
</head>
<body>
<!--{template common/header_simple_end}-->
<!--面板开始-->
<div class="spacer"></div>
<div class="panel panel-default en-encryption">
<div class="panel-heading">
{eval echo avatar_block($share['uid']);} <span><strong>{$share[username]}</strong></span><span class="ml10">{lang password_share_to}</span>
</div>
<form method="post" action="{$_G[siteurl]}index.php?&mod=shares&sid=$osid">
<form method="post" action="{$_G[siteurl]}index.php?mod=shares&sid=$osid">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<div class="panel-body clearfix">
<p >{lang password_share_lable}</p>

View File

@ -395,6 +395,7 @@ ul,li,ul li{
color: #999999;
font-size: 0.7rem;
padding: 0.5rem;
margin-top: 1.8rem;
}
.weui-cell__search {
background-color: #ffc107;

View File

@ -198,14 +198,18 @@ li{
}
}
/*内容上部分开始*/
/*.select-fileall{
overflow: hidden;
.modal-footer {
padding: 10px 15px;
}
.select-filetop{
.select-fileall{
padding:0 15px
}
/*.select-filetop{
overflow: hidden;
}*/
.select-filetop{
position: relative;
padding:0 10px;
}
.select-address{
-webkit-box-sizing: border-box;
@ -222,7 +226,7 @@ li{
width: 100%;
height:34px;
line-height: 34px;
margin-bottom: 17px;
margin-right: 100px;
padding-right: 10px;
}

View File

@ -17,8 +17,8 @@
margin: 0px 25px;
}
#seluser_dropdown_menu{
padding-left: 1.78rem;
padding-right: 1.78rem;
/*padding-left: 1.78rem;
padding-right: 1.78rem;*/
}
.jstree-default .jstree-wholerow{
height: 2.14rem;

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