Commit Graph
62 Commits
Author SHA1 Message Date
Mafoo f6e0532369 Enhance Better descriptions for proxies (#2737)
update all proxy descriptions to indicate they take the host:port format
2017-07-16 11:23:16 -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 9abe2ca4a0 Database transactions
Change the select statement to a left outer join so when either domain_uuid or user_uuid is null it will still be able to display the data. This will keep the total number of records the same as the count done above

* dos2unix on app/database_transactions/database_transactions.php
2017-06-14 07:22:01 -07: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
Mafoo 07ed66fc06 Enhance-master-translation autofill (#2681)
Autofill all language files for pt de and es
2017-06-12 22:14:11 -07:00
Mafoo 8e8405469b Enhance - translation missing tags (#2680)
add tags missing in some app_languages
2017-06-12 22:13:06 -07:00
Mafoo 02719901b4 dos2unix (#2682)
find . -name "*.php" | xargs dos2unix
2017-06-12 22:09:36 -07:00
Mafoo d2c6bacd9d Enhance upgrade show during install (#2676)
the install uses upgrade_domains.php, update it to use well known
varibles to show output
2017-06-11 08:49:39 -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
Mafoo d9d50df4fb BugFix - check_auth (#2672)
the update to check_auth to enable text i made a mistake and put the
wrong parameter into get. this corrects that
2017-06-10 09:22:24 -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 0526819a01 Enhance [master] - update check_auth to use $text (#2661)
* Enhance - update check_auth to use $text

convert to messages::add and utilize $text for invalid_credentials

* Russian translations for check_auth
2017-06-09 22:13:51 -06:00
Mafoo 9570ce1bf0 Enhance - More messages::add updates (#2662)
convert more messages over to messsagse::add
2017-06-09 20:13:40 -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 ed95f1d5b5 Enhance - system_info (#2656)
display more information about the operating system
2017-06-08 12:44:15 -06:00
Mafoo 7df70cb6f3 BugFix - app_languages.php - core/upgrade (#2655)
correct translation for message-upgrade_source
2017-06-08 12:09:08 -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 bcfab0fd83 BugFix - nway conference (#2644)
corrected xml
2017-06-08 09:40:18 -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 b7f4cba09c Enhance - Convert more messages (#2646)
convert more messages to messages class
skipped dashboard messages due to them relying on $_SESSION['message']
to know if there has already been a change
2017-06-08 09:39:04 -06:00
Mafoo 641b2c34df NewApp [master] - number_translation (#2649)
* NewApp - number_translation

allows management of mod_translate profiles
automatically importing existing configuration on app_defaults where the configuration file is not marked as autogenerated.
import from separate files for presets

* Russian translations for number_translation

* German, Austrian and Swiss translations for number_translation
2017-06-08 09:35:36 -06:00
Mafoo 33d23c2322 Enhance-system information (#2650)
use human format and wide display for free under linux
use posix output format and totals on df under linux
make spacing consistent on value assignements
2017-06-07 08:58:33 -06:00
Mafoo 0c2b06a394 Enhance - language update (#2639)
removed some unused tags
corrected some typos in tag names e.g. 'ckeck and check'
combined tags that had two names
inserted missing tags in sip_status
2017-06-04 09:50:58 -06:00
Mafoo 7482377c08 Enhance [master] Default settings sort order (#2593)
add to the sort order for default/domain settings so when a type is
array without *_setting_order the values will sort in order
2017-06-03 12:36:56 -06:00
Mafoo 6ac7fa4363 Enhance - app_config.php comment cleanup (#2636)
Correct a few missed tab indents on comments
2017-06-03 12:36:08 -06:00
Mafoo 3b1a3354ce Enhance - app_config.php last cleanup (#2637)
last batch of app_config.php changes
2017-06-03 12:35:18 -06:00
Mafoo b2841c4a8c remove schema translations (#2638)
the schema should not have any translations on it as they are present
for reference only.
This removes the extra descriptions found and corrects some of the en to
en-us ones
2017-06-03 12:34:19 -06:00
Mafoo 1af9964ab5 BugFix - time_conditions (#2635)
revert and earlier change that changed all quoting to "
2017-06-03 10:17:07 -06:00
Mafoo 3449f978a5 Enhance - Display application descriptions in native (#2629)
Where application description is availible in the session language,
display it, if not fall back to en-us then  
2017-06-03 09:15:41 -06:00
Mafoo 02fd32b845 Enhance - app_config.php cleanup for core (#2631)
make spacing and layout consistent
add all missing language tags
fill missing en-us descriptions
Repaired a couple of character encodings in fr-fr
convert to $x$y$z usage for array filling
add a default version number
this is a by hand update
2017-06-03 09:01:10 -06:00
Mafoo f90e080ef4 Enhance - app_config.php cleanup for apps (#2633)
make spacing and layout consistent
add all missing language tags
fill missing en-us descriptions
convert to $x$y$z usage for array filling
add a default version number
this is a by hand update
2017-06-03 09:00:20 -06:00
Mafoo 92398b7f32 Enhance - app_config.php cleanup for theme (#2632)
make spacing and layout consistent
add all missing language tags
fill missing en-us description
add a default version number
change quotes to "
this is a by hand update
2017-06-03 08:59:37 -06:00
Mafoo c1e1d1bbae BugFix - sip_profiles description (#2634)
change description to use correct $text
2017-06-03 08:34:48 -06:00
Mafoo c4bbe8b571 Enhance [master] messages::add convert core/upgrade (#2597)
convert message handling to use messages class
unify response display to reduce boilerplates
fix for when performing source upgrade with any other operation going wrong (required preservation of cwd)
add missing $text for default permissions
removed surpless $text provided by reources/app_languages.php
correct all <br> tags
2017-06-02 22:38:15 -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 3b55aba656 Enhance [master] sip_status Add Stop Action (#2611)
add stop action
change cmd.php to use messages::add and also trim trailing \n so message
does render
2017-05-30 13:45:06 -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 e51a7bf3e3 BugFix [master] outbound_caller_id_select cache issue (#2602)
retrieve the correct items to feed to cache->delete
2017-05-26 09:18:21 -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 5760a2eb47 BugFix - Convert all languages to 2-2 digit (#2590)
Some applications were missed due to permissions issue on the server performing the update, this update corrects the missing changes
ordering in xml_cdr was done manually in a previous PR, this corrects the ordering and incorrect description-pdd and description-mos for nl-nl
2017-05-19 11:50:44 -06:00
Mafoo 301b540600 Enhance [master] add column descriptions to xml_cdr (#2571)
update th_order_by to accept optional description parameter that will
populate the title field and append the , sort(order)
2017-05-13 14:14:03 -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 882868520c BugFix [master] Flag correction (#2580)
correction to flags from language update
2017-05-12 13:52:13 -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 ce6fed13fd BugFix-[master]-mos (#2547)
change incorrect % calculation of MOS to tagged words to represent the standard, see - https://en.wikipedia.org/wiki/Mean_opinion_score
2017-05-10 14:09:30 -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
Mafoo a4e9c70157 BugFix [master] system information git (#2499)
fix for if the .git folder is present but corrupt
2017-04-13 10:07:21 -06:00
Mafoo b23c9d93b0 Enhance [master] Show more git information (#2461)
make commit id clickable though to origin
display a status of the branch compared to remote
2017-04-03 09:49:35 -06:00
Mafoo a0494015f3 Added missing execute rights (#2459) 2017-03-29 21:40:54 -06:00
Mafoo 8c082cdbef Log messages to the syslog when provisioning fails (#2448) 2017-03-24 23:18:15 -06:00
Mafoo 2718152226 BugFix-sub item rendering (#2450)
Fix for $mod_li and $mod_a_li not being blanked/reset foreach menu
parent item rendered, causing the first menu with sub items to force sub
item rendering for all remaining menu items
2017-03-24 20:20:35 -06:00
Mafoo 7962e60206 observe gateway_domain permision more strictly (#1673)
make observation of the gateway_domain permission more strict when
generating edit and delete links
generate edit_link and delete_link once
2016-11-24 00:28:38 -07:00