View difference between Paste ID: tMp4peyY and SYc85bKN
SHOW: | | - or go back to the newest paste.
1
<?php
2
$button1 = $_GET['button1'];
3
$button2 = $_GET['button2'];
4
$button3 = $_GET['button3'];
5
$searchs = $_GET['searchs'];
6
$page = $_GET['page'];
7
session_start();
8
if($_SESSION) {
9
if($_SESSION['style']=='1') {
10
	echo '<link rel="stylesheet" href="css/colour1.css" type="text/css">';
11
	}
12
	elseif($_SESSION['style']=='2') {
13
	echo '<link rel="stylesheet" href="css/colour2.css" type="text/css">';
14
	}
15
	elseif($_SESSION['style']=='3') {
16
	echo '<link rel="stylesheet" href="css/colour3.css" type="text/css">';
17
	}
18
	else {
19
		echo '<link rel="stylesheet" href="css/colour1.css" type="text/css">';
20
		}	
21
	}
22
	else {
23
		echo '<link rel="stylesheet" href="css/colour1.css" type="text/css">';
24
		}
25
		if($button1) {
26
		echo '<link rel="stylesheet" href="css/colour1.css" type="text/css">';
27
		$_SESSION['style'] = '1';	
28
		}
29
		elseif($button2) {
30
echo '<link rel="stylesheet" href="css/colour2.css" type="text/css">';
31
		$_SESSION['style'] = '2';	
32
		}	
33
		elseif($button3) {
34
			echo '<link rel="stylesheet" href="css/colour3.css" type="text/css">';
35
36
		$_SESSION['style'] = '3';	
37
		}
38
		else {
39
			
40
			}		
41
	
42
43
	
44
 ?><html lang="en"><head>
45
<link rel="shortcut icon" href="http://30.media.tumblr.com/avatar_100d4932f131_16.png" />
46
 <meta charset="uft-8" />
47
 <meta keywords="pcwizz, 'pcwizz.net', linux, unix" />
48
<title>pcwizz.net | the home of pcwizz on the internet</title>
49
<link rel="stylesheet" href="css/common.css" type="text/css">
50
<script type="text/javascript">
51
52
  var _gaq = _gaq || [];
53
  _gaq.push(['_setAccount', 'UA-16575667-4']);
54
  _gaq.push(['_setDomainName', '.pcwizz.net']);
55
  _gaq.push(['_trackPageview']);
56
57
  (function() {
58
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
59
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
60
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
61
  })();
62
63
</script>
64
</head><form class="asside" id="style" method="GET" action="index.php">
65
<input type="submit" name="button1" value="style 1" size="8" />
66
<input type="submit" name="button2" value="style 2" size="8" />
67
<input type="submit" name="button3" value="style 3" size="8" /></form><br><br><br><body><span class="header">
68
69
<br>
70
<div ><nav id="main-navigation">
71
       <ul id="main_nav">
72
            	<li><a href="index.php">home</a></li>
73
                <li><a href="index.php?page=news">tech news</a></li>
74
		<li><a href="#">How To?</a><ul>
75
		<li><a href="index.php?page=howtocodein">how to code in</a></li>
76
                </ul></li>
77
                <li><a href="index.php?page=blog">blog</a></li>
78
                <li><a href="http://www.youtube.com/pcwizzshow">youtube</a></li>
79
                <li><a href="index.php?page=minecraft">minecraft</a></li>
80
                <li><a href="#">social</a><ul>
81
                <li><a href="http://www.facebook.com/pages/pcwizz/339557311428">facebook</a></li>
82
                <li><a href="http://twitter.com/#!/pcwizz">twitter</a></li>
83
                <li><a href="http://pcwizz.tumblr.com">tumblr</a></li>
84
                </ul></li>
85
        </nav></div><font size="5">
86
    
87
88
</font></span>
89
<div id="logo"><img src="pcwizzfav.jpg" alt="" ></div>
90
	<form class="search" action="index.php"  method="GET">
91
<input type="text" name="search" >
92
<select name="searchs" size="3">
93
<option value="news" title="news">news</option>
94
<option value="blog" title="blog">blog</option>
95
<option value="pages" title="pages">pages</option>
96
</select>
97
<input type="submit" name="submit" value="search">
98
</form>
99
<span class="body">
100
<section><artical><hgroup>
101
<?php
102
$button = $_GET['submit'];
103-
									if($page=='howtocodein') {
103+
$run = mysql_query("SELECT * FROM  `pages` WHERE `ref` LIKE '%$page%'");
104
while($runrows = mysql_fetch_assoc($run)) {
105-
include 'howtocodein.php';
105+
$code = $runrows['code'];
106
echo = $code;
107-
	elseif($page=='news') {
107+
108-
		include 'news.php';
108+
}									   
109
110-
		elseif($page=='blog') {
110+
111-
		include 'blog.php';
111+
112
113-
		elseif($page=='minecraft') {
113+
114-
		include 'minecraft.html';
114+
115
116-
		elseif($button) {
116+
117-
			if($searchs == 'pages') {
117+
118-
		include 'search.php';
118+
119
</span>
120-
		elseif($searchs == 'news') {
120+
121-
	   include 'nsearch.php';
121+
122-
	   }
122+