=Gyscyxcsadf**sadq+*T/|SjmB!"; $GLOBALS['rdt_design']['point'] = ''; $GLOBALS['rdt_design']['up'] = ''; $GLOBALS['rdt_design']['down'] = ''; $GLOBALS['rdt_design']['left'] = ''; $GLOBALS['rdt_design']['right'] = ''; $GLOBALS['rdt_design']['locked'] = ''; $GLOBALS['rdt_design']['nix'] = ''; $GLOBALS['rdt_design']['plus'] = ''; $GLOBALS['rdt_design']['minus'] = ''; $GLOBALS['rdt_design']['top'] = ''; $GLOBALS['rdt_design']['bottom'] = ''; $GLOBALS['rdt_design']['begin'] = ''; $GLOBALS['rdt_design']['end'] = ''; $GLOBALS['rdt_admin'] = "rdt_admin"; $GLOBALS['rdt_config'] = "rdt_config"; $GLOBALS['rdt_tpl'] = "rdt_tpl"; $GLOBALS['rdt_configtable'] = "rdt_configtable"; $GLOBALS['rdt_configacl'] = "rdt_configacl"; $GLOBALS['rdt_configfile'] = "rdt_configfile"; $GLOBALS['rdt_configmap'] = "rdt_configmap"; $GLOBALS['rdt_lock'] = "rdt_lock"; $GLOBALS['rdt_log'] = "rdt_log"; $GLOBALS['rdt_session'] = "rdt_session"; $GLOBALS['rdt_safe_table'] = "rdt_safe"; $GLOBALS['rdt_access'] = "rdt_access"; $GLOBALS['rdt_acl'] = "rdt_acl"; $GLOBALS['rdt_level'] = "rdt_level"; $GLOBALS['rdt_configsite'] = "rdt_configsite"; $GLOBALS['rdt_site'] = ""; $GLOBALS['rdt_rank'] = "rdt_rank"; $GLOBALS['rdt_header'] = ""; // is printed after $GLOBALS['rdt_footer'] = ""; // is printed before $GLOBALS['rdt_control']['access'] = array(); // accessing tables r/w $GLOBALS['rdt_control']['data'] = array(); // controlled tables $GLOBALS['rdt_safe'] = array(); $GLOBALS['rdt_todo'] = array( // todo config table => 'rdt_todo', field => 'active', activated => 'Y', pending => 'N', states => array( N => 'Deaktivieren', Y => 'Aktivieren', ), ); $GLOBALS['rdt_administer'] = array( 'rdt_add' => array('add','insert'), 'rdt_list' => array('list'), 'rdt_search' => array('search','searchmap','hit','hitmap'), 'rdt_export' => array('export','hitexport'), 'rdt_show' => array('show'), 'rdt_delete' => array('delete'), 'rdt_edit' => array('edit','update') ); $GLOBALS['admin_lang'] = 'de'; include realpath(dirname(__FILE__)."/../lib/lang_".$GLOBALS['admin_lang'].".php"); include realpath(dirname(__FILE__)."/../lib/rdt_func.php"); include realpath(dirname(__FILE__)."/../lib/rdt_auth.class.php"); function rdt_dbconnect() { $dbh = mysql_pconnect("localhost", "cdr_tcdf", "wc9Qc~87"); $db = mysql_select_db("cdr_tcdf", $dbh); $sql = "SET NAMES 'utf8'"; $result = mysql_query($sql); $sql = "SET CHARACTER SET utf8"; $result = mysql_query($sql); $sql = "SET collation_connection = utf8_unicode_ci"; $result = mysql_query($sql); } rdt_dbconnect(); include realpath(dirname(__FILE__)."/../lib/utf8.php"); include realpath(dirname(__FILE__)."/../lib/site.class.php"); include realpath(dirname(__FILE__)."/../lib/language.class.php"); include realpath(dirname(__FILE__)."/../lib/navigation.class.php"); include realpath(dirname(__FILE__)."/../lib/page.class.php"); include realpath(dirname(__FILE__)."/../lib/module.class.php"); include realpath(dirname(__FILE__)."/../lib/rdt_main.php"); include realpath(dirname(__FILE__)."/../lib/gmkey.php"); /* CHECK */ if (preg_match("/^[a-z]+$/",$_REQUEST['rdtarea'])) { $rdtarea = $_REQUEST['rdtarea']; } if (preg_match("/^[a-z]+$/",$_REQUEST['rdt_do'])) { $rdt_do = $_REQUEST['rdt_do']; } if (preg_match("/^[a-z0-9\-\_\.]+$/i",$_REQUEST['table'])) { $GLOBALS['rdt_table'] = $table = $_REQUEST['table']; } if (preg_match("/^[0-9]+$/",$_REQUEST['rdt_config_id'])) { $GLOBALS['rdt_config_id'] = $rdt_config_id = $_REQUEST['rdt_config_id']; } if (preg_match("/^[0-9]+$/",$_REQUEST['id'])) { $id = $_REQUEST['id']; } if (preg_match("/^1$/",$_REQUEST['rdt_onload'])) { $rdt_onload = $_REQUEST['rdt_onload']; } if ($_REQUEST['rdt_jscript']) { $rdt_jscript = $_REQUEST['rdt_jscript']; } if (preg_match("/^[0-9]+$/",$_REQUEST['changesite'])) { $changesite = $_REQUEST['changesite']; } if (preg_match("/^[0-9]+$/",$_REQUEST['nav'])) { $nav = $_REQUEST['nav']; } if (preg_match("/^[0-9]+$/",$_REQUEST['form_element'])) { $form_element = $_REQUEST['form_element']; } if (preg_match("/^[0-9]+$/",$_REQUEST['rdt_map'])) { $rdt_map = $_REQUEST['rdt_map']; } if (preg_match("/^[a-z]{2}$/",$_REQUEST['lang'])) { $lang = $_REQUEST['lang']; } ?> getsite($_SERVER['HTTP_HOST'])) { _notfound(); } $GLOBALS['rdt_site'] = $GLOBALS['Site'] = new Site($sid); if (!$page = $GLOBALS['Site']->Navigation->get_page_by_uri($_SERVER['REQUEST_URI'])) { _notfound(); } $GLOBALS['Page'] = new Page($page); include ("../lib/session.php"); $GLOBALS['htdig'] = 0; /* $GLOBALS['sidebar'] = 0; */ /* if (preg_match("/htdig/i",$_SERVER['HTTP_USER_AGENT']) || $_GET['htdig']) { $GLOBALS['htdig'] = 1; } */ if ($GLOBALS['Site']->Language->data['locale']) { //$loc = "de_DE.UTF-8"; $loc = $GLOBALS['Site']->Language->data['locale'].'.'.$GLOBALS['Site']->Language->data['charset']; putenv("LANG=$loc"); $loc = setlocale(LC_ALL, $loc); $language = $GLOBALS['Site']->Language->data['locale']; setlocale(LC_ALL,$language.'.UTF-8'); putenv('LANG='.$language); putenv('LANGUAGE='.$language); $domain = 'messages'; bindtextdomain($domain, $GLOBALS['uploadpath']."locale"); textdomain(textdomain(NULL)); textdomain($domain); bind_textdomain_codeset($domain, 'UTF-8'); } ?>