forked from poppyred/1.6.x
/
artica.subscription.php
executable file
·108 lines (81 loc) · 2.89 KB
/
artica.subscription.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
<?php
if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
include_once('ressources/class.templates.inc');
session_start();
include_once('ressources/class.html.pages.inc');
include_once('ressources/class.cyrus.inc');
include_once('ressources/class.main_cf.inc');
include_once('ressources/charts.php');
include_once('ressources/class.syslogs.inc');
include_once('ressources/class.system.network.inc');
include_once('ressources/class.os.system.inc');
if(isset($_POST["DisablePurchaseInfo"])){Save();exit;}
if(isset($_GET["popup"])){popup();exit;}
js();
function Save(){
$sock=new sockets();
$sock->SET_INFO("DisablePurchaseInfo", $_POST["DisablePurchaseInfo"]);
}
function js(){
$page=CurrentPageName();
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body("{ARTICA_P_SUPPORT}");
$html="RTMMail('750','$page?popup=yes','$title');";
echo $html;
}
function popup(){
$page=CurrentPageName();
$tpl=new templates();
$sock=new sockets();
$supportlink="http://www.articatech.com/#!contact-us/csu4";
$users=new usersMenus();
$pagebuilder=new pagebuilder();
$Template=$pagebuilder->GetTemplateMemory();
if(is_file("ressources/templates/$Template/editorlink.conf")){
$supportlink=@file_get_contents("ressources/templates/$Template/editorlink.conf")."/support";
}
if($users->WEBSECURIZE){
$supportlink="http://www.websecurize.com/nous-contacter.html";
}
$html="<table style='width:100%'>
<tbody>
<tr>
<td valign='top' width=1%><img src='img/technical-support-128.png'></td>
<td valign='top' width=100%><div style='font-size:18px' class=explain>{ARTICA_P_SUPPORT_TEXT}</div>
<center style='margin-top:15px;margin-bottom:15px'>
<a href=\"javascript:blur();\"
OnClick=\"javascript:s_PopUp('$supportlink',990,900,'');\"
style='font-size:22px;text-decoration:underline'>{ARTICA_P_SUPPORT} {link}</a>
</center>
<div style='text-align:right'>
<table class=form style='float:right'>
<tbody>
<tr>
<td class=legend style='font-size:16px'>{hide_this_information}:</td>
<td>". Field_checkbox("DisablePurchaseInfo", 1,$sock->GET_INFO("DisablePurchaseInfo"),"DisablePurchaseInfoCheck()")."</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<script>
var X_DisablePurchaseInfoCheck= function (obj) {
var results=obj.responseText;
if(document.getElementById('admin_perso_tabs')){RefreshTab('admin_perso_tabs');}
}
function DisablePurchaseInfoCheck(){
var XHR = new XHRConnection();
if(document.getElementById('DisablePurchaseInfo').checked){
XHR.appendData('DisablePurchaseInfo',1);
}else{
XHR.appendData('DisablePurchaseInfo',0);
}
XHR.sendAndLoad('$page', 'POST',X_DisablePurchaseInfoCheck);
}
</script>
";
echo $tpl->_ENGINE_parse_body($html);
}