Commit Graph

71 Commits

Author SHA1 Message Date
frytimo 08001488f4
Allow namespace in auto loader (#7307)
* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove closing tag

* remove invalid method params

* remove closing tag

* remove closing tag

* Update auto_loader to load each class file in the project
Update the auto_loader class to use an include statement on each file in the project to load the class within the file. This will allow mismatched names within the file to be loaded and mapped according to the declaration instead of the filename. The class is then checked against the parsed classes from the PHP engine so that namespaces are available and mapped to the file they were declared in. An update was also made to the search algorithm used to find a file that was not already loaded by collapsing the array to have only valid matches to increase performance on a cache miss. Logging within the auto_loader has been moved to a function.
Multiple files were modified to allow the include statement. When the class has the `if(class_exists())` statement, the auto_loader is called to check for the class. This caused an infinite loop scenario so all wrappers have been removed. The auto_loader will now break the loop by directly modifying the internal classes array instead of trying to restart with the 'reload_classes' method.

- APCu is used to cache classes so any loading of the classes is done only once. To clear the APCu cache, restart php-fpm or call the auto_loader::clear_cache() function.
- Cache file is used when APCu is not available. To clear the cache remove it from the tmp folder or call the auto_loader::clear_cache() function.
- All classes must no longer have a class_exists wrapper to benefit from the performance boost.
- Classes should not be directly included when the auto_loader is used.

* remove include statement of class file

* Update destinations.php
2025-03-12 13:55:47 -06:00
Alex abb95e38bb
Add content card to outbound route add and pin number export (#7308)
* Add content card to outbound route add and pin number export

* Add content card
2025-03-12 13:37:26 -06:00
Alex 35aa781c90
Add content card to device export and pin numbers (#7297)
* Add content card to device export and pin numbers

* Update pin_numbers.php

* Update pin_number_edit.php

* Update device_download.php
2025-03-10 10:26:27 -06:00
frytimo d529021b3f
Use boolean setting as true boolean (#7284)
* use boolean setting as true boolean

* Update settings class to use the php filter_var function for boolean
Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested.
I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here.

* Update settings class to use the php filter_var function for boolean
Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested.
I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here.
2025-03-04 11:25:47 -07:00
Alex 8cfc221da4
Redirect to the correct domain if using show all (#7265)
* Redirect to the correct domain if using show all

* Update bridges.php

* Update call_recordings.php

* Update conference_controls.php

* Update conference_profile_params.php

* Update conference_profiles.php

* Update email_queue.php

* Update event_guard_logs.php

* Update fax_queue.php

* Update user_settings.php

* Update require.php
2025-02-20 16:30:09 -07:00
Alex b43bcb9a13
Added the heading counter div (#7124) 2024-09-06 16:43:42 -06:00
NorwayFun aabc2f33a8
Localization: Add full support for Georgian language (#7110)
* Translating apps to Georgian

* Translating apps to Georgian

* Translating more apps to Georgian

* Translating more apps to Georgian

* Translating more apps to Georgian

* Translating more apps to Georgian

* Translating more apps to Georgian

* Translating theme to Georgian

* Translating core to Georgian

* Translating core to Georgian

* Translating core to Georgian by Marie

* Translating core to Georgian

* Translating resources to Georgian by Marie

* Translating core to Georgian

* fix app_languages.php
2024-08-28 09:59:02 -06:00
Alex 4004a698c4
Added more Greek and Turkish translations (#6880)
* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php
2024-01-30 16:17:24 -07:00
frytimo d7bbcd89f5
Use magic constant dir (#6711)
* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__ to load only functions.php

* replace spaces with tab character

* update dirname command to use levels instead of nesting

* use magic constant __DIR__

* update dirname command to use levels instead of nesting

* Update access_control_edit.php

* Update access_control_import.php

* Update access_controls.php

* Update dnd.php

* Update access_controls_reload.php

* Update call_center_agents.php

* Update call_center_agents.php

* Update fax_queue.php

* Update login.php

* Update pdo.php

* Update pdo_vm.php

* Update switch.php

* Update index.php

* Update css.php

* Update v_mailto.php

* Update fax_to_email.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-06-15 11:28:23 -06:00
fusionate fa93b4e7f5
Misc: Updates for PHP 8.1 2023-06-09 17:29:33 +00:00
Alex a46c5dbfc9
Update translations (#6688)
* Update app_languages.php
2023-05-12 15:14:59 -06:00
Alex 3e0ec8b752
Add missing translations (#6673) 2023-05-09 11:39:02 -06:00
frytimo fef8165be2
Frytimo pr patches for php8.1 (#6630)
* Passing null to parameter #2 ($string) of type string is deprecated

* Passing null to parameter #1 ($string) of type string is deprecated

* php 8.1 fixes

* php 8.1 fixes - replace strlen($var) > 0 with !empty($var)

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - strlower with null

* php 8.1 fixes - strreplace with null

* php 8.1 fixes - passing null to base64_decode

* php 8.1 fixes - check for false and check for null on $this->dir

* php 8.1 fixes - remove assignment of $db variable to modules object

* php 8.1 fixes - avoid sending null to substr

* php 8.1 fixes - change ${var} to {$var}

* php 8.1 fixes - check for null before preg_replace

* php 8.1 fixes - remove setting db variable on domains object

* php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null

* php 8.1 fixes - set empty string if $_REQUEST['show'] is not available

* php 8.1 fixes

* php 8.1 fixes - correct $_POST checking syntax

* php 8.1 fixes - correct $_POST variables

* php 8.1 fixes

* Use brackets consistently

* Update user_setting_edit.php

* Change to not empty

* Update device.php

* Update text.php

---------

Co-authored-by: Tim Fry <tim@voipstratus.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-05-05 10:46:37 -06:00
markjcrane 1513bd3301 Add Chinese, Korean, and Japanese translations 2023-05-03 10:36:25 -06:00
markjcrane 28fe89066e Add Chinese, Korean, and Japanese translations 2023-05-02 22:05:16 -06:00
markjcrane 381b3bdd9f Add menu translations 2023-05-02 20:30:13 -06:00
markjcrane 41e87e7f01 Add additional languages 2023-05-02 20:22:44 -06:00
frytimo 69bd42af05
remove unneeded destruct methods as GC has higher performance (#6631)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2023-04-27 20:18:53 -06:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
markjcrane eb5c25aa35 Add insert_date, insert_user, update_date, update_user to all tables 2022-09-18 00:54:37 -06:00
nyash 0bc048a634
Add/edit some polish translations (#6327)
* Add/edit some polish translations

* Minor touches to polish translations
2022-03-26 14:30:02 -06:00
Nate d2e5c8bde8 PIN Numbers: Modal integration. 2020-03-26 13:49:00 -06:00
racitup a1699f6fa6 Add en-gb fusionpbx language (#5192)
* Create en-gb language by copying en-us

* Add en-gb to app_configs

* Add en-gb to app_menus

* Language copy utility

* Fix missing quote mark

* Delete cp_lang.py

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2020-03-20 14:47:13 -06:00
Nate e8494facee Multiple: Add IDs to form tags, remove empty action attributes. 2020-03-05 10:02:25 -07:00
Nate 029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
Nate 7ca8ada158 PIN Numbers: Remove deprecated delete script. 2020-02-17 06:16:49 -07:00
Nate 360a5a52ec PIN Numbers - List: Add window title. 2020-02-17 06:15:46 -07:00
Nate 55f43b210a PIN Numbers - Export: Token integration. 2020-02-17 06:13:14 -07:00
Nate eaed0ec503 PIN Numbers: Button updates. 2020-02-17 06:12:30 -07:00
Nate b033cbdb43 PIN Numbers - Export: List view and button updates. 2020-02-10 22:13:39 -07:00
chansizzle 928016bb1a Update app_config.php (#5038)
* Update app_config.php
2020-01-08 20:50:21 -07:00
Nate bec5c647c9 List View: Updates to action classes. 2019-11-30 15:18:48 -07:00
Nate aa593c03fc List Views: Minor adjustments to code. 2019-11-30 14:18:00 -07:00
Nate bfb17507f1 List Views: Simplify action handling. 2019-11-30 11:12:41 -07:00
Nate 0a05f9d4ba Update pin_numbers.php 2019-11-27 08:02:19 -07:00
Nate d95a5d65d3 Update pin_numbers.php 2019-11-27 08:01:37 -07:00
Nate 5bb18e73a3 PIN Numbers: List view updates. 2019-11-27 08:00:09 -07:00
noci2012 9c7dad151f Final batch nl-nl translation items. (for /app). (#4907)
* add nl-nl items

* Update app_config.php

* add nl-nl items

* Update app_languages.php

* Update app_menu.php

* Update app_languages.php

* Update app_menu.php

* Fix typos inn nl-nl

* Add nl-nl items

* dd nl-nl items.

* Add nl-nl items.

* Add nl-nl items (call-flows)

* Add nl-nl items

* Add nl-nl items

* dd nl-nl items (calls)

* Add nl-nl items

* Add nl-nl items (contacts)

* Add nl-nl items (vars)

* Add nl-nl items (voicemails)

* Add nl-nl items (xml_cdr)

* Add nl-nl items (xml_cdr)

* This reverts commit 41afeb4796.

* Add nl-nl items (voicemail_greetings)

* Add nl-nl items (system)

* Add nl-nl items (sip_profiles)

* Add nl-nl items (sip_status)

* Add nl-nl items (settings)

* Add nl-nl items (database_transactions)

* Add nl-nl items (destinations)

* Add nl-nl (devices)

* Add nl-nl (conferences)

* Add nl-nl (conferences_active)

* Add nl-nl (conference_centers)

* Update nl-nl (conference_centers)

* Add nl-nl (conference_controls)

* Add nl-nl items (conference_profiles)

* Add nl-nl items (dialplan_inbound)

* Add nl-nl items (dialplan_inbound)

* Add nl-nl items (dialplan_outbound)

* Add nl-nl items (dialplans)

* Add nl-nl items (edit)

* Add nl-nl items (email_logs)

* Add nl-nl items (errors)

* Add nl-nl items (exec)

* Add nl-nl items (access_controls)

* some skipped entries

* add nl-nl items (extensions)

* add nl-nl items (fifo)

* fixed translation, better fitting word kenmerk instead of etiket

* add nl-nl items (fifo_list)

* add nl-nl items (follow_me)

* add nl-nl items (gateways)

* add nl-nl items (ivr_menus)

* add nl-nl items (meetings)

* add nl-nl items (log_viewer)

* add nl-nl items (ring_groups)

* add nl-nl items (messages)

* add nl-nl items (modules)

* add nl-nl items (music_on_hold)

* add nl-nl items (number_translations)

* fix merge conflict (gateways)

* add nl-nl items (phrases)

* add nl-nl items (pin_numbers)

* add nl-nl items (providers)

* add nl-nl items (gswave)

* add nl-nl items (provision)

* add nl-nl items (recordings)

* add nl-nl items (registrations)

* align translations
2019-11-23 10:14:27 -07:00
Nate 253e51b5b3 Pin Numbers: Token integration. 2019-09-19 07:29:36 -06:00
emaktech 9e27c4bd33 Modified fr-ca / fr-fr translation. (#4614) 2019-09-16 17:58:11 -06:00
Nate 7bf2c1d19f Pin Numbers: Database class integration. 2019-08-12 05:26:58 -06:00
chansizzle 8d2b6cb14a Update pin_download.php (#4255) 2019-06-03 15:34:35 -06:00
chansizzle 8ff9af8b97 Update pin_download.php 2019-05-27 10:08:08 -06:00
markjcrane a72f1d6266 Change messages class to message 2018-08-31 03:09:01 +00:00
AlexanderDCrane a6265bcfcf Update pin_number_edit.php (#3304) 2018-08-27 20:28:18 -06:00
AlexanderDCrane fb846fa73a Update pin_numbers.php (#3303) 2018-08-27 16:14:29 -06:00
Mafoo 4d60f4f6d5 Enhance [master] - Italian Translations (#2989)
* Reinstate comments detected by text class

* Updated Italian Translations
2018-02-12 10:50:47 -07:00
Len 8aa433b37c Update pin_numbers.php 2017-10-10 20:31:31 -04:00
Christian Bergamaschi 9f228ef8c5 Italian translation added (#2852) 2017-09-21 09:06:26 -06:00
Mafoo 05f76b0556 Pass on languages before importing updates (#2849)
put language files into consistent state in preparation of a import
2017-09-19 09:48:40 -06:00