dotProject System Checks

"; echo ""; $host = $dPconfig['dbhost']; $port = 3306; $user = $dPconfig['dbuser']; $passwd = $dPconfig['dbpass']; $dbname = $dPconfig['dbname']; if (mysql_pconnect( "$host:$port", $user, $passwd )) { echo ""; if ($dbname) { if (mysql_select_db( $dbname )) { echo ""; } else { echo ""; } } else { echo ""; } } else { echo ""; } } else { echo ""; } echo ""; $msg = phpversion() < '4.1' ? "" : ""; echo "$msg"; $sapi = php_sapi_name(); echo ""; if ($sapi == "cgi") { echo ""; } else { echo ""; } echo ""; echo ""; echo ""; $msg = get_cfg_var( 'session.auto_start' ) > 0 ? "" : ""; echo "$msg"; echo ""; $msg = is_dir( get_cfg_var( 'session.save_path' ) ) ? "" : ""; echo "$msg"; echo ""; $cookies = intval( get_cfg_var( 'session.use_cookies' ) ); $msg = $cookies ? "" : ""; echo "$msg"; $sid = intval( get_cfg_var( 'session.use_trans_sid' ) ); $msg = $sid ? "" : ""; echo "$msg"; $fup = get_cfg_var( 'file_uploads' ); $msg = $fup ? "" : ""; echo "$msg"; $iw = is_writable( "{$dPconfig['root_dir']}/locales/en" ); $msg = $iw ? '' : ''; echo "$msg"; $iw = is_writable( "{$dPconfig['root_dir']}/files" ); $msg = $iw ? '' : ''; echo "$msg"; $iw = is_writable( "{$dPconfig['root_dir']}/files/temp" ); $msg = $iw ? '' : ''; echo "$msg"; // Now check to see if the supplied root_dir is the same as the called URL. $url = preg_replace('/\/docs\/.*$/', '', $_SERVER['PATH_TRANSLATED']); echo ""; if ($url != $dPconfig['root_dir']) { echo ""; } else { echo ""; } echo "
MySQLAvailableOK
MySQL Server Version" . mysql_get_server_info() . "
MySQL Database ConnectionConnectedOK
MySQL Database SelectSelectedOK
MySQL Database SelectFailedFatal: could not connect to $dbname
MySQL Database SelectFailedFatal: no database name supplied
MySQL Database ConnectionFailedFatal: Check host, username and password
MySQLNot AvailableFatal: Check MySQL support is compiled with PHP
Operating System".php_uname()."
To old, upgradeOK
PHP Version".phpversion()."
Server API$sapiCGI mode is likely to have problems
Web Server$_SERVER[SERVER_SOFTWARE]
User Agent".$_SERVER['HTTP_USER_AGENT']."
default locale"; $lc_list = explode(";", setlocale( LC_ALL, 0 )); foreach ($lc_list as $lc) { echo "$lc
"; } echo "
Try setting to 0 if you are having problems with WSODOK
session.auto_start".get_cfg_var( 'session.auto_start' )."
session.save_handler".get_cfg_var( 'session.save_handler' )."
OKFatal: Save path does not exist
session.save_path".get_cfg_var( 'session.save_path' )."
session.serialize_handler".get_cfg_var( 'session.serialize_handler' )."
OKTry setting to 0 if you are having problems logging in
session.use_cookies$cookies
There are security risks with this turned onOK
session.use_trans_sid$sid
OKYou won't be able to upload files
file_uploads$fup
OKWarning: you will not be able to save translation files. Check the directory permissions.
/locales/en directory writable$iw
OKWarning: you will not be able to upload files. Check the directory permissions.
/files directory writable$iw
OKWarning: you will not be able to make PDF\'s. Check the directory permissions.
/files/temp directory writable$iw
root_dir$dPconfig[root_dir]root_dir seems to be incorrect, probably should be $url
OK
"; ?>