Changeset 12941

Show
Ignore:
Timestamp:
11/09/11 13:27:04 (2 years ago)
Author:
mbrevda
Message:

re #5443 - paging improvements, revert some accidental checkins

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.10/amp_conf/htdocs/admin/assets/js/script.legacy.js

    r12757 r12941  
    700700    $(this).after('<span class="help">?<span>' + $(this).find('span').html() + '</span></span>'); 
    701701    $(this).find('span').remove(); 
    702     $(this).replaceWith($(this).text()) 
     702    $(this).replaceWith($(this).html()) 
    703703  }) 
    704704   
     
    809809   
    810810  //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(); 
    813813  }); 
    814814   
    815815  //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(); 
    818818  }); 
    819819   
  • freepbx/branches/2.10/amp_conf/htdocs/admin/config.php

    r12845 r12941  
    117117$fw_gui_html = ''; 
    118118//buffer & compress our responce 
    119 ob_start(); 
     119ob_start($amp_conf['buffering_callback']); 
    120120 
    121121if (!$quietmode) {   
     
    244244  $currentcomponent->buildconfigpage(); 
    245245} 
    246 ob_start(); 
     246ob_start($amp_conf['buffering_callback']); 
    247247$module_name = ""; 
    248248$module_page = ""; 
     
    344344  ob_end_clean(); 
    345345  //now restart buffering so that our data is compressed again 
    346   ob_start(); 
     346  ob_start($amp_conf['buffering_callback']); 
    347347   
    348348  //if we have a module loaded, load its css 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/extensions.class.php

    r12515 r12941  
    339339            } 
    340340          } 
     341          $output .= "\n"; 
    341342          if (isset($this->_hints[$section][$extension])) { 
    342343            foreach ($this->_hints[$section][$extension] as $hint) { 
     
    345346          } 
    346347        } 
    347          
    348         $output .= "\n; end of [".$section."]\n\n\n"; 
     348 
     349        $output .= ";--== end of [".$section."] ==--;\n\n\n"; 
    349350      } 
    350351    } 
     
    604605} 
    605606 
     607class 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 
    606631class ext_setvar { 
    607632  var $var; 
  • freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/php-asmanager.php

    r12309 r12941  
    580580  * @param string $application 
    581581  * @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 
    616633    return $this->send_request('Originate', $parameters); 
    617634  }  
  • freepbx/branches/2.10/amp_conf/htdocs/admin/libraries/view.functions.php

    r12845 r12941  
    108108            } 
    109109            header("Content-type: ".$mimetype); 
    110             ob_start(); 
     110            ob_start($amp_conf['buffering_callback']); 
    111111            include($fullpath); 
    112112            ob_end_flush(); 
  • freepbx/branches/2.10/libfreepbx.install.php

    r12845 r12941  
    14521452  $freepbx_conf->define_conf_setting('MODULEADMIN_SKIP_CACHE',$set); 
    14531453 
     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 
    14541466 
    14551467  //