phpBMS

Show
Ignore:
Timestamp:
01/14/10 16:59:01 (2 years ago)
Author:
nate
Message:
  • Removed unneded comments in apiclass.php and api_json.php
  • Added ping functionality (for connection / access / tabledef testing) in the api class and the apiwrapper class.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/api/api_json.php

    r703 r759  
    3737 +-------------------------------------------------------------------------+ 
    3838*/ 
    39  
    40 //Test Information 
    41 //$_POST["phpbmsusername"] = "api"; 
    42 //$_POST["phpbmspassword"] = "spiderman"; 
    43 //$_POST["request"] = '[ 
    44 //    { 
    45 //        "tabledefid": "tbld:c9ff2c8c-ce1f-659a-9c55-31bca7cce70e", 
    46 //        "command" : "insert", 
    47 //        "data" : {"name":"FOObar","percentage":"3","inactive":"0","createdby":"2","creationdate":"2009-06-25 14:38:02","modifiedby":"2","modifieddate":"2009-06-25 14:38:02","custom1":null,"custom2":null,"custom3":null,"custom4":null,"custom5":null,"custom6":null,"custom7":null,"custom8":null} 
    48 //    } 
    49 //]'; 
    50 //$_POST["request"] = '[ 
    51 //    { 
    52 //        "tabledefid": "tbld:c9ff2c8c-ce1f-659a-9c55-31bca7cce70e", 
    53 //        "command" : "update", 
    54 //        "data" : {"useUuid":false, "id":2, "name":"JOOOOO","percentage":"3","inactive":"0","createdby":"2","creationdate":"2009-06-25 14:38:02","modifiedby":"2","modifieddate":"2009-06-25 14:38:02","custom1":null,"custom2":null,"custom3":null,"custom4":null,"custom5":null,"custom6":null,"custom7":null,"custom8":null} 
    55 //    } 
    56 //]'; 
    57 //$_POST["request"] = '[ 
    58 //    { 
    59 //        "tabledefid": "tbld:c9ff2c8c-ce1f-659a-9c55-31bca7cce70e", 
    60 //        "command" : "get", 
    61 //        "data" : {"uuid":"tax:66dd77f5-c68e-74f4-5ce6-64768282b232"} 
    62 //    } 
    63 //]'; 
    64 //$_POST["request"] = '[ 
    65 //    { 
    66 //        "tabledefid": "tbld:c9ff2c8c-ce1f-659a-9c55-31bca7cce70e", 
    67 //        "command" : "inactivate", 
    68 //        "data" : [4], 
    69 //        "options" : {"useUuid" : false} 
    70 //    } 
    71 //]'; 
    72  
    73 //if(isset($_POST["foo"])){ 
    74 //    var_dump(stripslashes($_POST["request"])); 
    75 //    exit; 
    76 //} 
    77  
    7839require("../../include/session.php"); 
    7940require("include/apiclass.php"); 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.