網站架設

出自六年制學程
在2016年6月3日 (五) 17:01由丁志仁對話 | 貢獻所做的修訂版本

跳轉到: 導覽搜尋

層級:一個host之下有多個site,諸site共同資源

Host之下

資料夾

  1. et:etable
    • include:跳出視窗秀出指定的欄值
      1. et.js:函式 openWithSelfMain(url,name,width,height,returnwindow),其 url 指向 showFieldValue.php 。可用 <script src='xxxxx' /> 載入。
      2. showFieldValue.php:將 $_REQUEST 指示的欄值秀出在跳出視窗中
    • database:
      1. edraw.php:繪圖類別
  2. fonts:放字形

檔案

  1. index.php:以 header("location:/xxxxx/"); 跳至預設的site
  2. print.php:產生 html
  3. constant.php:
    • 載入 etable 兩常數
    • 載入 etable 的 wiki 過濾函式 wiki.php
    • 函式 r2a :由$result傳回統計陣列
    • 函式 webContent :由路徑傳回相應的欄值
    • 函式 cuts :找出前後字串所夾的諸內容
    • 函式 replaces :代換掉前後字串所夾的諸內容
    • 函式 half :將utf8字串對折(或其他指定折數)後傳回為元素0,1,並傳回對折後的佔位寬度為元素2
    • 函式 halfstrFold :依指定字數折兩折或三折
  4. webContent.php:顯示跨 site 內容
    • 載入資料庫連接常數 constant.php
    • 載入 etable 的 DB.php
    • 連接資料庫
    • 表現當前的 theme
    • 依 URI 取出資料表內容秀出來
  5. webContent.js:和 webContent.php 配合,顯示跨 site 內容
    • 產生非同步請求物件
    • 函式 webContent(dataSource,divID)
  6. drawword.php:畫字,配合 fonts 資料夾中的字形