找回密碼
 註冊
搜索
查看: 3822|回復: 1

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

    [複製鏈接]
發表於 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語法
如想把參數轉至其他頁面
可自行修改之
 
 樓主| 發表於 2012-10-27 17:18:39 | 顯示全部樓層
{:5_4:}牛X海海!!!
版主招募中
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|小黑屋|TShopping

GMT+8, 2025-4-30 15:28 , Processed in 0.022545 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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