Add a missing permission on backup.
This commit is contained in:
parent
25da5713be
commit
7f082bdef3
|
|
@ -223,30 +223,31 @@ else {
|
|||
echo "</div>";
|
||||
echo "<br><br>";
|
||||
|
||||
if (permission_exists("backup_upload")) {
|
||||
echo " </td>\n";
|
||||
echo " <td width='20'> </td>\n";
|
||||
echo " <td width='50%' valign='top'>\n";
|
||||
|
||||
echo "<b>".$text['header-restore']."</b>\n";
|
||||
echo "<br><br>";
|
||||
echo " <b>".$text['header-restore']."</b>\n";
|
||||
echo " <br><br>";
|
||||
echo $text['description-restore']."\n";
|
||||
echo "<br><br><br>";
|
||||
echo "<div align='center'>";
|
||||
echo "<form name='frmrestore' method='post' enctype='multipart/form-data' action=''>";
|
||||
echo "<input type='hidden' name='a' value='restore'>";
|
||||
echo "<table>";
|
||||
echo " <br><br><br>";
|
||||
echo " <div align='center'>";
|
||||
echo " <form name='frmrestore' method='post' enctype='multipart/form-data' action=''>";
|
||||
echo " <input type='hidden' name='a' value='restore'>";
|
||||
echo " <table>";
|
||||
echo " <tr>";
|
||||
echo " <td nowrap>".$text['label-select_backup']." </td>";
|
||||
echo " <td><input type='file' class='formfld fileinput' name='backup_file'></td>";
|
||||
echo " <td><input type='submit' class='btn' value='".$text['button-restore']."'></td>";
|
||||
echo " </tr>";
|
||||
echo "</table>";
|
||||
echo "<br>";
|
||||
echo "<span style='font-weight: bold; text-decoration: underline; color: #000;'>".$text['description-restore_warning']."</span>";
|
||||
echo "</form>\n";
|
||||
echo "</div>";
|
||||
|
||||
echo " </table>";
|
||||
echo " <br>";
|
||||
echo " <span style='font-weight: bold; text-decoration: underline; color: #000;'>".$text['description-restore_warning']."</span>";
|
||||
echo " </form>\n";
|
||||
echo " </div>";
|
||||
echo " </td>\n";
|
||||
}
|
||||
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "<br><br>";
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
local cache = require"resources.functions.cache"
|
||||
local log = require"resources.functions.log"["xml_handler"]
|
||||
|
||||
-- needed for cli-command xml_locate dialplan
|
||||
--needed for cli-command xml_locate dialplan
|
||||
if (call_context == nil) then
|
||||
call_context = "public";
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue