]> 4ch.mooo.com Git - test.git/blobdiff - config.php
modified: config.php
[test.git] / config.php
index b9cf11e41e7b59bba8755c5890563f01c3423d18..4f461b15a9252083a27b9c695ff0e2fa121fd3b3 100755 (executable)
@@ -18,6 +18,9 @@ http://pixmicat.openfoundry.org/
 請瀏覽http://pixmicat.openfoundry.org/license/以取得一份。
 */
 
+$config = array();
+//++++include_once('lib/lib_language.php'); // language system for youbi
+
 /*
 yotsubanome development status
 α = core under development [Database management] [core html output]
@@ -42,9 +45,19 @@ TODO:
        5. Warning: touch(): Unable to create file ../img.csv_loog0 because Permission denied /var/www/+4/test/lib/pio/pio.logflockp.php #554
        6. Orginize the system files better
        7. a flexible HTML output (TXT BBS)
+       8. TXT BBS FUNCTIONALITY AND APPEARANCE
+       9. TEMPLATE UPDATEING
+
+       10. flexible time system
 
 ChangeLog:
 ----------------------
+2011/3/21
+-[config.php & yotsubanome.php] time system is more flexible
+
+2011/3/6
+-[system wide] hide_btn is a bitch (the back ground is variablish now)
+
 2011/3/4
 -[config.php] multiBBS conversion has started with $config['KB']
 
@@ -88,11 +101,13 @@ if(is_file('../../conk/.pass.php')) include('../../conk/.pass.php'); // The pass
 // 伺服器常態設定
 if(!defined("PHP_SELF")) define("PHP_SELF", 'yotsubanome.php'); // このスクリプト名 // 主程式名 (若是修改了主程式名,請配合修改)
 //----define("TIME_ZONE", '-6'); // 時區設定 (GMT時區,參照 http://wwp.greenwichmeantime.com/ )
-define("DATE_FORMAT", "Y/m/d"); // date format
-define("EN_SEC", 1); // 時間表示に「秒」を含める  含める:1 含めない:0
+$config['DATE_FORMAT'] = "Y/m/d"; // date format
+//++++$config['YOUBI'] = array(_T('sun'),_T('mon'),_T('tue'),_T('wed'),_T('thu'),_T('fri'),_T('sat')); // week format
+$config['TIME_FORMAT'] = 'H:i:s'; // time format
+//----define("EN_SEC", 1); // 時間表示に「秒」を含める  含める:1 含めない:0
 if(!defined("PIXMICAT_LANGUAGE")) define("PIXMICAT_LANGUAGE", 'en_US'); // 語系語定 // ja_JP en_US zh_TW
 define("HTTP_UPLOAD_DIFF", 50); // HTTP上傳所有位元組與實際位元組之允許誤差值
-ini_set("memory_limit", '24M'); // PHP運行的最大記憶體使用量 (php內定8M / 建議32M)
+ini_set("memory_limit", '8M'); // PHP運行的最大記憶體使用量 (php內定8M / 建議32M)
 
 // FileIO設定
 define("FILEIO_BACKEND", 'normal'); // FileIO後端指定
@@ -139,21 +154,21 @@ define("TRIP_KEY", '◆');
 define("TRIP_KEY_FAKE", '◇');
 
 // 管理員キャップ(Cap)設定 (啟用條件:開啟使用;名稱輸入識別名稱,E-mail輸入#啟動密碼)
-define("CAP_ENABLE", 1); // 是否使用管理員キャップ (使用:1 不使用:0)
-define("CAP_NAME", 'futaba'); // 管理員キャップ識別名稱
-define("CAP_PASS", 'futaba'); // 管理員キャップ啟動密碼 (在E-mail一欄輸入#啟動密碼)
-define("CAP_SUFFIX", ' ■'); // 管理員キャップ後綴字元 (請務必有★以便程式防止偽造,或可自行修改程式的防偽造部份)
-define("CAP_SUFFIX_FAKE", ' []');
-define("CAP_ISHTML", 1); // 管理員キャップ啟動後內文是否接受HTML標籤 (是:1 否:0)
-
-// ^^????^^
+$config['CAP.ENABLE'] = true; // 是否使用管理員キャップ (使用:true 不使用:false)
+if(!$config['CAP.NAME'] && !$config['CAP.PASSWORD']){
+       $config['CAP.NAME'] = 'futaba'; // 管理員キャップ識別名稱
+       $config['CAP.PASSWORD'] = 'futaba'; // 管理員キャップ啟動密碼 (在E-mail一欄輸入#啟動密碼)
+}
+$config['CAP.SUFFIX'] = ' ◆'; // 管理員キャップ後綴字元 (請務必有★以便程式防止偽造,或可自行修改程式的防偽造部份)
+$config['CAP.SUFFIX.FAKE'] = ' ◇'; // false capcode suffix
+$config['CAP.ISHTML'] = true; // 管理員キャップ啟動後內文是否接受HTML標籤 (是:true 否:false)
 
 // 功能切換
 define("USE_THUMB", 1); // サムネイルを作る  する:1 しない:0 // 使用預覽圖機能 (使用:1 不使用:0)
 define("STYLEBAR", 1); // location of style bar [CSS decoration style for the pages] (top & bottom:1 bottom:0)
-define("USE_FLOATFORM", 1); // 新增文章表單使用自動隱藏 (是:1 否:0)
-define("USE_SEARCH", 1); // 開放搜尋功能 (是:1 否:0)
-define("OPTION", 1); // allow options to show up (yes:1 no:0)
+define("USE_FLOATFORM", 0); // 新增文章表單使用自動隱藏 (是:1 否:0)
+define("USE_SEARCH", 0); // 開放搜尋功能 (是:1 否:0)
+define("OPTION", 0); // allow options to show up (yes:1 no:0)
 define("USE_UPSERIES", 1); // 是否啟用連貼機能 [開主題後自動指向到主題下以方便連貼] (是:1 否:0)
 define("RESIMG", 1); // レスにも画像を添付できるようにする 添付可能:1 添付不可:0 // 回應附加圖檔機能 (開啟:1 關閉:0)
 //++++define("RES_MARK", '…'); // レスの頭に付ける文字列
@@ -169,7 +184,7 @@ define("CLEAR_SAGE", 0); // 使用不推文模式時清除E-mail中的「sage」
 define("USE_QUOTESYSTEM", 1); // 是否打開引用瀏覽系統 [自動轉換>>No.xxxx文字成連結並導引] (是:1 否:0)
 //++++----
 //define("KB", 1); // Kilobytes or Bytes on the image file size display (Kilobytes:1 Bytes:0)
-$config['KB'] = 1; // Kilobytes or Bytes on the image file size display (Kilobytes:1 Bytes:0)
+$config['KB'] = false; // Kilobytes or Bytes on the image file size display (Kilobytes:true Bytes:false)
 //++++----
 define("SHOW_IMGWH", 1); // 是否顯示附加圖檔之原檔長寬尺寸 (是:1 否:0)
 define("SHOW_FILENAME", 1); // 是否顯示附加圖檔之原檔文件名 (是:1 否:0)
@@ -192,7 +207,7 @@ $ModuleList[] = 'mod_catalog';//<-sparky4 needs here .... HELP
 //$ModuleList[] = 'mod_code';//<- missing JS and CSS files
 $ModuleList[] = 'mod_code_prettify';//<-sparky4 is here missing CSS file
 
-$ModuleList[] = 'mod_dummy'; //<- null module?
+//$ModuleList[] = 'mod_dummy'; //<- null module?
 //$ModuleList[] = 'mod_edit';//<-important
 //$ModuleList[] = 'mod_eggpoll';
 //$ModuleList[] = 'mod_exif';
@@ -221,7 +236,7 @@ $ModuleList[] = 'mod_dummy'; //<- null module?
 //$ModuleList[] = 'mod_vipquality';
 
 // 封鎖設定
-define("BAN_CHECK", 0); // 綜合性封鎖檢查功能 (關閉:0, 開啟:1)
+define("BAN_CHECK", 1); // 綜合性封鎖檢查功能 (關閉:0, 開啟:1)
 $BANPATTERN = array(); // 拒絶するホスト // IP/Hostname封鎖黑名單
 $DNSBLservers = array(0, 'sbl-xbl.spamhaus.org', 'list.dsbl.org', 'bl.blbl.org', 'bl.spamcop.net'); // DNSBL伺服器列表 (首項:使用伺服器個數)
 $DNSBLWHlist = array(); // DNSBL白名單 (請輸入IP位置)
@@ -232,7 +247,7 @@ $BAD_FILEMD5 = array("dummy","dummy2"); // 拒絶するファイルのmd5 // 限
 define("MAX_KB", 9000); // 投稿容量制限 KB(phpの設定により2Mまで // 投稿容量制限 KB(phpの設定により2Mまで // 附加圖檔上傳容量限制KB (php內定為最高2MB)
 define("STORAGE_LIMIT", 0); // 附加圖檔總容量限制功能 (啟動:1 關閉:0)
 define("STORAGE_MAX", 30000); // 附加圖檔總容量限制上限大小 (單位:KB)
-define("ALLOW_UPLOAD_EXT", 'GIF|JPG|PNG|BMP|SWF|TXT'); // 接受之附加圖檔副檔名 (送出前表單檢查用,用 | 分隔)
+define("ALLOW_UPLOAD_EXT", 'GIF|JPG|PNG|BMP|SWF|TXT|SVG'); // 接受之附加圖檔副檔名 (送出前表單檢查用,用 | 分隔)
 
 // 連續投稿時間限制
 define("RENZOKU", 4); // 連続投稿秒数 // 連續投稿間隔秒數
@@ -261,7 +276,7 @@ define("RE_PAGE_DEF", 40); // 回應模式一頁顯示幾筆回應內容 (分頁
 define("MAX_RES", 1000); // 強制sageレス数 // 回應筆數超過多少則不自動推文 (關閉:0)
 define("MAX_AGE_TIME", 0); // 強制sageまでの時間   0で強制sageなし // 討論串可接受推文的時間範圍 (單位:小時,討論串存在超過此時間則回應皆不再自動推文 關閉:0)
 define("COMM_MAX", 18000); // 內文接受Bytes數 (注意:中文字為2Bytes)
-define("MAX_LINES", 16); // The number of lines in the comment feild that are displayed in the index (unlimited:0)
+$config['LINE_NUMBER'] = 24; // 1レスに表示する行数 (しない:0) // The number of lines in the comment feild that are displayed in the index (unlimited:0)
 define("NO_TEXTONLY", 0); // no text only? behavior with the no image switch (Ost [Eastern]:2 Futaba:1 Yotsubanome [OLD]:0)
 define("BR_CHECK", 0); // 改行を抑制する行数 しない:0 // 文字換行行數上限 (不限:0)
 define("STATIC_HTML_UNTIL", -1); // 更新文章時自動生成的靜態網頁至第幾頁止 (全部生成:-1 僅入口頁:0)