echo '<br /> <a href="captcha_test.php">Test CAPTCHA without PHP Session(default)</a>'; if (!isset($_GET['session'])) { echo ' (Session is Off)'; } echo '</p> '; echo '<div class="title"> <label for="code">Enter the phrase:</label> </div> ' . echo_if_error($error_captcha) . ' <div class="field"> <input id="code" name="code" type="text" /> </div> '; if (!isset($_GET['session'])) { clean_temp_dir('../temp/'); // pick new prefix token $prefix_length = 16; $prefix_characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; $prefix = ''; $prefix_count = strlen($prefix_characters); while ($prefix_length--) { $prefix .= $prefix_characters[mt_rand(0, $prefix_count - 1)]; } echo ' <input id="token" type="hidden" name="token" value="' . $prefix . '" /> <div style="width:430px; height:55px"> <img id="si_image" style="padding-right:5px; border-style:none; float:left;" src="../securimage_show.php?prefix=' . $prefix . '" alt="CAPTCHA Image" title="CAPTCHA Image" />'; /*
echo '<br /> <a href="captcha_test.php">Test CAPTCHA without PHP Session(default)</a>'; if (!isset($_GET['session'])) { echo ' (Session is Off)'; } echo '</p> '; echo '<div class="title"> <label for="code">Enter the phrase:</label> </div> ' . echo_if_error($error_captcha) . ' <div class="field"> <input id="code" name="code" type="text" /> </div> '; if (!isset($_GET['session'])) { clean_temp_dir('../temp/', 60); // pick new prefix token $prefix_length = 16; $prefix_characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; $prefix = ''; $prefix_count = strlen($prefix_characters); while ($prefix_length--) { $prefix .= $prefix_characters[mt_rand(0, $prefix_count - 1)]; } echo ' <input id="token" type="hidden" name="token" value="' . $prefix . '" /> <div style="width:430px; height:55px"> <img id="si_image" style="padding-right:5px; border-style:none; float:left;" src="../securimage_show.php?prefix=' . $prefix . '" alt="CAPTCHA Image" title="CAPTCHA Image" />'; /*
echo '<br /> <a href="captcha_test.php">Test CAPTCHA without PHP Session(default)</a>'; if (!isset($_GET['session'])) { echo ' (Session is Off)'; } echo '</p> '; echo '<div class="title"> <label for="code">Enter the phrase:</label> </div> ' . echo_if_error($error_captcha) . ' <div class="field"> <input id="code" name="code" type="text" /> </div> '; if (!isset($_GET['session'])) { clean_temp_dir('../captcha-temp/', 60); // pick new prefix token $prefix_length = 16; $prefix_characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'; $prefix = ''; $prefix_count = strlen($prefix_characters); while ($prefix_length--) { $prefix .= $prefix_characters[mt_rand(0, $prefix_count - 1)]; } echo ' <input id="token" type="hidden" name="token" value="' . $prefix . '" /> <div style="width:430px; height:55px"> <img id="si_image" style="padding-right:5px; border-style:none; float:left;" src="../securimage_show.php?prefix=' . $prefix . '" alt="CAPTCHA Image" title="CAPTCHA Image" /> <a id="si_aud" href="../securimage_play.php?prefix=' . $prefix . '" title="CAPTCHA Audio">