Changeset 10376

Show
Ignore:
Timestamp:
10/08/10 14:02:11 (3 years ago)
Author:
mickecarlsson
Message:

Fixed spelling errors in comments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r10286 r10376  
    1212//GNU General Public License for more details. 
    1313 
    14 //include all nesesary classes TODO: inlcude them dynamicaly as needed 
     14//include all necessary classes TODO: include them dynamically as needed 
    1515require_once( (defined('AMP_BASE_INCLUDE_PATH') ? AMP_BASE_INCLUDE_PATH.'/' : '').'libraries/config.functions.php'); 
    1616require_once( (defined('AMP_BASE_INCLUDE_PATH') ? AMP_BASE_INCLUDE_PATH.'/' : '').'libraries/featurecodes.class.php'); 
     
    113113      return true; 
    114114    } else if (isset($astman) && $astman->connected()) { 
    115       // earlier revisions of 1.4 ahd dadhi loaded but still running as zap, so if ZapScan is present, we assume 
     115      // earlier revisions of 1.4 and dahdi loaded but still running as zap, so if ZapScan is present, we assume 
    116116      // that is the mode it is running in. 
    117117      $response = $astman->send_request('Command', array('Command' => 'show applications like ZapScan')); 
     
    171171 
    172172if (!function_exists('version_compare_freepbx')) { 
    173   /* verison_compare that works with freePBX version numbers 
     173  /* version_compare that works with FreePBX version numbers 
    174174  */ 
    175175  function version_compare_freepbx($version1, $version2, $op = null) { 
     
    261261  exec($retrieve, $output, $exit_val); 
    262262   
    263   // retrive_conf html output 
     263  // retrieve_conf html output 
    264264  $return['retrieve_conf'] = 'exit: '.$exit_val.'<br/>'.implode('<br/>',$output); 
    265265   
     
    357357 
    358358// draw list for users and devices with paging 
    359 // $skip has been dprecated, used to be used to page-enate 
     359// $skip has been deprecated, used to be used to page-enate 
    360360function drawListMenu($results, $skip, $type, $dispnum, $extdisplay, $description=false) { 
    361361   
     
    688688 * $goto is the current goto destination setting 
    689689 * $i is the destination set number (used when drawing multiple destination sets in a single form ie: digital receptionist) 
    690  * esnure that any form that includes this calls the setDestinations() javascript function on submit. 
     690 * ensure that any form that includes this calls the setDestinations() javascript function on submit. 
    691691 * ie: if the form name is "edit", and drawselects has been called with $i=2 then use onsubmit="setDestinations(edit,2)" 
    692692 * $table specifies if the destinations will be drawn in a new <tr> and <td> 
     
    716716      } 
    717717    } 
    718     //sort destination alphabeticaly     
     718    //sort destination alphabetically    
    719719    ksort($drawselect_destinations); 
    720720    ksort($drawselects_module_hash); 
    721721  } 
    722   //set varibales as arrays for the rare (imposible?) case where there are none 
     722  //set variables as arrays for the rare (impossible?) case where there are none 
    723723  if(!isset($drawselect_destinations)){$drawselect_destinations=array();} 
    724724  if(!isset($drawselects_module_hash)){$drawselects_module_hash = array();} 
     
    735735    } 
    736736  } 
    737   if($destmod==''){//if we havnt found a match, display error dest 
     737  if($destmod==''){//if we haven't found a match, display error dest 
    738738    $destmod='Error'; 
    739739    $drawselect_destinations['Error'][]=array('destination'=>$goto, 'description'=>'Bad Dest: '.$goto, 'class'=>'drawselect_error'); 
     
    749749    /* We bind to the hosting module's domain. If we find the translation there we use it, if not 
    750750     * we try the default 'amp' domain. If still no luck, we will try the _() which is the current 
    751      * module's display since some old translation code may have stored it localy but should migrate */ 
     751     * module's display since some old translation code may have stored it locally but should migrate */ 
    752752    bindtextdomain($drawselects_module_hash[$mod],"modules/".$drawselects_module_hash[$mod]."/i18n"); 
    753753    bind_textdomain_codeset($drawselects_module_hash[$mod], 'utf8'); 
     
    763763   
    764764  //draw "children" select boxes 
    765   $tabindexhtml=' tabindex="'.++$tabindex.'"';//keep out of the foreach so that we dont increment it 
     765  $tabindexhtml=' tabindex="'.++$tabindex.'"';//keep out of the foreach so that we don't increment it 
    766766  foreach($drawselect_destinations as $cat=>$destination){ 
    767767    $style=(($cat==$destmod)?'':'display:none;'); 
     
    867867 * @param  string   debug message to be printed 
    868868 * @param  string   optional mode, default 'a' 
    869  * @param  string   optinal filename, default /tmp/freepbx_debug.log 
     869 * @param  string   optional filename, default /tmp/freepbx_debug.log 
    870870 */ 
    871871function freepbx_debug($string, $option='a', $filename='/tmp/freepbx_debug.log') { 
     
    880880} 
    881881 /*  
    882   * FreePBX Debuging function 
     882  * FreePBX Debugging function 
    883883  * This function can be called as follows: 
    884884  * dbug() - will just print a time stamp to the debug log file ($amp_conf['FPBXDBUGFILE']) 
     
    10361036 * 
    10371037 */ 
    1038 function redirect_standard( /* Note. Read the next line. Varaible No of Paramas */ ) { 
     1038function redirect_standard( /* Note. Read the next line. Variable No of Params */ ) { 
    10391039  $args = func_get_Args(); 
    10401040 
     
    10481048} 
    10491049 
    1050 function redirect_standard_continue( /* Note. Read the next line. Varaible No of Paramas */ ) { 
     1050function redirect_standard_continue( /* Note. Read the next line. Varaible No of Params */ ) { 
    10511051  $args = func_get_Args(); 
    10521052 
     
    10631063//expects a returned array which minimally includes 'context' => the actual context to include 
    10641064//can also define 'description' => the display for this context - if undefined will be set to 'context' 
    1065 //'module' => the display for the section this should be listed under defaults to modlue display (can be used to group subsets within one module) 
     1065//'module' => the display for the section this should be listed under defaults to module display (can be used to group subsets within one module) 
    10661066//'parent' => if including another context automatically includes this one, list the parent context 
    10671067//'priority' => default sort order for includes range -50 to +50, 0 is default