79 Commits

Author SHA1 Message Date
FusionPBX 63a29cb54b Fix add mkdir for /usr/share/fusionpbx
Also use array for read write paths
2026-05-29 20:47:17 +00:00
FusionPBX c9a07b3cd0 Change file content check to 'ReadWritePaths'
Updated the check in upgrade.php to look for 'ReadWritePaths' instead of '/etc/freeswitch'.
2026-05-28 21:04:00 +00:00
FusionPBX 5063a61d03 Update ReadWritePaths to add /usr/share/fusionpbx 2026-05-28 21:00:51 +00:00
FusionPBX a621b5401c Update directory depth for service file search 2026-05-28 08:09:02 +00:00
FusionPBX 713aa12cb3 Update php-fpm.service with new ReadWritePaths
This update modifies the php-fpm.service file to include additional ReadWritePaths for FreeSWITCH and FusionPBX. It checks for existing entries and updates the service file accordingly, followed by reloading and restarting the service.
2026-05-28 08:04:52 +00:00
FusionPBX a9ee8ffa5b Update comments for use a space and capitalize the first word 2026-05-28 08:04:10 +00:00
FusionPBX 695b7d7410 Move add_missing service call to service update section 2026-05-24 15:37:07 +00:00
FusionPBX d18f25eb10 Fix echo statements remove indentation 2026-05-12 07:18:39 +00:00
FusionPBX 061c978219 Update services for FreeBSD 2026-05-12 04:55:46 +00:00
FusionPBX fe7a5033c2 Add missing services during upgrade
Added functionality to add missing services during the upgrade process.
2026-05-01 21:10:10 +00:00
markjcrane 76744aaaf5 Add a new feature to manage services 2026-04-30 07:46:04 -06:00
FusionPBX 17438edddf Auto loader file cache removed, remove the permission update 2026-03-01 10:25:55 -07:00
FusionPBX 2975e166fc Change the name of method schema to upgrade 2026-01-13 11:43:55 -07:00
FusionPBX 6f37951e02 Move update_indexes into the schema method 2026-01-12 14:17:10 -07:00
markjcrane abee34fced Simplify the update_indexes 2025-12-21 00:21:01 -07:00
markjcrane 374713e7c6 Call the update_indexes method when updating the Schema 2025-11-28 16:51:22 -07:00
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
FusionPBX 45745d5980 Fix upgrading the default menu using upgrade.php --menu
Commands to update the default menu.
upgrade.php --menu
upgrade.php --m
2025-12-04 08:08:51 -07:00
markjcrane b79ff030da Systemctl use enable and start
- remove --now for better compatibility
2025-11-19 14:23:41 -07:00
markjcrane 0ea256fce8 Upgrade Schema includes Data Types by default
- Change the label to Database Schema
- Update the description to say tables, columns and data types
- upgrade.php --schema
  - Includes data types by default
  - Remove --types from upgrade.php
- command line upgrade --interactive
  - Option 2 schema
  - Includes data types by default
2025-11-18 20:19:04 -07:00
frytimo bbe7b9e9b7 Documentation, format class, no modification. (#7628) 2025-11-18 18:49:39 -07:00
markjcrane 7286d4b58d Update permission_exists for multiple permissions 2025-11-06 08:20:46 -07:00
markjcrane b0eabca1f6 Update check permisisons 2025-11-02 00:22:57 -06:00
markjcrane a90a4e6212 Pass the database object to the schema object 2025-11-01 21:34:03 -06: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 dd140fb1dc Update upgrade.php 2025-07-15 01:36:52 -06:00
FusionPBX d0f00b6956 Update upgrade.php 2025-07-08 00:14:07 -06:00
FusionPBX 0056dd79b9 Update upgrade.php 2025-07-08 00:11:39 -06:00
FusionPBX cb481c2d3e Update permissions skip dev/shm 2025-07-01 12:48:50 -06:00
FusionPBX 3bf458895c Update upgrade.php 2025-06-28 23:03:38 -06:00
FusionPBX ccc617940d Update upgrade.php 2025-06-28 21:29:20 -06:00
FusionPBX 90da27a553 Update upgrade.php 2025-06-28 08:22:32 -06:00
FusionPBX 3636b8a11a Update upgrade.php 2025-06-26 09:31:12 -06:00
FusionPBX 2755b2f04a Update upgrade.php
Add a command-line help menu
2025-06-26 08:13:00 -06:00
frytimo 0a42d8f198 Add caching to the auto_loader for interfaces (#7320)
* update auto loader to load and cache interfaces

* use new method to update the auto loader cache

* use new interface

* use new interface to trigger a cache flush

* update the console upgrade menu

* update the missing implements syntax

* add the clear_cache to the flush cache button
2025-03-15 09:13:36 -06:00
FusionPBX 7897ff5b9e Clear the cache 2025-03-12 14:42:50 -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
frytimo 5e6ec475df update auto_loader cache file when updating (#7255) 2025-02-15 10:44:46 -07:00
FusionPBX e0ed81a5ba Re-use the Database connection 2024-08-29 03:35:38 -06:00
jrmcclean 1d4f366b05 Update upgrade.php (#6863)
Added Paths for Windows as well new variable for $cache_location and $php_dir to accommodate windows values.
2024-07-23 08:12:44 -06:00
fusionate 2d3dca985d Upgrade - CLI (Manual & Menu): Mitigate PHP 8.x warnings, minor adjustments. 2024-05-13 14:19:34 -06:00
FusionPBX 8a30f04125 Update upgrade.php changes apps to repos 2024-04-27 10:52:22 -06:00
frytimo 33ff85ee75 Commad line upgrade enhancements (#6955)
* Add new English language phrases for cli upgrade menu

* include a software name as a const for cli upgrade menu

* add it repos in app folder, internationalizations, and descriptions

* bug fix when response_source_update is empty change back to origin dir

* change original 'menu' to 'menus'. Allow calling menu from upgrade.php

* Update upgrade_menu.php
2024-04-22 17:15:09 -06:00
demonspork df6d56d148 Support updating optional installed apps via git (#6513)
* WIP: Support updating optional installed apps via git

* support app source update via cli

* Update app_languages.php

* Update index.php

* Refactor App Git updating

Refactor Optional App Git updating for more resilience and better handling of ssh remotes and to only update each repository once.

* git app updates fix gui updates for repo based updating
2023-12-21 12:28:04 -07:00
markjcrane 38150d25aa Use require.php 2023-06-17 21:50:29 -06:00
markjcrane bb9f48296a PHP 8.2 Deprecated dynamic properties. 2023-06-12 20:59:56 -06:00
fusionate f8a3d95e83 Upgrade [CLI]: Fix minor language file issue. 2023-05-18 20:25:18 +00:00
fusionate c3018b6ae2 Upgrade (CLI): Update for PHP 8.1 2023-05-17 20:43:17 +00:00
frytimo a258a067a5 restore any missing default groups when permissions are restored (#6657) 2023-05-03 11:35:59 -06:00
FusionPBX d11d4b167d Add option to get the version number 2023-04-24 09:45:48 -06:00