// passed data if (!empty($_POST['jid'])) { $jid = $_POST['jid']; } else { echo "Missing required data for \$_POST['jid']"; $proceed = FALSE; } if (!empty($_POST['cid'])) { $cid = $_POST['cid']; } else { echo "Missing required data for \$_POST['cid']"; $proceed = FALSE; } // post job if ($proceed) { $response = $OBJ_linkedin->renewJob($jid, $cid); if ($response['success'] === TRUE) { // job posted header('Location: ' . $_SERVER['PHP_SELF']); } else { // an error occured echo "Error closing job:<br /><br />RESPONSE:<br /><br /><pre>" . print_r($response, TRUE) . "</pre><br /><br />LINKEDIN OBJ:<br /><br /><pre>" . print_r($OBJ_linkedin, TRUE) . "</pre>"; } } break; case 'revoke': /** * Handle authorization revocation. */ // check the session if (!oauth_session_exists()) {