|
|
|
<?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"
|
|
|
|
],
|
|
|
|
"already_in" => [
|
|
|
|
"string" => "already punched in",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"already_out" => [
|
|
|
|
"string" => "already punched out",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"punched_in" => [
|
|
|
|
"string" => "punched in",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"punched_out" => [
|
|
|
|
"string" => "punched out",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"no_permission" => [
|
|
|
|
"string" => "missing permission",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"shift_added" => [
|
|
|
|
"string" => "shift added",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"invalid_time" => [
|
|
|
|
"string" => "invalid time format",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"shift_saved" => [
|
|
|
|
"string" => "shift saved",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"shift_name_used" => [
|
|
|
|
"string" => "shift name used",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"invalid_shiftid" => [
|
|
|
|
"string" => "invalid shiftid",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"you_arent_my_supervisor" => [
|
|
|
|
"string" => "you are not the manager of user",
|
|
|
|
"type" => "danger"
|
|
|
|
],
|
|
|
|
"shift_assigned" => [
|
|
|
|
"string" => "shift assigned",
|
|
|
|
"type" => "success"
|
|
|
|
],
|
|
|
|
"not_assigned_to_work" => [
|
|
|
|
"string" => "not assigned to work now",
|
|
|
|
"type" => "danger"
|
|
|
|
]
|
|
|
|
]);
|