<?php
################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- #
## --------------------------------------------------------------------------- #
## ApPHP AdminPanel Pro #
## Developed by: ApPHP <hide@address.com> #
## License: GNU LGPL v.3 #
## Site: http://www.apphp.com/php-adminpanel/ #
## Copyright: ApPHP AdminPanel (c) 2006-2011. All rights reserved. #
## #
################################################################################
header("content-type: text/html; charset=utf-8");
// Initialize the session.
session_start();
require_once("../inc/classes/session.class.php");
require_once("../inc/checkPagePermissions.php");
require_once("../inc/settings.inc.php");
require_once("../inc/languages/".$SETTINGS['site_language'].".php");
$page = isset($_GET['page']) ? (int)$_GET['page'] : "";
if(!page_access_allowed($_SERVER['SCRIPT_NAME'], $page)) redirect_to("access_denied.php");
$menu_group_count = 0;
$page_text = "";
$page_header = "";
$sql = "SELECT * FROM ".TABLE_STATIC_PAGES." WHERE menu_id = '".$page."'";
$db->Query($sql);
if($row = $db->FetchAssoc()){
$page_header = "<h3>".$row['page_header']."</h3>";
$page_text = str_replace("\\n", "<br>", $row['page_text']);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title><?php echo $SETTINGS['site_name']; ?> :: <?php echo lang('admin_panel'); ?></title>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<!-- CSS style files -->
<link href="../styles/<?php echo $SETTINGS['css_style'];?>/style.css" type="text/css" rel="stylesheet">
</head>
<body dir="<?php echo $SETTINGS['language_dir'];?>">
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td><?php echo $page_header; ?></td>
</tr>
<tr valign="top">
<td><?php echo $page_text; ?></td>
</tr>
</table>
<br />
</body>
</html>