Commit Graph

174 Commits

Author SHA1 Message Date
FusionPBX
6b063f2c28 Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
2025-12-08 14:12:19 -07:00
frytimo
bbe7b9e9b7 Documentation, format class, no modification. (#7628) 2025-11-18 18:49:39 -07:00
Alex
e53199fd28 Add HttpOnly, Secure, and Samesite session settings to config.conf (#7547)
* Add HttpOnly, Secure, and Samesite session settings to config.conf

* Update upgrade_menu.php

* Update upgrade.php

* Update upgrade.php

* Update install.php
2025-10-03 16:06:47 -06:00
FusionPBX
2fe8b65988 Define app_name and app_uuid as constants (#7534)
* Set a constant on each class for app_name and app_uuid
* Update the database class to use the app_uuid and app_name
* Update the classes to use the database::new()
* Remove the instances of 'new database'
2025-09-30 21:37:09 -06:00
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
Antonio Fernandez
541db7b5c9 Fix for BSDs core classes (#7051) 2024-07-14 09:51:20 -06:00
jrmcclean
4484c9ad5f Update install.php (#6853)
* Update install.php

Update config directory for windows from www folder to Programdata directory
2023-12-22 15:32:42 -07:00
jrmcclean
3b8b771c92 Update install.php (#6699)
* Changed If statement to Switch Case. 
* Added Win option
* Created new Var $php_dir and $cache_location
2023-05-24 17:21:42 -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
FusionPBX
4433737c43 Removed quotes
The quotes are optional and looks a little nicer so they have been removed.
2023-04-26 11:46:53 -06:00
FusionPBX
b4ccdd244b [bug] error reporting options user, dev, all (#6616)
An enhancement that adds simple options to show what errors to show in the web interface. This also fixes a bug that causes an error in PHP8.
2023-04-26 11:19:45 -06:00
FusionPBX
b620b36f28 Use SQLite by default for FreeSWITCH 2022-10-26 13:52:30 -06:00
FusionPBX
d87ecbb3f2 Add a message variable. 2022-10-22 19:21:48 -06:00
FusionPBX
bfe557edc3 install class method return boolean 2022-10-22 19:13:32 -06:00
FusionPBX
2178427977 Add content to the config method 2022-10-22 16:44:19 -06:00
FusionPBX
7685e7fcdb Delete iso_countries.php 2022-10-22 15:23:04 -06:00
FusionPBX
4892c468eb Create the install class 2022-10-22 15:22:47 -06:00
FusionPBX
fdf5f5f1f1 Update configuration.htm 2022-10-22 15:06:24 -06:00
FusionPBX
127d55579f Add button style to the install 2022-10-22 14:16:53 -06:00
FusionPBX
b44a4da6e1 Add local CSS to install.php 2022-10-22 13:19:13 -06:00
FusionPBX
8df6c6be4f Update configuration.htm 2022-10-15 22:01:03 -06:00
FusionPBX
dfe990b277 Update database.htm 2022-10-15 22:00:57 -06:00
FusionPBX
69246119f6 Fix the domain label 2022-10-14 10:23:14 -06:00
FusionPBX
e4a3091ea8 Update template.htm 2019-09-08 10:23:23 -06:00
FusionPBX
1c5c343ca0 Update template.htm 2019-09-08 10:01:13 -06:00
FusionPBX
0d5d2a2775 Update template.htm 2019-09-08 09:55:57 -06:00
FusionPBX
aa40bc822e Create template.htm 2019-06-01 17:41:57 -06:00
FusionPBX
c94ec05819 Delete account.htm 2019-06-01 17:39:10 -06:00
FusionPBX
85bf4f471d Create database.htm 2019-06-01 17:38:58 -06:00
FusionPBX
767ec30a88 Create configuration.htm 2019-06-01 17:35:47 -06:00
FusionPBX
2f800c9f41 Create account.htm 2019-06-01 17:35:04 -06:00
FusionPBX
7fa6b21c1e Delete install_switch.php 2019-06-01 17:30:13 -06:00
FusionPBX
93298dfb50 Delete install_fusionpbx.php 2019-06-01 17:30:06 -06:00
FusionPBX
5d5fa8f041 Delete global_settings.php 2019-06-01 17:29:59 -06:00
FusionPBX
7b2e01d692 Delete detect_switch.php 2019-06-01 17:29:52 -06:00
FusionPBX
4395e748bf Delete install_config_database.php 2019-06-01 17:28:52 -06:00
FusionPBX
38e7926bb0 Delete install_config_detail.php 2019-06-01 17:28:45 -06:00
FusionPBX
5ddb8fff68 Delete install_event_socket.php 2019-06-01 17:28:39 -06:00
FusionPBX
c5afd4d562 Delete install_select_language.php 2019-06-01 17:28:28 -06:00
FusionPBX
35b195ee23 Update install_fusionpbx.php 2019-02-09 08:31:27 -07:00
FusionPBX
1f1792d815 Update install_fusionpbx.php 2019-02-09 08:22:10 -07:00
FusionPBX
07cb93192a Update install_fusionpbx.php 2018-11-14 05:32:03 -06:00
powerpbx
2a6cbb5455 Update install_fusionpbx.php (#3021)
Fix so install works with MySQL.
2018-09-02 11:04:31 -06:00
Alexey Melnichuk
df441e9625 Fix. Create database scheme before trying insert record to v_database (#2965)
Problem that `create_database_pgsql` does not create actual scheme
but `create_odbc_database_connection` try insert record to v_database and
installation fails.
2018-01-27 12:12:11 -07:00
FusionPBX
f018dd0c8c Update install_fusionpbx.php 2017-11-17 09:41:51 -07:00
Mafoo
b1c5d870e0 BugFix - GUI install (#2779)
Fixes to remove some errors in the GUI installer
2017-08-02 10:45:35 -06:00
Mafoo
8709d01fb0 BugFix [master] language update (#2628)
Imported Found language ro as ro-ro Romanian (tested by reverse translation)
Add placeholders for all found languages
Add new missing flags
Enhancements to text class
* improved sort to keep language-* tags organized at the top
* if a language is missing a name tag, add it
* changed organizer to not add a final \n
* corrected some indenting
* added detect_all_languages that attempts to find any languages that haven't been defined in resources/app_languages.php
* added language_totals, this is used by the optional languages application to calculate how complete a language is
2017-06-02 13:24:12 -06:00
Alexey Melnichuk
a75d89ef73 Fix. Load Message class (#2585)
Fix. Use correct way to get text message.
Fix. Use `Database Username` to create database if no `Create Database Username` specified.
2017-05-18 08:43:43 -06:00
Mafoo
f44aee3bf8 Enhance - Convert all languages to 2-2 digit (#2581)
Convert all languages to use the en-us style codes
Where an installation is using a 2 digit code, use the legacy map to find
the mapped language and provide that text correctly
Have escape_str strip \' before converting or we end up with a double
encode
Update organzie_languages to understand how to convert legacy languages
automatically
updated flags
2017-05-13 13:13:38 -06:00
Mafoo
2c40a81978 BugFix [master] Flag correction (#2580)
correction to flags from language update
2017-05-12 13:52:13 -06:00