From 89fd736f36dc89becacc30dc250d7a3e93e9569f Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Mon, 13 Jun 2011 17:54:05 +0200 Subject: #4 xml parsing --- includes/pages/admin_import.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/includes/pages/admin_import.php b/includes/pages/admin_import.php index 8f5ff4ad..781dc15a 100644 --- a/includes/pages/admin_import.php +++ b/includes/pages/admin_import.php @@ -16,13 +16,16 @@ function admin_import() { switch ($step) { case "input" : - $html .= template_render('../templates/admin_import_input.html', array ( - 'link' => page_link_to('admin_import') - )); - - $data = new SimpleXMLElement(file_get_contents('../import/27C3_sample.xcs')); - print_r($data->vcalendar); - break; + $ok = false; + if (!$ok) { + $html .= template_render('../templates/admin_import_input.html', array ( + 'link' => page_link_to('admin_import') + )); + + $data = new SimpleXMLElement(file_get_contents('../import/27C3_sample.xcs')); + print_r($data->vcalendar); + break; + } case "check" : break; -- cgit v1.2.3-70-g09d2