header("location:miniadm.index.php"); } if (isset($_GET["category-js"])) { category_js(); exit; } if (isset($_GET["category-tabs"])) { category_tabs(); exit; } if (isset($_GET["category-settings"])) { category_settings(); exit; } if (isset($_POST["category-to-add"])) { category_save(); exit; } if (isset($_GET["category-search"])) { category_search(); exit; } if (isset($_GET["category-items"])) { category_items(); exit; } if (isset($_GET["category-items-search"])) { category_items_search(); exit; } if (isset($_POST["category-items-delete"])) {
$id=$_GET[id]; switch($_GET[todo]) { case "save": if(!$current_user->authenticated) { Header("Content-Type: text/xml; charset=UTF-8"); ob_end_clean(); print "<?xml version='1.0' encoding='UTF-8' ?".">\n"; print "<result>\n"; print " <status status='error' error='not_logged_in' />\n"; print "</result>\n"; return; } $status=category_save($id, file_get_contents("php://input"), $_GET); Header("Content-Type: text/xml; charset=UTF-8"); ob_end_clean(); print "<?xml version='1.0' encoding='UTF-8' ?".">\n"; print "<result>\n"; if($status[status]!==true) { print " <status "; foreach($status as $ek=>$ev) { print " $ek='$ev'"; } print " />\n"; } else {