Browse Source

文件目录调整

tags/6.2.7
tianya 1 year ago
parent
commit
a25c53003a
27 changed files with 24 additions and 24 deletions
  1. +1
    -1
      src/admin/templets/mychannel_modifysearch.htm
  2. +3
    -3
      src/apps/advancedsearch.php
  3. +3
    -3
      src/apps/diy.php
  4. +3
    -3
      src/apps/download.php
  5. +2
    -2
      src/apps/flink.php
  6. +1
    -1
      src/apps/heightsearch.php
  7. +1
    -1
      src/apps/list.php
  8. +1
    -1
      src/apps/recommend.php
  9. +1
    -1
      src/apps/showphoto.php
  10. +3
    -3
      src/apps/view.php
  11. +1
    -1
      src/apps/vote.php
  12. +3
    -3
      src/system/diyform.class.php
  13. +1
    -1
      src/system/libraries/oxwindow.class.php
  14. +0
    -0
      src/theme/apps/advancedsearch.htm
  15. +0
    -0
      src/theme/apps/download_links_templet.htm
  16. +0
    -0
      src/theme/apps/flink-add.htm
  17. +0
    -0
      src/theme/apps/flink-list.htm
  18. +0
    -0
      src/theme/apps/heightsearch.htm
  19. +0
    -0
      src/theme/apps/list_diyform.htm
  20. +0
    -0
      src/theme/apps/post_diyform.htm
  21. +0
    -0
      src/theme/apps/recommend.htm
  22. +0
    -0
      src/theme/apps/showphoto.htm
  23. +0
    -0
      src/theme/apps/view_diyform.htm
  24. +0
    -0
      src/theme/apps/view_msg.htm
  25. +0
    -0
      src/theme/apps/view_msg_catalog.htm
  26. +0
    -0
      src/theme/apps/vote.htm
  27. +0
    -0
      src/theme/apps/win_templet.htm

+ 1
- 1
src/admin/templets/mychannel_modifysearch.htm View File

@@ -43,7 +43,7 @@
<td>自定义搜索结果页模板:</td>
<td>
<input type="text" name="template" value="<?php echo $template;?>" class="admin-input-lg">
<span>(填写文件名,且文件必须在templets/default目录)</span>
<span>(填写文件名,且文件必须在theme/apps目录)</span>
</td>
</tr>
<tr>


+ 3
- 3
src/apps/advancedsearch.php View File

@@ -179,10 +179,10 @@ $dlist = new DataListCP();
$dlist->pagesize = 30;
$dlist->SetParameter("hash", $sqlhash);
$dlist->SetParameter("mid", $mid);
if (file_exists(DEDEROOT."/theme/templets/$template")) {
$templatefile = DEDEROOT."/theme/templets/$template";
if (file_exists(DEDEROOT."/theme/dedebiz/$template")) {
$templatefile = DEDEROOT."/theme/dedebiz/$template";
} else {
$templatefile = DEDEROOT."/theme/templets/advancedsearch.htm";
$templatefile = DEDEROOT."/theme/apps/advancedsearch.htm";
}
$dlist->SetTemplate($templatefile);
$dlist->SetSource($query);


+ 3
- 3
src/apps/diy.php View File

@@ -21,7 +21,7 @@ $diy = new diyform($diyid);
if ($action == 'post') {
if (empty($do)) {
$postform = $diy->getForm(true);
include DEDEROOT."/theme/plus/{$diy->postTemplate}";
include DEDEROOT."/theme/apps/{$diy->postTemplate}";
exit();
} elseif ($do == 2) {
$dede_fields = empty($dede_fields) ? '' : trim($dede_fields);
@@ -94,7 +94,7 @@ if ($action == 'post') {
$datalist->pagesize = 10;
$datalist->SetParameter('action', 'list');
$datalist->SetParameter('diyid', $diyid);
$datalist->SetTemplate(DEDEINC."/../theme/plus/{$diy->listTemplate}");
$datalist->SetTemplate(DEDEINC."/../theme/apps/{$diy->listTemplate}");
$datalist->SetSource($query);
$fieldlist = $diy->getFieldList();
$datalist->Display();
@@ -119,6 +119,6 @@ if ($action == 'post') {
exit();
}
$fieldlist = $diy->getFieldList();
include DEDEROOT."/theme/plus/{$diy->viewTemplate}";
include DEDEROOT."/theme/apps/{$diy->viewTemplate}";
}
?>

+ 3
- 3
src/apps/download.php View File

@@ -37,7 +37,7 @@ if ($open == 0) {
include_once(DEDEINC.'/taglib/channel/softlinks.lib.php');
$ctag = '';
$downlinks = ch_softlinks($row[$vname], $ctag, $cu, '', TRUE);
require_once(DEDETEMPLATE.'/plus/download_links_templet.htm');
require_once(DEDETEMPLATE.'/apps/download_links_templet.htm');
exit();
}
//提供软件给会员下载旧模式
@@ -167,7 +167,7 @@ else if ($open == 2) {
$memberTypes[0] = "游客";
$msgtitle = "您没有权限下载软件:{$arctitle}";
$moremsg = "这个软件需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能下载,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>";
include_once(DEDETEMPLATE.'/plus/view_msg.htm');
include_once(DEDETEMPLATE.'/apps/view_msg.htm');
exit();
}
//以下为正常情况,自动扣点数
@@ -181,7 +181,7 @@ else if ($open == 2) {
if ($needMoney > $cfg_ml->M_Money || $cfg_ml->M_Money == '') {
$msgtitle = "您没有权限下载软件:{$arctitle}";
$moremsg = "该软件需要<span class='text-primary'>".$needMoney."</span>金币才能下载,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>";
include_once(DEDETEMPLATE.'/plus/view_msg.htm');
include_once(DEDETEMPLATE.'/apps/view_msg.htm');
exit(0);
}
//有足够金币,记录会员信息


+ 2
- 2
src/apps/flink.php View File

@@ -30,9 +30,9 @@ if ($dopost == 'save') {
exit;
} elseif ($dopost == 'add') {
//显示模板简单PHP文件
include_once(DEDETEMPLATE.'/plus/flink-add.htm');
include_once(DEDETEMPLATE.'/apps/flink-add.htm');
exit;
}
//显示模板简单PHP文件
include_once(DEDETEMPLATE.'/plus/flink-list.htm');
include_once(DEDETEMPLATE.'/apps/flink-list.htm');
?>

+ 1
- 1
src/apps/heightsearch.php View File

@@ -10,5 +10,5 @@
*/
require_once(dirname(__FILE__).'/../system/common.inc.php');
require_once(DEDEINC.'/typelink/typelink.class.php');
require_once(DEDETEMPLATE.'/plus/heightsearch.htm');
require_once(DEDETEMPLATE.'/apps/heightsearch.htm');
?>

+ 1
- 1
src/apps/list.php View File

@@ -48,7 +48,7 @@ if ($tinfos['issystem'] == -1) {
$memberTypes[0] = "游客或没权限会员";
$msgtitle = "您没有权限浏览栏目:{$lv->Fields['typename']} ";
$moremsg = "该栏目需要<span class='text-primary'>".$memberTypes[$lv->Fields['corank']]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>";
include_once(DEDETEMPLATE.'/plus/view_msg_catalog.htm');
include_once(DEDETEMPLATE.'/apps/view_msg_catalog.htm');
exit();
}
}


+ 1
- 1
src/apps/recommend.php View File

@@ -66,5 +66,5 @@ if ($arcRow['aid'] == '') {
}
extract($arcRow, EXTR_OVERWRITE);
//显示模板简单PHP文件
include(DEDETEMPLATE.'/plus/recommend.htm');
include(DEDETEMPLATE.'/apps/recommend.htm');
?>

+ 1
- 1
src/apps/showphoto.php View File

@@ -74,6 +74,6 @@ if ($nextSrc != '') {
} else {
$pageGuide .= " | 没有了";
}
require_once(DEDETEMPLATE.'/plus/showphoto.htm');
require_once(DEDETEMPLATE.'/apps/showphoto.htm');
exit();
?>

+ 3
- 3
src/apps/view.php View File

@@ -44,7 +44,7 @@ if ($needMoney > 0 || $needRank > 1) {
$memberTypes[0] = "游客或没权限会员";
$msgtitle = "您没有权限浏览文档:{$arctitle} ";
$moremsg = "该文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>";
include_once(DEDETEMPLATE.'/plus/view_msg.htm');
include_once(DEDETEMPLATE.'/apps/view_msg.htm');
exit();
}
//需要金币的情况
@@ -56,7 +56,7 @@ if ($needMoney > 0 || $needRank > 1) {
if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) {
$msgtitle = "您没有权限浏览文档:{$arctitle} ";
$moremsg = "该文档需要<span class='text-primary'>".$needMoney."</span>金币才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>,<a class='btn btn-success btn-sm' href='{$GLOBALS['cfg_cmsurl']}/user/buy.php' target='_blank'>前去充值</a>";
include_once(DEDETEMPLATE.'/plus/view_msg.htm');
include_once(DEDETEMPLATE.'/apps/view_msg.htm');
$arc->Close();
exit();
} else {
@@ -77,7 +77,7 @@ if ($needMoney > 0 || $needRank > 1) {
}
$msgtitle = "扣金币购买阅读";
$moremsg = "该文档需要付费<span class='text-primary'>".$needMoney."</span>金币,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>,<a class='btn btn-success btn-sm' href='{$GLOBALS['cfg_cmsurl']}/apps/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>";
include_once($cfg_basedir.$cfg_templets_dir."/plus/view_msg.htm");
include_once($cfg_basedir.$cfg_templets_dir."/apps/view_msg.htm");
$arc->Close();
exit();
}


+ 1
- 1
src/apps/vote.php View File

@@ -58,5 +58,5 @@ if ($dopost == 'view') {
}
}
//显示模板简单PHP文件
include(DEDETEMPLATE.'/plus/vote.htm');
include(DEDETEMPLATE.'/apps/vote.htm');
?>

+ 3
- 3
src/system/diyform.class.php View File

@@ -47,9 +47,9 @@ class diyform
$this->name = $diyinfo['name'];
$this->table = $diyinfo['table'];
$this->public = $diyinfo['public'];
$this->listTemplate = $diyinfo['listtemplate'] != '' && file_exists(DEDETEMPLATE.'/plus/'.$diyinfo['listtemplate']) ? $diyinfo['listtemplate'] : 'list_diyform.htm';
$this->viewTemplate = $diyinfo['viewtemplate'] != '' && file_exists(DEDETEMPLATE.'/plus/'.$diyinfo['viewtemplate']) ? $diyinfo['viewtemplate'] : 'view_diyform.htm';;
$this->postTemplate = $diyinfo['posttemplate'] != '' && file_exists(DEDETEMPLATE.'/plus/'.$diyinfo['posttemplate']) ? $diyinfo['posttemplate'] : 'post_diyform.htm';;
$this->listTemplate = $diyinfo['listtemplate'] != '' && file_exists(DEDETEMPLATE.'/apps/'.$diyinfo['listtemplate']) ? $diyinfo['listtemplate'] : 'list_diyform.htm';
$this->viewTemplate = $diyinfo['viewtemplate'] != '' && file_exists(DEDETEMPLATE.'/apps/'.$diyinfo['viewtemplate']) ? $diyinfo['viewtemplate'] : 'view_diyform.htm';;
$this->postTemplate = $diyinfo['posttemplate'] != '' && file_exists(DEDETEMPLATE.'/apps/'.$diyinfo['posttemplate']) ? $diyinfo['posttemplate'] : 'post_diyform.htm';;
}
/**
* 获取表单


+ 1
- 1
src/system/libraries/oxwindow.class.php View File

@@ -220,7 +220,7 @@ class OxWindow
}
$ctp = new DedeTagParse();
if ($modfile == '') {
$ctp->LoadTemplate($cfg_basedir.$cfg_templets_dir.'/plus/win_templet.htm');
$ctp->LoadTemplate($cfg_basedir.$cfg_templets_dir.'/apps/win_templet.htm');
} else {
$ctp->LoadTemplate($modfile);
}


src/theme/dedebiz/advancedsearch.htm → src/theme/apps/advancedsearch.htm View File


src/theme/plus/download_links_templet.htm → src/theme/apps/download_links_templet.htm View File


src/theme/plus/flink-add.htm → src/theme/apps/flink-add.htm View File


src/theme/plus/flink-list.htm → src/theme/apps/flink-list.htm View File


src/theme/plus/heightsearch.htm → src/theme/apps/heightsearch.htm View File


src/theme/plus/list_diyform.htm → src/theme/apps/list_diyform.htm View File


src/theme/plus/post_diyform.htm → src/theme/apps/post_diyform.htm View File


src/theme/plus/recommend.htm → src/theme/apps/recommend.htm View File


src/theme/plus/showphoto.htm → src/theme/apps/showphoto.htm View File


src/theme/plus/view_diyform.htm → src/theme/apps/view_diyform.htm View File


src/theme/plus/view_msg.htm → src/theme/apps/view_msg.htm View File


src/theme/plus/view_msg_catalog.htm → src/theme/apps/view_msg_catalog.htm View File


src/theme/plus/vote.htm → src/theme/apps/vote.htm View File


src/theme/plus/win_templet.htm → src/theme/apps/win_templet.htm View File


Loading…
Cancel
Save