function xhtmlHeaders($file, $title) { $skinCssFile = getSkinFile('css/skin.css'); $skinCssPhpFile = getSkinFile('css/skin.css.php'); $basename = basename($file, '.php'); $viewCssFile = getSkinFile('views/css/' . $basename . '.css'); $viewCssPhpFile = getSkinFile('views/css/' . $basename . '.css.php'); extract($GLOBALS, EXTR_OVERWRITE); noCacheHeaders(); header("Content-type: application/xhtml+xml"); echo '<?xml version="1.0" encoding="iso-8859-1"?>' . "\n"; ?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo ZM_WEB_TITLE_PREFIX; ?> - <?php echo $title; ?> </title> <link rel="icon" type="image/ico" href="graphics/favicon.ico"/> <link rel="shortcut icon" href="graphics/favicon.ico"/> <link rel="stylesheet" href="css/reset.css" type="text/css" media="screen"/> <link rel="stylesheet" href="<?php echo $skinCssFile; ?> " type="text/css" media="screen"/> <?php if ($viewCssFile) { ?> <link rel="stylesheet" href="<?php echo $viewCssFile; ?> " type="text/css" media="screen"/> <?php } if ($viewCssPhpFile) { ?> <style type="text/css"> <?php require_once $viewCssPhpFile; ?> </style> <?php } ?> </head> <?php }
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // if (!canView('System')) { $view = "error"; return; } $zmuCommand = getZmuCommand(" --list"); $result = exec(escapeshellcmd($zmuCommand), $output); $refresh = ZM_WEB_REFRESH_STATUS; $url = '?view=' . $view; noCacheHeaders(); xhtmlHeaders(__FILE__, $SLANG['Status']); ?> <body> <div id="page"> <div id="header"> <h2><?php echo $SLANG['Status']; ?> </h2> </div> <div id="content"> <table id="contentTable" class="major" cellspacing="0"> <?php if ($row = array_shift($output)) { ?>