\n\n\n"; echo "\n\n\n"; $form_league= "
$leaguename Roster Editing

Jolt Q4.CTF League Roster Editing Form

Please ensure that you are complying with the rules when making changes to your roster.
If you have any questions or problems, speak to the admins in #Q4.jolt (preferebly the Q4.CTFL Head Admin).

Fields marked with a * must be filled in. Enter the details you wish to change.


* Clan Tag
* Full Clan Name
* Clan Players
Comments (anything else..)
* I have entered Clan Tag, Clan Name and Players as a minimum.

Note: You must tick the above box for the E-Mail to be sent.

Please also note:
  • Implod will be recieving the E-Mail.
  • Any other method other than this form will not be acknowledged.
  • The rules with regards to changing your roster.
  • Our server settings.









"; if ($opi != "ds") { echo "$form_league"; } elseif ($opi =="ds") { $channelnohash = str_replace("#", "", $channel); $cip = getenv("REMOTE_ADDR"); $reg = str_replace(",", ".", $_POST); $reg = preg_replace('/\n|\r|(\r\n)/m', ' | ', $reg); $error_array = array(); while (list($key, $value) = each($reg)) { // Search for empty fields if ($value == "" && $key != "Clan_Website" && $key != "Past Seasons") { array_push($error_array, $key); $send = "no"; } // Start building up email message if ($key != "opi" && $key != "submit" && $key != "Availability") { $msgdetails .= str_replace("_", " ", $key) . ": " . strip_tags($value) . "\n"; } } if (!$_POST['Availability']) { array_push($error_array, "Availability"); $send = "no"; } if ($send != "no") { $filename = "signupdata/" . $rulesid . ".txt"; if (file_exists($filename)) { $data = file($filename); $count = count($data); // Check for multiple signups from one IP foreach($data as $dataline) { if (eregi($cip, $dataline)) { make1(); echo "Signup failed

We have already received an E-Mail from you.

Please contact $adminemail for assistance"; make2(); $quitnow = "true"; } } } else { $count = 0; } if ($count >= $maxsignups) { make1(); echo "Signup failed

This tournament is oversubscribed

Please contact $adminemail for assistance"; make2(); $quitnow = "true"; } if (!$quitnow) { reset($reg); $data = fopen($filename, "a+"); fputs($data, $count+1 . "," . $cip . ","); while (list($key, $value) = each($reg)) { if ($key != "opi" && $key != "Availability" && $key != "submit") { fputs($data, strip_tags($value) . ","); } } fputs($data, "\n"); fclose($data); $toaddress = $reg[""]; $msg = "Thank you for your application! This is an automated email confirming that we have received your signup and can reach you at the specified addresses. If your team's details change please let us know. You should receive a direct E-Mail from the League's Head Admin in the next 24 hours.\n\n"; $msg .= "Please join $channel on irc.quakenet.org so that we can contact you if needed.\n\n"; $msg .= "The details we have for your clan are as follows:\n\n"; $msg .= $msgdetails; $msg .= "\nThe $leaguename Admin Team\n"; $msg .= "$subsiteurl\n\n"; $msg .= "--------------------------\n\n"; $msg .= "This registration was received from $cip - If this mail was not expected please contact $adminemail"; $to = "$toaddress"; $subject = "$leaguename - Registration received"; $replyto = "$adminemail"; $mailheaders = "From: $leaguename <$replyto> \n"; $mailheaders .= "Reply-To: $replyto\n"; $mailheaders .= "Bcc: $adminemail, kleeks@jolt.co.uk\n\n"; mail ($to, $subject, $msg, $mailheaders); make1(); echo "
Your request to edit your roster on $leaguename has been submitted. You should receive email confirmation of this shortly.

If you do not receive an email within 48 hours please contact the Head Admin.

Please may you and your clan mates join $channel on irc.quakenet.org
so that admins can contact you if needed (and to support the league).


"; make2(); } } elseif ($send == "no") { make1(); echo "We were unable to process your submission

"; echo "Please click the back button on your browser and fill in the following fields:

"; while (list($key, $value) = each($error_array)) { echo "
" . str_replace("_", " ", $value) . "

"; } make2(); } } function make1 () { global $theme, $leaguename, $bgcol; echo "
$leaguename Signup
"; } function make2 () { global $theme, $leaguename, $bgcol; echo "








"; } ?>