Out Login
0.0.1
2.1.7
RodTango at gmail dot com
data['title'] = $this->document->getTitle();]]>
load->model('account/customer'); //login
]]>
data['text_checkout'] = $this->language->get('text_checkout');]]>
data['text_email_login'] = $this->language->get('text_email_login');
$this->data['text_password_login'] = $this->language->get('text_password_login');
$this->data['button_login'] = $this->language->get('button_login');
]]>
data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');]]>
data['action'] = $this->url->link('account/login', '', 'SSL');
]]>
template = 'default/template/common/header.tpl';
}]]>
request->post['redirect']) && (strpos($this->request->post['redirect'], $this->config->get('config_url')) !== false || strpos($this->request->post['redirect'], $this->config->get('config_ssl')) !== false)) {
$this->data['redirect'] = $this->request->post['redirect'];
} elseif (isset($this->session->data['redirect'])) {
$this->data['redirect'] = $this->session->data['redirect'];
unset($this->session->data['redirect']);
} else {
$this->data['redirect'] = '';
}
if (isset($this->request->post['email'])) {
$this->data['email'] = $this->request->post['email'];
} else {
$this->data['email'] = '';
}
if (isset($this->request->post['password'])) {
$this->data['password'] = $this->request->post['password'];
} else {
$this->data['password'] = '';
}
]]>
render();
}]]>
customer->login($this->request->post['email'], $this->request->post['password'])) {
$this->error['warning'] = $this->language->get('error_login');
}
$customer_info = $this->model_account_customer->getCustomerByEmail($this->request->post['email']);
if ($customer_info && !$customer_info['approved']) {
$this->error['warning'] = $this->language->get('error_approved');
}
if (!$this->error) {
return true;
} else {
return false;
}
}
]]>
]]>
/*
*Popup login
*/
$(document).ready(function(){
$(document).mousedown(function(e){
$('._popup').each(function(){
if( $(this).css('display') == 'block' )
{
var l_position = $(this).offset();
l_position.right = parseInt(l_position.left) + ($(this).width());
l_position.bottom = parseInt(l_position.top) + parseInt($(this).height());
if( ( l_position.left <= e.pageX && e.pageX <= l_position.right )
&& ( l_position.top <= e.pageY && e.pageY <= l_position.bottom ) )
{
//alert( 'popup in click' );
}
else
{
//alert( 'popup out click' );
$(this).hide("fast");
}
}
});
});
})
/*
* Mostrar layout Popup
*/
function show_popup()
{
$('._popup').show("fast");
}
]]>
]]>
]]>