[ Index ] |
PHP Cross Reference of osCMax 2.0.4 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 $Id: server_info.php 3 2006-05-27 04:59:07Z user $ 4 5 osCMax Power E-Commerce 6 http://oscdox.com 7 8 Copyright 2006 osCMax 9 10 Released under the GNU General Public License 11 */ 12 13 require ('includes/application_top.php'); 14 15 $system = tep_get_system_information(); 16 ?> 17 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> 18 <html <?php echo HTML_PARAMS; ?>> 19 <head> 20 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> 21 <title><?php echo TITLE; ?></title> 22 <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> 23 </head> 24 <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> 25 <!-- header //--> 26 <?php require (DIR_WS_INCLUDES . 'header.php'); ?> 27 <!-- header_eof //--> 28 29 <!-- body //--> 30 <table border="0" width="100%" cellspacing="2" cellpadding="2"> 31 <tr> 32 <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> 33 <!-- left_navigation //--> 34 <?php require (DIR_WS_INCLUDES . 'column_left.php'); ?> 35 <!-- left_navigation_eof //--> 36 </table></td> 37 <!-- body_text //--> 38 <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> 39 <tr> 40 <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> 41 <tr> 42 <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> 43 <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> 44 </tr> 45 </table></td> 46 </tr> 47 <tr> 48 <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> 49 <tr> 50 <td><table border="0" cellspacing="0" cellpadding="3"> 51 <tr> 52 <td class="smallText"><b><?php echo TITLE_SERVER_HOST; ?></b></td> 53 <td class="smallText"><?php echo $system['host'] . ' (' . $system['ip'] . ')'; ?></td> 54 <td class="smallText"> <b><?php echo TITLE_DATABASE_HOST; ?></b></td> 55 <td class="smallText"><?php echo $system['db_server'] . ' (' . $system['db_ip'] . ')'; ?></td> 56 </tr> 57 <tr> 58 <td class="smallText"><b><?php echo TITLE_SERVER_OS; ?></b></td> 59 <td class="smallText"><?php echo $system['system'] . ' ' . $system['kernel']; ?></td> 60 <td class="smallText"> <b><?php echo TITLE_DATABASE; ?></b></td> 61 <td class="smallText"><?php echo $system['db_version']; ?></td> 62 </tr> 63 <tr> 64 <td class="smallText"><b><?php echo TITLE_SERVER_DATE; ?></b></td> 65 <td class="smallText"><?php echo $system['date']; ?></td> 66 <td class="smallText"> <b><?php echo TITLE_DATABASE_DATE; ?></b></td> 67 <td class="smallText"><?php echo $system['db_date']; ?></td> 68 </tr> 69 <tr> 70 <td class="smallText"><b><?php echo TITLE_SERVER_UP_TIME; ?></b></td> 71 <td colspan="3" class="smallText"><?php echo $system['uptime']; ?></td> 72 </tr> 73 <tr> 74 <td colspan="4"><?php echo tep_draw_separator('pixel_trans.gif', '1', '5'); ?></td> 75 </tr> 76 <tr> 77 <td class="smallText"><b><?php echo TITLE_HTTP_SERVER; ?></b></td> 78 <td colspan="3" class="smallText"><?php echo $system['http_server']; ?></td> 79 </tr> 80 <tr> 81 <td class="smallText"><b><?php echo TITLE_PHP_VERSION; ?></b></td> 82 <td colspan="3" class="smallText"><?php echo $system['php'] . ' (' . TITLE_ZEND_VERSION . ' ' . $system['zend'] . ')'; ?></td> 83 </tr> 84 </table></td> 85 </tr> 86 </table></td> 87 </tr> 88 <tr> 89 <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> 90 </tr> 91 <tr> 92 <td> 93 <?php 94 if (function_exists('ob_start')) { 95 ?> 96 <style type="text/css"> 97 body, td, th {font-family: sans-serif; font-size: 10px;} 98 .p {text-align: left;} 99 .e {background-color: #ccccff; font-weight: bold;} 100 .h {background-color: #9999cc; font-weight: bold;} 101 .v {background-color: #cccccc;} 102 i {color: #666666;} 103 hr {display: none;} 104 </style> 105 <?php 106 ob_start(); 107 phpinfo(); 108 $phpinfo = ob_get_contents(); 109 ob_end_clean(); 110 111 $phpinfo = str_replace('border: 1px', '', $phpinfo); 112 ereg('<body>(.*)</body>', $phpinfo, $regs); 113 echo '<table border="1" cellpadding="3" width="600" style="border: 0px; border-color: #000000;">' . 114 ' <tr><td><a href="http://oscdox.com"><img border="0" src="images/oscmax.gif" alt=" osCMax " /></a><h2 class="p"> ' . PROJECT_VERSION . '</h1></td>' . 115 ' </tr>' . 116 '</table>'; 117 echo $regs[1]; 118 } else { 119 phpinfo(); 120 } 121 ?> 122 </td> 123 </tr> 124 </table></td> 125 <!-- body_text_eof //--> 126 </tr> 127 </table> 128 <!-- body_eof //--> 129 130 <!-- footer //--> 131 <?php require (DIR_WS_INCLUDES . 'footer.php'); ?> 132 <!-- footer_eof //--> 133 <br> 134 </body> 135 </html> 136 <?php require (DIR_WS_INCLUDES . 'application_bottom.php'); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Jan 1 13:43:16 2010 | Cross-referenced by PHPXref 0.7 |