/
SelectBlockquotePage.php
124 lines (102 loc) · 5.15 KB
/
SelectBlockquotePage.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
<?php
/*
**************************************************************************************
* One Solution CMS
*
* Copyright (c) 1999 - 2013 One Solution CMS
* This content management system is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This content management system is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright Copyright (c) 1999 - 2013 One Solution CMS (http://www.onesolutioncms.com/)
* @license http://www.gnu.org/licenses/gpl-2.0.txt
* @version 2.1.141, 2013-01-14
*************************************************************************************
*/
if ($_SERVER['SUBDOMAIN_DOCUMENT_ROOT'] != NULL) {
$HOME = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'];
} else {
if ($_SERVER['REAL_DOCUMENT_ROOT'] != NULL) {
$_SERVER['SUBDOMAIN_DOCUMENT_ROOT'] = $_SERVER['REAL_DOCUMENT_ROOT'];
$HOME = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'];
} else {
$HOME = NULL;
}
}
$HOME = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'];
$HOME .= '/Administrators/';
$GLOBALS['HOME'] = $HOME;
require_once ("$HOME/Configuration/includes.php");
$hold = $_POST['BlockquotePage'];
$hold = explode(' ', $hold);
$PageID = $hold[2];
$_POST['PageID'] = $PageID;
$_POST['FormOptionObjectID'] = $hold[0];
unset($hold);
$PageID = array();
$PageID['PageID'] = $_POST['PageID'];
$PageID['CurrentVersion'] = 'true';
$passarray = array();
$passarray['PageID'] = $PageID;
unset($passarray['DatabaseVariableName']);
$ContentPageVersion = $Tier6Databases->getRecord($PageID, 'ContentLayerVersion');
$PageVersion = $ContentPageVersion[0]['RevisionID'];
$PageID['RevisionID'] = $PageVersion;
$passarray = array();
$passarray['PageID'] = $PageID;
$passarray['DatabaseVariableName'] = 'ContentTableName';
$ContentPage = $Tier6Databases->ModulePass('XhtmlContent', 'content', 'getRecord', $passarray);
$ContentPageHeader = $Tier6Databases->getRecord($passarray['PageID'], 'PageAttributes');
unset($passarray['PageID']['CurrentVersion']);
unset($passarray['PageID']['RevisionID']);
$HeaderPanel1 = $Tier6Databases->getRecord($passarray['PageID'], 'HeaderPanel1');
unset($passarray);
$passarray = array();
$passarray['PageID'] = $PageID['PageID'];
$Sitemap = $Tier6Databases->getRecord($passarray, 'XMLSitemap');
$Sitemap[0]['Priority'] *= 10;
$hold = array();
$hold['Tag'] = 'h1';
$hold['Content'] = $HeaderPanel1[1]['Div1'];
$Header = $Tier6Databases->ModulePass('XhtmlMenu', 'headerpanel1', 'removeTag', $hold);
$sessionname = $Tier6Databases->SessionStart('UpdateBlockquotePage');
$_SESSION['POST']['FilteredInput']['PageID'] = $_POST['PageID'];
$_SESSION['POST']['FilteredInput']['FormOptionObjectID'] = $_POST['FormOptionObjectID'];
$_SESSION['POST']['FilteredInput']['RevisionID'] = $ContentPageVersion[0]['RevisionID'];
$_SESSION['POST']['FilteredInput']['MenuObjectID'] = $ContentPageVersion[0]['ContentPageMenuObjectID'];
$_SESSION['POST']['FilteredInput']['CreationDateTime'] = $ContentPageVersion[0]['CreationDateTime'];
$_SESSION['POST']['FilteredInput']['Owner'] = $ContentPageVersion[0]['Owner'];
$_SESSION['POST']['FilteredInput']['UserAccessGroup'] = $ContentPageVersion[0]['UserAccessGroup'];
$_SESSION['POST']['FilteredInput']['PageTitle'] = $ContentPageHeader[0]['PageTitle'];
if ($ContentPageHeader[0]['MetaNameContent1']) {
$_SESSION['POST']['FilteredInput']['Keywords'] = $ContentPageHeader[0]['MetaNameContent1'];
} else {
$_SESSION['POST']['FilteredInput']['Keywords'] = 'NULL';
}
if ($ContentPageHeader[0]['MetaNameContent2']) {
$_SESSION['POST']['FilteredInput']['Description'] = $ContentPageHeader[0]['MetaNameContent2'];
} else {
$_SESSION['POST']['FilteredInput']['Description'] = 'NULL';
}
$_SESSION['POST']['FilteredInput']['Header'] = $Header;
$_SESSION['POST']['FilteredInput']['Heading'] = $ContentPage[0]['Heading'];
$_SESSION['POST']['FilteredInput']['Blockquote'] = $ContentPage[0]['Content'];
$_SESSION['POST']['FilteredInput']['Priority'] = $Sitemap[0]['Priority'];
$_SESSION['POST']['FilteredInput']['Frequency'] = ucfirst($Sitemap[0]['ChangeFreq']);
$_SESSION['POST']['FilteredInput']['MenuName'] = $ContentPageVersion[0]['ContentPageMenuName'];
$_SESSION['POST']['FilteredInput']['MenuTitle'] = $ContentPageVersion[0]['ContentPageMenuTitle'];
$_SESSION['POST']['FilteredInput']['EnableDisable'] = 'Enable';
$_SESSION['POST']['FilteredInput']['Status'] = 'Approved';
$Options = $Tier6Databases->getLayerModuleSetting();
$UpdateBlockquotePage = $Options['XhtmlContent']['content']['UpdateBlockquotePage']['SettingAttribute'];
header("Location: $UpdateBlockquotePage&SessionID=$sessionname");
?>