Commit Graph

227 Commits

Author SHA1 Message Date
markjcrane fb9a02376e Prevent switch duplicates. 2016-04-02 20:28:45 -06:00
markjcrane 7aeeda0e15 Rename to the switch_settings class. 2016-04-02 20:11:51 -06:00
markjcrane a638d86619 Set some of the switch directories to enabled false. 2016-04-02 19:57:37 -06:00
markjcrane 0c6e29632f Add a missing semi-colon. 2016-04-02 19:42:18 -06:00
markjcrane 1200161b81 Update the database connection. 2016-04-02 19:41:16 -06:00
markjcrane ebee007ab8 Change the switch class to freeswitch. 2016-04-02 19:37:37 -06:00
markjcrane bcc993c537 Rename the EventSocket file to math current naming standard. 2016-04-02 19:24:32 -06:00
markjcrane 7d61371bc9 Rename the EventSocket class. 2016-04-02 19:23:16 -06:00
markjcrane 52ff8fae68 Fix a syntax problem on the new class. 2016-04-02 19:13:49 -06:00
markjcrane d9e00f2be3 Add a new switch class with a method to get the directories needed for FreeSWITCH and add them to default settings -> switch category. 2016-04-02 17:53:51 -06:00
FusionPBX 1e9837f77b Merge pull request #1527 from moteus/menu_array_default_arg
Fix. Use default value in function definition.
2016-03-30 08:49:29 -06:00
Alexey Melnichuk 43a023575a Fix. warning about using NULL as first argument in `foreach`.
Problem now in `tepmplate.php`
```PHP
$menu_array = $menu->menu_array();
...
foreach ($menu_array as $index_main => $menu_parent) {
```

It appear while install process because in this moment there not `$db`
and `$menu->menu_array()` returns nothing.

This problem also can be solved in `tepmplate.php` like
```PHP
if(is_array($menu_array)){
  foreach ($menu_array as $index_main => $menu_parent) {
...
```
2016-03-30 10:15:49 +03:00
Alexey Melnichuk ec95fc5f24 Fix. Use default value in function definition.
On `themes/default/template.php` it called without args
```PHP
$menu_array = $menu->menu_array();
```

And it produce PHP warning.
2016-03-30 09:39:15 +03:00
markjcrane ac36bf07f7 Only call the scripts class if its installed. 2016-03-27 00:33:19 -06:00
markjcrane 812f41b48e Add the menu_default method to app_defaults.php. 2016-03-26 22:59:00 -06:00
markjcrane c7e90ebd26 Change the method name to menu_default. 2016-03-26 21:22:52 -06:00
markjcrane f7aa8725e8 Add methoed 'default' to the menu class. 2016-03-26 21:18:02 -06:00
markjcrane 100932656a Fix the reference to the prepared statement. 2016-03-26 14:03:44 -06:00
markjcrane ac4aef20b0 Change the code in the menu to return immediately if the database object is not ready in this case its not ready until the install.php is finished. 2016-03-26 13:36:00 -06:00
markjcrane 5eef464cf3 Additional work to improve the install, template and the menu. 2016-03-26 12:22:15 -06:00
markjcrane aa89c4fe26 Don't error if the menu is not available for the install.php. 2016-03-26 11:45:57 -06:00
FusionPBX eb81998165 Revert "Revert "Revert "search selects""" 2016-03-24 22:25:18 -06:00
FusionPBX 90242c0c60 Revert "Revert "search selects"" 2016-03-24 22:03:37 -06:00
FusionPBX 68e728b0b6 Revert "search selects" 2016-03-24 22:02:41 -06:00
FusionPBX 7217d29d8b Merge pull request #1497 from blackc2004/master
search selects
2016-03-24 21:56:20 -06:00
markjcrane 83edd6a7fd On windows force to / instead of the backslash \ as path. This fixes a problem where recording c:\pathtofusionpbx\recordings fails because the \r gets understood as a carriage return in the session:record in FreeSWITCH. 2016-03-24 15:02:04 -06:00
blackc2004 128026f3e8 search selects 2016-03-22 15:42:46 -07:00
markjcrane afe19e8a40 Change $language_name to $text['language-name'] this will follow current naming standards in app_languages.php and reduces code needed in the text class. 2016-03-12 22:06:57 -07:00
mafoo e0fdf41320 WhitespaceClean-resources/classes
whitespace pass over files
for reference regex that was used s/[ \t]+(\r?\n)/\1/
2016-03-11 12:08:26 +00:00
markjcrane 5a06f486af Rename .project.ROOT to project_root.php this conforms better with current file naming standards. 2016-02-22 14:01:18 -07:00
markjcrane c505fec77b Update the constructor in the vcard class. 2016-01-20 23:56:06 -07:00
Mafoo ad324f4744 changed throw Exception to die
nothing ever eval runs the root.php so changed to die to cause a immediate report of error and stop code processing.
2016-01-20 11:30:31 +00:00
Mafoo 2669f6f1a9 Added check for if .project.ROOT is missing
If a installation is missing the .project.ROOT previously it would just use the last search path as the project root (wrong) this will cause a Exception should it be unable to find it
2016-01-18 09:38:16 +00:00
markjcrane 23b4b7c9bf Change $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH to $_SERVER["PROJECT_ROOT"]. 2016-01-17 00:01:13 -07:00
FusionPBX 76b1ea734e Merge pull request #1331 from mafoo/BugFix-root.php_logic
Rollout new root.php
2016-01-16 10:09:44 -07:00
Matthew Vale b20a38f454 added logic in cli mode to chdir to the correct directory first
the webserver would normally do this for us, but we need to do it
2016-01-14 16:25:05 +00:00
Matthew Vale 355bec91a2 changed text.php to use $_SERVER["PROJECT_ROOT"] 2016-01-14 16:15:41 +00:00
Matthew Vale 173ae7001d Added full logic to support cli as well 2016-01-13 17:38:54 +00:00
markjcrane d513ddf1ea Complete adding application hangup. 2016-01-12 23:16:45 -07:00
markjcrane b422117500 Add hangup to the destination select list. 2016-01-12 21:07:49 -07:00
Matthew Vale b81748bd22 change to use '/' instead of DIRECTOR_SEPERATOR 2016-01-12 14:47:50 +00:00
Matthew Vale 1ad1c31b27 Rollout of root.php 2016-01-12 13:55:39 +00:00
Alexey Melnichuk 85ad1fc976 Change. Reuse same esl connection to send cache event and command.
Fix. Implicitly close esl connection after do cache command.
2015-12-24 13:19:53 +03:00
markjcrane 6d700faaa1 Add one line between each function. 2015-12-19 15:00:10 -07:00
Matthew Vale b5a2fa0f29 Added initial version of app/languages
for analyzing missing or overlapping with global text
2015-12-10 10:04:35 +00:00
Matthew Vale 45dfcabd3d Add Fallback language support to en-us 2015-12-10 09:57:54 +00:00
Matthew Vale e4c711e8f7 Migrate app_languages.php from core to resources 2015-12-10 09:57:08 +00:00
markjcrane c4aaaaaf92 Fix the domain name in the path for the inbound fax dialplan. 2015-12-08 22:34:23 -07:00
markjcrane a89ad63831 Remove the domain name from the switch recordings SESSION variable. The path for single and multi-tenant are handled the same and all will used their domain name. 2015-12-06 12:36:08 -07:00
Matthew Vale 761a7b0717 made reference to install resource literal 2015-12-02 16:07:23 +00:00