Example #1
0
}
//The other user
$v = isset($_REQUEST['v']) ? intval($_REQUEST['v']) : '0';
if (!$v) {
    error('Error - Other user not specified');
}
//In order to debug XML add "?T3ST=1" in the URL
if (isset($_REQUEST[$debug_parameter])) {
    $XML_debug = true;
}
//$c = new People();
$fOk = false;
$timer->setMarker('setup');
if (isset($_REQUEST['follow'])) {
    if ($_REQUEST['follow'] == 0) {
        Controller::p_unfollow($u, $v);
    } else {
        Controller::p_follow($u, $v);
    }
} else {
    error('unrecognized command');
}
$timer->setMarker('query');
InsertBenchmarkDB($timer);
//Save the data on DB
echo '{"results": "OK"}';
if (isset($XML_debug)) {
    $timer->display(true);
    // if you want to display immidiately and to output html formated
    //$profiling = $timer->getProfiling(); // get the profiler info as an associative array
    //echo "<br> This is the array: <br> <pre>";