<?php
$phpVersion = phpversion();
if (version_compare($phpVersion, '5.6.0', '<'))
{
die("PHP 5.6.0 or newer is required. $phpVersion does not meet this requirement. Please ask your host to upgrade PHP.");
}
$dir = __DIR__;
require($dir . '/src/XF.php');
XF::start($dir);
if (\XF::requestUrlMatchesApi())
{
\XF::runApp('XF\Api\App');
}
else
{
\XF::runApp('XF\Pub\App');
}
$content = "<div class='main'>ENTER CAPTCHA</div>";
echo
<br/>
<img style="border: 1px solid gray; background: url('bg_capcha.png');" src = "captcha.php" width="120" height="40"/>
<br/>
<form action="validator.php" method="POST">
<input type="text" name="capcha" />
<input type="submit" name="send" value="Проверить"/>
</form>