View difference between Paste ID: gDiWrjrJ and tMp4peyY
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
$run = mysql_query("SELECT * FROM  `pages` WHERE `ref` LIKE '%$page%'");
104
while($runrows = mysql_fetch_assoc($run)) {
105
$code = $runrows['code'];
106-
echo = $code;
106+
include ['$code'];
107
108
}									   
109
110
 ?><p>tweet this page<br><a href='https://twitter.com/share' class='twitter-share-button' data-url="http://pcwizz.net/index.php?page=<? echo $page; ?>" data-text='i think you might like this very much read this page <? echo $page; ?>' data-via='pcwizz' data-hashtags='pcwizz'>Tweet</a>
111
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='//platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','twitter-wjs');</script></artical></hgroup></section>
112
113
 <footer></span>
114
115
116
117
</footer>
118
</body>
119
</span>
120
121
122
</html>