Menu

[2f0053]: / SAVEappSettings.php  Maximize  Restore  History

Download this file

97 lines (93 with data), 4.1 kB

 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<title>HRCloud2 | Application Settings</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<script>
function goBack() {
window.history.back(); }
</script>
<div style="margin-left:15px;">
<?php
// / The follwoing code checks if the sanitizeCore.php file exists and
// / terminates if it does not.
if (!file_exists('/var/www/html/HRProprietary/HRCloud2/sanitizeCore.php')) {
echo nl2br('</head><body>ERROR!!! HRC2SAS10, Cannot process the HRCloud2 Sanitization Core file (sanitizeCore.php)!'."\n".'</body></html>');
die (); }
else {
require('/var/www/html/HRProprietary/HRCloud2/sanitizeCore.php'); }
// / The follwoing code checks if the securityCore.php file exists and
// / terminates if it does not.
if (!file_exists('/var/www/html/HRProprietary/HRCloud2/securityCore.php')) {
echo nl2br('</head><body>ERROR!!! HRC2SAS10, Cannot process the HRCloud2 Secutity Core file (securityCore.php)!'."\n".'</body></html>');
die (); }
else {
require('/var/www/html/HRProprietary/HRCloud2/securityCore.php'); }
// / The follwoing code checks if the commonCore.php file exists and
// / terminates if it does not.
if (!file_exists('/var/www/html/HRProprietary/HRCloud2/commonCore.php')) {
echo nl2br('</head><body>ERROR!!! HRC2SAS19, Cannot process the HRCloud2 Common Core file (commonCore.php)!'."\n".'</body></html>');
die (); }
else {
require('/var/www/html/HRProprietary/HRCloud2/commonCore.php'); } ?>
<br>
<?php
if (isset($_POST['Save'])) {
if (isset($_POST['NEWColorScheme'])) {
$NEWColorScheme = $_POST['NEWColorScheme'];
$txt = ('$ColorScheme = \''.$NEWColorScheme.'\';') ;
$WriteSetting = file_put_contents($UserConfig, $txt.PHP_EOL , FILE_APPEND);
echo nl2br('Saved New Color-Scheme Settings.'."\n"); }
if (isset($_POST['NEWShowHRAI'])) {
$NEWShowHRAI = $_POST['NEWShowHRAI'];
$txt = ('$ShowHRAI = \''.$NEWShowHRAI.'\';') ;
$WriteSetting = file_put_contents($UserConfig, $txt.PHP_EOL , FILE_APPEND);
echo nl2br('Saved New HRAI Settings.'."\n"); }
if (isset($_POST['NEWVirusScan'])) {
$NEWVirusScan = $_POST['NEWVirusScan'];
$txt = ('$VirusScan = \''.$NEWVirusScan.'\';') ;
$WriteSetting = file_put_contents($UserConfig, $txt.PHP_EOL , FILE_APPEND);
echo nl2br('Saved New Anti-Virus Settings.'."\n"); }
if (isset($_POST['NEWWordPressIntegration'])) {
$NEWVirusScan = $_POST['NEWWordPressIntegration'];
$txt = ('$WordPressIntegration = \''.$NEWWordPressIntegration.'\';') ;
$WriteSetting = file_put_contents($UserConfig, $txt.PHP_EOL , FILE_APPEND);
echo nl2br('Saved New WordPress Integration Settings.'."\n"); }
?>
<hr />
<?php
echo nl2br("\n".'All settings were saved & applied on '.$Time.'.'."\n");
sleep(3);
?><div align="center">
<br>
<form target ="_parent" action="settings.php" method="get"><button id='button' name='home' value="1">Settings</button></form>
<br>
<form target ="_parent" action="index1.php" method="get"><button id='button' name='home' value="1">Home</button></form>
</div>
<?php }
if (isset($_POST['LoadDefaults'])) {
require('config.php');
$NEWColorScheme = $ColorScheme;
$txt = ('$ColorScheme = \''.$NEWColorScheme.'\';') ;
$WriteSetting = file_put_contents($UserConfig, $txt.PHP_EOL , FILE_APPEND);
$NEWVirusScan = $VirusScan;
$txt = ('$VirusScan = \''.$NEWVirusScan.'\';') ;
$WriteSetting = file_put_contents($UserConfig, $txt.PHP_EOL , FILE_APPEND);
?><div align="center"><?php echo nl2br("\n".'Reset "Application Settings" to default values on '.$Time.'.'."\n"); } ?></div>
<br>
<hr />
<?php
// / The follwoing code checks if the commonCore.php file exists and
// / terminates if it does not.
if (!file_exists('/var/www/html/HRProprietary/HRCloud2/compatibilityCore.php')) {
echo nl2br('</head><body>ERROR!!! HRC2SAS41, Cannot process the HRCloud2 Compatibility Core file (compatibilityCore.php)!'."\n".'</body></html>');
die (); }
else {
require('/var/www/html/HRProprietary/HRCloud2/compatibilityCore.php'); }
?>
<div id='end' name='end' class='end'></div>
</div>
</body>
</html>