include("/home/sites/site8/web/config_local.php");
include("/home/sites/site8/web/ADOdb/adodb.inc.php");
include("/home/sites/site8/web/global_funcs.php");
$dbuname = "otf_comm";
$dbpass = "jumanji";
$dbname = "otf_comm";
connectdb();
if($id == "") {
$res1 = $db->Execute("SELECT * FROM tribune_current");
$row1 = $res1->fields;
$res = $db->Execute("SELECT * FROM tribune WHERE id='$row1[edition]'");
$row = $res->fields;
$id=$row[id];
$idprev = $row[id]-1;
$idnext = $row[id]+1;
} else {
$res = $db->Execute("SELECT * FROM tribune WHERE id='$id'");
$row = $res->fields;
$idprev = $id-1;
$idnext = $id+1;
}
$res2 = $db->Execute("SELECT COUNT(*) AS num_ed FROM tribune");
$num = $res2->fields;
$message = str_replace("\n", '
', $row[message]);
?>
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||