Changeset 12439

Show
Ignore:
Timestamp:
08/24/11 14:25:02 (2 years ago)
Author:
mbrevda
Message:

use native json functions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/sipstation/destinations.html.php

    r8659 r12439  
    194194} 
    195195 
    196 $json = new Services_JSON(); 
    197 $value = $json->decode($_POST); 
     196 
     197$value = json_decode($_POST); 
    198198 
    199199header("Content-type: application/json");  
    200 echo $json->encode($json_array); 
     200echo json_encode($json_array); 
  • modules/branches/2.10/sipstation/edittrunk.html.php

    r9438 r12439  
    129129} 
    130130 
    131 $json = new Services_JSON(); 
    132 $value = $json->decode($_POST); 
     131$value = json_decode($_POST); 
    133132 
    134133header("Content-type: application/json");  
    135 echo $json->encode($json_array); 
     134echo json_encode($json_array); 
  • modules/branches/2.10/sipstation/firewall.html.php

    r11105 r12439  
    114114    $json_array['status_message'] = _("An unexpected token was returned, try the test again"); 
    115115  } 
    116   $json = new Services_JSON(); 
     116 
    117117  sleep(0); 
    118118  header("Content-type: application/json");  
    119   echo $json->encode($json_array); 
     119  echo json_encode($json_array); 
  • modules/branches/2.10/sipstation/refresh.html.php

    r10970 r12439  
    6464} 
    6565 
    66 $json = new Services_JSON(); 
    67 $value = $json->decode($_POST); 
     66$value = json_decode($_POST); 
    6867 
    6968header("Content-type: application/json");  
    70 echo $json->encode($json_array); 
     69echo json_encode($json_array); 
  • modules/branches/2.10/sipstation/routes.html.php

    r9438 r12439  
    163163} 
    164164 
    165 $json = new Services_JSON(); 
    166 $value = $json->decode($_POST); 
     165$value = json_decode($_POST); 
    167166 
    168167header("Content-type: application/json");  
    169 echo $json->encode($json_array); 
     168echo json_encode($json_array); 
  • modules/branches/2.10/sipstation/sipstation.html.php

    r10970 r12439  
    198198} 
    199199 
    200 $json = new Services_JSON(); 
    201200header("Content-type: application/json");  
    202 echo $json->encode($json_array); 
     201echo json_encode($json_array);