<?php /*************************************************************************** * copyright : (C) 2001-2003 Advanced Internet Designs Inc. * email : forum@prohost.org * $Id: rdf.php.t,v 1.5 2004/05/24 17:23:55 iliaa Exp $ * * 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; either version 2 of the License, or * (at your option) any later version. ***************************************************************************/ require './GLOBALS.php'; fud_egw('', 1); fud_use('err.inc'); /* before we go on, we need to do some very basic activation checks */ if (!($FUD_OPT_1 & 1)) { fud_use('errmsg.inc'); exit($DISABLED_REASON . __fud_ecore_adm_login_msg); } if (!$FORUM_TITLE && @file_exists($WWW_ROOT_DISK . 'install.php')) { fud_use('errmsg.inc'); exit(__fud_e_install_script_present_error); } $mode = isset($_GET['mode']) && in_array($_GET['mode'], array('m', 't', 'u')) ? $_GET['mode'] : 'm'; $basic = isset($_GET['basic']); function fud_sql_error_handler($query, $error_string, $error_number, $server_version) { if (db_locked()) { if (__dbtype__ == 'mysql' && $query != 'UNLOCK TABLES' || __dbtype__ == 'pgsql' && $query != 'COMMIT WORK') { db_unlock();
* Free Software Foundation; either version 2 of the License, or * (at your option) any later version. ***************************************************************************/ function format_regex(&$regex) { if (empty($regex)) { return; } $s = strpos($regex, '/') + 1; $e = strrpos($regex, '/'); $ret = substr($regex, $e + 1); $regex = substr($regex, $s, $e - $s); return $ret; } require './GLOBALS.php'; fud_egw(); fud_use('adm.inc', true); fud_use('widgets.inc', true); fud_use('mlist.inc', true); $tbl = $GLOBALS['DBHOST_TBL_PREFIX']; $edit = isset($_GET['edit']) ? (int) $_GET['edit'] : (isset($_POST['edit']) ? (int) $_POST['edit'] : ''); if (isset($_POST['ml_forum_id'])) { $mlist = new fud_mlist(); if ($edit) { $mlist->sync($edit); $edit = ''; } else { $mlist->add(); } } else { if (isset($_GET['del'])) {
if (isset($_GET['t'])) { $t = $_GET['t']; } else { if (isset($_POST['t'])) { $t = $_POST['t']; } else { $t = 'index'; } } if (preg_match('/[^A-Za-z0-9_]/', $t)) { $t = 'index'; } if ($FUD_OPT_2 & 16384 && $t != 'getfile') { ob_start(array('ob_gzhandler', (int) $PHP_COMPRESSION_LEVEL)); } fud_egw($t, 0); function fud_sql_error_handler($query, $error_string, $error_number, $server_version) { if (db_locked()) { if (__dbtype__ == 'mysql' && $query != 'UNLOCK TABLES' || __dbtype__ == 'pgsql' && $query != 'COMMIT WORK') { db_unlock(); } } if (function_exists("debug_backtrace")) { $tmp = debug_backtrace(); $_SERVER['PATH_TRANSLATED'] = ''; foreach ($tmp as $v) { $_SERVER['PATH_TRANSLATED'] .= "{$v['file']}:{$v['line']}<br />\n"; } } else { if (!isset($_SERVER['PATH_TRANSLATED'])) {