-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.php
47 lines (45 loc) · 1.59 KB
/
constants.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
define('LOGGED_IN', 'loggedin');
define('USERNAME', 'username');
define('USER_TYPE', 'usertype');
define('ADMIN', 'admin');
define('TEACHER', 'teacher');
define('ORGANISATION', 'organisation');
define('PROFILE_GET_USERNAME', 'username');
define('SENDER', 'sender');
define('DESTINATION', 'destination');
define('ACTION', 'action');
define('CONNECT', 'connect');
define('FOLLOW', 'follow');
define('BLOCK', 'block');
define('ORGANISATION_INVITE', 'organisation_invite');
define('INVITATION_ID', 'invitation_id');
define('ACTION_PARAM', 'action_param');
define('REMOVE', 'remove');
define('ADD', 'add');
define('ACCEPT', 'accept');
define('EDIT_TYPE', 'edit_type');
define('EDIT_FORM', 'edit_form');
define('UPDATE_PROFILE', 'update_profile');
define('UPDATE_PASSWORD', 'update_password');
define('UPDATE_VACANCY', 'update_vacancy');
define('DELETE_VACANCY', 'delete_vacancy');
define('JOIN_ORGANISATION', 'join_organisation');
define('EDUCATION_HISTORY', 'education_history');
define('DELETE_EDUCATION', 'delete_education');
define('ADD_EMPLOYMENT_HISTORY', 'add_employment_history');
define('REMOVE_EMPLOYMENT_HISTORY', 'remove_employment_history');
define('ADD_SKILLS', 'add_skills');
define('REMOVE_SKILL', 'remove_skill');
define('DELETE_ACCOUNT', 'delete_account');
define('DEFAULT_TEACHER_PROFILE_PIC', 'images/teacher_profile.png');
define('DEFAULT_ORG_PROFILE_PIC', 'images/org.png');
/**
* Format a date object
*/
function formatDate($date) {
$date = strtotime($date);
$date = date("d/m/Y", $date);
return $date;
}
?>