1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

ucp updates

git-svn-id: file:///svn/phpbb/trunk@4895 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2004-05-26 20:16:20 +00:00
parent 97e5c0f4bd
commit 53779df720
6 changed files with 114 additions and 88 deletions

View File

@@ -25,13 +25,13 @@ class ucp_confirm extends module
global $config, $db, $user, $auth, $SID, $template, $phpbb_root_path, $phpEx;
// Do we have an id? No, then just exit
if (empty($_GET['id']))
$confirm_id = request_var('id', '');
if (!$confirm_id)
{
exit;
}
$confirm_id = $_GET['id'];
// Define available charset
$chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9');
@@ -140,11 +140,13 @@ class ucp_confirm extends module
}
else
{
if (!empty($_GET['c']))
$char = request_var('c', 0);
if ($char)
{
$_png = $this->define_raw_pngs();
$char = substr($code, intval($HTTP_GET_VARS['c']) - 1, 1);
$char = substr($code, $char - 1, 1);
header('Content-Type: image/png');
header('Cache-control: no-cache, no-store');
echo base64_decode($_png[$char]);