Commit Graph

343 Commits

Author SHA1 Message Date
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
FusionPBX
dc15600b84 Update event_socket.php 2017-01-11 14:43:45 -07:00