please tell me why its tell "Captcha: You entered wrong captcha code."
please register http://topm.ga/signup.php
you can understand what i say
please register http://topm.ga/signup.php
you can understand what i say
<?php
/**
*
*/
session_start();
define('IN_MOB',1);
require_once './inc/init.php';
if($mob->settings['tid'] == 0)
{
$errors = array();
if(isset($mob->input['act']) && $mob->input['act'] == "signup")
{
if(isset($mob->input['captcha']) && $_SESSION['captcha'] == $mob->input['captcha'])
{
$data = array("name" => $mob->input['name'] , "domain" => $mob->input['domain'] , "email" => $mob->input['email'] , "password" => $mob->input['password'] , "password2" => $mob->input['password2']);
require_once './inc/datahandler.php';
$toplist = new Datahandler('add_toplist');
$toplist->set_data($data);
$toplist->validate_toplist();
if(count($toplist->get_errors()) <= 0)
{
$toplist_tid = $toplist->add_toplist();
mob_setcookie("mobtid",$toplist_tid,null,true);
mob_setcookie("password",base64_encode(md5(md5($da ta['password']))),null,true);
header('Location: /manage.php');
}
else
{
$errors = $toplist->get_errors();
}
}
else
{
$errors['captcha'] = array("error_code" => "captcha" , "data" => "You entered wrong captcha code.");
}
}
require_once './header.php';
$signup = $template->loadTemplate('signup.tpl');
$data['name'] = isset($mob->input['name']) ? $mob->input['name'] : '';
$data['domain'] = isset($mob->input['domain']) ? $mob->input['domain'] : 1;
$data['email'] = isset($mob->input['email']) ? $mob->input['email'] : '';
$signup->display(["domainlist" => get_domainlist() , "errors" => $errors , "data" => $data]);
include_once './footer.php';
}
else
{
header('Location: /index.php');
}
<?php
/**
*
*/
<?php
session_start();
var_dump($_POST);
var_dump($_SESSION);
exit;
Comment