diff options
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/admin_import.php | 17 |
1 files 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; |