echo "Reload page"; } else { if (isset($_POST["user_id"])) { echo $api->getNewsFeedMostRecentServer($_POST['accountID'], $_POST['profileID'], 'getYTChannelInfo', "", $_POST["user_id"]); } else { echo $api->getNewsFeedMostRecentServer($_POST['accountID'], $_POST['profileID'], 'getYTChannelInfo', "", ""); } } break; case 'getTWConversation': $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']); if ($acc_data == 'reload') { echo "Reload page"; } else { if (isset($_POST["id_str"])) { echo $api->getTWConversationFromServer($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts, $_POST["id_str"]); } } break; case 'getSampleDataRandomInterval': if (!$api->ifUserLogined()) { echo 'reload'; } elseif (isset($_POST['accountID']) && isset($_POST['profileID'])) { $account = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']); if (isset($account->accountId) && isset($account->sampleId)) { //$has_cook = false; //$hash_code = md5 ( $account->accountId . $account->sampleId ); //$time = null; $json = array(); //if ( !$has_cook ) //{