Skip to content

Commit

Permalink
Use dir for include (#178)
Browse files Browse the repository at this point in the history
* Update bdr.php

* Update bdr_delete.php

* Update bulk_account_settings.php

* Update bulk_account_settings_devices.php

* Update bulk_account_settings_devices_update.php

* Update bulk_account_settings_extensions.php

* Update bulk_account_settings_extensions_update.php

* Update bulk_account_settings_users.php

* Update bulk_account_settings_users_update.php

* Update sms_hook_bandwidth.php

* Update sms_hook_bulkvs.php

* Update sms_hook_didww.php

* Update sms_hook_flowroute.php

* Update sms_hook_peerless.php

* Update sms_hook_plivo.php

* Update sms_hook_teli.php

* Update sms_hook_telnyx.php

* Update sms_hook_twilio.php

* Update sms_hook_thinq.php

* Update sms.php

* Update sms_broadcast.php

* Update sms_broadcast_edit.php

* Update sms_broadcast_process.php

* Update sms_delete.php

* Update sms_edit.php

* Update sms_hook_common.php

* Update sms_mdr.php

* Update zoiper.php

* Update index.php

* Update provision.php

* Update sessiontalk_directory.php

* Update school_bells.php

* Update school_bell_edit.php

* Update school_bell_delete.php

* Update invoices.php

* Update invoice_pdf.php

* Update invoice_items.php

* Update invoice_item_edit.php

* Update invoice_item_delete.php

* Update invoice_edit.php

* Update invoice_delete.php

* Update domain_counts.php

* Update domain_counts_accountcodes.php

* Update active_extensions.php

* Update active_extensions_inc.php

* Update active_extension_assigned_inc.php
  • Loading branch information
alexdcrane authored Jun 21, 2023
1 parent da52150 commit 1f4948e
Show file tree
Hide file tree
Showing 46 changed files with 75 additions and 257 deletions.
8 changes: 2 additions & 6 deletions active_extensions/active_extension_assigned_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2018
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
8 changes: 2 additions & 6 deletions active_extensions/active_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2018
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
8 changes: 2 additions & 6 deletions active_extensions/active_extensions_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Copyright (C) 2010-2018
Copyright (C) 2010-2023
All Rights Reserved.
Contributor(s):
Mark J Crane <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
8 changes: 2 additions & 6 deletions bdr/bdr.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";

//check permissions
require_once "resources/check_auth.php";
Expand Down
7 changes: 2 additions & 5 deletions bdr/bdr_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2012
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <[email protected]>
*/
//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('bdr_delete')) {
//access granted
Expand Down
8 changes: 2 additions & 6 deletions bulk_account_settings/bulk_account_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
require_once "resources/paging.php";

Expand Down
8 changes: 2 additions & 6 deletions bulk_account_settings/bulk_account_settings_devices.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
require_once "resources/paging.php";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
8 changes: 2 additions & 6 deletions bulk_account_settings/bulk_account_settings_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
require_once "resources/paging.php";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
8 changes: 2 additions & 6 deletions bulk_account_settings/bulk_account_settings_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2020
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
require_once "resources/paging.php";

Expand Down
8 changes: 2 additions & 6 deletions bulk_account_settings/bulk_account_settings_users_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
8 changes: 2 additions & 6 deletions domain_counts/domain_counts.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
require_once "resources/paging.php";

Expand Down
8 changes: 2 additions & 6 deletions domain_counts/domain_counts_accountcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
KonradSC <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
require_once "resources/paging.php";

Expand Down
8 changes: 2 additions & 6 deletions invoices/invoice_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2012
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
8 changes: 2 additions & 6 deletions invoices/invoice_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2017
Portions created by the Initial Developer are Copyright (C) 2008-2023
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <[email protected]>
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
6 changes: 1 addition & 5 deletions invoices/invoice_item_delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//get permissions
Expand Down
6 changes: 1 addition & 5 deletions invoices/invoice_item_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissionss
Expand Down
6 changes: 1 addition & 5 deletions invoices/invoice_items.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/

//set the include path
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
set_include_path(parse_ini_file($conf[0])['document.root']);

//includes files
require_once "resources/require.php";
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";

//check permissions
Expand Down
Loading

0 comments on commit 1f4948e

Please sign in to comment.