-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathartica.wizard.isprelay.php
79 lines (55 loc) · 1.65 KB
/
artica.wizard.isprelay.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
<?php
include_once('ressources/class.templates.inc');
include_once('ressources/class.main_cf.inc');
$user=new usersMenus();
$tpl=new templates();
if($user->AsArticaAdministrator==false){echo $tpl->_ENGINE_parse_body('{no_privileges}');exit;}
if(isset($_GET["EditRelayhost"])){EditRelayhost();exit;}
page();
function Page(){
$main=new main_cf();
$page=CurrentPageName();
$intro=RoundedLightGreen('<img src="img/infowarn-64.png" align=left style="margin:3px">{send_isp_relay_text3}');
$form="".
RoundedLightGrey("
<table style='width:100%'>
<tr>
<td>
<H5>{servername}</H5>
<br>
{send_isp_relay_text2}
</td>
</tr>
<tr>
<td colspan=2>" . Field_text('isp_server_ip',$main->main_array["relayhost"])."</td>
</tr>
<tr>
<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditRelayhost();\" value='{edit} »'></td>
</tr>
</table>") . "
<br>";
$html="
<table style='width:100%'>
<tr>
<td valign='top' style='width:50%'>
$form</td>
<td valign='top'>
" . RoundedLightGreen("<table style='width:100%'>
<tr><td width=1%>" . imgtootltip('restore-on.png','{go_back}',"MyHref('artica.wizard.php')") . "</td>
<td><H5>{return_to} {artica_wizard}</H5></td>
</tr></table>")."<br>" . applysettings("postfix") ."<br>$intro</td>
</tr>
</table>";
$cfg["LANG_FILE"]="artica.wizard.php";
$cfg["JS"][]="js/postfix-sasl.js";
$tpl=new template_users('{send_isp_relay}',$html,0,0,0,0,$cfg);
echo $tpl->web_page;
}
function EditRelayhost(){
$main=new main_cf();
$main->main_array["relayhost"]=$_GET["EditRelayhost"];
$main->save_conf();
$tpl=new templates();
echo $tpl->_ENGINE_parse_body('{success}');
}
?>