Changeset 8611
- Timestamp:
- 01/14/10 13:55:36 (3 years ago)
- Files:
-
- modules/branches/2.7/fax/functions.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.7/fax/functions.inc.php
r8610 r8611 64 64 65 65 function fax_delete_incoming($extdisplay){ 66 glo abl $db;66 global $db; 67 67 $opts=explode('/', $extdisplay);$extension=$opts['0'];$cidnum=$opts['1']; //set vars 68 68 sql("DELETE FROM fax_incoming WHERE cidnum = '".$db->escapeSimple($cidnum)."' and extension = '".$db->escapeSimple($extension)."'"); … … 375 375 376 376 function fax_save_incoming($cidnum,$extension,$faxenabled,$faxdetection,$faxdetectionwait,$dest){ 377 glo abl $db;377 global $db; 378 378 sql("INSERT INTO fax_incoming (cidnum, extension, faxenabled, faxdetection, faxdetectionwait, faxdestination) VALUES ('".$db->escapeSimple($cidnum)."', '".$db->escapeSimple($extension)."', '".$db->escapeSimple($faxenabled)."', '".$db->escapeSimple($faxdetection)."', '".$db->escapeSimple($faxdetectionwait)."', '".$db->escapeSimple($dest)."')"); 379 379 } 380 380 381 381 function fax_save_settings($settings){ 382 glo abl $db;382 global $db; 383 383 foreach($settings as $key => $value){ 384 384 sql("REPLACE INTO fax_details (`key`, `value`) VALUES ('".$key."','".$db->escapeSimple($value)."')");
