4. core board execution option.
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)
ChangeLog:
----------------------
-2011/22/20
+2011/3/4
+-[config.php] multiBBS conversion has started with $config['KB']
+
+2011/2/24
-[lib_css.php] created ()
-[lib_env.php] created
-2011/22/20
+2011/2/20
-[yotsubanome.php] error system and found bugs rewt5
-[lib_common.php] error system and found bugs rewt5
// loog = yotsubanome log file
define("LUT_CACHE", 'lutcache.daty');
define("SIZE_CACHE", 'sizecache.daty');
-//define("CSVSS", '_css.csv_daty');
+//----define("CSVSS", '_css.csv_daty');
define("CSV_SS", 'stylesheets.daty');
/*---- Part 2:板面各項細部功能設定 ----*/
define("CLEAR_SAGE", 0); // 使用不推文模式時清除E-mail中的「sage」關鍵字 (是:1 否:0)
define("USE_QUOTESYSTEM", 1); // 是否打開引用瀏覽系統 [自動轉換>>No.xxxx文字成連結並導引] (是:1 否:0)
//++++----
-define("KB", 1); // Kilobytes or Bytes on the image file size display (Kilobytes:1 Bytes: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)
//++++----
define("SHOW_IMGWH", 1); // 是否顯示附加圖檔之原檔長寬尺寸 (是:1 否:0)
define("SHOW_FILENAME", 1); // 是否顯示附加圖檔之原檔文件名 (是:1 否:0)
$size = @getimagesize($dest);
if(!is_array($size)) error(_T('regist_upload_notimage'), $dest); // $size不為陣列就不是圖檔
$imgsize = @filesize($dest); // 檔案大小
- if(!KB) $imgsize .= ' B'; // Bytes only
+ if(!$config['KB']) $imgsize .= ' B'; // Bytes only
else $imgsize = ($imgsize>=1024) ? (int)($imgsize/1024).' KB' : $imgsize.' B'; // KB和B的判別
switch($size[2]){ // 判斷上傳附加圖檔之格式
case 1 : $ext = ".gif"; break;
$all = $sp[0];
unset($sp);
}
- return (int)($all / 1024);
+ //---- return (int)($all / 1024);
+ if(!$config['KB']) return (int)($all);
+ else return (int)($all / 1024);
}
/* 搜尋(全文檢索)功能 */
$counttree = $PIO->threadCount(); // 計算樹狀結構記錄檔目前資料筆數
$tmp_total_size = total_size(); // 附加圖檔使用量總大小
$tmp_ts_ratio = STORAGE_MAX > 0 ? $tmp_total_size / STORAGE_MAX : 0; // 附加圖檔使用量
+ if(!$config['KB']) $kbb = ' B';
+ else $kbb = ' KB';
// 決定「附加圖檔使用量」提示文字顏色
if($tmp_ts_ratio < 0.3 ) $clrflag_sl = '235CFF';
if(STORAGE_LIMIT){
$dat .= '
-<tr align="center"><td>'._T('info_fileusage_limit').'</td><td colspan="2">'.STORAGE_MAX.' KB</td><td rowspan="2">'._T('info_dsusage_usage').'<br /><span style="color: #'.$clrflag_sl.'">'.substr(($tmp_ts_ratio * 100), 0, 6).'</span> %</td></tr>
-<tr align="center"><td>'._T('info_fileusage_count').'</td><td colspan="2"><span style="color: #'.$clrflag_sl.'">'.$tmp_total_size.' KB</span></td></tr>';
+<tr align="center"><td>'._T('info_fileusage_limit').'</td><td colspan="2">'.STORAGE_MAX.$kbb.'</td><td rowspan="2">'._T('info_dsusage_usage').'<br /><span style="color: #'.$clrflag_sl.'">'.substr(($tmp_ts_ratio * 100), 0, 6).'</span> %</td></tr>
+<tr align="center"><td>'._T('info_fileusage_count').'</td><td colspan="2"><span style="color: #'.$clrflag_sl.'">'.$tmp_total_size.$kbb.'</span></td></tr>';
}else{
$dat .= '
-<tr align="center"><td>'._T('info_fileusage_count').'</td><td>'.$tmp_total_size.' KB</td><td colspan="2">'._T('info_dsusage_usage').'<br /><span style="color: green;">'._T('info_fileusage_unlimited').'</span></td></tr>';
+<tr align="center"><td>'._T('info_fileusage_count').'</td><td>'.$tmp_total_size.$kbb.'</td><td colspan="2">'._T('info_dsusage_usage').'<br /><span style="color: green;">'._T('info_fileusage_unlimited').'</span></td></tr>';
}
$dat .= '