'.$this->getLang('menu').'');
ptln('
');
ptln('
');
$this->_info_row('Plugin info','Value',' ',true);
$info = $this->getInfo();
$this->_info_row('Plugin version',$info['date']);
$this->_info_row('Author',$info['author']);
$this->_info_row('Server parameters','Value','Status',true);
$this->_info_row('Plugin folder',__DIR__);
$ok = version_compare(PHP_VERSION,'5.4.45',">=");
$this->_info_row('Current PHP version',phpversion(),$ok);
$this->_info_row('Running webserver',htmlentities($_SERVER['SERVER_SOFTWARE']));
$this->_info_row('PHP memory limit',ini_get('memory_limit'));
$ok = extension_loaded('exif');
$this->_info_row('EXIF extension',($ok ? '' : 'not').' loaded',$ok);
$ok = extension_loaded('curl');
$this->_info_row('CURL extension',($ok ? '' : 'not').' loaded',$ok);
$ok = extension_loaded('exif');
$this->_info_row('IMAGICK extension',($ok ? '' : 'not').' loaded',$ok);
$ok = extension_loaded('zip');
$this->_info_row('ZIP extension',($ok ? '' : 'not').' loaded',$ok);
$ok = extension_loaded('gd');
$this->_info_row('GD extension',($ok ? '' : 'not').' loaded',$ok);
if($ok){
$info = gd_info();
foreach($info as $key => $value) {
$this->_info_row('|-- '.$key,$value);
}
}
$this->_info_row('phpThumb requirements','Value','Status',true);
$arr = array ('exec','system','shell_exec','passthru');
$info = explode(',',@ini_get('disable_functions'));
for ($i = 0; $i_info_row('Important disabled functions',$info,$ok);
$info = fileperms(PHOTOGALLERY_PGFETCH_FILE) & 0xFFF;
$ok = (($info & PHOTOGALLERY_PGFETCH_EXE_PERM) == PHOTOGALLERY_PGFETCH_EXE_PERM);
$this->_info_row('pgImg.php execute permissions',sprintf('%o',$info),$ok);
ptln('
');
ptln('
');
}
function _info_row($item, $value, $state = null, $header = false){
if ($header)
ptln('');
ptln('');
$this->_info_cell($item,$header);
$this->_info_cell($value,$header);
if(is_bool($state))
$this->_info_cell($state ? "ok" : "error",$header);
else
$this->_info_cell($state,$header);
ptln('
');
if ($header)
ptln('');
}
function _info_cell($text, $header = false){
if ($header)
ptln('');
else
ptln(' | ');
if ($text != '')
ptln($text);
else
ptln(' ');
if ($header)
ptln('');
else
ptln(' | ');
}
}