Update extension_edit.php

Add accountcode to extensions.
This commit is contained in:
FusionPBX 2016-10-14 07:42:01 -06:00 committed by GitHub
parent af5a0dd947
commit 457007a773
1 changed files with 14 additions and 3 deletions

View File

@ -79,9 +79,7 @@
$password = check_str($_POST["password"]);
// server verification on account code
if (if_group("superadmin")) {
$accountcode = $_POST["accountcode"];
}
$accountcode = $_POST["accountcode"];
$effective_caller_id_name = check_str($_POST["effective_caller_id_name"]);
$effective_caller_id_number = check_str($_POST["effective_caller_id_number"]);
@ -914,6 +912,19 @@
echo "</tr>\n";
}
if (if_group("superadmin") || if_group("admin")) {
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-accountcode']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='accountcode' id='accountcode' maxlength='255' value='$accountcode'>\n";
echo " <br />\n";
echo " ".$text['description-accountcode']."\n";
echo "</td>\n";
echo "</tr>\n";
}
if (permission_exists('device_edit') && $action == "update") {
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/devices')) {
echo "<tr>\n";