Commit Graph
76 Commits
Author SHA1 Message Date
Mafoo 3a72a6e3c2 Enhance - Text class (#3012)
try and preserve existing comments when organizing a language
2018-03-06 10:06:56 -07:00
Mafoo 73d0085dcc Enhance [master] - update Aastra provision templates (#2997)
* Enhance update Aastra provision templates

add default settings for time format, date format and timezone
hide include folders (they are not provision templates)
update links to documents
add note to 6xxx templates

* Aastra - the descriptions for the time settings are useful.
2018-02-25 01:58:17 -07:00
Mafoo 4d60f4f6d5 Enhance [master] - Italian Translations (#2989)
* Reinstate comments detected by text class

* Updated Italian Translations
2018-02-12 10:50:47 -07:00
Mafoo 37bd20930b BugFix default_settings anchors (#2984)
update anchor names to use correct names the mentioned commit changed the anchors over to use #anchor_{subcategory} from #{subcategory} but didn't correct all instances where anchors where called into the page
this commit broke it
https://github.com/fusionpbx/fusionpbx/commit/45bf2e5fd647200a02985819529dbb6fa0f84449
2018-02-08 20:36:28 -07:00
Mafoo cdd7c2bd97 Enhance - send_mail.lua (#2978)
use the to address when email:smtp_from:var is empty
don't use email:smtp_from_name:var when empty
2018-02-06 17:45:53 -07:00
Mafoo 1c580ce7a1 BugFix - send_mail.lua (#2977)
use correct header to retrieve call_uuid
2018-02-06 17:28:00 -07:00
Mafoo 2471fa7844 BugFix - LUA send_mail() (#2975)
take call_uuid from the correct header
use smtp_from_name as part of the from address
2018-02-02 19:33:43 -07:00
Mafoo d6b70b688b BugFix - make hangup and failure use send_mail() (#2974)
change the failure_handler and hangup apps use
resources.functions.send_mail so they can use the correct smtp_from*
settings
2018-02-02 19:33:30 -07:00
Mafoo 1157c2ba5d Enhance Gigaset LAN IP (#2970)
GIGASET Sculpture CL750A puts _ in it's lan ip account for this and
perform a replacement
2018-01-30 21:06:24 -07:00
Mafoo 05f76b0556 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
Mafoo 8740021d31 Enhance - provision aastra 9133i (#2787)
provision aastra 9133i based phones (480i 480i CT, 9112i, 9133i)
leverage smarty include to common parts
have device_edit ignore 'include' folders
.htaccess's RewriteRule operates relative to it's dir so anchoring to ^provision is correct even for where fusion is on a sub folder
2017-09-01 09:35:22 -06:00
Mafoo 8b4c1a4861 Enhance - .htaccess (#2796)
convert tabs to fixed spacing so consistently displays in all editors
update polycoms to use anchor to provision to minimize rewrite looping
.htaccess's RewriteRule operates relative to it's dir so anchoring to
^provision is correct even for where fusion is on a sub folder
2017-08-15 09:08:58 -06:00
Mafoo d968a8b6a3 Enhance - number translation (#2780)
couple of new profiles based on feedback
2017-08-14 14:57:50 -06:00
Mafoo b1c5d870e0 BugFix - GUI install (#2779)
Fixes to remove some errors in the GUI installer
2017-08-02 10:45:35 -06:00
Mafoo 68cdc40bed 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 b312fbc425 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 644e584d0a 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 0098dd01c2 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 1c58c1c1f9 Enhance-master-translation autofill (#2681)
Autofill all language files for pt de and es
2017-06-12 22:14:11 -07:00
Mafoo f394915125 Enhance - translation missing tags (#2680)
add tags missing in some app_languages
2017-06-12 22:13:06 -07:00
Mafoo 7bdea2c30c dos2unix (#2682)
find . -name "*.php" | xargs dos2unix
2017-06-12 22:09:36 -07:00
Mafoo d2d9443450 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 4d6f1b57a0 BugFix - messages class (#2674)
missed the self class reference when adding a legacy message
2017-06-10 16:12:05 -06:00
Mafoo aaaff6e3f7 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 ed48da536c 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 8a2afdcdd0 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 bf3faaa051 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 9ecba1d010 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 3cab4401cf Enhance - More messages::add updates (#2662)
convert more messages over to messsagse::add
2017-06-09 20:13:40 -06:00
Mafoo bc26ecf6ae 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 70cfac5876 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 b941879c91 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 137a282a1b Enhance - system_info (#2656)
display more information about the operating system
2017-06-08 12:44:15 -06:00
Mafoo ba5db22951 BugFix - app_languages.php - core/upgrade (#2655)
correct translation for message-upgrade_source
2017-06-08 12:09:08 -06:00
Mafoo 32a6f76ed0 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 914d26b145 BugFix - nway conference (#2644)
corrected xml
2017-06-08 09:40:18 -06:00
Mafoo bfe3ff173f 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 f0feb25016 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 6b34a635ed 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 43f1c10396 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 301cce369b 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 90a96ad4d0 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 159f1b3c5a Enhance - app_config.php comment cleanup (#2636)
Correct a few missed tab indents on comments
2017-06-03 12:36:08 -06:00
Mafoo adf5a037b1 Enhance - app_config.php last cleanup (#2637)
last batch of app_config.php changes
2017-06-03 12:35:18 -06:00
Mafoo 34475f922c 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 676d873a00 BugFix - time_conditions (#2635)
revert and earlier change that changed all quoting to "
2017-06-03 10:17:07 -06:00
Mafoo 403f26506d 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 d931d61042 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 b98f9cb120 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 25a761e7c3 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 92fac789ed BugFix - sip_profiles description (#2634)
change description to use correct $text
2017-06-03 08:34:48 -06:00
Mafoo 30c8754065 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 8709d01fb0 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 4ae8b418d4 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 828646b258 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 10188339e5 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 862848c52a 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 c295bd25e1 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 71f681496b 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 8561f4ec48 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 1ff6bc7ad5 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 13557c30ec 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 01563ff267 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 4963119692 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 f44aee3bf8 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 2c40a81978 BugFix [master] Flag correction (#2580)
correction to flags from language update
2017-05-12 13:52:13 -06:00
Mafoo 0302d8085c 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 0cfa084401 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 22dc22c30e 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 941b115d92 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 047ecaffd2 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 6ef6d24fac 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 20e98628fa Added missing execute rights (#2459) 2017-03-29 21:40:54 -06:00
Mafoo d05fa644ee Log messages to the syslog when provisioning fails (#2448) 2017-03-24 23:18:15 -06:00
Mafoo a8ae822b81 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 031c2ea2d8 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