-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathps.php
171 lines (140 loc) · 3.81 KB
/
ps.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<html>
<head>
<title>PlayStation Games <--> DoNotCompare</title>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21077255-1']);
_gaq.push(['_setDomainName', '.donotcompare.com']);
_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>
</head>
<body bgcolor="#548DD4">
<?php
require_once 'constructors.inc';
require_once 'sort.inc';
$table='ranktable';
if (isset($_GET['report'])){
$game1=emptyGame($table);
$game1->getById($_GET['report']);
$game1->report();
}
else{
if(isset($_GET['id1']) && isset($_GET['id2']) && isset($_GET['wina'])){
if ($_GET['wina']==0 || $_GET['wina']==1){
if ($_GET['id1']!=$_GET['id2']){
$game1=emptyGame($table);
$game2=emptyGame($table);
$game1->getById($_GET['id1']);
$game2->getById($_GET['id2']);
bubble($game1,$game2,$_GET['wina']);
$game1->addPartidasTotalesLocal($table);
}
}
}
}
$game_array=consecutive($table,array('PlayStation'));
$game1=$game_array[0];
$game2=$game_array[1];
echo "<STYLE TYPE=\"text/css\">
H1 {font-size:25; text-align: center;}
TT {font-size:16;}
WR {font-size:12; color:#632423;}
FH{font-size:12;}
a:link { color: #000000; text-decoration: none; }
a:visited { text-decoration: none; color: #000000; }
</STYLE>
";
echo "<H1>Game Ranking (PlayStation)</H1>
<p align=center>
<font size='5'> Choose one</font><br/>
<font size='2'>(or select another sub-category:
<a href='pc.php'><font size='2'color='#0000ff'><u>PC</u></font></a>
<a href='wii.php'><font size='2'color='#0000ff'><u>Wii</u></font></a>
<a href='xbox.php'><font size='2'color='#0000ff'><u>Xbox</u></font></a>
<a href='game.php'><font size='2'color='#0000ff'><u>All Games</u></font></a>
<font size='2'>)</font>
</p>";
echo "
<br/><br/>
<table border=0 cellspacing=0 cellpadding=0 align=center
style='border-collapse:collapse;border:none'>
<tr>
<td align=center>
<a href='ps.php?id1=$game1->id&id2=$game2->id&wina=1'>
<img border=0 src='$game1->imagefile'/>
</a>
</td>
<td width=360 align=center>
<a href='ps.php'>
<img border=0 width=220 height=220 src='./images/reload.jpg'>
<br/>
<TT>Reload</TT>
</a>
</td>
<td align=center>
<a href='ps.php?id1=$game1->id&id2=$game2->id&wina=0'>
<img border=0 src='$game2->imagefile'>
</a>
</td>
</tr>
<td align=center>
<TT>$game1->title</TT>
</td>
<td align=center>
</td>
<td align=center>
<TT>$game2->title</TT>
</td>
</tr>
<tr>
<td align=left>
<a href='ps.php?report=$game1->id'>
<WR>Wrong Image</WR>
</a>
</td>
<td align=center>
</td>
<td align=right>
<a href='ps.php?report=$game2->id'>
<WR>Wrong Image</WR>
</a>
<td>
</tr>
</table>
";
?>
<br/><br/>
<table border=0 align=center width=300>
<tr >
<td align=center >
<a href='film.php'>
<font size='3'> Wanna rank films?</font>
</a>
</td>
<td align=center >
<a href='http://blog.donotcompare.com'>
<font size='3'> About these ranks</font>
</a>
</td>
</tr>
</table>
<?php
$total=$game1->getPartidasTotalesLocal($table);
//$total=$game1->sincronizarPartidas();
echo "<br/><br/>
<font size='3'>Remaining fights to publish TOP 100: </font><font size='4'>";
if ((20000-$total)<=0) { echo "0! Ranking will be published ASAP! :-)"; }
else {echo 20000-$total;}
?>
</font> <a href='http://blog.donotcompare.com'><font size='2' color="#0000ff"><u>Why?</u></font></a>
<br/><br/><br/>
<a href='mailto:[email protected]'>
<font size="2">Contact</font>
</a>
</body>
</html>