This repository has been archived by the owner on Oct 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
usersettings.php
executable file
·135 lines (112 loc) · 3.32 KB
/
usersettings.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php
session_start();
require("include/functions.php");
$config_file = 'config.php';
if (file_exists($config_file)) {
require("config.php");
}
else {
header("Location: error.php?e=config");
die();
}
require("include/apply_config.php");
$force_loggedin = TRUE;
require("include/check_login.php");
$jquerycss = $_COOKIE["jquerycss"];
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>$app_custom_name - User Settings Page</title>";
require("include/get_css.php");
require("include/get_jqueryui.php");
if ($use_googleanalytics) {
echo $googleanalytics_code;
}
#Execute custom code for head, if set
if (is_file("$absolute_dir/customhead.php")) {
include("customhead.php");
}
?>
</head>
<body>
<!--Blueprint container-->
<div class="container">
<?php
require("include/topbar.php");
?>
<div class="span-24 last">
<hr noshade>
</div>
<div class="span-24 last">
<?php
echo "<h3>User settings</h3>
<form action=\"set_cookies.php\" method=\"post\">
<input type=\"hidden\" name=\"cookie_to_set\" value=\"jquerycss\">
Select a theme for the application:
<select name=\"css\" class=\"ui-state-default ui-corner-all\" style=\"font-size:12px\">\n";
if ($jquerycss=="" || $jquerycss=="cupertino") {
$cupertino_s = "SELECTED";
}
elseif ($jquerycss=="blitzer") {
$blitzer_s = "SELECTED";
}
elseif ($jquerycss=="start") {
$start_s = "SELECTED";
}
elseif ($jquerycss=="humanity") {
$humanity_s = "SELECTED";
}
elseif ($jquerycss=="lightness") {
$lightness_s = "SELECTED";
}
elseif ($jquerycss=="overcast") {
$overcast_s = "SELECTED";
}
elseif ($jquerycss=="peppergrinder") {
$peppergrinder_s = "SELECTED";
}
elseif ($jquerycss=="smoothness") {
$smoothness_s = "SELECTED";
}
elseif ($jquerycss=="sunny") {
$sunny_s = "SELECTED";
}
elseif ($jquerycss=="hotsneaks") {
$hotsneaks_s = "SELECTED";
}
elseif ($jquerycss=="excitebike") {
$excitebike_s = "SELECTED";
}
elseif ($jquerycss=="southstreet") {
$southstreet_s = "SELECTED";
}
elseif ($jquerycss=="blacktie") {
$blacktie_s = "SELECTED";
}
echo " <option value=\"blacktie\" $blacktie_s>Black Tie</option>
<option value=\"blitzer\" $blitzer_s>Blitzer</option>
<option value=\"cupertino\" $cupertino_s>Cupertino (default)</option>
<option value=\"excitebike\" $excitebike_s>Excite Bike</option>
<option value=\"hotsneaks\" $hotsneaks_s>Hot Sneaks</option>
<option value=\"humanity\" $humanity_s>Humanity</option>
<option value=\"lightness\" $lightness_s>Lightness</option>
<option value=\"overcast\" $overcast_s>Overcast</option>
<option value=\"peppergrinder\" $peppergrinder_s>Pepper-Grinder</option>
<option value=\"smoothness\" $smoothness_s>Smoothness</option>
<option value=\"southstreet\" $southstreet_s>South Street</option>
<option value=\"start\" $start_s>Start</option>
<option value=\"sunny\" $sunny_s>Sunny</option>\n";
echo "</select>
<br><br>
<input type=submit value=\" Change theme \" class=\"fg-button ui-state-default ui-corner-all\">
<br><br>";
?>
</div>
<div class="span-24 last">
<?php
require("include/bottom.php");
?>
</div>
</div>
</body>
</html>