Changeset 4360
- Timestamp:
- 07/11/07 20:41:50 (1 year ago)
- Files:
-
- modules/branches/2.3/core/functions.inc.php (modified) (1 diff)
- modules/branches/2.3/dashboard (added)
- modules/branches/2.3/dashboard/class.astinfo.php (added)
- modules/branches/2.3/dashboard/class.average_rate_calculator.php (added)
- modules/branches/2.3/dashboard/class.procinfo.php (added)
- modules/branches/2.3/dashboard/dashboard.css (added)
- modules/branches/2.3/dashboard/functions.inc.php (added)
- modules/branches/2.3/dashboard/images (added)
- modules/branches/2.3/dashboard/images/notify_critical.png (added)
- modules/branches/2.3/dashboard/images/notify_delete.png (added)
- modules/branches/2.3/dashboard/images/notify_error.png (added)
- modules/branches/2.3/dashboard/images/notify_notice.png (added)
- modules/branches/2.3/dashboard/images/notify_security.png (added)
- modules/branches/2.3/dashboard/images/notify_update.png (added)
- modules/branches/2.3/dashboard/images/notify_warning.png (added)
- modules/branches/2.3/dashboard/json.inc.php (added)
- modules/branches/2.3/dashboard/module.xml (added)
- modules/branches/2.3/dashboard/page.index.php (added)
- modules/branches/2.3/dashboard/phpsysinfo (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.BSD.common.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.Darwin.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.FreeBSD.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.HP-UX.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.Linux.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.NetBSD.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.OpenBSD.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.SunOS.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.WINNT.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/class.parseProgs.inc.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/common_functions.php (added)
- modules/branches/2.3/dashboard/phpsysinfo/distros.ini (added)
- modules/branches/2.3/dashboard/phpsysinfo/index.html (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/core/functions.inc.php
r4326 r4360 648 648 function core_devices_list($tech="all") { 649 649 $sql = "SELECT id,description FROM devices"; 650 switch ($tech) { 651 case "iax": 650 switch (strtoupper($tech)) { 652 651 case "IAX": 653 652 $sql .= " WHERE tech = 'iax2'"; 654 653 break; 655 case "iax2":656 654 case "IAX2": 657 case "sip":658 655 case "SIP": 659 case "zap":660 656 case "ZAP": 661 657 $sql .= " WHERE tech = '".strtolower($tech)."'"; 662 658 break; 663 case " all":659 case "ALL": 664 660 default: 665 661 } 662 $sql .= ' ORDER BY id'; 666 663 $results = sql($sql,"getAll"); 667 664 668 665 foreach($results as $result){ 669 666 if (checkRange($result[0])){ 670 $extens[] = array($result[0],$result[1]); 667 $extens[] = array( 668 0=>$result[0], // for backwards compatibility 669 1=>$result[1], 670 'id'=>$result[0], // FETCHMODE_ASSOC emulation 671 'description'=>$result[1], 672 ); 671 673 } 672 674 } 673 675 if (isset($extens)) { 674 sort($extens);675 676 return $extens; 676 677 } else {
