mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Remove redundant database instances (#7535)
This commit is contained in:
@@ -37,9 +37,6 @@
|
||||
exit;
|
||||
}
|
||||
|
||||
//connect to the database
|
||||
$database = new database;
|
||||
|
||||
//get posted data
|
||||
if (!empty($_POST['search'])) {
|
||||
$search = $_POST['search'];
|
||||
|
||||
@@ -29,9 +29,6 @@
|
||||
require_once "resources/check_auth.php";
|
||||
require_once "resources/paging.php";
|
||||
|
||||
//connect to the database
|
||||
$database = new database;
|
||||
|
||||
//redirect admin to app instead
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/domains/app_config.php") && !permission_exists('domain_all') && !is_cli()) {
|
||||
header("Location: ".PROJECT_PATH."/app/domains/domains.php");
|
||||
|
||||
Reference in New Issue
Block a user