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);
- mysql_set_charset('utf8');
- $query_addons = "SELECT * FROM addons";
- $addons = mysql_query($query_addons, $downsgaming) or die(mysql_error());
- $row_addons = mysql_fetch_assoc($addons);
- $totalRows_addons = mysql_num_rows($addons);
- ?>
- <!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="jscripts/tiny_mce/tiny_mce.js"></script>
- <script type="text/javascript">
- tinyMCE.init({
- // General options
- mode : "divs",
- theme : "advanced",
- plugins:"autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
- // Theme options
- theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
- theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
- theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
- theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
- theme_advanced_toolbar_location : "top",
- theme_advanced_toolbar_align : "left",
- theme_advanced_statusbar_location : "bottom",
- theme_advanced_resizing : true,
- // Skin options
- skin : "o2k7",
- skin_variant : "silver",
- //Select when to enable editor
- editor_selector : "mceEditor",
- //Stylesheet
- content_css : "style.css"
- }
- );
- </script>
- </head>
- <body>
- <div id="container">
- <div id="header"></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>Addons</h1>
- <h2>Admins</h2>
- </div>
- <div id="main"><br />
- <div id="content">
- <div id="left">
- <?php
- if(isset($_SESSION["webmaster"]) && $_SESSION["webmaster"]==true){
- if(isset($_GET["edit"])){
- echo "<div class='rediger'>".$row_addons["tekst"]."</div>";
- }else{
- echo "<a href='addons.php?id=".$row_addons["id"]."&edit=true'>Rediger</a>";
- echo nl2br($row_addons["tekst"]);
- }
- }else{
- echo nl2br($row_addons["tekst"]);
- }
- ?>
- </div>
- <div id="right">
- <div class="member">
- <a href="http://steamcommunity.com/profiles/76561197999047451" target="_blank"><img src="images/mx-ghost.png" width="75" height="75" alt="member" /></a>
- <span><a href="http://steamcommunity.com/profiles/76561197999047451" target="_blank">MX-Ghost</a></span>
- </div>
- <div class="member">
- <a href="http://steamcommunity.com/profiles/76561198008085717" target="_blank"><img src="images/aben.png" width="75" height="75" alt="member" /></a>
- <span><a href="http://steamcommunity.com/profiles/76561198008085717" target="_blank">[Down-South]<br>Jeg fik aben!</a></span>
- </div>
- </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($addons);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement