".I_CONF_ERROR."\n"; // if export directory is not writeable if (!is_writeable("./".PMBP_EXPORT_DIR)) echo "
".I_DIR_ERROR."
\n"; // if first use or no db-connection possible if (!@mysql_connect($CONF['sql_host'],$CONF['sql_user'],$CONF['sql_passwd'])) echo "
".C_WRONG_SQL."
\n"; if ($CONF['sql_db']) if (!@mysql_select_db($CONF['sql_db'])) echo "
".C_WRONG_DB."
\n"; echo "
".I_NAME." ".PMBP_VERSION."
"; printf(I_WELCOME,"".PMBP_WEBSITE.""); // get all system informations if (!($server=$_SERVER["SERVER_SOFTWARE"])) $server=PMBP_I_NO_RES; if (function_exists("phpversion")) { $tmp=phpversion(); $phpvers=$tmp[0].$tmp[1].$tmp[2]; if ($phpvers>=4.3) $php=$tmp; else $php="".$tmp.""; } else { $php=PMBP_I_NO_RES; } if (!($memory_limit=@ini_get("memory_limit"))) $memory_limit=PMBP_I_NO_RES; if (@ini_get("safe_mode")=="1") $safe_mode=F_YES; else $safe_mode="".F_NO.""; if (function_exists("ftp_connect")) $ftp=F_YES; else $ftp="".F_NO.""; if (function_exists("mail")) $mail=F_YES; else $mail="".F_NO.""; if (function_exists("gzopen")) $gzip=F_YES; else $gzip=F_NO; if (!function_exists("mysql_get_server_info")) $mysql_s=PMBP_I_NO_RES; else $mysql_s=@mysql_get_server_info(); if (!function_exists("mysql_get_client_info")) $mysql_c=PMBP_I_NO_RES; else $mysql_c=@mysql_get_client_info(); // calculate size of all backups and last backup date $all_files=PMBP_get_backup_files(); if (is_array($all_files)) { $last_backup=0; $size_sum=0; foreach($all_files as $filename) { $file="./".PMBP_EXPORT_DIR.$filename; $size_sum+=PMBP_file_info("size",$file); if (($time=PMBP_file_info("time",$file))>$last_backup) $last_backup=$time; } $size_sum=PMBP_size_type($size_sum); $size=$size_sum['value']." ".$size_sum['type']; $time=strftime($CONF['date'],$last_backup); } else { $size="0 kb"; $time="?"; } $scheduled_time=$PMBP_SYS_VAR['last_scheduled']; foreach($PMBP_SYS_VAR as $key=>$value) { if (substr($key,0,15)=="last_scheduled_" && $value>$scheduled_time) $scheduled_time=$value; } if ($scheduled_time) $scheduled_time=strftime($CONF['date'],$scheduled_time); else $scheduled_time="-"; // print system informations echo "

".PMBP_I_INFO."
\n"; echo "\n\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo ""; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "
".PMBP_I_SERVER."
".$server." ".PMBP_I_TIME.": ".strftime($CONF['date'],time())."
PHP
".PMBP_I_PHP_VERS.": ".$php." ".PMBP_I_SAFE_MODE.": ".$safe_mode." ".PMBP_I_MEM_LIMIT.": ".$memory_limit."
".PMBP_I_GZIP.": ".$gzip." ".PMBP_I_MAIL.": ".$mail." ".PMBP_I_FTP.": ".$ftp."
MySQL
".PMBP_I_SQL_SERVER.": ".$mysql_s." ".PMBP_I_SQL_CLIENT.": ".$mysql_c."
".F_BACKUP."
".B_SIZE_SUM.": ".$size." ".B_LAST_BACKUP.": ".$time." ".PMBP_I_LAST_SCHEDULED.": ".$scheduled_time."
".LI_LOGIN."
".PMBP_I_LAST_LOGIN.": ".$PMBP_SYS_VAR['last_login']."
"; PMBP_print_footer(); ?>