MDL-12531, make the new member value available to all the affected plugins, thanks...
[moodle-linuxchix.git] / admin / mnet / mnet_review.html
blob31fdcad9d70c6102dd1a1f4602801210954aa52b
1 <?php
2 $logurl = $CFG->wwwroot.
3 '/course/report/log/index.php?chooselog=1&amp;showusers=1&amp;showcourses=1&amp;host_course='.$mnet_peer->id.
4 '%2F1&amp;user='.'0'.
5 '&amp;date=0'.
6 '&amp;modid=&amp;modaction=0&amp;logformat=showashtml';
8 admin_externalpage_print_header();
10 if (isset($mnet_peer->id) && $mnet_peer->id > 0) {
11 $tabs[] = new tabobject('mnetdetails', 'peers.php?step=update&amp;hostid='.$mnet_peer->id, $strmnetedithost, $strmnetedithost, false);
12 $tabs[] = new tabobject('mnetservices', 'mnet_services.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetservices, $strmnetservices, false);
13 $tabs[] = new tabobject('mnetthemes', 'mnet_themes.php?step=list&amp;hostid='.$mnet_peer->id, $strmnetthemes, $strmnetthemes, false);
14 if ($mnet_peer->application->name == 'moodle') {
15 $tabs[] = new tabobject('mnetlog', $logurl, $strmnetlog, $strmnetlog, false);
17 } else {
18 $tabs[] = new tabobject('mnetdetails', '#', $strmnetedithost, $strmnetedithost, false);
20 print_tabs(array($tabs), 'mnetdetails');
22 print_simple_box_start("center", "");
24 <form method="post" action="peers.php">
25 <div>
26 <input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
27 <input type="hidden" name="step" value="commit" />
28 <input type="hidden" name="last_connect_time" value="<?php echo $mnet_peer->last_connect_time; ?>" />
29 <input type="hidden" name="id" value="<?php echo isset($mnet_peer->id)? $mnet_peer->id : '0' ; ?>" />
30 <input type="hidden" name="applicationid" value="<?php echo isset($mnet_peer->applicationid)? $mnet_peer->applicationid : '0' ; ?>" />
31 <input type="hidden" name="applicationname" value="<?php echo isset($mnet_peer->application->name)? $mnet_peer->application->name : '' ; ?>" />
32 <table cellpadding="9" cellspacing="0" width="635">
34 <tr>
35 <td align="right" valign="top"><?php print_string('site'); ?>:</td>
36 <td valign="top"><input type="text" name="name" size="30" value="<?php echo $mnet_peer->name; ?>" /></td>
37 </tr>
38 <tr>
39 <td align="right" valign="top"><?php print_string('hostname', 'mnet'); ?>:</td>
40 <td valign="top"><input type="text" name="wwwroot" size="30" value="<?php echo $mnet_peer->wwwroot; ?>" /></td>
41 </tr>
42 <?php
43 if (empty($mnet_peer->public_key)) $mnet_peer->public_key = '';
45 <tr>
46 <td align="right" valign="top"><?php
47 print_string('publickey', 'mnet');
48 echo ': <br />';
49 helpbutton("publickey", get_string('publickey', 'mnet'), "mnet", true, true);
50 ?></td>
51 <?php
55 if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0) {
56 $key = mnet_get_public_key($mnet_peer->wwwroot, $mnet_peer->application->xmlrpc_server_url);
57 $mnet_peer->public_key = clean_param($key, PARAM_PEM);
60 <td valign="top">
61 <?php
62 if (empty($mnet_peer->public_key)) {
63 print_string('nopubkey', 'mnet');
65 ?><br />
66 <textarea rows="17" cols="65" name="public_key" style="font-size: 8px;"><?php echo $mnet_peer->public_key; ?></textarea>
67 </td>
68 </tr>
69 <tr>
70 <td align="right" valign="top"><?php print_string('expires', 'mnet'); ?>:</td>
71 <td valign="top">
72 <?php
73 if($mnet_peer->public_key_expires < time()) {
74 print_string('expired', 'mnet');
75 echo ' ';
77 echo userdate($mnet_peer->public_key_expires);
79 </td>
80 </tr>
81 <?php
83 if(!empty($currentkey)) {
85 <tr>
86 <td align="right" valign="top"></td>
87 <td valign="top"><?php print_string('keymismatch', 'mnet'); ?></td>
88 </tr>
89 <tr>
90 <td align="right" valign="top"><?php print_string('currentkey', 'mnet'); ?>:</td>
91 <td valign="top"><pre style="font-size: 8px;"><?php echo $currentkey;?></pre></td>
92 </tr>
93 <?php
96 if (isset($mnet_peer->id) && $mnet_peer->id > 0) {
98 <tr>
99 <td align="right" valign="top"><?php print_string('last_connect_time', 'mnet'); ?>:</td>
100 <td valign="top"><?php echo ($mnet_peer->last_connect_time == 0)? get_string('never','mnet') : date('H:i:s d/m/Y',$mnet_peer->last_connect_time);?></td>
101 </tr>
102 <?php
105 if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0){
107 <tr>
108 <td align="right" valign="top"><?php print_string('deleted'); ?>:</td>
109 <td valign="top">
110 <input type="radio" name="deleted" value="0" checked="checked" /> <?php print_string('reenableserver','mnet'); ?><br />
111 <input type="radio" name="deleted" value="1" /> <?php print_string('yes'); ?><br />
112 </td>
113 </tr>
114 <?php
117 if (isset($mnet_peer->ip_address) && '' != $mnet_peer->ip_address){
119 <tr>
120 <td align="right" valign="top"><?php print_string('ipaddress', 'mnet');
121 echo ': <br />';
122 helpbutton("ipaddress", get_string('ipaddress', 'mnet'), "mnet", true, true);
123 ?>:</td>
124 <td valign="top"><?php echo $mnet_peer->ip_address; ?></td>
125 </tr>
127 <?php
130 <tr>
131 <td></td>
132 <td><input type="submit" value="<?php print_string("savechanges"); ?>" /></td>
133 </tr>
134 </table>
135 </div>
136 </form>
137 <?php
138 print_simple_box_end();
139 admin_externalpage_print_footer();