(No content to process yet.) $ip";
$todayis = date("l, F j, Y, g:i a");
$subject = "EMAIL SYSTEM -- This is a TEST MESSAGE";
$ipi = $_SERVER['REMOTE_ADDR'];
$httprefi = $_SERVER['HTTP_REFERER'];
$httpagenti = $_SERVER['HTTP_USER_AGENT'];
$message = " $todayis \n
Message: " . $em_notes . "\n
From: $em_visitor ($em_visitormail)\n
This email is a simple verification test to demonstrate that your server's \"PHP\" method for sending mail is working properly. If you have received this message, then it is likely that your Zen Cart shop can easily use the \"PHP\" method for Email Transport in your Admin->Configuration->Email Options area. \n\n
Additional Info : IP = $ipi \n
Browser Info: $httpagenti \n
Referral : $httprefi \n
";
$from = "From: $myemail\r\n";
if ($myemail != "" && isset($_POST['submit']) && $em_visitormail != '' ) {
mail($myemail, $subject, $message, $from);
?>
Date:
Thank You : ( )
Send Another
{if you wish to enable email-testing support, please edit this file ('.basename(__FILE__).') and enter your email address at the top on the 3rd line}
';
}
?>
Server Configuration Details
Server Info
- Webserver:
- Server Free Disk Space Reported = '.$disk_freespaceGB; ?> GB
- MySQL Version Reported = '. @mysql_get_server_info(); ?>
- PHP MySQL Support = '.(function_exists( 'mysql_connect' ) ? ON : OFF); ?>
- PHP PostGres SQL Support = '.(function_exists( 'pg_connect' ) ? ON : OFF); ?>
PHP Info
- PHP version:
".phpversion()." {You SHOULD upgrade this!}";
} else {
echo phpversion();
} ?>
- PHP API version= '.@php_sapi_name(); ?>
- PHP Safe Mode=
ON";
} else{
echo "OFF";
} ?>
- PHP Register Globals = '.(ini_get('register_globals') ? ON : OFF); ?>
- PHP set_time_limit (max execution time) = '.ini_get("max_execution_time"); ?>
- PHP Disabled Functions = '.ini_get("disable_functions"); ?>
- PHP open_basedir = '.ini_get("open_basedir"); ?>
- PHP Sessions Support = '.(@extension_loaded('session') ? ON : OFF); ?>
- PHP session.auto_start = '.(ini_get('session.auto_start') ? ON : OFF); ?>
- PHP session.use_trans_sid = '.(ini_get('session.use_trans_sid') ? ON : OFF); ?>
- PHP session.save_path = '.ini_get("session.save_path"); ?>
- PHP Magic_Quotes_Runtime = '.(@get_magic_quotes_runtime() > 0 ? ON : OFF); ?>
- PHP Output Buffering (gzip) = '.(@ini_get("output_buffering") > 0 ? ON : OFF); ?>
- PHP GD Support = '.(@extension_loaded('gd')? ON : OFF); ?>
- PHP ZLIB Support = '.(@extension_loaded('zlib')? ON : OFF); ?>
- PHP OpenSSL Support = '.(@extension_loaded('openssl') ? ON : OFF); ?>
- PHP CURL Support = '.(@extension_loaded('curl') ? ON : OFF); ?>
- PHP File Uploads = '.(@ini_get('file_uploads') ? ON : OFF); ?>
- PHP File Upload Max Size = '.@ini_get('upload_max_filesize'); ?>
- PHP Post Max Size = '.@ini_get('post_max_size'); ?>
- PHP File Upload TMP Dir = '.ini_get("upload_tmp_dir"); ?>
- PHP XML Support = '.(function_exists('xml_parser_create') ? ON : OFF); ?>
- PHP FTP Support = '.(@extension_loaded('ftp') ? ON : OFF); ?>
- PHP PFPRO Support = '.(@extension_loaded('pfpro') ? ON : OFF); ?>
- PHP Sendmail_FROM = '.ini_get("sendmail_from"); ?>
- PHP Sendmail_PATH = '.ini_get("sendmail_path"); ?>
- PHP SMTP Settings = '.ini_get("SMTP"); ?>
- PHP include_path = '.ini_get("include_path"); ?>
Webserver/Page Info
- HTTP_HOST= "'.$_SERVER['HTTP_HOST'].'"'; ?>
- HTTPS= "'.$_SERVER['HTTPS'].'"'; ?>
- HTTP_USER_AGENT= "'.$_SERVER['HTTP_USER_AGENT'].'"'; ?>
- HTTP_REFERRER= "'.$_SERVER['HTTP_REFERRER'].'"'; ?>
- HTTP_ACCEPT= "'.$_SERVER['HTTP_ACCEPT'].'"'; ?>
- HTTP_ACCEPT_LANGUAGE= "'.$_SERVER['HTTP_ACCEPT_LANGUAGE'].'"'; ?>
- HTTP_ACCEPT_CHARSET= "'.$_SERVER['HTTP_ACCEPT_CHARSET'].'"'; ?>
- HTTP_KEEP_ALIVE= "'.$_SERVER['HTTP_KEEP_ALIVE'].'"'; ?>
- HTTP_CONNECTION= "'.$_SERVER['HTTP_CONNECTION'].'"'; ?>
- PATH= "'.$_SERVER['PATH'].'"'; ?>
- SERVER_ADMIN= "'.$_SERVER['SERVER_ADMIN'].'"'; ?>
- SERVER_SOFTWARE= "'.$_SERVER['SERVER_SOFTWARE'].'"'; ?>
- SERVER_NAME= "'.$_SERVER['SERVER_NAME'].'"'; ?>
- DOCUMENT_ROOT= "'.$_SERVER['DOCUMENT_ROOT'].'"'; ?>
- SCRIPT_URI= "'.$_SERVER['SCRIPT_URI'].'"'; ?>
- REQUEST_URI= "'.$_SERVER['REQUEST_URI'].'"'; ?>
- SCRIPT_NAME= "'.$_SERVER['SCRIPT_NAME'].'"'; ?>
- PHP_SELF= "'.$_SERVER['PHP_SELF'].'"'; ?>
- real_path()= "'.realpath(dirname(basename($PHP_SELF))).'"'; ?>
- SCRIPT_FILENAME= "'.$_SERVER['SCRIPT_FILENAME'].'"'; ?>
- PATH_TRANSLATED= "'.$_SERVER['PATH_TRANSLATED'].'"'; ?>
- PHP __FILE__: "'.__FILE__.'"'; ?>
- PHP basename: "'.basename($PHP_SELF).'"'; ?>
- PHP dirname(self): "'.dirname($PHP_SELF).'"'; ?>
- SERVER_ADDR= "'.$_SERVER['SERVER_ADDR'].'"'; ?>
- SERVER_PORT= "'.$_SERVER['SERVER_PORT'].'"'; ?>
- REMOTE_HOST= "'.$_SERVER['REMOTE_HOST'].'"'; ?>
- REMOTE_ADDR= "'.$_SERVER['REMOTE_ADDR'].'"'; ?>
- REMOTE_PORT= "'.$_SERVER['REMOTE_PORT'].'"'; ?>
- HTTP_X_FORWARDED_FOR= "'.$_SERVER['HTTP_X_FORWARDED_FOR'].'"'; ?>
- HTTP_CLIENT_IP= "'.$_SERVER['HTTP_CLIENT_IP'].'"'; ?>
- GATEWAY_INTERFACE= "'.$_SERVER['GATEWAY_INTERFACE'].'"'; ?>
- SERVER_PROTOCOL= "'.$_SERVER['SERVER_PROTOCOL'].'"'; ?>
- REQUEST_METHOD= "'.$_SERVER['REQUEST_METHOD'].'"'; ?>
- QUERY_STRING= "'.$_SERVER['QUERY_STRING'].'"'; ?>
- SERVER_SIGNATURE= "'.$_SERVER['SERVER_SIGNATURE'].'"'; ?>
Zen Cart SUGGESTED path settings
/includes/configure.php
- HTTP_SERVER:
- HTTPS_SERVER: **'; ?>
- DIR_WS_CATALOG: /
- DIR_FS_CATALOG:
- DIR_FS_SQL_CACHE: cache/
/admin/includes/configure.php
- HTTP_SERVER:
- HTTPS_SERVER: **'; ?>
- HTTP_CATALOG_SERVER:
- HTTPS_CATALOG_SERVER: **'; ?>
- DIR_WS_ADMIN: /admin/
- DIR_WS_CATALOG: /
- DIR_FS_ADMIN: admin/
- DIR_FS_CATALOG:
- DIR_FS_SQL_CACHE: cache/
** NOTE: This depends on your hosting arrangements. Talk to your hosting company for how to configure SSL on your server.
Zen Cart System Info:
System Folder Checkup
'777 read/write/execute',
'images'=>'777 read/write/execute (INCLUDE SUBDIRECTORIES TOO)',
'includes/languages/english/html_includes'=>'777 read/write (INCLUDE SUBDIRECTORIES TOO)',
'pub'=>'777 read/write/execute',
'admin/backups'=>'777 read/write',
'admin/images/graphs'=>'777 read/write/execute')
as $folder=>$chmod) {
$status = (@is_writable($path.$folder))? OK :(UNWRITABLE . ' ' . $chmod);
echo '- Folder: '.$path.$folder . ' ' . $status .'
';
} ?>
From APPLICATION_TOP.PHP
- Version:
- Version Major:
- Version Minor:
Settings from Zen Cart Database:
- Installed Payment Modules:
- Installed Order Total Modules:
- Installed Shipping Modules:
- Default Currency:
- Default Language:
- Enable Downloads:
- Enable GZip Compression:
- Admin Demo Status:
PHP Modules:
PHP Info
SERVER variables:
";
foreach($_SERVER as $key=>$value) {
echo "$key => $value
";
}
// now break it out into objects and arrays, if relevant
foreach($_SERVER as $key=>$value) {
if (is_object($value)) {
foreach($value as $subvalue) {
if (is_object($subvalue) || is_array($subvalue)) {
foreach($subvalue as $subvalue2) {
echo $key.'['.$value.']['.$subvalue.'] => '.$subvalue2.'
';
}
} else {
echo $key.'['.$value.'] => '.$subvalue.'
';
}
}
} else if (is_array($value)) {
foreach($value as $subvalue) {
if (is_array($subvalue)) {
foreach($subvalue as $subvalue2) {
echo $key.'['.$value.']['.$subvalue.'] => '.$subvalue2.'
';
}
} else {
echo $key.'['.$value.'] => '.$subvalue.'
';
}
}
} else {
// echo "$key => $value
";
}
}
?>