2012-06-04 16:58:40 +02:00
|
|
|
<?php
|
|
|
|
|
/*
|
|
|
|
|
FusionPBX
|
|
|
|
|
Version: MPL 1.1
|
|
|
|
|
|
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
|
1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
http://www.mozilla.org/MPL/
|
|
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
|
for the specific language governing rights and limitations under the
|
|
|
|
|
License.
|
|
|
|
|
|
|
|
|
|
The Original Code is FusionPBX
|
|
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is
|
|
|
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
2019-09-05 07:15:10 +02:00
|
|
|
Portions created by the Initial Developer are Copyright (C) 2008-2019
|
2012-06-04 16:58:40 +02:00
|
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
|
|
|
|
*/
|
2016-07-28 07:03:59 +02:00
|
|
|
|
2016-07-28 07:59:25 +02:00
|
|
|
//includes
|
|
|
|
|
include "root.php";
|
|
|
|
|
require_once "resources/require.php";
|
|
|
|
|
require_once "resources/check_auth.php";
|
2013-05-04 02:35:21 +02:00
|
|
|
|
2016-07-28 07:59:25 +02:00
|
|
|
//check permissions
|
|
|
|
|
if (permission_exists('extension_view')) {
|
|
|
|
|
//access granted
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "access denied";
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//get the registrations
|
|
|
|
|
if (permission_exists('extension_registered')) {
|
2017-08-28 10:21:59 +02:00
|
|
|
$obj = new registrations;
|
|
|
|
|
$registrations = $obj->get('all');
|
2016-07-28 07:59:25 +02:00
|
|
|
}
|
2016-07-28 07:03:59 +02:00
|
|
|
|
2013-05-04 02:35:21 +02:00
|
|
|
//add multi-lingual support
|
2015-01-18 11:33:34 +01:00
|
|
|
$language = new text;
|
|
|
|
|
$text = $language->get();
|
2013-05-04 02:35:21 +02:00
|
|
|
|
2015-03-22 09:48:50 +01:00
|
|
|
//get the http values and set them as variables
|
2019-08-07 03:49:59 +02:00
|
|
|
$search = $_GET["search"];
|
|
|
|
|
$order_by = $_GET["order_by"];
|
|
|
|
|
$order = $_GET["order"];
|
2015-03-22 09:48:50 +01:00
|
|
|
|
2016-03-04 03:01:58 +01:00
|
|
|
//handle search term
|
2019-08-07 03:49:59 +02:00
|
|
|
$search = $_GET["search"];
|
2016-03-04 03:01:58 +01:00
|
|
|
if (strlen($search) > 0) {
|
2018-12-05 06:06:50 +01:00
|
|
|
$search = strtolower($search);
|
2017-12-09 21:08:09 +01:00
|
|
|
$sql_search = "and ( ";
|
2019-09-05 07:15:10 +02:00
|
|
|
$sql_search .= " lower(extension) like :search ";
|
|
|
|
|
$sql_search .= " or lower(call_group) like :search ";
|
|
|
|
|
$sql_search .= " or lower(user_context) like :search ";
|
|
|
|
|
$sql_search .= " or lower(enabled) like :search ";
|
|
|
|
|
$sql_search .= " or lower(description) like :search ";
|
2017-12-09 21:08:09 +01:00
|
|
|
$sql_search .= ") ";
|
2019-08-07 03:49:59 +02:00
|
|
|
$parameters['search'] = '%'.$search.'%';
|
2016-03-04 03:01:58 +01:00
|
|
|
}
|
|
|
|
|
|
2019-08-07 03:49:59 +02:00
|
|
|
//get total extension count
|
2019-09-05 07:15:10 +02:00
|
|
|
$sql = "select count(extension_uuid) from v_extensions ";
|
2019-08-07 03:49:59 +02:00
|
|
|
if (!($_GET['show'] == "all" && permission_exists('extension_all'))) {
|
2019-09-05 07:15:10 +02:00
|
|
|
$sql .= "where domain_uuid = :domain_uuid ";
|
2019-08-07 03:49:59 +02:00
|
|
|
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
2016-03-29 11:42:24 +02:00
|
|
|
}
|
2019-09-05 07:15:10 +02:00
|
|
|
$sql .= $sql_search;
|
2019-08-07 03:49:59 +02:00
|
|
|
$database = new database;
|
2019-09-05 07:15:10 +02:00
|
|
|
$extension_count = $database->select($sql, $parameters, 'column');
|
2019-08-07 03:49:59 +02:00
|
|
|
|
2019-09-05 07:15:10 +02:00
|
|
|
//additional includes
|
|
|
|
|
$document['title'] = $text['title-extensions'];
|
|
|
|
|
require_once "resources/paging.php";
|
2015-03-22 09:17:04 +01:00
|
|
|
|
|
|
|
|
//prepare to page the results
|
2016-03-29 07:02:11 +02:00
|
|
|
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
|
2019-09-05 07:15:10 +02:00
|
|
|
$param = "&search=".urlencode($search);
|
2015-03-22 09:17:04 +01:00
|
|
|
if (!isset($_GET['page'])) { $_GET['page'] = 0; }
|
2019-09-05 07:15:10 +02:00
|
|
|
$_GET['page'] = $_GET['page'];
|
2016-05-08 02:06:36 +02:00
|
|
|
list($paging_controls_mini, $rows_per_page, $var_3) = paging($total_extensions, $param, $rows_per_page, true); //top
|
|
|
|
|
list($paging_controls, $rows_per_page, $var_3) = paging($total_extensions, $param, $rows_per_page); //bottom
|
2015-03-22 09:17:04 +01:00
|
|
|
$offset = $rows_per_page * $_GET['page'];
|
|
|
|
|
|
|
|
|
|
//get the extensions
|
2019-09-05 07:15:10 +02:00
|
|
|
$sql = "select * from v_extensions ";
|
|
|
|
|
if (!($_GET['show'] == "all" && permission_exists('extension_all'))) {
|
|
|
|
|
$sql .= "where domain_uuid = :domain_uuid ";
|
|
|
|
|
$parameters['domain_uuid'] = $_SESSION['domain_uuid'];
|
|
|
|
|
}
|
|
|
|
|
$sql .= $sql_search;
|
2019-09-09 16:21:58 +02:00
|
|
|
if ($order_by == '' || $order_by == 'extension') {
|
|
|
|
|
if ($db_type == 'pgsql') {
|
|
|
|
|
$sql .= 'order by natural_sort(extension) '.$order; //function in app_defaults.php
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$sql .= 'order by extension '.$order;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$sql .= order_by($order_by, $order);
|
|
|
|
|
}
|
2019-09-05 07:15:10 +02:00
|
|
|
$sql .= limit_offset($rows_per_page, $offset);
|
2019-08-07 03:49:59 +02:00
|
|
|
$database = new database;
|
2019-09-05 07:15:10 +02:00
|
|
|
$extensions = $database->select($sql, $parameters, 'all');
|
|
|
|
|
unset($sql, $parameters);
|
2015-03-22 09:17:04 +01:00
|
|
|
|
2016-08-05 04:05:56 +02:00
|
|
|
//set the alternating styles
|
|
|
|
|
$c = 0;
|
|
|
|
|
$row_style["0"] = "row_style0";
|
|
|
|
|
$row_style["1"] = "row_style1";
|
|
|
|
|
|
2019-09-05 07:15:10 +02:00
|
|
|
//include the header
|
|
|
|
|
require_once "resources/header.php";
|
|
|
|
|
|
2015-09-05 07:12:36 +02:00
|
|
|
//show the content
|
|
|
|
|
echo "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
|
|
|
|
|
echo " <tr>\n";
|
2016-08-05 04:05:56 +02:00
|
|
|
echo " <td align='left' width='100%'>\n";
|
2019-09-05 07:15:10 +02:00
|
|
|
echo " <b>".$text['header-extensions']." (".$extension_count.")</b><br>\n";
|
2015-09-05 07:12:36 +02:00
|
|
|
echo " </td>\n";
|
|
|
|
|
echo " <form method='get' action=''>\n";
|
2016-03-04 03:01:58 +01:00
|
|
|
echo " <td style='vertical-align: top; text-align: right; white-space: nowrap;'>\n";
|
2017-12-09 21:08:09 +01:00
|
|
|
if (permission_exists('extension_all')) {
|
|
|
|
|
if ($_GET['show'] == 'all') {
|
|
|
|
|
echo " <input type='hidden' name='show' value='all'>";
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo " <input type='button' class='btn' value='".$text['button-show_all']."' onclick=\"window.location='extensions.php?show=all';\">\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-02-22 17:40:45 +01:00
|
|
|
if (permission_exists('extension_import')) {
|
2018-09-28 19:06:32 +02:00
|
|
|
echo "<input type='button' class='btn' alt='".$text['button-import']."' onclick=\"window.location='extension_imports.php'\" value='".$text['button-import']."'>\n";
|
2018-02-22 17:40:45 +01:00
|
|
|
}
|
2017-12-09 21:12:27 +01:00
|
|
|
if (permission_exists('extension_export')) {
|
2018-02-22 17:40:45 +01:00
|
|
|
echo " <input type='button' class='btn' value='".$text['button-export']."' onclick=\"window.location.href='extension_download.php'\">\n";
|
2015-12-11 00:07:46 +01:00
|
|
|
}
|
2018-06-03 05:25:11 +02:00
|
|
|
echo " <input type='text' class='txt' style='width: 150px; margin-left: 15px;' name='search' id='search' value='".escape($search)."'>";
|
2015-09-05 07:12:36 +02:00
|
|
|
echo " <input type='submit' class='btn' name='submit' value='".$text['button-search']."'>";
|
2016-03-04 03:01:58 +01:00
|
|
|
if ($paging_controls_mini != '') {
|
|
|
|
|
echo "<span style='margin-left: 15px;'>".$paging_controls_mini."</span>\n";
|
|
|
|
|
}
|
2015-09-05 07:12:36 +02:00
|
|
|
echo " </td>\n";
|
|
|
|
|
echo " </form>\n";
|
|
|
|
|
echo " </tr>\n";
|
2016-08-05 04:05:56 +02:00
|
|
|
echo " <tr>\n";
|
|
|
|
|
echo " <td colspan='2'>\n";
|
|
|
|
|
echo " ".$text['description-extensions']."\n";
|
|
|
|
|
echo " </td>\n";
|
|
|
|
|
echo " </tr>\n";
|
2015-09-05 07:12:36 +02:00
|
|
|
echo "</table>\n";
|
|
|
|
|
echo "<br />";
|
|
|
|
|
|
2016-03-17 01:48:42 +01:00
|
|
|
echo "<form name='frm' method='post' action='extension_delete.php'>\n";
|
2015-03-22 09:17:04 +01:00
|
|
|
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
|
|
|
|
echo "<tr>\n";
|
2016-05-08 01:37:24 +02:00
|
|
|
if (permission_exists('extension_delete') && is_array($extensions)) {
|
2016-03-17 01:48:42 +01:00
|
|
|
echo "<th style='width: 30px; text-align: center; padding: 0px;'><input type='checkbox' id='chk_all' onchange=\"(this.checked) ? check('all') : check('none');\"></th>";
|
|
|
|
|
}
|
2017-12-09 21:08:09 +01:00
|
|
|
if ($_GET['show'] == "all" && permission_exists('extension_all')) {
|
|
|
|
|
echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, $param);
|
|
|
|
|
}
|
2015-03-22 09:17:04 +01:00
|
|
|
echo th_order_by('extension', $text['label-extension'], $order_by, $order);
|
|
|
|
|
echo th_order_by('call_group', $text['label-call_group'], $order_by, $order);
|
|
|
|
|
//echo th_order_by('voicemail_mail_to', $text['label-voicemail_mail_to'], $order_by, $order);
|
2019-08-16 19:25:32 +02:00
|
|
|
if (permission_exists("extension_user_context")) {
|
|
|
|
|
echo th_order_by('user_context', $text['label-user_context'], $order_by, $order);
|
|
|
|
|
}
|
2016-07-28 07:59:25 +02:00
|
|
|
if (permission_exists('extension_registered')) {
|
2019-06-03 21:50:56 +02:00
|
|
|
echo "<th>".$text['label-is_registered']."</th>\n";
|
2016-07-28 07:03:59 +02:00
|
|
|
}
|
2016-07-28 17:59:38 +02:00
|
|
|
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order);
|
|
|
|
|
echo th_order_by('description', $text['label-description'], $order_by, $order);
|
|
|
|
|
|
2016-04-01 02:03:32 +02:00
|
|
|
echo "<td class='list_control_icon'>\n";
|
2015-03-22 09:17:04 +01:00
|
|
|
if (permission_exists('extension_add')) {
|
|
|
|
|
if ($_SESSION['limit']['extensions']['numeric'] == '' || ($_SESSION['limit']['extensions']['numeric'] != '' && $total_extensions < $_SESSION['limit']['extensions']['numeric'])) {
|
2016-03-17 01:48:42 +01:00
|
|
|
echo "<a href='extension_edit.php' alt='".$text['button-add']."'>".$v_link_label_add."</a>";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
2015-03-22 09:17:04 +01:00
|
|
|
}
|
2016-05-08 01:37:24 +02:00
|
|
|
if (permission_exists('extension_delete') && is_array($extensions)) {
|
2016-03-17 01:48:42 +01:00
|
|
|
echo "<a href='javascript:void(0);' onclick=\"if (confirm('".$text['confirm-delete']."')) { document.forms.frm.submit(); }\" alt='".$text['button-delete']."'>".$v_link_label_delete."</a>";
|
|
|
|
|
}
|
2015-03-22 09:17:04 +01:00
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
|
2016-05-08 01:27:27 +02:00
|
|
|
if (is_array($extensions)) {
|
2015-09-05 07:12:36 +02:00
|
|
|
foreach($extensions as $row) {
|
2018-06-30 06:58:48 +02:00
|
|
|
$tr_link = (permission_exists('extension_edit')) ? " href='extension_edit.php?id=".escape($row['extension_uuid'])."'" : null;
|
2015-03-22 09:17:04 +01:00
|
|
|
echo "<tr ".$tr_link.">\n";
|
2016-03-17 01:48:42 +01:00
|
|
|
if (permission_exists('extension_delete')) {
|
|
|
|
|
echo " <td valign='top' class='".$row_style[$c]." tr_link_void' style='text-align: center; vertical-align: middle; padding: 0px;'>";
|
2018-06-30 06:58:48 +02:00
|
|
|
echo " <input type='checkbox' name='id[]' id='checkbox_".escape($row['extension_uuid'])."' value='".escape($row['extension_uuid'])."' onclick=\"if (!this.checked) { document.getElementById('chk_all').checked = false; }\">";
|
2016-03-17 01:48:42 +01:00
|
|
|
echo " </td>";
|
|
|
|
|
$ext_ids[] = 'checkbox_'.$row['extension_uuid'];
|
|
|
|
|
}
|
2017-12-09 21:08:09 +01:00
|
|
|
if ($_GET['show'] == "all" && permission_exists('extension_all')) {
|
2018-06-03 05:25:11 +02:00
|
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".escape($_SESSION['domains'][$row['domain_uuid']]['domain_name'])."</td>\n";
|
2017-12-09 21:08:09 +01:00
|
|
|
}
|
2015-03-22 09:17:04 +01:00
|
|
|
echo " <td valign='top' class='".$row_style[$c]."'>";
|
|
|
|
|
if (permission_exists('extension_edit')) {
|
2018-06-30 06:58:48 +02:00
|
|
|
echo "<a href='extension_edit.php?id=".escape($row['extension_uuid'])."'>".escape($row['extension'])."</a>";
|
2015-03-22 09:17:04 +01:00
|
|
|
}
|
|
|
|
|
else {
|
2018-06-03 05:25:11 +02:00
|
|
|
echo escape($row['extension']);
|
2015-03-22 09:17:04 +01:00
|
|
|
}
|
|
|
|
|
echo "</td>\n";
|
2018-06-03 05:25:11 +02:00
|
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".escape($row['call_group'])." </td>\n";
|
2015-03-22 09:17:04 +01:00
|
|
|
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['voicemail_mail_to']." </td>\n";
|
2019-08-16 19:25:32 +02:00
|
|
|
if (permission_exists("extension_user_context")) {
|
|
|
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".escape($row['user_context'])."</td>\n";
|
|
|
|
|
}
|
2016-07-28 07:59:25 +02:00
|
|
|
if (permission_exists('extension_registered')) {
|
2017-11-20 21:59:50 +01:00
|
|
|
echo " <td valign='top' class='".$row_style[$c]."'>";
|
|
|
|
|
$extension_number = $row['extension'].'@'.$_SESSION['domain_name'];
|
|
|
|
|
$extension_number_alias = $row['number_alias'];
|
|
|
|
|
if(strlen($extension_number_alias) > 0) {
|
|
|
|
|
$extension_number_alias .= '@'.$_SESSION['domain_name'];
|
|
|
|
|
}
|
|
|
|
|
$found_count = 0;
|
2018-06-30 06:58:48 +02:00
|
|
|
foreach ($registrations as $array) {
|
|
|
|
|
if (
|
|
|
|
|
($extension_number == $array['user']) ||
|
2017-11-20 21:59:50 +01:00
|
|
|
($extension_number_alias != '' &&
|
2018-06-30 06:58:48 +02:00
|
|
|
$extension_number_alias == $array['user']
|
2017-11-20 21:59:50 +01:00
|
|
|
)
|
2018-06-30 06:58:48 +02:00
|
|
|
) {
|
2017-11-20 21:59:50 +01:00
|
|
|
$found_count++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if ($found_count > 0) {
|
|
|
|
|
echo "Yes ($found_count)";
|
|
|
|
|
} else {
|
|
|
|
|
echo "No";
|
|
|
|
|
}
|
2018-06-30 06:58:48 +02:00
|
|
|
unset($extension_number, $extension_number_alias, $found_count, $array);
|
2017-11-20 21:59:50 +01:00
|
|
|
echo " </td>\n";
|
|
|
|
|
}
|
2016-07-28 07:03:59 +02:00
|
|
|
|
2019-08-12 13:26:58 +02:00
|
|
|
echo " <td valign='top' class='".$row_style[$c]."'>".($row['enabled'] == 'true' ? $text['label-true'] : $text['label-false'])."</td>\n";
|
2018-06-03 05:25:11 +02:00
|
|
|
echo " <td valign='top' class='row_stylebg' width='30%'>".escape($row['description'])." </td>\n";
|
2016-07-28 17:59:38 +02:00
|
|
|
|
2015-03-22 09:17:04 +01:00
|
|
|
echo " <td class='list_control_icons'>";
|
|
|
|
|
if (permission_exists('extension_edit')) {
|
2018-06-30 06:58:48 +02:00
|
|
|
echo "<a href='extension_edit.php?id=".escape($row['extension_uuid'])."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
|
2015-03-22 09:17:04 +01:00
|
|
|
}
|
|
|
|
|
if (permission_exists('extension_delete')) {
|
2018-06-30 06:58:48 +02:00
|
|
|
echo "<a href='extension_delete.php?id[]=".escape($row['extension_uuid'])."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
|
2015-03-22 09:17:04 +01:00
|
|
|
}
|
|
|
|
|
echo "</td>\n";
|
|
|
|
|
echo "</tr>\n";
|
2016-04-01 02:03:32 +02:00
|
|
|
$c = ($c) ? 0 : 1;
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
2015-03-22 09:17:04 +01:00
|
|
|
}
|
2019-08-07 03:49:59 +02:00
|
|
|
unset($extensions, $row);
|
2016-03-17 01:48:42 +01:00
|
|
|
|
2016-05-08 01:37:24 +02:00
|
|
|
if (is_array($extensions)) {
|
2016-04-01 02:03:32 +02:00
|
|
|
echo "<tr>\n";
|
|
|
|
|
echo " <td colspan='20' class='list_control_icons'>\n";
|
|
|
|
|
if (permission_exists('extension_add')) {
|
|
|
|
|
if ($_SESSION['limit']['extensions']['numeric'] == '' || ($_SESSION['limit']['extensions']['numeric'] != '' && $total_extensions < $_SESSION['limit']['extensions']['numeric'])) {
|
|
|
|
|
echo "<a href='extension_edit.php' alt='".$text['button-add']."'>".$v_link_label_add."</a>";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (permission_exists('extension_delete')) {
|
|
|
|
|
echo "<a href='javascript:void(0);' onclick=\"if (confirm('".$text['confirm-delete']."')) { document.forms.frm.submit(); }\" alt='".$text['button-delete']."'>".$v_link_label_delete."</a>";
|
|
|
|
|
}
|
|
|
|
|
echo " </td>\n";
|
|
|
|
|
echo "</tr>\n";
|
|
|
|
|
}
|
2015-03-22 09:17:04 +01:00
|
|
|
|
|
|
|
|
echo "</table>";
|
2016-03-17 01:48:42 +01:00
|
|
|
echo "</form>";
|
2016-03-04 03:01:58 +01:00
|
|
|
|
|
|
|
|
if (strlen($paging_controls) > 0) {
|
2016-05-21 21:04:31 +02:00
|
|
|
echo "<br />";
|
|
|
|
|
echo $paging_controls."\n";
|
2016-03-04 03:01:58 +01:00
|
|
|
}
|
|
|
|
|
|
2016-05-08 01:37:24 +02:00
|
|
|
echo "<br /><br />".((is_array($extensions)) ? "<br /><br />" : null);
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2016-03-17 01:48:42 +01:00
|
|
|
// check or uncheck all checkboxes
|
|
|
|
|
if (sizeof($ext_ids) > 0) {
|
|
|
|
|
echo "<script>\n";
|
|
|
|
|
echo " function check(what) {\n";
|
2016-04-01 02:03:32 +02:00
|
|
|
echo " document.getElementById('chk_all').checked = (what == 'all') ? true : false;\n";
|
2016-03-17 01:48:42 +01:00
|
|
|
foreach ($ext_ids as $ext_id) {
|
2016-04-01 02:03:32 +02:00
|
|
|
echo " document.getElementById('".$ext_id."').checked = (what == 'all') ? true : false;\n";
|
2016-03-17 01:48:42 +01:00
|
|
|
}
|
|
|
|
|
echo " }\n";
|
|
|
|
|
echo "</script>\n";
|
|
|
|
|
}
|
|
|
|
|
|
2016-05-08 01:37:24 +02:00
|
|
|
if (is_array($extensions)) {
|
2016-04-01 02:03:32 +02:00
|
|
|
// check all checkboxes
|
|
|
|
|
key_press('ctrl+a', 'down', 'document', null, null, "check('all');", true);
|
|
|
|
|
|
|
|
|
|
// delete checked
|
|
|
|
|
key_press('delete', 'up', 'document', array('#search'), $text['confirm-delete'], 'document.forms.frm.submit();', true);
|
|
|
|
|
}
|
|
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
//show the footer
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/footer.php";
|
2017-12-09 21:08:09 +01:00
|
|
|
|
2019-09-09 16:21:58 +02:00
|
|
|
?>
|