企业网站和门户网站不一样的时企业网站的内容没有门户的多;一般的企业网站都在几百个页面 所以生成HTML 不必要像门户方案哪样麻烦;
分类页可在这样:http://www.021fangshui.com/Waterproof/list2.html
内容查看页可以这样: http://www.021fangshui.com/Waterproof/Sealing8.html
通过 这样生成的HTML 很难看出来是SS做的 如果 做一些隐藏的话更难看出来的!
方法: 打开 /function/common.func.php
找到:- function gethtmlfile($parray) {
- $htmlarr = array();
- $dirarr = array();
- $id = 0;
- if(empty($parray['page'])) {
- unset($parray['page']);
- } elseif($parray['page'] < 2) {
- unset($parray['page']);
- }
- if(!empty($parray['uid'])) {
- $id = $parray['uid'];
- if(!empty($parray['action'])) {
- if($parray['action'] == 'space' || $parray['action'] == 'spacelist') {
- unset($parray['action']);
- } elseif ($parray['action'] == 'viewspace') {
- unset($parray['action']);
- }
- }
- } elseif(!empty($parray['itemid'])) {
- $id = $parray['itemid'];
- } elseif(!empty($parray['tid'])) {
- $id = $parray['tid'];
- } elseif(!empty($parray['tagid'])) {
- $id = $parray['tagid'];
- } elseif(!empty($parray['catid'])) {
- $id = $parray['catid'];
- } elseif(!empty($parray['fid'])) {
- $id = $parray['fid'];
- }
- $htmlfilename = str_replace(array('action-', 'uid-', 'itemid-'), array('', '', ''), arraytostring($parray, '-'));
- if(!empty($id)) {
- $idvalue = ($id>9)?substr($id, -2, 2):$id;
- $thedir = $idvalue;
- if(!empty($parray['action'])) {
- if($parray['action'] == 'viewnews') {
- $htmlfilename = "n-{$id}";
- if(!empty($parray['page'])) $htmlfilename .= '-'.$parray['page'];
- } elseif($parray['action'] == 'viewthread') {
- $htmlfilename = "t-{$id}";
- }
- }
- }
- if(is_dir(H_DIR) || (!is_dir(H_DIR) && @mkdir(H_DIR))) {
- if(empty($id)) {
- $htmlarr['path'] = H_DIR.'/'.$htmlfilename.'.html';
- $htmlarr['url'] = H_URL.'/'.$htmlfilename.'.html';
- } else {
- $htmldir = H_DIR.'/'.$thedir;
- if(is_dir($htmldir) || (!is_dir($htmldir) && @mkdir($htmldir))) {
- $htmlarr['path'] = H_DIR.'/'.$thedir.'/'.$htmlfilename.'.html';
- $htmlarr['url'] = H_URL.'/'.$thedir.'/'.$htmlfilename.'.html';
- } else {
- $htmlarr['path'] = H_DIR.'/'.$htmlfilename.'.html';
- $htmlarr['url'] = H_URL.'/'.$htmlfilename.'.html';
- }
- }
- } else {
- $htmlarr['path'] = S_ROOT.'./'.$htmlfilename.'.html';
- $htmlarr['url'] = S_URL.'/'.$htmlfilename.'.html';
- }
- return $htmlarr;
- }
复制代码 改成:- function gethtmlfile($parray) {
- $htmlarr = array();
- $dirarr = array();
- $id = 0;
- if(empty($parray['page'])) {
- unset($parray['page']);
- } elseif($parray['page'] < 2) {
- unset($parray['page']);
- }
- if(!empty($parray['uid'])) {
- $id = $parray['uid'];
- if(!empty($parray['action'])) {
- if($parray['action'] == 'space' || $parray['action'] == 'spacelist') {
- unset($parray['action']);
- } elseif ($parray['action'] == 'viewspace') {
- unset($parray['action']);
- }
- }
- } elseif(!empty($parray['itemid'])) {
- $id = $parray['itemid'];
- } elseif(!empty($parray['tid'])) {
- $id = $parray['tid'];
- } elseif(!empty($parray['tagid'])) {
- $id = $parray['tagid'];
- } elseif(!empty($parray['catid'])) {
- $id = $parray['catid'];
- } elseif(!empty($parray['fid'])) {
- $id = $parray['fid'];
- }
- $htmlfilename = str_replace(array('action-', 'uid-', 'itemid-','category-catid-'), array('', '', '','list'), arraytostring($parray, '-'));
- if(!empty($id)) {
- if(!empty($parray['action'])) {
- if($parray['action'] == 'viewnews') {
- $htmlfilename = "Sealing{$id}";
- if(!empty($parray['page'])) $htmlfilename .= '-'.$parray['page'];
- } elseif($parray['action'] == 'viewthread') {
- $htmlfilename = "t-{$id}";
- }
- }
- }
- if(is_dir(H_DIR) || (!is_dir(H_DIR) && @mkdir(H_DIR))) {
- if(empty($id)) {
- $htmlarr['path'] = H_DIR.'/'.$htmlfilename.'.html';
- $htmlarr['url'] = H_URL.'/'.$htmlfilename.'.html';
- } else {
- $htmldir = H_DIR;
- if(is_dir($htmldir) || (!is_dir($htmldir) && @mkdir($htmldir))) {
- $htmlarr['path'] = H_DIR.'/'.$htmlfilename.'.html';
- $htmlarr['url'] = H_URL.'/'.$htmlfilename.'.html';
- } else {
- $htmlarr['path'] = H_DIR.'/'.$htmlfilename.'.html';
- $htmlarr['url'] = H_URL.'/'.$htmlfilename.'.html';
- }
- }
- } else {
- $htmlarr['path'] = S_ROOT.'./'.$htmlfilename.'.html';
- $htmlarr['url'] = S_URL.'/'.$htmlfilename.'.html';
- }
- return $htmlarr;
- }
复制代码 如果想改掉 Sealing05.html 这个名字 请自己查找:Sealing 注意 后面的 {$id} 一定要保留 这是区别文章的ID号!! |