Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- session_start();
- include('db_connect.php');
- if(isset($_GET['name'])){
- if(!isset($_GET['p'])){
- header('Location: http://www.' . $_GET['name'] . '.falox.nl/start');
- }else{
- $page = $_GET['p'];
- }
- $uQuery = mysql_query("SELECT * FROM users WHERE username = '" . mysql_real_escape_string($_GET['name']) . "' AND NOT type = 4") or die(mysql_error());
- $uFetch = mysql_fetch_assoc($uQuery);
- if(mysql_num_rows($uQuery) == 0){
- die('Dit lid is niet gevonden!');
- }
- if($uFetch['banned_until'] != '0000-00-00 00:00:00' and $uFetch['banned_until'] >= date('Y-m-d H:i:s')){
- die('Dit lid is verbannen.');
- }
- $pQuery = mysql_query("SELECT * FROM pages WHERE title = '" . mysql_real_escape_string($page) . "' AND author = '" . $uFetch['id'] . "'") or die(mysql_error());
- $pFetch = mysql_fetch_assoc($pQuery);
- if(mysql_num_rows($pQuery) == 0){
- if($page == '' or $page == '/'){
- header('Location: http://www.' . $_GET['name'] . '.falox.nl/start');
- }else{
- $eQuery = mysql_query("SELECT * FROM pages WHERE title = '404' AND author = '" . mysql_real_escape_string($uFetch['id']) . "'") or die(mysql_error());
- if(mysql_num_rows($eQuery) > 0){
- $contents = file_get_contents('http://' . $uFetch['username'] . '.falox.nl/404');
- echo $contents;
- die();
- }else{
- die('De pagina kon niet worden gevonden.');
- }
- }
- }
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <title> - <?php echo $pFetch['title']; ?></title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <script type="text/javascript" src="http://falox.nl/js/popups.js"></script>
- <style type="text/css">
- body {
- margin: 0;
- padding: 0;
- font-size: 13px;
- font-family: Tahoma;
- background-image: url(<?php echo $pFetch['bgimg']; ?>);
- background-repeat: <?php echo $pFetch['bgrepeat']; ?>;
- background-color: #<?php echo $pFetch['bgcolor']; ?>;
- }
- img {
- border: 0;
- }
- </style>
- </head>
- <body>
- <?php
- if($uFetch['show_vote'] == 1){
- ?>
- <button style="background: #FFFFFF; border: 1px solid #CCCCCC; border-radius: 5px;" onclick="javascript:NewWindow('http://falox.nl/vote.php?id=<?php echo $pFetch['author']; ?>','vote_window','360','208','custom','front');">Geef punten</button>
- <?php
- }
- if($pFetch['bg_music'] != ''){
- ?>
- <object width="0" height="0"><param name="movie" value="http://www.youtube.com/v/<?php echo $pFetch['bg_music']; ?>?fs=1&hl=nl_NL&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/<?php echo $pFetch['bg_music']; ?>?fs=1&hl=nl_NL&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="0" height="0"></embed></object>
- <?php
- }
- $iQuery = mysql_query("SELECT * FROM items WHERE page_id = '" . mysql_real_escape_string($pFetch['id']) . "'") or die(mysql_error());
- while($iFetch = mysql_fetch_assoc($iQuery)){
- ?>
- <div id="item<?php echo $iFetch['id']; ?>" style="position: absolute; left: <?php echo $iFetch['pos_left']; ?>px; top: <?php echo $iFetch['pos_top'] - 40; ?>px; z-index: <?php echo $iFetch['z_index']; ?>;">
- <div id="item_content<?php echo $iFetch['id']; ?>" style="<?php if($iFetch['width'] != 0){ echo 'width: ' . $iFetch['width'] . 'px;'; } if($iFetch['height'] != 0){ echo 'height: ' . $iFetch['height'] . 'px;'; } ?> border: <?php if($iFetch['border_color'] != ''){ echo ' #' . $iFetch['border_color']; } if($iFetch['border_width'] != ''){ echo ' ' . $iFetch['border_width'] . 'px'; } if($iFetch['border_style'] != ''){ echo ' ' . htmlspecialchars($iFetch['border_style']); } ?>; <?php if($iFetch['background'] != ''){ echo 'background: #' . htmlspecialchars($iFetch['background']); } ?>">
- <?php
- if($iFetch['type'] == 1) {
- echo stripslashes(str_replace('cookie', '', $iFetch['text']));
- }elseif($iFetch['type'] == 2){
- echo '<img src="' . $iFetch['img_url'] . '" />';
- }elseif($iFetch['type'] == 3){
- menu($pFetch['author'], $iFetch['id']);
- }
- ?>
- </div>
- </div>
- <?php
- }
- /*
- Advertentie:
- <div style="float: right; padding: 2px; z-index: 9999; position: relative;">
- <?php
- $aQuery = mysql_query("SELECT * FROM ads WHERE vertical = 1 AND horizontal = 0 ORDER BY RAND() LIMIT 1") or die(mysql_error());
- $aFetch = mysql_fetch_assoc($aQuery);
- ?>
- <a href="http://falox.nl/index.php?p=ad&id=<?php echo $aFetch['id']; ?>"><img src="http://falox.nl/img/ads/<?php echo $aFetch['id']; ?>.<?php echo $aFetch['filetype']; ?>" /></a>
- </div>
- */
- ?>
- </body>
- </html>
- <?php
- }
- function menu($f_id, $f_item_id)
- {
- $e_id = $f_id;
- $e_item_id = $f_item_id;
- include('editor_menu.php');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement