PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- require_once('inc/config.php');
- $page = $_GET['act'] ? $_GET['act'] : 'index';
- $result = mysql_query("SELECT * FROM `settings` WHERE page='{$page}' LIMIT 1") or die (mysql_error());
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <link rel="stylesheet" type="text/css" href="template/css/style.css" />
- <meta http-equiv="Content-Type" content="text/html; charset=<?PHP echo $row['charset'] ?>" />
- <meta http-equiv="Description" content="<?PHP echo $row['description'] ?>" />
- <meta http-equiv="keywords" content="<?PHP echo $row['keywords'] ?>" />
- <title><?PHP echo $row['title'] ?></title>
- </head>
- <body>
- <?PHP require_once('template/header.php'); ?>
- <div id="wrapper">
- <?PHP require_once('template/navigation.php'); ?>
- <?PHP require_once('template/announcements.php'); ?>
- <?PHP require_once('template/tournaments.php'); ?>
- <?PHP require_once('template/collum.php'); ?>
- <?PHP require_once('template/content.php'); ?>
- <?PHP require_once('template/footer.php'); ?>
- </div>
- </body>
- </html>