-
Notifications
You must be signed in to change notification settings - Fork 15
/
message.php
executable file
·50 lines (38 loc) · 1.35 KB
/
message.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
48
49
50
<?php
define('ROOT_PATH', dirname(__FILE__));
require_once ROOT_PATH . '/lib/common/CommonFunctions.php';
require_once ROOT_PATH . '/lib/common/Language.php';
$styleSheet = CommonFunctions::getTheme();
$case = isset($_GET['case']) ? htmlentities($_GET['case']) : null;
$type = isset($_GET['type']) ? htmlentities($_GET['type']) : 'notice';
$lang = new Language();
require_once ROOT_PATH . '/language/default/lang_default_full.php';
require_once($lang->getLangPath("full.php"));
$typeString = ucfirst($type);
$caseString = str_replace('-', ' ', $case);
$caseString = ucwords($caseString);
$caseString = str_replace(' ', '', $caseString);
$langVar = "lang_{$typeString}_{$caseString}";
$message = isset($$langVar) ? $$langVar : '';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>OrangeHRM</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="themes/<?php echo $styleSheet;?>/css/style.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
body {
margin:10px 10px 10px 10px;
}
span#message {
margin:10px 10px 10px 10px;
font-size:14px;
font-weight:bold;
}
</style>
</head>
<body>
<span id="message" class="<?php echo $type; ?>"><?php echo $message; ?></span>
</body>
</html>