public function post_checkimagelinkback() { $response = User::testLinkBack(Auth::user()->get()->cid); if ($response) { if (Auth::user()->get()->status == 1) { //We will echo 1! to tell the client to replace the module icon to a check instead of the red X because there VA is now approved echo '1!'; } else { echo '1'; } } else { //The content was not found return 0 to the client. echo '0'; } }
public function post_findlinkback() { $va = Input::get('va'); $response = User::testLinkBack($va); //This will return a boolean either true or false based on if the link is found using cURL if ($response) { $response = 1; } else { $response = 0; } return $response; }