Ticket #2701: freepbx-2.4.0-json-fix.patch
| File freepbx-2.4.0-json-fix.patch, 2.7 kB (added by kRutOn, 9 months ago) |
|---|
-
admin/common/json.inc.php
old new 102 102 * 103 103 * // convert a complexe value to JSON notation, and send it to the browser 104 104 * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); 105 * header("Content-type: application/json"); 105 106 * $output = $json->encode($value); 106 107 * 107 108 * print($output); -
admin/config.php
old new 41 41 include_once('common/json.inc.php'); 42 42 $response = do_reload(); 43 43 $json = new Services_JSON(); 44 header("Content-type: application/json"); 44 45 echo $json->encode($response); 45 46 break; 46 47 case 'file': -
admin/modules/dashboard/page.index.php
old new 678 678 679 679 case 'info': 680 680 $json = new Services_JSON(); 681 header("Content-type: application/json"); 681 682 echo $json->encode( 682 683 array( 683 684 'procinfo'=>show_procinfo(), … … 689 690 break; 690 691 case 'stats': 691 692 $json = new Services_JSON(); 693 header("Content-type: application/json"); 692 694 echo $json->encode( 693 695 array( 694 696 'sysstats'=>show_sysstats(), … … 698 700 break; 699 701 case 'all': 700 702 $json = new Services_JSON(); 703 header("Content-type: application/json"); 701 704 echo $json->encode( 702 705 array( 703 706 'sysstats'=>show_sysstats(), -
admin/modules/framework/htdocs/admin/common/json.inc.php
old new 102 102 * 103 103 * // convert a complexe value to JSON notation, and send it to the browser 104 104 * $value = array('foo', 'bar', array(1, 2, 'baz'), array(3, array(4))); 105 * header("Content-type: application/json"); 105 106 * $output = $json->encode($value); 106 107 * 107 108 * print($output); -
admin/modules/framework/htdocs/admin/config.php
old new 41 41 include_once('common/json.inc.php'); 42 42 $response = do_reload(); 43 43 $json = new Services_JSON(); 44 header("Content-type: application/json"); 44 45 echo $json->encode($response); 45 46 break; 46 47 case 'file':
