pixmicat

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/PMC2Prototype/ @ 386  →  /PMC2Prototype/ @ 387
/PMC2Prototype/pixmicat.php
@@ -19,7 +19,10 @@
*/
 
require('./lib/lib_core.php'); // Class PMCCore
set_error_handler('PMCCore_errorHandler', E_ERROR | E_WARNING | E_USER_ERROR); // Handle Errors
if(version_compare(PHP_VERSION,"5.0.0")>=0)
set_error_handler('PMCCore_errorHandler', E_ERROR | E_WARNING | E_USER_ERROR); // Handle Errors
else // PHP < 5.0.0
set_error_handler('PMCCore_errorHandler'); // Handle Errors
 
// Start the buffer if supported
if($Encoding = PMCCore_checkGZipSupport()){ ob_start(); ob_implicit_flush(0); }
/PMC2Prototype/lib/lib_fileio.php
@@ -35,7 +35,8 @@
function getImageTotalSize(){
$sfile = PMCCore_getConfig('ENV.FOLDER.TEMP').'sizecache.dat';
touch($sfile);
return file_get_contents($sfile);
$size = file_get_contents($sfile);
return $size ? $size : 0;
}
 
// 更新圖片大小快取
/PMC2Prototype/lib/lib_pio.php
@@ -13,6 +13,7 @@
$PIOconnStr = PMCCore_getConfig('LIB.PIO.CONNECTION_STRING');
$PIObackend = preg_match('/^(.*):\/\//i', $PIOconnStr, $backend) ? $backend[1] : false;
$PIOEnv = array( // PIO 環境常數
'TYPE' => $PIObackend,
'BOARD' => PMCCore_getConfig('ENV.FOLDER.BOARD'),
'LUTCACHE' => PMCCore_getConfig('ENV.FOLDER.TEMP').'lutcache.dat',
'NONAME' => PMCCore_getConfig('DEFAULT.NONAME'),
/PMC2Prototype/resource/pixmicat_ajax.tmpl
@@ -81,7 +81,7 @@
<table border="1" style="margin: 0px auto; text-align: left;">
<tr><td align="center" colspan="3">基本設定</td></tr>
<tr><td style="width: 240px;">程式版本</td><td colspan="2"> $info_basic_ver$ </td></tr>
<tr><td>PIO 函式庫後端及版本</td><td colspan="2"> mysql : $info_basic_pio$</td></tr>
<tr><td>PIO 函式庫後端及版本</td><td colspan="2"> $info_basic_piotype$ : $info_basic_pio$</td></tr>
<tr><td>一頁顯示幾篇討論串</td><td colspan="2"> $info_basic_threadsperpage$ 篇</td></tr>
<tr><td>一篇討論串最多顯示之回應筆數</td><td colspan="2"> $info_basic_postsperpage$ 筆</td></tr>
<tr><td>回應模式一頁顯示幾筆回應內容</td><td colspan="2"> $info_basic_postsinthread$ 筆 (全部顯示:0)</td></tr>
/PMC2Prototype/action/action_ajax.php
@@ -150,12 +150,12 @@
$gd_func = 'Fail'; $gd_ver = '(No info)';
if(extension_loaded('gd')){ $gd_func = 'OK'; if($gd_ver = @gd_info()){ $gd_ver = $gd_ver['GD Version']; } }
$arrStatus = array(
'info_basic_ver'=>PIXMICAT_VER, 'info_basic_pio'=>$PIO->pioVersion(),
'info_basic_ver'=>PIXMICAT_VER, 'info_basic_piotype'=>$PIO->ENV['TYPE'],'info_basic_pio'=>$PIO->pioVersion(),
'info_basic_threadsperpage'=>PMCCore_getConfig('PAGE_DEF'), 'info_basic_postsperpage'=>PMCCore_getConfig('RE_DEF'),
'info_basic_postsinthread'=>PMCCore_getConfig('RE_PAGE_DEF'), 'info_basic_bumpposts'=>PMCCore_getConfig('MAX_RES'), 'info_basic_bumphours'=>PMCCore_getConfig('MAX_AGE_TIME'),
'info_basic_urllinking'=>PMCCore_getConfig('AUTO_LINK'), 'info_basic_com_limit'=>PMCCore_getConfig('COMM_MAX'), 'info_basic_anonpost'=>PMCCore_getConfig('ALLOW_NONAME'), 'info_basic_del_incomplete'=>PMCCore_getConfig('KILL_INCOMPLETE_UPLOAD'),
'info_basic_sample_quality'=>PMCCore_getConfig('THUMB.QUALITY'), 'info_basic_sample_func'=>(function_exists('ImageCreateTrueColor')?'OK':'Fail'), 'info_basic_useblock'=>PMCCore_getConfig('BAN.ENABLE'), 'info_basic_showid'=>PMCCore_getConfig('DISP_ID'), 'info_basic_cr_limit'=>PMCCore_getConfig('BR_CHECK'),
'info_basic_timezone'=>PMCCore_getConfig('TIME_ZONE'), 'info_basic_threadcount'=>$PIO->threadCount(),
'info_basic_timezone'=>PMCCore_getConfig('TIME_ZONE'), 'info_basic_threadcount'=>strval($PIO->threadCount()),
'info_dsusage_max'=>PMCCore_getConfig('LOG_MAX'), 'info_dsusage_count'=>$pCount, 'info_dsusage_percent'=>substr($pCount / PMCCore_getConfig('LOG_MAX') * 100, 0, 6),
'info_fileusage'=>PMCCore_getConfig('STORAGE.LIMIT'), 'info_fileusage_limit'=>PMCCore_getConfig('STORAGE.MAX'), 'info_fileusage_count'=>$imgSize, 'info_fileusage_percent'=>substr($imgSize / PMCCore_getConfig('STORAGE.MAX') * 100, 0, 6),
'info_gd_verinfo'=>$gd_ver,'info_gd_func'=>$gd_func