|
|
|
<?php
|
|
|
|
|
|
|
|
define("MESSAGES", [
|
|
|
|
"invalid_parameters" => [
|
|
|
|
"string" => "invalid parameters",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"account_state_error" => [
|
|
|
|
"string" => "account state error",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"404_error" => [
|
|
|
|
"string" => "page not found",
|
|
|
|
"type" => "info"
|
|
|
|
],
|
|
|
|
"invalid_itemid" => [
|
|
|
|
"string" => "invalid itemid",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"invalid_catid" => [
|
|
|
|
"string" => "invalid catid",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"invalid_locid" => [
|
|
|
|
"string" => "invalid locid",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"invalid_category" => [
|
|
|
|
"string" => "invalid category",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"invalid_location" => [
|
|
|
|
"string" => "invalid location",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"item_saved" => [
|
|
|
|
"string" => "item saved",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"item_deleted" => [
|
|
|
|
"string" => "item deleted",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"category_saved" => [
|
|
|
|
"string" => "category saved",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"category_deleted" => [
|
|
|
|
"string" => "category deleted",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"category_in_use" => [
|
|
|
|
"string" => "category in use",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"location_saved" => [
|
|
|
|
"string" => "location saved",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"location_deleted" => [
|
|
|
|
"string" => "location deleted",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"location_in_use" => [
|
|
|
|
"string" => "location in use",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
]);
|