Repository navigation
Expand file tree
/
Copy pathsave_setting_redirect.php
More file actions
56 lines (44 loc) · 1.68 KB
/
Copy pathsave_setting_redirect.php
File metadata and controls
56 lines (44 loc) · 1.68 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
<?php
/**************************************************************
Call: save_setting_redirect.php?k=[key]&v=[value]&u=[RedirURI]
Save a Setting (k/v) and redirect to URI u
***************************************************************/
require_once 'inc/session_utility.php';
$k = getreq('k');
$v = getreq('v');
$u = getreq('u');
if($k == 'currentlanguage') {
unset($_SESSION['currenttextpage']);
unset($_SESSION['currenttextquery']);
unset($_SESSION['currenttextquerymode']);
unset($_SESSION['currenttexttag1']);
unset($_SESSION['currenttexttag2']);
unset($_SESSION['currenttexttag12']);
unset($_SESSION['currentwordpage']);
unset($_SESSION['currentwordquery']);
unset($_SESSION['currentwordquerymode']);
unset($_SESSION['currentwordstatus']);
unset($_SESSION['currentwordtext']);
unset($_SESSION['currentwordtag1']);
unset($_SESSION['currentwordtag2']);
unset($_SESSION['currentwordtag12']);
unset($_SESSION['currentwordtextmode']);
unset($_SESSION['currentwordtexttag']);
unset($_SESSION['currentarchivepage']);
unset($_SESSION['currentarchivequery']);
unset($_SESSION['currentarchivequerymode']);
unset($_SESSION['currentarchivetexttag1']);
unset($_SESSION['currentarchivetexttag2']);
unset($_SESSION['currentarchivetexttag12']);
unset($_SESSION['currentrsspage']);
unset($_SESSION['currentrssfeed']);
unset($_SESSION['currentrssquery']);
unset($_SESSION['currentrssquerymode']);
unset($_SESSION['currentfeedspage']);
unset($_SESSION['currentmanagefeedsquery']);
saveSetting('currenttext', '');
}
saveSetting($k, $v);
header("Location: " . $u);
exit();
?>