Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once('Connections/downsgaming.php'); ?>
- <?php
- if (!function_exists("GetSQLValueString")) {
- function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
- {
- if (PHP_VERSION < 6) {
- $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
- }
- $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
- switch ($theType) {
- case "text":
- $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
- break;
- case "long":
- case "int":
- $theValue = ($theValue != "") ? intval($theValue) : "NULL";
- break;
- case "double":
- $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
- break;
- case "date":
- $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
- break;
- case "defined":
- $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
- break;
- }
- return $theValue;
- }
- }
- mysql_select_db($database_downsgaming, $downsgaming);
- $query_forside = "SELECT * FROM forside";
- mysql_set_charset('utf8');
- $forside = mysql_query($query_forside, $downsgaming) or die(mysql_error());
- $row_forside = mysql_fetch_assoc($forside);
- $totalRows_forside = mysql_num_rows($forside);
- ?>
- <!DOCTYPE HTML>
- <html lang="da">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="style.css" rel="stylesheet" type="text/css" />
- <link rel="icon" href="images/favicon.ico" />
- <title>[Down-South] Gaming [DK]</title>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <link rel="stylesheet" href="jscripts/fancybox/source/jquery.fancybox.css?v=2.0.5" type="text/css" media="screen" />
- <script type="text/javascript" src="jscripts/fancybox/source/jquery.fancybox.pack.js?v=2.0.5"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $(".various").fancybox({
- maxWidth : 400,
- maxHeight : 210,
- fitToView : false,
- width : '70%',
- height : '70%',
- autoSize : false,
- closeClick : false,
- openEffect : 'none',
- closeEffect : 'none'
- });
- });
- </script>
- </head>
- <body>
- <div id="container">
- <div id="header">
- <div id="logind">
- <?php
- if(isset($_SESSION['username'])){
- session_start();
- echo 'Velkommen <br/>';
- echo $username;
- echo '<a href="<?php echo $logoutAction ?>">Log ud</a>';
- // session not logged in so display form
- }else{
- echo '<p><a class="various fancybox.iframe" href="login.php">Login Form
- </a></p>';
- // session logged
- }
- ?>
- </div>
- </div>
- <div id="menu">
- <ul>
- <li><a href="index.php">Forside</a></li>
- <li><a href="nyheder.php">Nyheder</a></li>
- <li><a href="om.php">Om os</a></li>
- <li><a href="admins.php">Admins</a></li>
- <li><a href="servers.php">Servere</a>
- <ul>
- <li><a href="addons.php" id="submenu">Addons</a></li>
- <li><a href="stats.php" id="submenu">Stats</a></li>
- </ul>
- </li>
- <li><a href="forum.php">Forum</a></li>
- </ul>
- <h1>Velkommen</h1>
- <h2>Servere</h2>
- </div>
- <div id="main"><br />
- <div id="content">
- <div id="left"><?php echo $row_forside['tekst']; ?><p><a class="various fancybox.iframe" href="login.php">Login Form
- </a></p>
- </div>
- <div id="right">
- <iframe src="http://cache.www.gametracker.com/components/html0/?host=94.18.107.46:27015&bgColor=6E6943&fontColor=CCCCCC&titleBgColor=222222&titleColor=FF9900&borderColor=555555&linkColor=FFCC00&borderLinkColor=222222&showMap=1¤tPlayersHeight=100&showCurrPlayers=1&topPlayersHeight=100&showTopPlayers=1&showBlogs=0&width=200" frameborder="0" scrolling="no" width="200" height="536"></iframe>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <div id="footer">
- <br /><br />
- <ul>
- <li><a href="index.php">Forside</a></li>
- <li><a href="om.php">Om os</a></li>
- <li><a href="admins.php">Admins</a></li>
- <li><a href="servers.php">Servere</a></li>
- <li><a href="forum.php">Forum</a></li>
- <li class="lastchild"><a href="kontakt.php">Kontakt</a></li>
- </ul>
- <span>© [Down-South] Gaming [DK] 2012. All rights reserved.</span> </div>
- </div>
- </body>
- </html>
- <?php
- mysql_free_result($forside);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement