-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
147 lines (140 loc) · 7.07 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?php
$isCatPage=false;
if (isset($_GET['cat'])){$isCatPage=true;$cat=$_GET['cat'];}
include('include/functions.php');
$c=connect();
($isCatPage ? $byCat=get_by_cat($cat,$c) : $recent = get_recent($c));
$dropdown=get_dropdown($c);
$all=get_all($c);
disconnect($c);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo($isCatPage ? 'Play '.ucfirst($cat).' Games Free - Gumbee\'s Games' : 'Free Online Games - Gumbee\'s Games'); ?></title>
<style type="text/css">@import 'style.css';</style>
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->
<script src="js.js" type="text/javascript"></script>
<script src="g-g-games.js" type="text/javascript"></script>
</head>
<body>
<div id="content-wrap">
<div id="wrapper">
<!--BEGIN HEADER -->
<div id="header">
<h1><a href="http://gumbeesgames.com/"><span>Play Free Games - Gumbee's Games</span></a></h1>
<div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div>
</div>
<!-- END HEADER -->
<!-- BEGIN NAVBAR -->
<div id="navbar">
<ul id="nav">
<li class="first"><a href="/action"><span></span>Action<span class="hid"> Games</span></a></li>
<li><a href="/adventure">Adventure<span class="hid"> Games</span></a></li>
<li><a href="/arcade">Arcade<span class="hid"> Games</span></a></li>
<li><a href="/puzzle">Puzzle<span class="hid"> Games</span></a></li>
<li><a href="/sports">Sports<span class="hid"> Games</span></a></li>
<li class="last"><a href="/misc"><span></span>Random<span class="hid"> Games</span></a></li>
</ul>
<div id="games-dropdown">
<span class="arr"></span>
<div id="selected-game">-- Select a Game --</div>
<ul>
<?php echo($dropdown); ?>
</ul>
</div>
</div>
<!-- END NAVBAR -->
<!-- BEGIN LEFT COLUMN -->
<div id="left">
<div class="box">
<div class="content">
<h2><?php echo(($isCatPage ? ucfirst($cat) : 'Newest') . ' Games'); ?></h2>
<div style="text-align:center;">
<script type="text/javascript">
google_ad_client="pub-1176090277900359";google_ad_slot="3524007625";google_ad_width=468;google_ad_height=15;
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<?php echo($isCatPage ? $byCat : $recent); ?>
<div class="clear"></div>
</div>
<div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div>
</div>
<div class="box">
<div class="content">
<h2>All Games</h2>
<div style="text-align:center;">
<script type="text/javascript">
google_ad_client="pub-1176090277900359";google_ad_slot="3524007625";google_ad_width=468;google_ad_height=15;
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<?php echo $all; ?>
<div class="clear"></div>
</div>
<div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div>
</div>
</div>
<!-- END LEFT COLUMN -->
<!-- BEGIN RIGHT COLUMN -->
<div id="right">
<div class="box">
<div class="content">
<div style="float:left;display:inline;">
<script type="text/javascript">
google_ad_client="pub-1176090277900359";google_ad_slot="5210243501";google_ad_width=120;google_ad_height=90;
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<div style="float:right;display:inline;">
<script type="text/javascript">
google_ad_client="pub-1176090277900359";google_ad_slot="8911642377";google_ad_width=120;google_ad_height=90;
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<div class="clear"></div>
</div>
<div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div>
</div>
<div class="box">
<div class="content">
<div style="text-align:center;">
<script type="text/javascript">
google_ad_client="pub-1176090277900359";google_ad_slot="0208323290";google_ad_width=300;google_ad_height=250;
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
<div class="clear"></div>
</div>
<div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div>
</div>
<div class="box">
<div class="content">
<h2>Need More Games?</h2>
We're always trying to add <a href="http://gumbeesgames.com/">new games</a> here at <a href="http://gumbeesgames.com/">Gumbee's Games</a>, but we're running out of sources. Got a game you want to see on the site? Email an administrator at <a href="mailto:[email protected]">[email protected]</a> with the name of the game and where you've seen it before. If you created the game, just attach a zip file and include the width/height, title, and description as well as your name/company so we can give you credit.
<div class="clear"></div>
</div>
<div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div>
</div>
</div>
<!-- END RIGHT COLUMN -->
<div class="clear"></div>
</div>
</div>
<!-- BEGIN FOOTER -->
<div id="footer">
<a href="/action">Play Action Games</a> | <a href="/adventure">Play Adventure Games</a> | <a href="/arcade">Play Arcade Games</a> | <a href="/puzzle">Play Puzzle Games</a> | <a href="/sports">Play Sports Games</a> | <a href="/misc">Play Random Games</a><br />
©2010 Alex Mitchell | <a href="http://gumware.com/">Gumware Design</a>
</div>
<!-- END FOOTER -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7034825-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>