Commit Graph

54 Commits

Author SHA1 Message Date
markjcrane 32051873be Use __dir__ to find resources/require.php 2023-06-16 22:49:09 -06:00
FusionPBX c6e3fd381b
Update scripts dir session variable as it was not set in the install
This would break the install and prevent the scripts getting copied to the right location. That had a chain reaction of breaking multiple additional things.
2023-05-21 10:58:05 -06:00
markjcrane 6d7e125743 Fix all PHP 8.1 messages for upgrade.php 2023-05-17 10:07:49 -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 30ec556c4a
Remove script write_config method. 2022-10-10 13:27:50 -06:00
FusionPBX 14a3ff4e9a
pgsql host 2020-07-25 09:36:44 -06:00
Chris Black 9b3de1d895
Update scripts.php (#5263)
fix so that if user has a hostname instead of IP address the config.lua gets written correctly
2020-06-25 00:44:57 -06:00
FusionPBX d795ee62d1 Update scripts.php 2020-01-17 17:55:42 -07:00
FusionPBX 4a31db0ed6 Update scripts.php 2020-01-17 17:53:36 -07:00
markjcrane ca5a824bb5 Move the scripts to app/scripts/resources/scripts 2020-01-18 00:30:13 +00:00
FusionPBX f1b3af3bb8 Update scripts.php 2019-09-26 08:33:45 -06:00
Nate 836fb87136 Misc Classes: Database class integration. 2019-09-02 15:57:18 -06:00
jpattWPC 4ae27f13b6 Add support for PostgreSQL TLS (#4262)
This commit adds support for PostgreSQL TLS communication. This requires /etc/fusionpbx/config.php to have two parameters added:

$db_secure = true;
$db_cert_authority = "/path/to/ca.crt";
2019-06-05 21:10:58 -06:00
FusionPBX 222bb23321 Update scripts.php 2018-04-23 11:26:31 -06:00
FusionPBX d528775e10 Update scripts.php 2017-07-22 00:48:46 -06:00
Mafoo 7bdea2c30c dos2unix (#2682)
find . -name "*.php" | xargs dos2unix
2017-06-12 22:09:36 -07:00
Luis Daniel Lucio Quiroz ea669cbf69 Let the apps be more self-contained regarding LUA scripts (#2440)
At this moment, all LUA scripts must be at resources/install/script, this patch allows applications to be more self-contained by having app/*/resources/install/scripts directory, which it will be copied to the scripts_dir directory as well.
2017-03-22 09:25:33 -06:00
FusionPBX 6cd7ee770e Update scripts.php 2017-02-09 00:19:55 -07:00
Luis Daniel Lucio Quiroz 7ec779419b SCRIPTS: PHP bin is not always php5 (#2352) 2017-02-07 21:32:39 -07:00
Richard Neese 3a5fe74230 fixing debian pkg installs (#2363) 2017-02-07 15:52:44 -07:00
FusionPBX f26e4e7d6f Update scripts.php 2017-01-10 01:41:29 -07:00
FusionPBX a963aad9b1 Update scripts.php 2017-01-10 01:36:59 -07:00
FusionPBX a6b3ab1243 Update scripts.php
Add expire.default and expire.ivr.
2016-12-14 08:41:35 -07:00
FusionPBX bda099197c Update scripts.php 2016-10-23 13:00:31 -06:00
Alexey Melnichuk 28d3ebb51f Allow use odbc to store files (record/voicemail) in database. (#1535)
* Change. Allow use odbc to store files (record/voicemail) in database.

* Fix. Generate correct default config.
2016-09-04 13:05:47 -06:00
FusionPBX 80808959d2 Update scripts.php
Add conf_dir to lua.conf
2016-08-08 09:35:06 -06:00
FusionPBX 1ceee17605 Update scripts.php
Remove the extra ) to fix the syntax.
2016-07-08 17:09:09 -06:00
Mafoo 904a52434a BugFix-Add PROJECT_PATH for lua (#1740)
added project_path for lua to use where it needs to build urls
2016-07-08 13:12:37 -06:00
Alexey Melnichuk 2b2ca19da0 Fix. generate XXX_dir options in config.lua (#1709) 2016-06-26 13:45:57 -06:00
Alexey Melnichuk 78d8619cfd Fix. generate correct config file. (#1708) 2016-06-26 13:18:49 -06:00
Alexey Melnichuk f8c2904aaf Add. option to store setting in memcache. (#1707) 2016-06-26 11:43:32 -06:00
markjcrane 8936f46782 Add settings array to the config.lua. 2016-06-24 14:50:55 -06:00
FusionPBX 4f35edbc49 Update scripts.php
Remove this code as its breaking the upgrade page when migrating from source to package paths.
2016-05-15 08:57:59 -06:00
Harry G. Coin 077059eeb1 Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).
Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.
2016-04-25 20:52:21 -05:00
Harry G. Coin bda6861f88 \r\n --> \n
Cause all the .php files containing lines ending with \r\n to instead end with \n.

DYI with:

find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
2016-04-25 20:30:23 -05:00
markjcrane 38922f6bc5 Restore the path to config.lua. 2016-04-16 00:44:10 -06:00
markjcrane 6b7513dcb0 Use the connect method in the constructor. 2016-04-16 00:27:24 -06:00
markjcrane 9c0c7dbfcf Get the db_type, db_username, db_password, and more using the constructor. 2016-04-16 00:21:01 -06:00
markjcrane 37e42ae754 Set the full path to the config.lua script. 2016-04-15 23:16:19 -06:00
markjcrane 44850f0246 Set the sciprt directory from the session variable. 2016-04-15 19:57:29 -06:00
markjcrane 4b55af24f7 Add class_exists 2016-04-14 23:23:14 -06:00
markjcrane 317a47582e Update the scripts class. 2016-04-14 23:09:49 -06:00
markjcrane 0080578811 Update the script.php class use session event socket information for now. 2016-04-04 23:27:41 -06:00
markjcrane df9d78a11f Get the script_dir path from event socket. 2016-04-03 09:47:58 -06:00
markjcrane 194dccfd93 Use is_dir instead of check for the length of the stirng. 2016-04-03 09:36:27 -06:00
markjcrane 3ad26f1965 Change expire["sofia_conf"] to expire["sofia"] and expire["acl_conf"] to expire["acl"]. Then add a default value to prevent nil errors when the conf.lua script has not been updated. 2016-04-02 08:32:43 -06:00
markjcrane 4a31b2343e Change to the new context require renaming two variables to be consistent and to prevent a problem. 2016-03-24 23:08:23 -06:00
markjcrane b11b98da52 Change sytnax from database["name"] to database.name in the config.lua. 2016-03-24 20:15:09 -06:00
markjcrane 9249e1db9a On windows force to / instead of the backslash \ as path. This fixes a problem where recording c:\pathtofusionpbx\recordings fails because the \r gets understood as a carriage return in the session:record in FreeSWITCH. 2016-03-24 15:02:04 -06:00
mafoo 3b438926b6 WhitespaceClean-app/batch_1
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 11:56:29 +00:00