REGOLAMENTO
Scrivi una o più strofe in rima per commentare la foto della settimana prima della scadenza. Dopo la scadenza avrai la possibilità di votare tre composizioni 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'immagine di questa settimana:
$date2 order by quotation_scadenza limit 1");
}
$quot_num = mysql_num_rows($result);
if ($quot_num == 0) {
$result = mysql_query("select quotation_id, quotation_scadenza from chamber order by quotation_scadenza desc limit 1");
}
$r = mysql_fetch_array($result);
$quotation_id = $r["quotation_id"];
$quotation_scadenza = $r["quotation_scadenza"];
$post_time = $quotation_scadenza;
include('../../lib/data_forum_decode.x');
if ($quotation_id == 1) {
$precedenti = "";
$immagine = " ";
} else {
$quot_id = $quotation_id - 1;
$precedenti = "Clicca qui o sull'immagine per vedere le quotation precedenti";
$immagine = " ";
}
if ($date < $quotation_scadenza){
$messaggio = "QUESTA COMPOSIZIONE SCADE IL $day " . strtoupper($mese) . " $year ALLE $hour:$min
";
$result = mysql_query("select poster_id from chamber_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À INVIATO LA COMPOSIZIONE ";
} else {
$commento = "
";
}
} else {
$result = mysql_query("select votes from chamber_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 = "QUESTA COMPOSIZIONE È SCADUTA IL $day " . strtoupper($mese) . " $year ALLE $hour:$min
$precedenti
Sotto a ogni composizione che trovi nella lista, troverai un link \"Votami\". Cliccandoci sopra, accorderai la tua preferenza a quella composizione. Ricorda che puoi esprimere tre preferenze per Rhyme Chamber, anche tutte e tre alla stessa composizione.
Ecco le composizioni per questa Rhyme Chamber:
Ti rimangono " . (3 - $votes) . " voti da dare
";
$commenti = "";
$result_c = mysql_query("select * from chamber_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"];
$q_commento = nl2br($q_commento);
$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 | $q_commento $voto
| ";}
}
$commenti = $commenti . " ";
}
echo"$immagine
$precedenti
$messaggio$commento$commenti ";
include ('../../lib/cconnect.x'); ?>
|