$action";
break;
case "delete":
switch($result){
case "forbidden":
$result = "
Not allowed to delete this
";
break;
case "ok":
$result = "Delete sucessful
";
break;
case "error":
$result = "Delete failed
";
break;
}
break;
case "view":
switch($result){
case "forbidden":
$result = "Not allowed to see this
";
break;
}
break;
case "download":
switch($result){
case "forbidden":
$result = "Not allowed to download this
";
break;
case "404":
$result = "The Resource was not found on the Server
";
break;
case "error":
$result = "Download failed
";
break;
}
break;
case "modify":
switch($result){
case "forbidden":
$result = "Not allowed to modify this
";
break;
case "ok":
$result = "Modify sucessful
";
break;
case "error":
$result = "Modify failed
";
break;
}
break;
case "create":
switch($result){
case "forbidden":
$result = "Not allowed to create this
";
break;
case "ok":
$result = "Creation sucessful
";
break;
case "error":
$result = "Creation failed
";
break;
}
break;
case "update":
switch($result){
case "forbidden":
$result = "Not allowed to update this
";
break;
case "404":
$result = "The Resource was not found on the specified path
";
break;
case "ok":
$result = "Update sucessful
";
break;
case "error":
$result = "Update failed
";
break;
}
break;
case "serial":
switch($result){
case "noserial":
$result = "Your PreBoot is broken, please download a new Version or contact a PBS Administrator
";
break;
}
break;
case "link":
switch($result){
case "forbidden":
$result = "Not allowed to link this
";
break;
case "ok":
$result = "Link sucessful
";
break;
case "error":
$result = "Link failed
";
break;
}
break;
case "unlink":
switch($result){
case "forbidden":
$result = "Not allowed to unlink this
";
break;
case "ok":
$result = "Unlink sucessful
";
break;
case "error":
$result = "Unlink failed
";
break;
}
break;
case "json":
switch($result){
default:{
$result = unserialize($result);
$result2 = "";
$result2 .= "
";
$result2 .= "
";
$result = $result2;
}
break;
case "forbidden":
$result = "Not allowed to display ressources
";
break;
case "error":
$result = "Displaying ressources failed
";
break;
}
break;
}
return $result;
}
}
?>