Changeset 10288

Show
Ignore:
Timestamp:
09/16/10 03:32:40 (3 years ago)
Author:
mbrevda
Message:

re #4527 - remove currentFile varibale as it isnt being used anywhere

Files:

Legend:

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

    r10287 r10288  
    1616@header('Cache-Control: post-check=0, pre-check=0',false);  
    1717@header('Pragma: no-cache');  
     18header('Content-type: text/html; charset=utf-8'); 
    1819//session_cache_limiter('public, no-store');  
    19  
    20  
    21 //get the current file name 
    22 $currentFile = $_SERVER["PHP_SELF"]; 
    23 $parts = explode('/', $currentFile); 
    24 header('Content-type: text/html; charset=utf-8'); 
    25 $currentFile = $parts[count($parts) - 1]; 
    26 //todo: can this be removed? what is it used for? 
    2720 
    2821// include base functions 
  • modules/branches/2.9/core/functions.inc.php

    r10283 r10288  
    34543454function core_devices_add($id,$tech,$dial,$devicetype,$user,$description,$emergency_cid=null,$editmode=false){ 
    34553455  global $amp_conf; 
    3456   global $currentFile; 
    34573456  global $astman; 
    34583457  global $db; 
     
    35873586function core_devices_del($account,$editmode=false){ 
    35883587  global $amp_conf; 
    3589   global $currentFile; 
    35903588  global $astman; 
    35913589 
     
    37523750function core_devices_addsip($account) { 
    37533751  global $db; 
    3754   global $currentFile; 
    37553752 
    37563753  $flag = 2; 
     
    38153812function core_devices_delsip($account) { 
    38163813  global $db; 
    3817   global $currentFile; 
    38183814   
    38193815  $sql = "DELETE FROM sip WHERE id = '$account'"; 
     
    38393835function core_devices_addiax2($account) { 
    38403836  global $db; 
    3841   global $currentFile; 
    38423837 
    38433838  $flag = 2; 
     
    38973892function core_devices_deliax2($account) { 
    38983893  global $db; 
    3899   global $currentFile; 
    39003894   
    39013895  $sql = "DELETE FROM iax WHERE id = '$account'"; 
     
    39203914function core_devices_addzap($account) { 
    39213915  global $db; 
    3922   global $currentFile; 
    39233916     
    39243917  foreach ($_REQUEST as $req=>$data) { 
     
    39733966function core_devices_adddahdi($account) { 
    39743967  global $db; 
    3975   global $currentFile; 
    39763968     
    39773969  foreach ($_REQUEST as $req=>$data) { 
     
    40264018function core_devices_delzap($account) { 
    40274019  global $db; 
    4028   global $currentFile; 
    40294020   
    40304021  $sql = "DELETE FROM zap WHERE id = '$account'"; 
     
    40374028function core_devices_deldahdi($account) { 
    40384029  global $db; 
    4039   global $currentFile; 
    40404030   
    40414031  $sql = "DELETE FROM dahdi WHERE id = '$account'";