#ini_set('display_errors','On'); #error_reporting(E_ALL); header('Content-Type: text/html; charset=utf-8'); define( '_INSIDE_ECCBR08', 1 ); require_once('includes/misc.inc.php'); require_once('includes/smallTemplate.class.php'); require_once('includes/XmlProxy.class.php'); $default_template = new Template('templates/default.tpl'); $headnavigation = new Template('templates/navigation.head.tpl'); $sidebarnavigation = new Template('templates/navigation.sidebar.tpl'); $task = $_GET['task']; $task = ereg_replace("[^A-Za-z0-9]", "", $task ); if ($task == "") $task = "welcome"; $act = $_GET['act']; $act = ereg_replace("[^A-Za-z0-9]", "", $act ); $xmloutput = new XmlProxy('xml/headnavigation.xml'); $headnavipoints = $xmloutput->xpath('/TopNavigation/Entry', array("Entry")); $headnavigation->setContent("HEADNAVI", $headnavipoints); $headnavi = $headnavigation->vorlage; $valid = false; foreach ( $headnavipoints as $headnavipoint ) if ( $headnavipoint['Key'] == $task ) $valid = true; if (!$valid) exit; if ( $act !== '' ) $content_tpl_file = 'templates/content.' . $task . '.' . $act .'.tpl'; else $content_tpl_file = 'templates/content.' . $task . '.tpl'; switch($task){ case "callforpapers": case "submission": case "programme": case "ccc": switch($act){ case "3": $ralph = create_email_image('Ralph Traphöner', 'Ralph.Traphoener@empolis.com'); $load = new Template($content_tpl_file); $load->setContent('MAIL', $ralph); $content = $load->vorlage; break; case "1": $load = new Template($content_tpl_file); $gotmail = ""; if($_POST['subscribeMail']){ $gotmail = subscribe($_POST['subscribeMail']); } $load->setContent('SUCCESS', $gotmail); $content = $load->vorlage; break; case "9": $load = new Template($content_tpl_file); $sentmail = ""; if($_POST['replyMail'] && $_POST['message']){ $mail = $_POST['replyMail']; $sub = utf8_decode($_POST['subject']); $msg = utf8_decode($_POST['message']); $sentmail = contact('ccc-org2008@uni-trier.de', $mail, $sub, $msg); } $load->setContent('CONTACT_EMAIL', create_email_image('ccc-org2008@uni-trier.de', 'or via: ccc-org2008@uni-trier.de')); $load->setContent('SUCCESS', $sentmail); $content = $load->vorlage; break; case "11": $ccc = create_email_image('ccc-org2008@uni-trier.de', 'ccc-org2008@uni-trier.de'); $load = new Template($content_tpl_file); $load->setContent('MAIL', $ccc); $content = $load->vorlage; break; default: $load = new Template($content_tpl_file); $content = $load->vorlage; } break; case "industryday": case "workshops": $load = new Template($content_tpl_file); $content = $load->vorlage; break; case "people": $peoplexml = new XmlProxy('xml/people.xml'); $peoplegroups = $peoplexml->xpath('/data/peoples/group', array("group", "person")); $groups_string = ''; foreach ( $peoplegroups as $group ) { $group_template = new Template('templates/element.peoplegroup.tpl'); $group_template->setContent('Title', $group['title']); foreach ( $group['person'] as $key => $person ) if ( isset($person['email']) ) $group['person'][$key]['email'] = '