Commit Graph

355 Commits

Author SHA1 Message Date
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