-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
214 lines (153 loc) · 6.89 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?
function RandomNumberImagen($inicio, $fin)
{
Randomize(time()); // WARNING: assuming Randomize is an external function
$_retval=Int[($fin-$inicio + 1) * Rnd() + $inicio]; // WARNING: assuming Rnd is an external function assuming Int is an external array
return $_retval;
}
function RandomNumberTexto($inicio, $fin)
{
Randomize(); // WARNING: assuming Randomize is an external function
$_retval=Int[(($fin-$inicio + 1) * Rnd()) + $inicio]; // WARNING: assuming Rnd is an external function assuming Int is an external array
return $_retval;
}
<?php
$servername = "localhost";
$username = "nodocomu_gb";
$password = "14]&*qEaS5CW";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
$rsTexto_var=; // WARNING: unable to convert Server
$rsTexto_var->ActiveConnection=MM_gazzabazza_STRING(); // WARNING: assuming MM_gazzabazza_STRING is an external function
$rsTexto_var->Source="SELECT MAX(Id) FROM texto";
$rsTexto_var->CursorType=0;
$rsTexto_var->CursorLocation=2;
$rsTexto_var->LockType=1;
$rsTexto_var->Open[];
$rsTexto_var_numRows=0;
$rsImages_var=; // WARNING: unable to convert Server
$rsImages_var->ActiveConnection=MM_gazzabazza_STRING(); // WARNING: assuming MM_gazzabazza_STRING is an external function
$rsImages_var->Source="SELECT MAX(id) FROM imagenes";
$rsImages_var->CursorType=0;
$rsImages_var->CursorLocation=2;
$rsImages_var->LockType=1;
$rsImages_var->Open[];
$rsImages_var_numRows=0;
$rImagen=; // WARNING: unable to convert Server
$rImagen->ActiveConnection=MM_gazzabazza_STRING(); // WARNING: assuming MM_gazzabazza_STRING is an external function
$rImagen->Source="SELECT imagen FROM imagenes WHERE id = ".RandomNumberImagen(1, ($rsImages_var->Fields->Item["Expr1000"]->Value))." ";
$rImagen->CursorType=0;
$rImagen->CursorLocation=2;
$rImagen->LockType=1;
$rImagen->Open[];
$rImagen_numRows=0;
$rTexto=; // WARNING: unable to convert Server
$rTexto->ActiveConnection=MM_gazzabazza_STRING(); // WARNING: assuming MM_gazzabazza_STRING is an external function
$rTexto->Source="SELECT * FROM texto WHERE id = ".RandomNumberTexto(1, ($rsTexto_var->Fields->Item["Expr1000"]->Value))."";
$rTexto->CursorType=0;
$rTexto->CursorLocation=2;
$rTexto->LockType=1;
$rTexto->Open[];
$rTexto_numRows=0;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="icon" href="icon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="icon.ico" type="image/x-icon" />
<meta name="google-site-verification" content="trmgbMmR4Ya7HnK786GGNZLhZskkZD9jCkaij4uYLqc" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="La razón nos limita, el azar es INFINITO. Es él quien nos descubrirá los sentidos ocultos, los sabores desconocidos, los placeres anónimos que esconden las imágenes cotidianas. Sus significados son múltiples y extraños, y es aquí, cuando definitivamente, encontrarás la llave." />
<meta name="verify-v1" content="x8SGvOjKSa0+DPztRByBbbPpVCD4J7mANcCQIn/48SY=" />
<title>
<?
echo ($rTexto->Fields->Item["ideas"]->Value);
?>
- Gazza & Bazza: El Azar Manda en Nuestras Vidas</title>
<link href="css_randomness/gazzabazza.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body>
<form method="post" action="">
<div class="container">
<div class="profoto">
<img src="img/
<?
echo $rImagen->Fields->Item["imagen"]->Value;
?>
" style="max-width:800px; max-height:425px;" /><br>
<div class="texto">
<?
echo ($rTexto->Fields->Item["ideas"]->Value);
?>
</div>
</div>
<div class="recontainer">
<div class="boton" align="center">
<div class="contact" align="center">
<div align="center">
<p>
<input type="submit" name="Submit" value="Quiero más!" class="ostiaputa">
<br>
<br>
<span class="linkcontact"> <strong><a href="join_images.asp">SUBIR IMÁGENES</a></strong> // <strong><a href="join_text.asp">SUBIR TEXTO</a></strong><br>
<br>
</span><span class="linkcontact">:::<strong><a href="about.asp"> Sobre G&B</a></strong> ::: <a href="http://www.twitter.com/danicotillas" target="_blank">@danicotillas</a> ::: <a href="contact.asp">Contacta</a> ::: </span><br>
<br>
<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/es/" target="_blank" rel="license"><img src="http://i.creativecommons.org/l/by-nc-sa/3.0/es/80x15.png" alt="Creative Commons License" border="0" style="border-width:0" /></a><br />
<span xmlns:dc="http://purl.org/dc/elements/1.1/" href="http://purl.org/dc/dcmitype/InteractiveResource" property="dc:title" rel="dc:type"></span> </p>
</div>
</div>
</div>
<!-- <div align="center"><font color="#FFFFFF" style="font-size:3px; font:Verdana, Arial, Helvetica, sans-serif; ">texto:
<?
echo $rsTexto_var->Fields->Item["Expr1000"]->Value;
?>
| photos:
<?
echo $rsImages_var->Fields->Item["Expr1000"]->Value;
?>
</font> -->
</div>
</div>
</form>
</body>
</html>
<?
$rImagen->Close[];
$rImagen=NULL;
$rTexto->Close[];
$rTexto=NULL;
$rsImages_var->Close[];
$rsImages_var=NULL;
$rsTexto_var->Close[];
$rsTexto_var=NULL;
?>