Trova una foto o un'immagine su internet o
falla tu. L'importante è che riguardi il più possibile
l'argomento scritto qua sotto all'interno dell'universo di Star
Wars.
Dopo la scadenza avrai la possibilità di votare tre immagini
tra quelle inserite dai tuoi compagni. Le preferenze andranno
a sommarsi con il punteggio già presente nella casella arancione
del rating di ogni utente.
Ecco l'argomento di questa settimana:
include ('../../lib/connect.x');
include('../../lib/data_code.x');
$date = "$year-$month-$day $hour:$min:$sec";
$date2 = "$year$month$day$hour$min$sec";
if (isset($_GET[quotation_id])){
$result = mysql_query("select * from hunter where quotation_id = '$_GET[quotation_id]'");
} else {
$result = mysql_query("select * from hunter where quotation_scadenza > $date2 order by quotation_scadenza limit 1");
}
$quot_num = mysql_num_rows($result);
if ($quot_num == 0) {
$result = mysql_query("select * from hunter order by quotation_scadenza desc limit 1");
}
$r = mysql_fetch_array($result);
$quotation_id = $r["quotation_id"];
$argomento = $r["argomento"];
$quotation_scadenza = $r["quotation_scadenza"];
$post_time = $quotation_scadenza;
include('../../lib/data_forum_decode.x');
if ($quotation_id == 1) {
$precedenti = "";
$immagine = "
$argomento";
} else {
$quot_id = $quotation_id - 1;
$precedenti = "
Clicca qui o sull'immagine per vedere le quotation precedenti";
$immagine = "
$argomento";
}
if ($date < $quotation_scadenza){
$messaggio = "
QUESTO ARGOMENTO SCADE IL $day " . strtoupper($mese) . " $year ALLE $hour:$min";
$result = mysql_query("select poster_id from hunter_commenti where quotation_id = '$quotation_id' and poster_id = '$_COOKIE[jk_id]'");
$quotation_fatta = mysql_num_rows($result);
if ($quotation_fatta == "1"){
$commento = "
HAI GIÀ INSERITO LA TUA IMMAGINE";
} else {
$commento = "
";
}
} else {
$result = mysql_query("select votes from hunter_voti where quotation_id = '$quotation_id' and voter_id ='$_COOKIE[jk_id]'");
$r = mysql_fetch_array($result);
$votes = $r["votes"];
if ($votes < 3) {
$vota = "1";
}
$messaggio = "
QUESTO ARGOMENTO È SCADUTO IL $day " . strtoupper($mese) . " $year ALLE $hour:$min$precedenti
Sotto a ogni url che trovi nella lista, troverai un link \"Votami\".
Cliccandoci sopra, accorderai la tua preferenza a quell'immagine.
Ricorda che puoi esprimere tre preferenze per argomento, anche tutte e tre alla stessa immagine.
Ecco le immagini per questo argomento:
Ti rimangono
" . (3 - $votes) . " voti da dare
";
$commenti = "
";
$result_c = mysql_query("select * from hunter_commenti where quotation_id = '$quotation_id' order by voti desc");
while ($r_c = mysql_fetch_array($result_c)){
$commento_id = $r_c["commento_id"];
$poster_id = $r_c["poster_id"];
$q_commento = $r_c["commento"];
$q_voti = $r_c["voti"];
$autore = mysql_query("select username from users where id = '$poster_id'");
$r2 = mysql_fetch_array($autore);
$autore_commento = $r2["username"];
$autore_commento = "" . strtoupper($autore_commento) ."";
if ($q_commento == ""){} else {
if ($vota == "1") {
$voto = "Votami";
$autore_commento = "****************";
}
if ($poster_id == "$_COOKIE[jk_id]") {
$voto = "";
}
$commenti = $commenti . "| $autore_commento |  $voto
|
";}
}
$commenti = $commenti . "
";
}
echo"
$immagine
$precedenti
$messaggio$commento$commenti
";
include ('../../lib/cconnect.x'); ?>