summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-13 17:54:05 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-13 17:54:05 +0200
commit89fd736f36dc89becacc30dc250d7a3e93e9569f (patch)
treeb5e85e18f028e43425dc5758f6921b6e36913ca2 /includes/pages
parentdafbb0c10ef91e36506c4361fa4a44013abd4077 (diff)
#4 xml parsing
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/admin_import.php17
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;