"; $la=$dat{8}.$dat{9}.".".$dat{5}.$dat{6}.".".$dat{0}.$dat{1}.$dat{2}.$dat{3}; echo "\n"; echo "\t".$la; echo "
".$img.$filesize."\n"; echo "\t".$titlelink."\n"; echo "\n"; } } function table($data) { echo "

\n"; echo "\n"; echo "\n"; echo "\t\n"; //echo "\t\n"; //echo "\t\n"; //echo "\t\n"; //echo "\t\n"; newlist($data); echo "
Τελευταία Νέα
α/αΑρχείοΤίτλοςΗμερομηνία
\n"; echo "

\n"; } if( isset($_POST["usernm"]) && isset($_POST["passwd"])){ $ok=check($_POST["usernm"],$_POST["passwd"]); //$ok=1; if ($ok=="1") { //session_register("admini","user"); $_SESSION['admini'] ="lalala"; $_SESSION['user'] ="admin"; } } printgeneral("Ομοσπονδία Λειτουργών Μέσης Εκπαίδευσης","3"); if ( isset($ok)){ if ($ok =="1") echo "Έχετε εισαχθεί στο σύστημα ως διαχειριστής!
Προσοχή : Αυτή η σύνδεση σας παρέχει τη δυνατότητα διαχειρισμού της βάσης δεδομένων..."; } echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
 
 
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "
"; $files = db_select("home", "title, introtext"); if(!$files) return; for($j=count($files)-1; $j>=0; $j--){ $f = $files[$j]; } echo "\n"; echo "\n"; echo "\t\n"; echo "\t\n"; echo "
".$f["title"]."
".$f["introtext"]."
\n"; echo "

\n"; echo "
"; ht_rule(); echo "
"; if ( isset($ok)){ $ne=ht_a("homeedit.php", "Τροποίηση Εισαγωγικού Κειμένου Αρχικής Σελίδας", "Τροποίηση Εισαγωγικού Κειμένου Αρχικής Σελίδας"); echo $ne; echo "


<< Πίσω"; } echo "\n
\n"; //---------------------------------------------------------------- NEWS ------------------------------------------------------------- //$query="SELECT title, filename, filetype, filesize, directory, ddate"; //$query.=" FROM announcement"; //$query.=" UNION ALL(SELECT title, filename, filetype, filesize, directory, ddate FROM olmenews)"; //$query.=" ORDER BY ddate DESC LIMIT 0 , 15"; // echo $query; $query="create view viewX(title, filename, filetype, filesize, directory, ddate)"; $query.="as"; $query="SELECT title, filename, filetype, filesize, directory, ddate"; $query.=" FROM announcement"; $query.=" union "; $query.="SELECT title, filename, filetype, filesize, directory, ddate FROM olmenews"; $query.=" WHERE category = '1' or category = '2' or category = '3'or category = '6'"; $query.=" ORDER BY ddate DESC LIMIT 0 , 15"; //echo $query; $res=db_exec($query); if(db_rows($res)!=0){ for($i=0; $i