Commit Graph

444 Commits

Author SHA1 Message Date
FusionPBX a0c7fcdd65
Update database.php 2019-04-09 10:49:51 -06:00
Nate 0afb92b811 Schema Class: Update compatibility with timestamptz field types. 2019-04-02 09:53:57 -06:00
FusionPBX 2f5805055a
Delete orm.php 2019-03-25 23:28:46 -06:00
FusionPBX 99b8e776fc
Update database.php 2019-03-25 09:32:00 -06:00
FusionPBX 22aca86d39
Update database.php 2019-03-23 17:27:58 -06:00
FusionPBX f39bf76f73
Update menu.php 2019-03-08 11:02:09 -07:00
Nate 80fd0aaae5
Update message.php
Fix for Domain Selector and other JS dependent features not working due to $_SESSION['message'] not being of type text.
2019-02-28 13:10:55 -07:00
Nate 151148c651
Update message.php
Add method to retrieve quick (rough) count of alert messages waiting.
2019-02-19 14:50:03 -07:00
FusionPBX 900fae7fcc
Update schema.php 2019-02-12 08:47:44 -07:00
FusionPBX a30d473ac1
Update destinations.php 2018-10-16 00:33:43 -06:00
FusionPBX c6f8579d7c
Update and rename messages.php to message.php 2018-08-30 21:12:55 -06:00
FusionPBX 379d98e8f5
Update cache.php 2018-08-10 17:41:02 -06:00
FusionPBX 9a44760597
Update cache.php 2018-07-24 16:55:56 -05:00
FusionPBX b4d1d5270b
Update destinations.php 2018-07-01 11:16:47 -06:00
FusionPBX 32b139a34f
Update destinations.php 2018-06-28 23:29:21 -06:00
FusionPBX d19d580305
Update destinations.php 2018-06-20 23:26:47 -06:00
FusionPBX aaa1d191b3
Update database.php 2018-05-31 09:15:23 -06:00
FusionPBX 3052fc774f
Update database.php 2018-05-19 15:48:02 -06:00
FusionPBX db729bf91e
Update database.php 2018-05-18 18:56:06 -06:00
FusionPBX af00e51e67
Update ringbacks.php 2018-04-10 21:14:12 -06:00
FusionPBX 484e1e1f9a
Update ringbacks.php 2018-04-10 20:37:01 -06:00
FusionPBX d4268649d1
Update ringbacks.php 2018-04-10 20:13:38 -06:00
FusionPBX bf411b6175
Update ringbacks.php 2018-03-29 19:27:22 -06:00
FusionPBX dbab857c4a
Update tones.php 2018-03-29 19:26:01 -06:00
Mafoo ae55af8848 Enhance - Text class (#3012)
try and preserve existing comments when organizing a language
2018-03-06 10:06:56 -07:00
FusionPBX 799c9dd8ae
Update ringbacks.php 2018-03-01 21:19:38 -07:00
FusionPBX cb12138405
Update domains.php 2018-02-25 01:08:54 -07:00
FusionPBX 541739b603
Update schema.php 2018-02-23 10:11:34 -07:00
FusionPBX 34432079a8
Update database.php 2018-02-12 08:40:23 -07:00
FusionPBX a90c785ea3
Update sounds.php 2018-02-10 08:46:15 -07:00
FusionPBX 35670dfdc0
Create sounds.php 2018-02-09 18:28:35 -07:00
FusionPBX 51b7deec86
Update destinations.php 2018-01-09 12:45:04 -07:00
FusionPBX 98f32c27a5
Update destinations.php 2018-01-09 12:43:23 -07:00
FusionPBX f72f409a0b
Update destinations.php 2018-01-07 20:01:32 -07:00
FusionPBX 501d43341e
Update destinations.php 2017-12-23 16:24:00 -07:00
FusionPBX 9527f5fb05
Update destinations.php 2017-12-21 01:36:36 -07:00
FusionPBX ad8a022e48
Update menu.php 2017-11-17 14:44:31 -07:00
FusionPBX 20292017cc
Update menu.php 2017-11-17 14:28:07 -07:00
FusionPBX 077f2adf53
Update menu.php 2017-11-17 13:06:04 -07:00
FusionPBX 004daa84d9 Update destinations.php 2017-10-27 04:36:37 -06:00
FusionPBX 4de4ea3f6b Update destinations.php 2017-09-28 03:19:12 -06:00
konradSC 73bea2f815 File cache sync via curl (#2851)
* Add sendevent when using file caching

* Create clear_cache.lua

FS receives a command via curl to call this script which deletes the single cache entry or flushes the entire cache.

* Create file_cache.lua

This scripts monitors for custom events. When an event is processed it will send out a command via curl to other FS servers telling them to clear their cache. 

This must be called from conf/autoload_configs/lua.conf.xml
 <param name="startup-script" value="app/server/resources/memcache.lua"/>
2017-09-20 16:19:56 -06:00
Mafoo 874b4032e2 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
FusionPBX c537b6db78 Update database.php 2017-09-11 01:21:36 -05:00
FusionPBX 7c4e575483 Update cache.php 2017-09-02 09:56:30 -06:00
FusionPBX 5b40a0d5dc Update cache.php 2017-07-22 15:52:45 -06:00
FusionPBX c857ce7f69 Update cache.php 2017-07-22 13:18:03 -06:00
FusionPBX 815a6e0ec6 Update database.php 2017-07-15 23:06:22 -06:00
FusionPBX 06a1aca61a Update database.php 2017-07-15 22:26:01 -06:00
FusionPBX b45e7ceac9 Update database.php 2017-07-15 20:38:56 -06:00
FusionPBX 11ad3b0ee8 Update database.php 2017-07-15 20:20:51 -06:00
FusionPBX bf4c0a0cb0 Update database.php 2017-07-15 17:20:21 -06:00
FusionPBX bae575c875 Update database.php 2017-07-15 17:09:01 -06:00
FusionPBX 753555a948 Update database.php 2017-07-14 20:44:45 -06:00
FusionPBX 278bb44dd6 Update database.php 2017-07-14 20:41:23 -06:00
FusionPBX 313cb54164 Update database.php 2017-07-14 10:52:30 -06:00
FusionPBX 739aafa04d Update database.php 2017-07-11 12:48:20 -06:00
FusionPBX 7910cb8f04 Update database.php 2017-07-11 11:30:22 -06:00
FusionPBX 1cd030a2f0 Update database.php 2017-07-11 00:13:54 -06:00
FusionPBX 51c6b14e46 Update database.php 2017-07-10 22:38:29 -06:00
FusionPBX 749b97c253 Update database.php 2017-07-08 01:10:28 -06:00
FusionPBX 8a2f044109 Update database.php 2017-07-04 09:48:52 -06:00
FusionPBX 83cc908e75 Update menu.php 2017-07-01 16:05:25 -06:00
FusionPBX 60106b605f Update menu.php 2017-07-01 14:13:51 -06:00
Mafoo 2575da1a06 Enhance-Multiple messages display (#2702)
Store messages by mood so they can be grouped up
change default mood to positive and add a default colour to catch messages with a wrong mood
migrate settings so upgrading vs new is consistent
2017-06-21 08:27:05 -06:00
Mafoo 0ccafad11c Enhance - text class autofill (#2679)
Try and auto fill a value when its blank an the same baseline language
has a value
2017-06-12 22:19:02 -07:00
FusionPBX 5bc8691dfb Use null instead of an empty string for user_uuid when not available. 2017-06-11 08:48:18 -06:00
Mafoo ba9b0ade53 BugFix - messages class (#2674)
missed the self class reference when adding a legacy message
2017-06-10 16:12:05 -06:00
FusionPBX aa897aca47 Create text.php
Switch require back to include what it was originally as it breaks too many things with little benefits.
2017-06-10 09:42:54 -06:00
Mafoo 22392cdff2 Enhance text class (#2670)
make the get routine a little more rugged by checking if the file exists not the directory it is in.
throw a exception if we are asked to load a app_languages that doesn't exist
don't reload the resources/app_languages if exclude_global was ommitted
code styling update to match project
2017-06-10 09:14:58 -06:00
Mafoo 01eebd6244 Enhance - remove statsh/pop from messages class (#2671)
statsh/pop was present to work around a bad implementation in loginphp.
This removes the now redundant code.
2017-06-10 08:59:21 -06:00
Mafoo 5bfda43d16 Enhance - add message stash/pop (#2660)
add new methods to messages class to let it take care of stash and pop of the messages
update login.php to use new methods
tweak html function to put the $_SESSION['message'] in the stack so there is only one code point to maintain for rendering
2017-06-09 22:15:18 -06:00
Mafoo 4f4baf136b Enhance - better reasons for 403 in orm class (#2659)
update return message when code 403 to also state the permission that failed
2017-06-09 20:03:22 -06:00
Mafoo 37463204e4 remove debug lines in permissions (#2658)
because application defaults is now captured for output these debug
lines show up when used. This removes them
2017-06-09 13:32:31 -06:00
Mafoo 9e8eb943e8 BugFix - database class app_uuid (#2663)
if $database->app_uuid is not set it would use '' in some conditions
which isset would test true.
This fix uses strlen instead, but also fixes number_transations app that
highlighted the flaw
2017-06-09 13:31:50 -06:00
Mafoo 7015209e54 Enhance [master] provide $app_path during upgrade (#2573)
if a application is installed via a symlink PHP will resolve the symlink
for __DIR__ and __FILE__ making it impossible for an application to work
out it's relative path withing the fusion system.
By providing $app_path during upgrade routines an application will
beable to provide the correct link for menu items (e.g.
/opt/languages/index.php) instead of having to hard code it where it
could change depending on how the application was installed
2017-06-08 09:41:56 -06:00
Mafoo 2c97ce1144 Enhance - Display text on app_defaults (#2645)
enable display_type on domains (and therefore app_defaults)
capture the output of app_defaults
format if statements to project preference
use more generic label display for results reducing number of translations required
change upgrade.php to use the more consistent $display_type
2017-06-08 09:39:50 -06:00
Mafoo 3c23fb5115 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
Mafoo b4dce6f4f2 BugFix [master] - Convert all menus to 2-2 format (#2627)
convert all app_menu.php files to have all placeholders and languages and use 2-2 format for languages
update app_defaults to convert any items found using legacy values in user_setings, domain_settings and default_settings
2017-06-02 12:17:50 -06:00
Mafoo 97ecc657a1 BugFix [master] - menu class (#2622)
when a translation is missing/blank take it from en-us
take the list of lanaguages from text class so all languages get a value
(should fix missing logout button in some languages)
2017-06-01 10:21:21 -06:00
Mafoo 584679503e BugFix [master] - messages class (#2618)
htmlspecialchars isn't required for the javascript, only the \r?\n escape
2017-05-31 14:09:07 -06:00
Mafoo f2e1fa6290 BugFix [master] - messages class escape more text automatically (#2612)
because we are using javascript to populate the messages list we need to
make sure all special chars are escaped or line feeds will cause
problems
2017-05-30 13:44:51 -06:00
Mafoo 52642ea175 BugFix [master] database class (#2594)
Fix for if you send an array containing both updates and new data, it would end up placing all the new data on top of the last item containing the uuid of the last update (if updates are earlier in the array than new items)
2017-05-28 10:18:07 -06:00
Mafoo d53fd72998 Enhance [master] Better reasons for 403 in database class (#2596)
update return message when code 403 to also state the permission that failed
2017-05-25 23:54:10 -06:00
Mafoo 7ec01104f5 BugFix [master] text class (#2598)
update escape_str to more reliabiliy escape the string into a consistent
format
2017-05-23 09:26:33 -06:00
Mafoo 55ae0b2b42 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 543a555471 reworked text class to gather the languages on construction (more efficient) (#2576)
organize_languages will now use an internal function to escape values as fusion's check_str would not be appropriate
enabled two missing flags
organize on remaining app_languages.php and add missing 'he'
2017-05-12 08:44:53 -06:00
Mafoo bca24ac04d BugFix [master] Languages add missing text placeholders (#2572)
* BugFix [master] Languages add missing text placeholders

add placeholders for missing language text
reorganise file so languages are in a consistent order with en-us always first, and the remaining stored alphabetically
space out tag names to make them line up for readability

* add organize_language to text class

also add get_languages
2017-05-10 13:40:46 -06:00
Mafoo e2d34a856b Enhance-Add message stack (#2521)
Implement new messages class
Support legacy $_SESSION['message_*']
New function messages::add($message, $mood, $delay) to simplify adding messages
updated core/users/user_edit.php to demonstrate
includes space->tab corrections
2017-04-27 11:30:52 -06:00
FusionPBX 71736c19e7 Update database.php 2017-03-17 00:09:32 -06:00
FusionPBX fa52a380bb Update database.php 2017-03-16 22:20:11 -06:00
FusionPBX 5f0dccbb0f Update destinations.php 2017-02-22 20:59:30 -07:00
FusionPBX f40b8bfd47 Update schema.php 2017-02-16 00:03:33 -07:00
FusionPBX a5e47971be Update domains.php 2017-01-17 13:37:26 -07:00
jalr 7cbfb6f629 fix condition (#2298) 2017-01-17 10:16:13 -07:00
FusionPBX dad5aecd49 Update domains.php 2017-01-14 18:17:21 -07:00
FusionPBX b34f1769f0 Update domains.php 2017-01-14 18:15:34 -07:00
FusionPBX 0601c4ad71 Minor syntax fix spotted in dry run now activate. 2017-01-14 14:39:05 -07:00
FusionPBX 7c93ac7901 Add the settings method to the upgrade method. 2017-01-14 14:33:05 -07:00
FusionPBX 6dcf03f23c Add the settings method to the domains class. 2017-01-14 13:15:03 -07:00