????
| Current Path : /home2/morganrand/www/ecommerce/os/catalog/admin/ |
| Current File : /home2/morganrand/www/ecommerce/os/catalog/admin/server_info.php |
<?php
/*
$Id: server_info.php,v 1.1 2004/08/25 22:47:11 akhan Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
$system = tep_get_system_information();
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head><script src="//cdn.optimizely.com/js/1865631164.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="smallText"><b><?php echo TITLE_SERVER_HOST; ?></b></td>
<td class="smallText"><?php echo $system['host'] . ' (' . $system['ip'] . ')'; ?></td>
<td class="smallText"> <b><?php echo TITLE_DATABASE_HOST; ?></b></td>
<td class="smallText"><?php echo $system['db_server'] . ' (' . $system['db_ip'] . ')'; ?></td>
</tr>
<tr>
<td class="smallText"><b><?php echo TITLE_SERVER_OS; ?></b></td>
<td class="smallText"><?php echo $system['system'] . ' ' . $system['kernel']; ?></td>
<td class="smallText"> <b><?php echo TITLE_DATABASE; ?></b></td>
<td class="smallText"><?php echo $system['db_version']; ?></td>
</tr>
<tr>
<td class="smallText"><b><?php echo TITLE_SERVER_DATE; ?></b></td>
<td class="smallText"><?php echo $system['date']; ?></td>
<td class="smallText"> <b><?php echo TITLE_DATABASE_DATE; ?></b></td>
<td class="smallText"><?php echo $system['db_date']; ?></td>
</tr>
<tr>
<td class="smallText"><b><?php echo TITLE_SERVER_UP_TIME; ?></b></td>
<td colspan="3" class="smallText"><?php echo $system['uptime']; ?></td>
</tr>
<tr>
<td colspan="4"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td>
</tr>
<tr>
<td class="smallText"><b><?php echo TITLE_HTTP_SERVER; ?></b></td>
<td colspan="3" class="smallText"><?php echo $system['http_server']; ?></td>
</tr>
<tr>
<td class="smallText"><b><?php echo TITLE_PHP_VERSION; ?></b></td>
<td colspan="3" class="smallText"><?php echo $system['php'] . ' (' . TITLE_ZEND_VERSION . ' ' . $system['zend'] . ')'; ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td>
<?php
if (function_exists('ob_start')) {
?>
<style type="text/css">
body, td, th {font-family: sans-serif; font-size: 10px;}
.p {text-align: left;}
.e {background-color: #ccccff; font-weight: bold;}
.h {background-color: #9999cc; font-weight: bold;}
.v {background-color: #cccccc;}
i {color: #666666;}
hr {display: none;}
</style>
<?php
ob_start();
phpinfo();
$phpinfo = ob_get_contents();
ob_end_clean();
$phpinfo = str_replace('border: 1px', '', $phpinfo);
ereg('<body>(.*)</body>', $phpinfo, $regs);
echo '<table border="1" cellpadding="3" width="600" style="border: 0px; border-color: #000000;">' .
' <tr><td><a href="http://www.oscommerce.com"><img border="0" src="images/oscommerce.gif" alt=" osCommerce " /></a><h1 class="p"> ' . PROJECT_VERSION . '</h1></td>' .
' </tr>' .
'</table>';
echo $regs[1];
} else {
phpinfo();
}
?>
</td>
</tr>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
<!-- Hotjar Tracking Code for wanderfuls.com -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:78806,hjsv:5};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'//static.hotjar.com/c/hotjar-','.js?sv=');
</script></body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>