TShopping

 找回密碼
 註冊
搜索
查看: 3524|回復: 1
打印 上一主題 下一主題

[使用說明] Netyea套件PHP參數說明

    [複製鏈接]
跳轉到指定樓層
1#
發表於 2010-5-5 18:41:02 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
 
Push to Facebook
官方網站:http://www.netyea.com

在資料夾裡面有檔案
config.php
在這裡面是網頁及資料庫設定檔
  1. $mydbhost = "";資料庫主機
  2. $mydbuser = ""; 資料庫使用者名稱
  3. $mydbpw = ""; 資料庫密碼
  4. $mydbname = ""; 資料庫名
  5. $mydbcharset = "UTF8"; 資料庫編碼
  6. $db = @mysql_connect($mydbhost,$mydbuser,$mydbpw);
  7. if (!$db) {
  8. exit('Unable connect MYSQL at this time');
  9. }
  10. if (!@mysql_select_db($mydbname)) {
  11. exit ('Unable connect DB at this time');
  12. }
  13. mysql_query("SET NAMES $mydbcharset", $db);
  14. //以下是smarty參數設定
  15. $smarty_template_dir ='./templates/';
  16. $smarty_compile_dir ='./templates_c/';
  17. $smarty_config_dir ='./configs/';
  18. $smarty_cache_dir ='./cache/';
  19. $smarty_caching =false;
  20. $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語法
如想把參數轉至其他頁面
可自行修改之

 

臉書網友討論
2#
 樓主| 發表於 2012-10-27 17:18:39 | 只看該作者
牛X海海!!!

版主招募中

*滑块验证:
您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2024-5-5 07:25 , Processed in 0.071897 second(s), 21 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表