forked from Business/BinStack
		
	
		
			
				
	
	
		
			89 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			89 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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"
 | |
|     ],
 | |
|     "no_edit_permission" => [
 | |
|         "string" => "no edit permission",
 | |
|         "type" => "danger"
 | |
|     ],
 | |
|     "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"
 | |
|     ],
 | |
|     "field_nan" => [
 | |
|         "string" => "field not a number",
 | |
|         "type" => "danger"
 | |
|     ],
 | |
|     "missing_name" => [
 | |
|         "string" => "missing name",
 | |
|         "type" => "danger"
 | |
|     ],
 | |
|     "use_the_drop_luke" => [
 | |
|         "string" => "use the dropdowns",
 | |
|         "type" => "danger"
 | |
|     ],
 | |
|     "noloccat" => [
 | |
|         "string" => "make categories and locations",
 | |
|         "type" => "info"
 | |
|     ]
 | |
| ]);
 |