// Debug info $debugtmp .= ", FORMID: " . $formid; } else { $txid = $reward->txid; // Debug info $debugtmp .= ", REQUESTID: " . $reward->requestid . ", TXID VIA REWARD: " . $txid; $result = "STATE_ALREADY_CLAIMED"; } } else { $txid = $reward->txid; // Debug info $debugtmp .= ", REQUESTID: " . $reward->requestid . ", TXID VIA IP: " . $txid; $result = "STATE_ALREADY_CLAIMED"; } } else { $txid = retrieveCookie(); // Debug info $debugtmp .= ", TXID VIA COOKIE: " . $txid; $result = "STATE_ALREADY_CLAIMED"; } } else { $result = "STATE_NOT_QUALIFIED"; } } } } else { $result = "STATE_SESSION_ERROR"; } if ($result != "STATE_VALID") { Debug::Log("state_twitter.php, STATE: " . $result . $debugtmp); }
function retrieveMyIHomeUrl($url) { if (isset($GLOBALS['MyIHomeCookie'])) { return retrieveUrl($url, "Cookie: JSESSIONID=" . $GLOBALS['MyIHomeCookie'] . "\r\n"); } else { $u = array('host' => $url['host'], 'port' => $url['port'], 'path' => '', 'query' => ''); $GLOBALS['MyIHomeCookie'] = retrieveCookie($u, 'JSESSIONID'); return retrieveUrl($url, "Cookie: JSESSIONID=" . $GLOBALS['MyIHomeCookie'] . "\r\n"); } }