woff 發表於 2010-5-5 18:41:02

Netyea套件PHP參數說明

官方網站:http://www.netyea.com

在資料夾裡面有檔案
config.php
在這裡面是網頁及資料庫設定檔$mydbhost = "";資料庫主機
$mydbuser = ""; 資料庫使用者名稱
$mydbpw = ""; 資料庫密碼
$mydbname = ""; 資料庫名
$mydbcharset = "UTF8"; 資料庫編碼
$db = @mysql_connect($mydbhost,$mydbuser,$mydbpw);
if (!$db) {
exit('Unable connect MYSQL at this time');
}
if (!@mysql_select_db($mydbname)) {
exit ('Unable connect DB at this time');
}
mysql_query("SET NAMES $mydbcharset", $db);
//以下是smarty參數設定
$smarty_template_dir ='./templates/';
$smarty_compile_dir ='./templates_c/';
$smarty_config_dir ='./configs/';
$smarty_cache_dir ='./cache/';
$smarty_caching =false;
$smarty_delimiter =explode("|","{|}");在以下檔案中可找到參數如
index.php
global.php
news.php
newslist.php
state.php
file.php

$sm_class[]      //倒出分類參數
$sm_state[]       //倒出文章參數
$sm_link[]          //倒出友情連結參數
$sm_company[]//倒出首頁訊息參數
$sm_news[]       //倒出最新消息參數
$sm_file[]          //倒出檔案下載參數


以上是PHP與smarty語法
如想把參數轉至其他頁面
可自行修改之

woff 發表於 2012-10-27 17:18:39

{:5_4:}牛X海海!!!
頁: [1]
查看完整版本: Netyea套件PHP參數說明