Changeset 12941
- Timestamp:
- 11/09/11 13:27:04 (2 years ago)
- Files:
-
- freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/script.legacy.js (modified) (2 diffs)
- freepbx/branches/2.10/amp_conf/htdocs/admin/config.php (modified) (3 diffs)
- freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/extensions.class.php (modified) (3 diffs)
- freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/php-asmanager.php (modified) (1 diff)
- freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/view.functions.php (modified) (1 diff)
- freepbx/branches/2.10/libfreepbx.install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/script.legacy.js
r12757 r12941 700 700 $(this).after('<span class="help">?<span>' + $(this).find('span').html() + '</span></span>'); 701 701 $(this).find('span').remove(); 702 $(this).replaceWith($(this). text())702 $(this).replaceWith($(this).html()) 703 703 }) 704 704 … … 809 809 810 810 //submit button 811 $(document).bind('keydown', ' meta+shift+s', function(){812 //$('input[type=submit][name=Submit]').click();811 $(document).bind('keydown', 'ctrl+shift+s', function(){ 812 $('input[type=submit][name=Submit]').click(); 813 813 }); 814 814 815 815 //reload 816 $(document).bind('keydown', ' meta+shift+x', function(){817 //freepbx_show_reload(false);816 $(document).bind('keydown', 'ctrl+shift+a', function(){ 817 fpbx_reload(); 818 818 }); 819 819 freepbx/branches/2.10/amp_conf/htdocs/admin/config.php
r12845 r12941 117 117 $fw_gui_html = ''; 118 118 //buffer & compress our responce 119 ob_start( );119 ob_start($amp_conf['buffering_callback']); 120 120 121 121 if (!$quietmode) { … … 244 244 $currentcomponent->buildconfigpage(); 245 245 } 246 ob_start( );246 ob_start($amp_conf['buffering_callback']); 247 247 $module_name = ""; 248 248 $module_page = ""; … … 344 344 ob_end_clean(); 345 345 //now restart buffering so that our data is compressed again 346 ob_start( );346 ob_start($amp_conf['buffering_callback']); 347 347 348 348 //if we have a module loaded, load its css freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/extensions.class.php
r12515 r12941 339 339 } 340 340 } 341 $output .= "\n"; 341 342 if (isset($this->_hints[$section][$extension])) { 342 343 foreach ($this->_hints[$section][$extension] as $hint) { … … 345 346 } 346 347 } 347 348 $output .= " \n; end of [".$section."]\n\n\n";348 349 $output .= ";--== end of [".$section."] ==--;\n\n\n"; 349 350 } 350 351 } … … 604 605 } 605 606 607 class ext_originate extends extension { 608 var $tech_data; 609 var $type; 610 var $arg1; 611 var $arg2; 612 var $arg3; 613 614 function ext_originate($tech_data, $type, $arg1, $arg2, $arg3 = '') { 615 $this->tech_data = $tech_data; 616 $this->type = $type; 617 $this->arg1 = $arg1; 618 $this->arg2 = $arg2; 619 $this->arg3 = $arg3; 620 } 621 function output() { 622 return 'Originate(' . $this->tech_data 623 . ',' . $this->type 624 . ',' . $this->arg1 625 . ',' . $this->arg2 626 . ',' . $this->arg3 627 . ')' ; 628 } 629 } 630 606 631 class ext_setvar { 607 632 var $var; freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/php-asmanager.php
r12309 r12941 580 580 * @param string $application 581 581 * @param string $data 582 * TODO: THIS NEEDS TO BE UPDATED 583 */ 584 function Originate($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data) { 585 $parameters = array(); 586 if ($channel) { 587 $parameters['Channel'] = $channel; 588 } 589 if ($exten) { 590 $parameters['Exten'] = $exten; 591 } 592 if ($context) { 593 $parameters['Context'] = $context; 594 } 595 if ($priority) { 596 $parameters['Priority'] = $priority; 597 } 598 if ($timeout) { 599 $parameters['Timeout'] = $timeout; 600 } 601 if ($callerid) { 602 $parameters['CallerID'] = $callerid; 603 } 604 if ($variable) { 605 $parameters['Variable'] = $variable; 606 } 607 if ($account) { 608 $parameters['Account'] = $account; 609 } 610 if ($application) { 611 $parameters['Application'] = $application; 612 } 613 if ($data) { 614 $parameters['Data'] = $data; 615 } 582 * == exactly 11 values required == 583 * 584 * -- OR -- 585 * 586 * @pram array a key => value array of what ever you want to pass in 587 */ 588 function Originate() { 589 $num_args = func_num_args(); 590 591 if ($num_args === 11) { 592 $args = func_get_args(); 593 594 $parameters = array(); 595 if ($args[0]) { 596 $parameters['Channel'] = $args[0]; 597 } 598 if ($args[1]) { 599 $parameters['Exten'] = $args[1]; 600 } 601 if ($args[2]) { 602 $parameters['Context'] = $args[2]; 603 } 604 if ($args[3]) { 605 $parameters['Priority'] = $args[3]; 606 } 607 if ($args[4]) { 608 $parameters['Timeout'] = $args[4]; 609 } 610 if ($args[5]) { 611 $parameters['CallerID'] = $args[5]; 612 } 613 if ($args[6]) { 614 $parameters['Variable'] = $args[6]; 615 } 616 if ($args[7]) { 617 $parameters['Account'] = $args[7]; 618 } 619 if ($args[8]) { 620 $parameters['Application'] = $args[8]; 621 } 622 if ($args[9]) { 623 $parameters['Data'] = $args[9]; 624 } 625 } else { 626 $args = func_get_args(); 627 $args = $args[0]; 628 foreach ($args as $key => $val) { 629 $parameters[$key] = $val; 630 } 631 } 632 616 633 return $this->send_request('Originate', $parameters); 617 634 } freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/view.functions.php
r12845 r12941 108 108 } 109 109 header("Content-type: ".$mimetype); 110 ob_start( );110 ob_start($amp_conf['buffering_callback']); 111 111 include($fullpath); 112 112 ob_end_flush(); freepbx/branches/2.10/libfreepbx.install.php
r12845 r12941 1452 1452 $freepbx_conf->define_conf_setting('MODULEADMIN_SKIP_CACHE',$set); 1453 1453 1454 // buffering_callback 1455 $set['value'] = ''; 1456 $set['options'] = ''; 1457 $set['name'] = 'ob_start callback'; 1458 $set['description'] = 'This is the callback that will be passed to ob_start. In its default state, ob_gzhandler will be passed which will case all data passed directly by the system to be compressed set this to be blank or something else if this creates issues.'; 1459 $set['emptyok'] = 1; 1460 $set['readonly'] = 1; 1461 $set['hidden'] = 1; 1462 $set['type'] = CONF_TYPE_TEXT; 1463 $freepbx_conf->define_conf_setting('buffering_callback',$set); 1464 $set['hidden'] = 0; 1465 1454 1466 1455 1467 //
