Changeset 10288
- Timestamp:
- 09/16/10 03:32:40 (3 years ago)
- Files:
-
- freepbx/trunk/amp_conf/htdocs/admin/header.php (modified) (1 diff)
- modules/branches/2.9/core/functions.inc.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/header.php
r10287 r10288 16 16 @header('Cache-Control: post-check=0, pre-check=0',false); 17 17 @header('Pragma: no-cache'); 18 header('Content-type: text/html; charset=utf-8'); 18 19 //session_cache_limiter('public, no-store'); 19 20 21 //get the current file name22 $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?27 20 28 21 // include base functions modules/branches/2.9/core/functions.inc.php
r10283 r10288 3454 3454 function core_devices_add($id,$tech,$dial,$devicetype,$user,$description,$emergency_cid=null,$editmode=false){ 3455 3455 global $amp_conf; 3456 global $currentFile;3457 3456 global $astman; 3458 3457 global $db; … … 3587 3586 function core_devices_del($account,$editmode=false){ 3588 3587 global $amp_conf; 3589 global $currentFile;3590 3588 global $astman; 3591 3589 … … 3752 3750 function core_devices_addsip($account) { 3753 3751 global $db; 3754 global $currentFile;3755 3752 3756 3753 $flag = 2; … … 3815 3812 function core_devices_delsip($account) { 3816 3813 global $db; 3817 global $currentFile;3818 3814 3819 3815 $sql = "DELETE FROM sip WHERE id = '$account'"; … … 3839 3835 function core_devices_addiax2($account) { 3840 3836 global $db; 3841 global $currentFile;3842 3837 3843 3838 $flag = 2; … … 3897 3892 function core_devices_deliax2($account) { 3898 3893 global $db; 3899 global $currentFile;3900 3894 3901 3895 $sql = "DELETE FROM iax WHERE id = '$account'"; … … 3920 3914 function core_devices_addzap($account) { 3921 3915 global $db; 3922 global $currentFile;3923 3916 3924 3917 foreach ($_REQUEST as $req=>$data) { … … 3973 3966 function core_devices_adddahdi($account) { 3974 3967 global $db; 3975 global $currentFile;3976 3968 3977 3969 foreach ($_REQUEST as $req=>$data) { … … 4026 4018 function core_devices_delzap($account) { 4027 4019 global $db; 4028 global $currentFile;4029 4020 4030 4021 $sql = "DELETE FROM zap WHERE id = '$account'"; … … 4037 4028 function core_devices_deldahdi($account) { 4038 4029 global $db; 4039 global $currentFile;4040 4030 4041 4031 $sql = "DELETE FROM dahdi WHERE id = '$account'";
