|
@@ -26,7 +26,7 @@ discard block |
|
|
block discarded – undo |
|
26
|
26
|
*/ |
|
27
|
27
|
?> |
|
28
|
28
|
<?php |
|
29
|
|
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
|
29
|
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
30
|
30
|
|
|
31
|
31
|
$deco = new \web\lib\admin\PageDecoration(); |
|
32
|
32
|
$validator = new \web\lib\common\InputValidation(); |
|
@@ -36,7 +36,7 @@ discard block |
|
|
block discarded – undo |
|
36
|
36
|
|
|
37
|
37
|
if (!isset($_GET['deployment_id'])) { |
|
38
|
38
|
$my_inst->newDeployment(\core\AbstractDeployment::DEPLOYMENTTYPE_MANAGED); |
|
39
|
|
- header("Location: overview_sp.php?inst_id=" . $my_inst->identifier); |
|
|
39
|
+ header("Location: overview_sp.php?inst_id=".$my_inst->identifier); |
|
40
|
40
|
exit(0); |
|
41
|
41
|
} |
|
42
|
42
|
|
|
@@ -47,13 +47,13 @@ discard block |
|
|
block discarded – undo |
|
47
|
47
|
if (isset($_POST['submitbutton'])) { |
|
48
|
48
|
if ($_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_DELETE) { |
|
49
|
49
|
$deployment->deactivate(); |
|
50
|
|
- header("Location: overview_sp.php?inst_id=" . $my_inst->identifier); |
|
|
50
|
+ header("Location: overview_sp.php?inst_id=".$my_inst->identifier); |
|
51
|
51
|
exit(0); |
|
52
|
52
|
} |
|
53
|
53
|
|
|
54
|
54
|
if ($_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_ACTIVATE) { |
|
55
|
55
|
$deployment->activate(); |
|
56
|
|
- header("Location: overview_sp.php?inst_id=" . $my_inst->identifier); |
|
|
56
|
+ header("Location: overview_sp.php?inst_id=".$my_inst->identifier); |
|
57
|
57
|
exit(0); |
|
58
|
58
|
} |
|
59
|
59
|
if ($_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_SAVE) { |
|
@@ -69,7 +69,7 @@ discard block |
|
|
block discarded – undo |
|
69
|
69
|
} |
|
70
|
70
|
$optionParser->processSubmittedFields($deployment, $postArray, $_FILES); |
|
71
|
71
|
|
|
72
|
|
- header("Location: overview_sp.php?inst_id=" . $my_inst->identifier); |
|
|
72
|
+ header("Location: overview_sp.php?inst_id=".$my_inst->identifier); |
|
73
|
73
|
exit(0); |
|
74
|
74
|
} |
|
75
|
75
|
} |
|
@@ -97,12 +97,12 @@ discard block |
|
|
block discarded – undo |
|
97
|
97
|
echo $uiElements->instLevelInfoBoxes($my_inst); |
|
98
|
98
|
$deploymentOptions = $deployment->getAttributes(); |
|
99
|
99
|
echo "<form enctype='multipart/form-data' action='edit_hotspot.php?inst_id=$my_inst->identifier&deployment_id=$deployment->identifier' method='post' accept-charset='UTF-8'> |
|
100
|
|
- <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>"; |
|
|
100
|
+ <input type='hidden' name='MAX_FILE_SIZE' value='".\config\Master::MAX_UPLOAD_SIZE."'>"; |
|
101
|
101
|
$optionDisplay = new \web\lib\admin\OptionDisplay($deploymentOptions, "Profile"); |
|
102
|
102
|
?> |
|
103
|
103
|
<?php |
|
104
|
104
|
echo "<fieldset class='option_container' id='managedsp_override'> |
|
105
|
|
- <legend><strong>" . _("Options for this deployment") . "</strong></legend>"; |
|
|
105
|
+ <legend><strong>" . _("Options for this deployment")."</strong></legend>"; |
|
106
|
106
|
?> |
|
107
|
107
|
<table> |
|
108
|
108
|
<tr> |
|
@@ -120,7 +120,7 @@ discard block |
|
|
block discarded – undo |
|
120
|
120
|
<!-- input for VLAN identifier for home users--> |
|
121
|
121
|
<td> |
|
122
|
122
|
<span id='vlan_label'> |
|
123
|
|
- <?php echo sprintf(_("VLAN tag for own users%s:"), ($vlan === NULL ? "" : " " . _("(unset with '0')"))); ?> |
|
|
123
|
+ <?php echo sprintf(_("VLAN tag for own users%s:"), ($vlan === NULL ? "" : " "._("(unset with '0')"))); ?> |
|
124
|
124
|
</span> |
|
125
|
125
|
</td> |
|
126
|
126
|
<td> |
|
@@ -135,10 +135,10 @@ discard block |
|
|
block discarded – undo |
|
135
|
135
|
</table> |
|
136
|
136
|
<?php |
|
137
|
137
|
echo $optionDisplay->prefilledOptionTable("managedsp"); |
|
138
|
|
- echo "<button type='button' class='newoption' onclick='getXML(\"managedsp\")'>" . _("Add new option") . "</button>"; |
|
|
138
|
+ echo "<button type='button' class='newoption' onclick='getXML(\"managedsp\")'>"._("Add new option")."</button>"; |
|
139
|
139
|
echo "</fieldset>"; |
|
140
|
140
|
|
|
141
|
141
|
|
|
142
|
|
- echo "<p><button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button><button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_sp.php?inst_id=$my_inst->identifier\"'>" . _("Discard changes") . "</button></p></form>"; |
|
|
142
|
+ echo "<p><button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button><button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_sp.php?inst_id=$my_inst->identifier\"'>"._("Discard changes")."</button></p></form>"; |
|
143
|
143
|
echo $deco->footer(); |
|
144
|
144
|
|
|
145
|
145
|
\ No newline at end of file |