This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ?> 'committee_main.php', 'SFIAB Configuration' => 'config/index.php') ); if($_POST['action']=="save") { echo happy(i18n("Page text successfully saved")); echo "no, actually its not saving yet, im not done!
"; } if($_GET['filename'] || $_GET['id'] || $_GET['action']=="create") { echo "<< Back to file list
\n"; echo "
"; echo "\n"; if($_GET['filename']) echo "textname)."\">\n"; else echo "Choose filename to create: /web/.html
"; echo ""; foreach($config['languages'] AS $lang=>$langname) { echo "\n"; echo "\n"; } echo "
"; echo ""; echo "\n"; echo "
"; $q=mysql_query("SELECT * FROM cms WHERE filename='".mysql_escape_string($_GET['filename'])."' AND lang='$lang' ORDER BY dt DESC LIMIT 1"); if($r=mysql_fetch_object($q)) { if($r->dt=="0000-00-00 00:00:00" || !$r->dt) $dt="Never"; else $dt=$r->dt; echo "".htmlspecialchars($_GET['filename'])." - $langname    ".i18n("Last updated").": $dt
"; } else { echo "$langname
"; //    ".i18n("Last updated").": $dt
"; } echo "
"; require_once("../fckeditor/fckeditor.php"); $oFCKeditor = new FCKeditor("text_$lang") ; $oFCKeditor->BasePath = "../fckeditor/"; $oFCKeditor->Value = $r->text; $oFCKeditor->Width="100%"; $oFCKeditor->Height=400; $oFCKeditor->Create() ; echo "
\n"; echo "
"; echo ""; if($_GET['historylimit']) $historylimit=$_GET['historylimit']; else $historylimit=30; echo "\n"; $q=mysql_query("SELECT id,dt FROM cms WHERE filename='".$_GET['filename']."' ORDER BY dt DESC LIMIT $historylimit"); if(mysql_num_rows($q)) { echo "\n"; } else echo "\n"; echo "
".i18n("File History")."
id\" style=\"font-size: 0.75em;\">$r->dt
No History
\n"; echo "

"; echo "
"; echo "\n"; echo ""; echo ""; echo "
"; echo "\n"; echo "
\n"; echo "
\n"; echo "
\n"; } else { echo i18n("Choose a web page filename to edit"); echo ""; $q=mysql_query("SELECT DISTINCT(filename) AS filename, dt FROM cms ORDER BY filename"); echo ""; while($r=mysql_fetch_object($q)) { echo ""; if($r->dt=="0000-00-00 00:00:00") $dt="Never"; else $dt=$r->dt; echo ""; echo ""; } echo "
".i18n("Filename")."".i18n("Last Update")."
filename)."\">/web/$r->filename$dt
"; } send_footer(); ?>