$displayName = $xpath->query("/rsp/profile/displayName")->item(0)->textContent; $identifier = $xpath->query('/rsp/profile/identifier')->item(0)->textContent; $email = $xpath->query('/rsp/profile/email')->item(0)->textContent; $profile = $xpath->query("/rsp/profile/*"); foreach($profile as $item) { arr($item->nodeName); arr($item->textContent); } break; case "manage_waitinglist": $smarty_q->assign("h1", ""); $smarty_q->assign("fake_h1", _("Quotation waitinglist")); $smarty_q->assign ("quotes", quote::get_from_waitinglist()); arr(quote::get_from_waitinglist()); break; // A temporary solution to activate quotations case "manage_not_active_quotations": acl(); if (isset($_POST["manage_not_active_quotations"])) { quote::set_random_quote($_POST); } $smarty_q->assign("h1", ""); $smarty_q->assign("fake_h1", _("Activate random quote")); $smarty_q->assign("categories", category::get_categories()); $smarty_q->assign("manage_not_active_quotations", true); $quotes_temp = quote::get_random_quote(); //arr($quotes_temp); $smarty_q->assign("id", $quotes_temp[0]["id"]);