YaWK  24.1
Yet another WebKit
userpage.php
Go to the documentation of this file.
1 <?php
2 // check if language is set
3 if (!isset($language) || (!isset($lang)))
4 { // inject (add) language tags to core $lang array
5  $lang = \YAWK\language::inject(@$lang, "../system/plugins/userpage/language/");
6 }
7 // TEMPLATE WRAPPER - HEADER & breadcrumbs
8 echo "
9  <!-- Content Wrapper. Contains page content -->
10  <div class=\"content-wrapper\" id=\"content-FX\">
11  <!-- Content Header (Page header) -->
12  <section class=\"content-header\">";
13 /* draw Title on top */
14 echo \YAWK\backend::getTitle($lang['USERPAGE'], $lang['USERPAGE_SUBTEXT']);
15 echo"<ol class=\"breadcrumb\">
16  <li><a href=\"index.php\" title=\"$lang[DASHBOARD]\"><i class=\"fa fa-dashboard\"></i> $lang[DASHBOARD]</a></li>
17  <li><a href=\"index.php?page=plugins\" title=\"$lang[PLUGINS]\"> $lang[PLUGINS]</a></li>
18  <li class=\"active\"><a href=\"index.php?plugin=userpage\" title=\"$lang[USERPAGE]\"> $lang[USERPAGE]</a></li>
19  </ol>
20  </section>
21  <!-- Main content -->
22  <section class=\"content\">";
23 /* page content start here */
24 
25 if (isset($_POST['sent'])){
26  // check if form is sent
27  if ($_POST['sent'] === '1') {
28 
29  if (isset($_POST['helptext'])) {
30  \YAWK\settings::setLongSetting($db, "userpage_helptext", $_POST['helptext']);
31  }
32  if (isset($_POST['hellotext'])) {
33  \YAWK\settings::setSetting($db, "userpage_hellotext", $_POST['hellotext'], $lang);
34  }
35  if (isset($_POST['hellotextsub'])) {
36  \YAWK\settings::setSetting($db, "userpage_hellotextsub", $_POST['hellotextsub'], $lang);
37  }
38  if (isset($_POST['hello'])) {
39  \YAWK\settings::setSetting($db, "userpage_hello", $_POST['hello'], $lang);
40  }
41  if (isset($_POST['hellogroup'])) {
42  \YAWK\settings::setSetting($db, "userpage_hellogroup", $_POST['hellogroup'], $lang);
43  }
44  if (isset($_POST['settings'])) {
45  \YAWK\settings::setSetting($db, "userpage_settings", $_POST['settings'], $lang);
46  }
47  if (isset($_POST['help'])) {
48  \YAWK\settings::setSetting($db, "userpage_help", $_POST['help'], $lang);
49  }
50  if (isset($_POST['profile'])) {
51  \YAWK\settings::setSetting($db, "userpage_profile", $_POST['profile'], $lang);
52  }
53  if (isset($_POST['admin'])) {
54  \YAWK\settings::setSetting($db, "userpage_admin", $_POST['admin'], $lang);
55  }
56  if (isset($_POST['dashboard'])) {
57  \YAWK\settings::setSetting($db, "userpage_dashboard", $_POST['dashboard'], $lang);
58  }
59  if (isset($_POST['messageplugin'])) {
60  \YAWK\settings::setSetting($db, "userpage_msgplugin", $_POST['messageplugin'], $lang);
61  }
62  if (isset($_POST['stats'])) {
63  \YAWK\settings::setSetting($db, "userpage_stats", $_POST['stats'], $lang);
64  }
65  if (isset($_POST['changeUsername'])) {
66  \YAWK\settings::setSetting($db, "userpage_changeUsername", $_POST['changeUsername'], $lang);
67  }
68  if (isset($_POST['changePassword'])) {
69  \YAWK\settings::setSetting($db, "userpage_changePassword", $_POST['changePassword'], $lang);
70  }
71  if (isset($_POST['changeEmail'])) {
72  \YAWK\settings::setSetting($db, "userpage_changeEmail", $_POST['changeEmail'], $lang);
73  }
74  if (isset($_POST['changeFirstname'])) {
75  \YAWK\settings::setSetting($db, "userpage_changeFirstname", $_POST['changeFirstname'], $lang);
76  }
77  if (isset($_POST['changeLastname'])) {
78  \YAWK\settings::setSetting($db, "userpage_changeLastname", $_POST['changeLastname'], $lang);
79  }
80  if (isset($_POST['changeStreet'])) {
81  \YAWK\settings::setSetting($db, "userpage_changeStreet", $_POST['changeStreet'], $lang);
82  }
83  if (isset($_POST['changeZipcode'])) {
84  \YAWK\settings::setSetting($db, "userpage_changeZipcode", $_POST['changeZipcode'], $lang);
85  }
86  if (isset($_POST['changeCity'])) {
87  \YAWK\settings::setSetting($db, "userpage_changeCity", $_POST['changeCity'], $lang);
88  }
89  if (isset($_POST['changeCountry'])) {
90  \YAWK\settings::setSetting($db, "userpage_changeCountry", $_POST['changeCountry'], $lang);
91  }
92  if (isset($_POST['changeState'])) {
93  \YAWK\settings::setSetting($db, "userpage_changeState", $_POST['changeState'], $lang);
94  }
95  if (isset($_POST['changeUrl'])) {
96  \YAWK\settings::setSetting($db, "userpage_changeUrl", $_POST['changeUrl'], $lang);
97  }
98  if (isset($_POST['changeFacebook'])) {
99  \YAWK\settings::setSetting($db, "userpage_changeFacebook", $_POST['changeFacebook'], $lang);
100  }
101  if (isset($_POST['changeTwitter'])) {
102  \YAWK\settings::setSetting($db, "userpage_changeTwitter", $_POST['changeTwitter'], $lang);
103  }
104  if (isset($_POST['logoutmenu'])) {
105  \YAWK\settings::setSetting($db, "userpage_logoutmenu", $_POST['logoutmenu'], $lang);
106  }
107  if (isset($_POST['activeTab'])) {
108  \YAWK\settings::setSetting($db, "userpage_activeTab", $_POST['activeTab'], $lang);
109  }
110  }
111 } // end if $_POST['sent']
112 
113 // USER PAGE TAB SETTINGS (checkboxes status)
114 if (\YAWK\settings::getSetting($db, "userpage_hellogroup") === '1'){
115  $hellogroupHtml = "checked"; }
116 else {
117  $hellogroupHtml = "";
118 }
119 if (\YAWK\settings::getSetting($db, "userpage_hello") === '1'){
120  $helloHtml = "checked"; }
121 else {
122  $helloHtml = "";
123 }
124 if (\YAWK\settings::getSetting($db, "userpage_msgplugin") === '1'){
125  $msgpluginHtml = "checked"; }
126 else {
127  $msgpluginHtml = "";
128 }
129 if (\YAWK\settings::getSetting($db, "userpage_settings") === '1'){
130  $settingsHtml = "checked"; }
131 else {
132  $settingsHtml = "";
133 }
134 if (\YAWK\settings::getSetting($db, "userpage_help") === '1'){
135  $helpHtml = "checked"; }
136 else {
137  $helpHtml = "";
138 }
139 if (\YAWK\settings::getSetting($db, "userpage_profile") === '1'){
140  $profileHtml = "checked"; }
141 else {
142  $profileHtml = "";
143 }
144 if (\YAWK\settings::getSetting($db, "userpage_admin") === '1'){
145  $adminHtml = "checked"; }
146 else {
147  $adminHtml = "";
148 }
149 if (\YAWK\settings::getSetting($db, "userpage_dashboard") === '1'){
150  $dashboardHtml = "checked"; }
151 else {
152  $dashboardHtml = "";
153 }
154 /* GET ACTIVE TABS */
155 $activeTab = \YAWK\settings::getSetting($db, "userpage_activeTab");
156 if ($activeTab == "Dashboard") {
157  $activeDashboardHtml = "checked";
158 }
159 else {
160  $activeDashboardHtml = "";
161 }
162 if ($activeTab == "Profile") {
163  $activeProfileHtml = "checked";
164 }
165 else {
166  $activeProfileHtml = "";
167 }
168 if ($activeTab == "Messages") {
169  $activeMessagesHtml = "checked";
170 }
171 else {
172  $activeMessagesHtml = "";
173 }
174 if ($activeTab == "Settings") {
175  $activeSettingsHtml = "checked";
176 }
177 else {
178  $activeSettingsHtml = "";
179 }
180 if ($activeTab == "Stats") {
181  $activeStatsHtml = "checked";
182 }
183 else {
184  $activeStatsHtml = "";
185 }
186 if ($activeTab == "Help") {
187  $activeHelpHtml = "checked";
188 }
189 else {
190  $activeHelpHtml = "";
191 }
192 if ($activeTab == "Admin") {
193  $activeAdminHtml = "checked";
194 }
195 else {
196  $activeAdminHtml= "";
197 }
198 if (\YAWK\settings::getSetting($db, "userpage_stats") === '1'){
199  $statsHtml = "checked"; }
200 else {
201  $statsHtml = "";
202 }
203 if (\YAWK\settings::getSetting($db, "userpage_changeUsername") === '1'){
204  $changeUsernameHtml = "checked"; }
205 else {
206  $changeUsernameHtml = "";
207 }
208 if (\YAWK\settings::getSetting($db, "userpage_changePassword") === '1'){
209  $changePasswordHtml = "checked"; }
210 else {
211  $changePasswordHtml = "";
212 }
213 if (\YAWK\settings::getSetting($db, "userpage_changeEmail") === '1'){
214  $changeEmailHtml = "checked"; }
215 else {
216  $changeEmailHtml = "";
217 }
218 if (\YAWK\settings::getSetting($db, "userpage_changeFirstname") === '1'){
219  $changeFirstnameHtml = "checked"; }
220 else {
221  $changeFirstnameHtml = "";
222 }
223 if (\YAWK\settings::getSetting($db, "userpage_changeLastname") === '1'){
224  $changeLastnameHtml = "checked"; }
225 else {
226  $changeLastnameHtml = "";
227 }
228 if (\YAWK\settings::getSetting($db, "userpage_changeStreet") === '1'){
229  $changeStreetHtml = "checked"; }
230 else {
231  $changeStreetHtml = "";
232 }
233 if (\YAWK\settings::getSetting($db, "userpage_changeZipcode") === '1'){
234  $changeZipcodeHtml = "checked"; }
235 else {
236  $changeZipcodeHtml = "";
237 }
238 if (\YAWK\settings::getSetting($db, "userpage_changeCity") === '1'){
239  $changeCityHtml = "checked"; }
240 else {
241  $changeCityHtml = "";
242 }
243 if (\YAWK\settings::getSetting($db, "userpage_changeCountry") === '1'){
244  $changeCountryHtml = "checked"; }
245 else {
246  $changeCountryHtml = "";
247 }
248 if (\YAWK\settings::getSetting($db, "userpage_changeState") === '1'){
249  $changeStateHtml = "checked"; }
250 else {
251  $changeStateHtml = "";
252 }
253 if (\YAWK\settings::getSetting($db, "userpage_changeUrl") === '1'){
254  $changeUrlHtml = "checked"; }
255 else {
256  $changeUrlHtml = "";
257 }
258 if (\YAWK\settings::getSetting($db, "userpage_changeFacebook") === '1'){
259  $changeFacebookHtml = "checked"; }
260 else {
261  $changeFacebookHtml = "";
262 }
263 if (\YAWK\settings::getSetting($db, "userpage_changeTwitter") === '1'){
264  $changeTwitterHtml = "checked"; }
265 else {
266  $changeTwitterHtml = "";
267 }
268 if (\YAWK\settings::getSetting($db, "userpage_logoutmenu") === '1'){
269  $logoutmenuHtml = "checked"; }
270 else {
271  $logoutmenuHtml = "";
272 }
273 
274 ?>
275 <script type="text/javascript" src="../system/plugins/signup/js/admin.js"></script>
276 
277 <div class="box box-default">
278  <div class="box-body">
279 <form action="index.php?plugin=userpage" class="form-inline" role="form" name="settings" method="POST">
280  <!-- Nav tabs -->
281  <ul class="nav nav-tabs" role="tablist">
282  <li role="presentation" class="active"><a href="#greeting" aria-controls="greeting" role="tab" data-toggle="tab"><i class="fa fa-commenting-o"></i> &nbsp;<?php echo "$lang[USERPAGE_GREETING_TEXT]"; ?></a></li>
283  <li role="presentation"><a href="#dash" aria-controls="dash" role="tab" data-toggle="tab"><i class="fa fa-folder-open"></i> &nbsp;<?php echo "$lang[USERPAGE_TABS]"; ?></a></li>
284  <li role="presentation"><a href="#menu" aria-controls="menu" role="tab" data-toggle="tab"><i class="fa fa-bars"></i> &nbsp;<?php echo "$lang[LOGOUT_MENU]"; ?></a></li>
285  </ul>
286 
287  <!-- Tab panes -->
288  <div class="tab-content">
289  <div role="tabpanel" class="tab-pane fade in active" id="greeting">
290  <fieldset>
291  <!-- SUBMIT BUTTON -->
292  <input type="submit" class="btn btn-success pull-right" value="<?php print $lang['SETTINGS_SAVE']; ?>">
293  <input type="hidden" name="sent" value="1">
294  </fieldset>
295  <fieldset>
296  <legend><i class="fa fa-commenting-o"></i> &nbsp;<?php echo "$lang[USERPAGE_GREETING_TEXT]"; ?> <small><?php echo "$lang[USERPAGE_GREETING_SUBTEXT]"; ?></small></legend>
297  <label for="hellotext"><?php echo "$lang[USERPAGE_GREETING]"; ?> </label><br>
298  <input type="text" id="hellotext" size="16" name="hellotext" class="form-control" placeholder="Welcome" value="<?php echo \YAWK\settings::getSetting($db, "userpage_hellotext");?>" title="Greeting">
299  &nbsp;$USERNAME &nbsp;
300  <input type="text" id="hellotextsub" size="32" name="hellotextsub" class="form-control" placeholder="good to see you again!" value="<?php echo \YAWK\settings::getSetting($db, "userpage_hellotextsub");?>" title="Greeting Subtext">
301  <label for="hellotextsub">&nbsp;</label><br><br>
302  <input type="hidden" value='0' name="hello">
303  <input type="checkbox" id="hello" name="hello" class="form-control" value="1" title="Enable User Greeting" <?php echo $helloHtml; ?>>
304  <label for="hello"><?php echo $lang['USERPAGE_GREETING_ENABLE']; ?></label><br>
305  <input type="hidden" value='0' name="hellogroup">
306  <input type="checkbox" id="hellogroup" name="hellogroup" class="form-control" value="1" title="Enable User Group Greeting" <?php echo $hellogroupHtml; ?>>
307  <label for="hellogroup"><?php echo $lang['USERPAGE_GRP_GREETING_ENABLE']; ?></label><br><br><br>
308  </fieldset>
309  </div>
310 
311  <div role="tabpanel" class="tab-pane fade in" id="dash">
312  <fieldset>
313  <!-- SUBMIT BUTTON -->
314  <input type="submit" class="btn btn-success pull-right" value="<?php print $lang['SETTINGS_SAVE']; ?>">
315  <input type="hidden" name="sent" value="1">
316  </fieldset>
317 
318  <!-- Nav tabs -->
319  <ul class="nav nav-tabs" role="tablist">
320  <li role="presentation" class="active"><a href="#homeTab" aria-controls="homeTab" role="tab" data-toggle="tab"><i class="fa fa-home"></i> &nbsp;<?php print $lang['USERPAGE_TAB_HOME']; ?></a></li>
321  <li role="presentation"><a href="#profileTab" aria-controls="profileTab" role="tab" data-toggle="tab"><i class="fa fa-user"></i> &nbsp;<?php print $lang['USERPAGE_TAB_PROFILE']; ?></a></li>
322  <li role="presentation"><a href="#messagesTab" aria-controls="messagesTab" role="tab" data-toggle="tab"><i class="fa fa-envelope"></i> &nbsp;<?php print $lang['USERPAGE_TAB_MESSAGES']; ?></a></li>
323  <li role="presentation"><a href="#settingsTab" aria-controls="settingsTab" role="tab" data-toggle="tab"><i class="fa fa-cog"></i> &nbsp;<?php print $lang['USERPAGE_TAB_SETTINGS']; ?></a></li>
324  <li role="presentation"><a href="#statsTab" aria-controls="statsTab" role="tab" data-toggle="tab"><i class="fa fa-line-chart"></i> &nbsp;<?php print $lang['USERPAGE_TAB_STATS']; ?></a></li>
325  <li role="presentation"><a href="#helpTab" aria-controls="helpTab" role="tab" data-toggle="tab"><i class="fa fa-question-circle"></i> &nbsp;<?php print $lang['USERPAGE_TAB_HELP']; ?></a></li>
326  <li role="presentation"><a href="#adminTab" aria-controls="adminTab" role="tab" data-toggle="tab"><i class="fa fa-question-wrench"></i> &nbsp;<?php print $lang['USERPAGE_TAB_ADMIN']; ?></a></li>
327  </ul>
328 
329  <!-- Tab panes -->
330  <div class="tab-content">
331  <fieldset>
332  <legend><br><i class="fa fa-gears"></i><small><i class="fa fa-user"></i></small> &nbsp;<?php echo "$lang[USERPAGE_SINGLE] <small>$lang[USERPAGE_TABS_SUBTEXT]</small>"; ?></legend>
333  </fieldset>
334 
335  <!-- home -->
336  <div role="tabpanel" class="tab-pane active" id="homeTab">
337  <!-- HOME (dashboard) TAB ENABLE -->
338  <input type="hidden" value='0' name="dashboard">
339  <input type="checkbox" id="dashboard" name="dashboard" class="form-control" value="1" title="Enable Dashboard Tab" <?php echo $dashboardHtml; ?>>
340  <label for="dashboard"> <?php echo "$lang[USERPAGE_TAB_DASH_ENABLE]"; ?></label><br>
341  <!-- DASHBOARD ACTIVE TAB -->
342  <label class="radio radio-inline control-label">
343  <input type="radio" id="activeTab" name="activeTab" class="form-control" value="Dashboard" title="<?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?>" <?php echo $activeDashboardHtml; ?>>
344  <?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?></label><br>
345  </div>
346  <!-- profile -->
347  <div role="tabpanel" class="tab-pane" id="profileTab">
348  <!-- PROFILE ENABLE -->
349  <input type="hidden" value='0' name="profile">
350  <input type="checkbox" id="profile" name="profile" class="form-control" value="1" title="Enable Profile Tab" <?php echo $profileHtml; ?>>
351  <label for="profile"> <?php echo "$lang[USERPAGE_TAB_PROFILE_ENABLE]"; ?></label><br>
352  <!-- PROFILE ACTIVE TAB -->
353  <label class="radio radio-inline control-label">
354  <input type="radio" id="activeTab" name="activeTab" class="form-control" value="Profile" title="<?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?>" <?php echo $activeProfileHtml; ?>>
355  <?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?></label><br>
356 
357  <fieldset>
358  <legend><i class="fa fa-user"></i> &nbsp;<?php echo "$lang[USERPAGE_SETUP_PROFILE_PAGE] <small>$lang[USERPAGE_SETUP_PROFILE_PAGE_SUBTEXT]</small>"; ?></legend>
359  <!-- change username -->
360  <input type="hidden" value='0' name="changeUsername">
361  <input type="checkbox" id="changeUsername" name="changeUsername" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_USERNAME]"; ?>" <?php echo $changeUsernameHtml; ?>>
362  <label for="changeUsername"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_USERNAME]"; ?></label><br>
363  <!-- change email -->
364  <input type="hidden" value='0' name="changeEmail">
365  <input type="checkbox" id="changeEmail" name="changeEmail" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_EMAIL]"; ?>" <?php echo $changeEmailHtml; ?>>
366  <label for="changeEmail"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_EMAIL]"; ?></label><br>
367  <!-- change password -->
368  <input type="hidden" value='0' name="changePassword">
369  <input type="checkbox" id="changePassword" name="changePassword" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_PWD]"; ?>" <?php echo $changePasswordHtml; ?>>
370  <label for="changePassword"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_PWD]"; ?></label><br><br>
371  <!-- change firstname -->
372  <input type="hidden" value='0' name="changeFirstname">
373  <input type="checkbox" id="changeFirstname" name="changeFirstname" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_FIRSTNAME]"; ?>" <?php echo $changeFirstnameHtml; ?>>
374  <label for="changeFirstname"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_FIRSTNAME]"; ?></label><br>
375  <!-- change lastname -->
376  <input type="hidden" value='0' name="changeLastname">
377  <input type="checkbox" id="changeLastname" name="changeLastname" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_LASTNAME]"; ?>" <?php echo $changeLastnameHtml; ?>>
378  <label for="changeLastname"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_LASTNAME]"; ?></label><br><br>
379  <!-- change street -->
380  <input type="hidden" value='0' name="changeStreet">
381  <input type="checkbox" id="changeStreet" name="changeStreet" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_STREET]"; ?>" <?php echo $changeStreetHtml; ?>>
382  <label for="changeStreet"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_STREET]"; ?></label><br>
383  <!-- change zipcode -->
384  <input type="hidden" value='0' name="changeZipcode">
385  <input type="checkbox" id="changeZipcode" name="changeZipcode" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_ZIPCODE]"; ?>" <?php echo $changeZipcodeHtml; ?>>
386  <label for="changeZipcode"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_ZIPCODE]"; ?></label><br>
387  <!-- city city -->
388  <input type="hidden" value='0' name="changeCity">
389  <input type="checkbox" id="changeCity" name="changeCity" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_CITY]"; ?>" <?php echo $changeCityHtml; ?>>
390  <label for="changeCity"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_CITY]"; ?></label><br>
391  <!-- change country -->
392  <input type="hidden" value='0' name="changeCountry">
393  <input type="checkbox" id="changeCountry" name="changeCountry" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_COUNTRY]"; ?>" <?php echo $changeCountryHtml; ?>>
394  <label for="changeCountry"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_COUNTRY]"; ?></label><br>
395  <!-- change state -->
396  <input type="hidden" value='0' name="changeState">
397  <input type="checkbox" id="changeState" name="changeState" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_STATE]"; ?>" <?php echo $changeStateHtml; ?>>
398  <label for="changeState"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_STATE]"; ?></label><br><br>
399  <!-- change url -->
400  <input type="hidden" value='0' name="changeUrl">
401  <input type="checkbox" id="changeUrl" name="changeUrl" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_URL]"; ?>" <?php echo $changeUrlHtml; ?>>
402  <label for="changeUrl"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_URL]"; ?></label><br>
403  <!-- change facebook -->
404  <input type="hidden" value='0' name="changeFacebook">
405  <input type="checkbox" id="changeFacebook" name="changeFacebook" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_FACEBOOK]"; ?>" <?php echo $changeFacebookHtml; ?>>
406  <label for="changeFacebook"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_FACEBOOK]"; ?></label><br>
407  <!-- change twitter -->
408  <input type="hidden" value='0' name="changeTwitter">
409  <input type="checkbox" id="changeTwitter" name="changeTwitter" class="form-control" value="1" title="<?php echo "$lang[USERPAGE_ALLOW_CHANGE_TWITTER]"; ?>" <?php echo $changeTwitterHtml; ?>>
410  <label for="changeTwitter"><?php echo "$lang[USERPAGE_ALLOW_CHANGE_TWITTER]"; ?></label><br><br><br>
411  </fieldset>
412  </div>
413  <!-- messages -->
414  <div role="tabpanel" class="tab-pane" id="messagesTab">
415  <!-- MESSAGE PLUGIN ENABLE -->
416  <input type="hidden" value='0' name="messageplugin">
417  <input type="checkbox" id="messageplugin" name="messageplugin" class="form-control" value="1" title="Enable Message Plugin" <?php echo $msgpluginHtml; ?>>
418  <label for="messageplugin"> <?php echo "$lang[USERPAGE_TAB_MESSAGES_ENABLE]"; ?></label><br>
419  <!-- MESSAGE ACTIVE TAB -->
420  <label class="radio radio-inline control-label">
421  <input type="radio" id="activeTab" name="activeTab" class="form-control" value="Messages" title="<?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?>" <?php echo $activeMessagesHtml; ?>>
422  <?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?></label><br>
423  <!-- link to plg settings -->
424  <h4><i class="fa fa-wrench"></i><small><i class="fa fa-envelope-o"></i></small> &nbsp;
425  <a href="index.php?plugin=messages"><?php echo $lang['USERPAGE_MESSAGE_PLUGIN_SETTINGS']; ?></a>
426  <small><?php echo $lang['USERPAGE_MESSAGE_PLUGIN_SETTINGS_SUBTEXT']; ?></small></h4><br><br>
427  </div>
428  <!-- settings -->
429  <div role="tabpanel" class="tab-pane" id="settingsTab">
430  <!-- SETTINGS ENABLE -->
431  <input type="hidden" value='0' name="settings">
432  <input type="checkbox" id="settings" name="settings" class="form-control" value="1" title="Enable Settings Tab" <?php echo $settingsHtml; ?>>
433  <label for="settings"> <?php echo "$lang[USERPAGE_TAB_SETTINGS_ENABLE]"; ?></label><br>
434  <!-- SETTINGS ACTIVE TAB -->
435  <label class="radio radio-inline control-label">
436  <input type="radio" id="activeTab" name="activeTab" class="form-control" value="Settings" title="<?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?>" <?php echo $activeSettingsHtml; ?>>
437  <?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?></label><br>
438  </div>
439  <!-- stats -->
440  <div role="tabpanel" class="tab-pane" id="statsTab">
441  <!-- STATS ENABLE -->
442  <input type="hidden" value='0' name="stats">
443  <input type="checkbox" id="stats" name="stats" class="form-control" value="1" title="Enable Stats Tab" <?php echo $statsHtml; ?>>
444  <label for="stats"> <?php echo "$lang[USERPAGE_TAB_STATS_ENABLE]"; ?></label><br>
445  <!-- STATS ACTIVE TAB -->
446  <label class="radio radio-inline control-label">
447  <input type="radio" id="activeTab" name="activeTab" class="form-control" value="Stats" title="<?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?>" <?php echo $activeStatsHtml; ?>>
448  <?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?></label><br>
449  </div>
450  <!-- help -->
451  <div role="tabpanel" class="tab-pane" id="helpTab">
452  <!-- HELP ENABLE -->
453  <input type="hidden" value='0' name="help">
454  <input type="checkbox" id="help" name="help" class="form-control" value="1" title="Enable Help Tab" <?php echo $helpHtml; ?>>
455  <label for="help"> <?php echo "$lang[USERPAGE_TAB_HELP_ENABLE]"; ?></label><br>
456  <!-- HELP ACTIVE TAB -->
457  <label class="radio radio-inline control-label">
458  <input type="radio" id="activeTab" name="activeTab" class="form-control" value="Help" title="<?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?>" <?php echo $activeHelpHtml; ?>>
459  <?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?></label><br>
460  <fieldset>
461  <legend><i class="fa fa-question-circle"></i> &nbsp;<?php echo "$lang[USERPAGE_USER_HELP] <small>$lang[USERPAGE_USER_HELP_SUBTEXT]</small>"; ?></legend>
462  <!-- USER HELP TEXTAREA -->
463  <label for="helptext"> <?php echo "$lang[USERPAGE_USER_HELP] <small>$lang[USERPAGE_USER_HELP_SUBTEXT_LABEL]</small>"; ?></label><br>
464  <textarea name="helptext" id="helptext" class="form-control" cols="70" rows="10" title="User Help Text"><?php echo \YAWK\settings::getLongSetting($db, "userpage_helptext"); ?></textarea>
465  <br><br><br><br>
466  </fieldset>
467  </div>
468  <!-- admin -->
469  <div role="tabpanel" class="tab-pane" id="adminTab">
470  <!-- ADMIN TAB ENABLE -->
471  <input type="hidden" value='0' name="admin">
472  <input type="checkbox" id="admin" name="admin" class="form-control" value="1" title="Enable Admin Tab" <?php echo $adminHtml; ?>>
473  <label for="admin"> <?php echo "$lang[USERPAGE_TAB_ADMIN_ENABLE]"; ?></label><br>
474  <!-- ADMIN ACTIVE TAB -->
475  <label class="radio radio-inline control-label">
476  <input type="radio" id="activeTab" name="activeTab" class="form-control" value="Admin" title="<?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?>" <?php echo $activeAdminHtml; ?>>
477  <?php echo "$lang[SET_THIS_TAB_ACTIVE]"; ?></label><br>
478  </div>
479  </div>
480  </div>
481 
482  <div role="tabpanel" class="tab-pane fade in" id="userhelp">
483  <fieldset>
484  <!-- SUBMIT BUTTON -->
485  <input type="submit" class="btn btn-success pull-right" value="<?php print $lang['SETTINGS_SAVE']; ?>">
486  <input type="hidden" name="sent" value="1">
487  </fieldset>
488  </div>
489 
490  <!-- Tab panes -->
491  <div role="tabpanel" class="tab-pane fade in" id="menu">
492  <fieldset>
493  <!-- SUBMIT BUTTON -->
494  <input type="submit" class="btn btn-success pull-right" value="<?php print $lang['SETTINGS_SAVE']; ?>">
495  <input type="hidden" name="sent" value="1">
496  </fieldset>
497  <fieldset>
498  <legend><i class="fa fa-bars"></i> &nbsp;<?php echo "$lang[USERPAGE_LOGOUTMENU] <small>$lang[USERPAGE_LOGOUTMENU_SUBTEXT]</small>"; ?></legend>
499  <input type="hidden" value='0' name="logoutmenu">
500  <input type="checkbox" id="logoutmenu" name="logoutmenu" class="form-control" value="1" title="<?php print $lang['LOGOUTMENU_ENABLE']; ?>" <?php echo $logoutmenuHtml; ?>>
501  <label for="logoutmenu"><?php print $lang['USERPAGE_LOGOUTMENU_ENABLE']; ?></label>
502  <br><br><br>
503  </fieldset>
504  </div>
505  </div>
506 </form>
507 
508  </div>
509 </div>
510 
511 
$activeTab
Definition: userpage.php:155
print $lang['SETTINGS_SAVE']
Definition: userpage.php:282
static inject(array $lang, string $pathToFile)
allow plugins to inject language tags to $lang array
Definition: language.php:439
static setSetting($db, $property, $value, $lang)
Set value for property into settings database.
Definition: settings.php:502
static getSetting($db, $property)
Get and return value for property from settings database.
Definition: settings.php:470
static setLongSetting($db, $property, $value)
Set (update) long setting value for property.
Definition: settings.php:578
function a
Definition: browser.js:14
type
Definition: menu-new.php:35
This class serves methods to create backup from files.
Definition: AdminLTE.php:2
print $page title
Definition: page-edit.php:377
function i(e, t)
Definition: plyr.js:1
<!-- backend language -->< h3 >< i class="fa fa-language"></i > & nbsp
$template name