<?php
/* --------------------------------------------------------------
login_mobile.php 2011-12-22
Gambio GmbH
http://www.gambio.de
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
include ('includes/application_top.php');
require_once (DIR_FS_INC.'xtc_validate_password.inc.php');
require_once (DIR_FS_INC.'xtc_array_to_string.inc.php');
require_once (DIR_FS_INC.'xtc_write_user_info.inc.php');
$gm_log = MainFactory::create_object('GMTracker');
$gm_log->gm_delete();
$response = array ('state'=>false,'message'=>'ip blocked','additional'=>array());
if($gm_log->gm_ban() == false) {
if (isset ($_GET['action']) && ($_GET['action'] == 'process')) {
$email_address = xtc_db_prepare_input($_POST['email_address']);
$password = xtc_db_prepare_input($_POST['password']);
// Check if email exists
$check_customer_query = xtc_db_query("select customers_id, customers_vat_id, customers_firstname,customers_lastname, customers_gender, customers_password, customers_email_address, customers_default_address_id from ".TABLE_CUSTOMERS." where customers_email_address = '".xtc_db_input($email_address)."' and account_type = '0'");
if (!xtc_db_num_rows($check_customer_query)) {
$gm_log->gm_track();
// Handle Error Message
//=====================
$response = array ('state'=>3001);
}else{
$check_customer = xtc_db_fetch_array($check_customer_query);
// Check that password is good
if (!xtc_validate_password($password, $check_customer['customers_password'])) {
$gm_log->gm_track();
// Handle Error Message
//=====================
$response = array ('state'=>3001);
}else{
$gm_log->gm_delete(true);
if (SESSION_RECREATE == 'True'){
xtc_session_recreate();
}
$check_country_query = xtc_db_query("select entry_country_id, entry_zone_id from ".TABLE_ADDRESS_BOOK." where customers_id = '".(int) $check_customer['customers_id']."' and address_book_id = '".$check_customer['customers_default_address_id']."'");
$check_country = xtc_db_fetch_array($check_country_query);
$_SESSION['customer_gender'] = $check_customer['customers_gender'];
$_SESSION['customer_first_name'] = $check_customer['customers_firstname'];
$_SESSION['customer_last_name'] = $check_customer['customers_lastname'];
$_SESSION['customer_id'] = $check_customer['customers_id'];
$_SESSION['customer_country_id'] = $check_country['entry_country_id'];
$_SESSION['customer_zone_id'] = $check_country['entry_zone_id'];
$date_now = date('Ymd');
xtc_db_query("update ".TABLE_CUSTOMERS_INFO." SET customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 WHERE customers_info_id = '".(int) $_SESSION['customer_id']."'");
xtc_write_user_info((int) $_SESSION['customer_id']);
// Handle Error Message
//=====================
$response = array ('state'=>3000,'additional'=>array('gender' => $_SESSION['customer_gender'],
'first_name' => $_SESSION['customer_first_name'],
'last_name' => $_SESSION['customer_last_name'],
'customer_id' => $_SESSION['customer_id'],
'country' => $_SESSION['customer_country_id'],
'zone' => $_SESSION['customer_zone_id']
));
}
}
}
}
echo json_encode($response);
mysql_close();
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| PdfCreator/ | 2013-11-12 21:09 | 202.72 KB | 76129f60960:kunden | dxwrx-rx-r | |
| StyleEdit/ | 2013-11-12 21:10 | 1.42 MB | 76129f60960:kunden | dxwrx-rx-r | |
| actindo/ | 2013-11-12 20:52 | 340.67 KB | 76129f60960:kunden | dxwrx-rx-r | |
| admin/ | 2013-11-12 20:53 | 16.69 MB | 76129f60960:kunden | dxwrx-rx-r | |
| cache/ | 2025-01-28 22:35 | 150.58 KB | 76129f60960:kunden | dxwrx-rx-r | |
| callback/ | 2013-11-12 21:01 | 390.73 KB | 76129f60960:kunden | dxwrx-rx-r | |
| download/ | 2025-01-28 22:35 | 109 B | 76129f60960:kunden | dxwrx-rx-r | |
| export/ | 2013-11-12 22:46 | 179.73 KB | 76129f60960:kunden | dxwrx-rx-r | |
| ext/ | 2013-11-12 21:01 | 271.04 KB | 76129f60960:kunden | dxwrx-rx-r | |
| gm/ | 2013-11-12 21:03 | 2.27 MB | 76129f60960:kunden | dxwrx-rx-r | |
| iclear/ | 2013-11-12 21:04 | 1.05 MB | 76129f60960:kunden | dxwrx-rx-r | |
| images/ | 2013-11-14 15:48 | 11.41 MB | 76129f60960:kunden | dxwrx-rx-r | |
| import/ | 2013-11-12 21:05 | 2 B | 76129f60960:kunden | dxwrx-rx-r | |
| inc/ | 2013-11-12 21:05 | 349.91 KB | 76129f60960:kunden | dxwrx-rx-r | |
| includes/ | 2025-01-28 22:35 | 3.75 MB | 76129f60960:kunden | dxwrx-rx-r | |
| lang/ | 2013-11-12 21:07 | 1.95 MB | 76129f60960:kunden | dxwrx-rx-r | |
| lettr/ | 2025-01-28 22:35 | 25.98 KB | 76129f60960:kunden | dxwrx-rx-r | |
| logfiles/ | 2018-07-12 04:18 | 330.63 KB | 76129f60960:kunden | dxwrx-rx-r | |
| media/ | 2013-11-12 22:32 | 15.49 KB | 76129f60960:kunden | dxwrx-rx-r | |
| promo/ | 2013-11-12 21:09 | 119.04 KB | 76129f60960:kunden | dxwrx-rx-r | |
| pub/ | 2025-01-28 22:35 | 38 B | 76129f60960:kunden | dxwrx-rx-r | |
| shopgate/ | 2025-01-28 22:35 | 811.32 KB | 76129f60960:kunden | dxwrx-rx-r | |
| system/ | 2013-11-12 21:11 | 678.06 KB | 76129f60960:kunden | dxwrx-rx-r | |
| templates/ | 2013-11-12 21:11 | 1.71 MB | 76129f60960:kunden | dxwrx-rx-r | |
| templates_c/ | 2017-11-16 23:11 | 158.67 KB | 76129f60960:kunden | dxwrx-rx-r | |
| user_classes/ | 2013-11-12 21:14 | 12.3 KB | 76129f60960:kunden | dxwrx-rx-r | |
| .DS_Store | 2013-11-12 20:51 | 24 KB | 76129f60960:kunden | -xw-x----- | |
| .htaccess | 2025-01-28 22:35 | 99 B | 76129f60960:kunden | -xw-x----- | |
| LICENSE.txt | 2013-11-12 20:52 | 17.83 KB | 76129f60960:kunden | -xw-x----- | |
| LIZENZUEBERSETZUNG.txt | 2013-11-12 20:52 | 25.33 KB | 76129f60960:kunden | -xw-x----- | |
| WICHTIGE_HINWEISE.txt | 2013-11-12 20:52 | 1.87 KB | 76129f60960:kunden | -xw-x----- | |
| account.php | 2013-11-12 20:51 | 1.93 KB | 76129f60960:kunden | -xw-x----- | |
| account_edit.php | 2013-11-12 20:51 | 16.32 KB | 76129f60960:kunden | -xw-x----- | |
| account_history.php | 2013-11-12 20:51 | 5 KB | 76129f60960:kunden | -xw-x----- | |
| account_history_info.php | 2013-11-12 20:51 | 6.57 KB | 76129f60960:kunden | -xw-x----- | |
| account_password.php | 2013-11-12 20:51 | 7.01 KB | 76129f60960:kunden | -xw-x----- | |
| address_book.php | 2013-11-12 20:51 | 1.81 KB | 76129f60960:kunden | -xw-x----- | |
| address_book_process.php | 2013-11-12 20:51 | 16.86 KB | 76129f60960:kunden | -xw-x----- | |
| advanced_search.php | 2013-11-12 20:51 | 1.63 KB | 76129f60960:kunden | -xw-x----- | |
| advanced_search_result.php | 2013-11-12 20:51 | 12.1 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_confirmation.php | 2013-11-12 20:51 | 27.82 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_iclear.php | 2013-11-12 20:51 | 8.82 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_payment.php | 2013-11-12 20:51 | 16.71 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_payment_address.php | 2013-11-12 20:51 | 12.14 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_process.php | 2013-11-12 20:51 | 36.23 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_qpay.php | 2013-11-12 20:51 | 2.67 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_shipping.php | 2013-11-12 20:51 | 14.43 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_shipping_address.php | 2013-11-12 20:51 | 12.66 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_success.php | 2013-11-12 20:51 | 5.89 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_vrepay_elv.php | 2013-11-12 20:51 | 2.3 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_vrepay_giropay.php | 2013-11-12 20:51 | 1.52 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_vrepay_kreditkarte.php | 2013-11-12 20:51 | 2.33 KB | 76129f60960:kunden | -xw-x----- | |
| clickandbuy_check.php | 2013-11-12 20:51 | 3.94 KB | 76129f60960:kunden | -xw-x----- | |
| clickandbuy_ems_push_endpoint.php | 2013-11-12 20:51 | 3.48 KB | 76129f60960:kunden | -xw-x----- | |
| cookie_usage.php | 2013-11-12 20:51 | 1.92 KB | 76129f60960:kunden | -xw-x----- | |
| cout_qpay_iframe.php | 2013-11-12 20:51 | 1 KB | 76129f60960:kunden | -xw-x----- | |
| create_account.php | 2013-11-12 20:51 | 38.03 KB | 76129f60960:kunden | -xw-x----- | |
| create_guest_account.php | 2013-11-12 20:51 | 31.6 KB | 76129f60960:kunden | -xw-x----- | |
| display_vvcodes.php | 2013-11-12 20:51 | 750 B | 76129f60960:kunden | -xw-x----- | |
| download.php | 2013-11-12 20:51 | 3.75 KB | 76129f60960:kunden | -xw-x----- | |
| fax.html | 2013-11-12 20:51 | 3.99 KB | 76129f60960:kunden | -xw-x----- | |
| gm_account_delete.php | 2013-11-12 20:51 | 2.92 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ajax.php | 2013-11-12 20:51 | 1.82 KB | 76129f60960:kunden | -xw-x----- | |
| gm_corner.gif.php | 2013-11-12 20:51 | 3.39 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter.php | 2013-11-12 20:51 | 143 B | 76129f60960:kunden | -xw-x----- | |
| gm_counter_set_screen.php | 2013-11-12 20:51 | 1.16 KB | 76129f60960:kunden | -xw-x----- | |
| gm_create_vvcodes.php | 2013-11-12 20:51 | 533 B | 76129f60960:kunden | -xw-x----- | |
| gm_css_monitor.php | 2013-11-12 20:51 | 8.94 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ebay.php | 2013-11-12 20:51 | 917 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint.js.php | 2013-11-12 20:51 | 1002 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_ajax.php | 2013-11-12 20:52 | 38.48 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_download.php | 2013-11-12 20:52 | 1.76 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_order_ajax.php | 2013-11-12 20:52 | 1.47 KB | 76129f60960:kunden | -xw-x----- | |
| gm_guestbook.php | 2013-11-12 20:52 | 2.52 KB | 76129f60960:kunden | -xw-x----- | |
| gm_javascript.js.php | 2013-11-12 20:52 | 4.3 KB | 76129f60960:kunden | -xw-x----- | |
| gm_opensearch.php | 2013-11-12 20:52 | 718 B | 76129f60960:kunden | -xw-x----- | |
| gm_price_offer.php | 2013-11-12 20:52 | 1.57 KB | 76129f60960:kunden | -xw-x----- | |
| gm_privacy.php | 2013-11-12 20:52 | 3.2 KB | 76129f60960:kunden | -xw-x----- | |
| gm_product_export_cron.php | 2013-11-12 20:52 | 4.4 KB | 76129f60960:kunden | -xw-x----- | |
| gv_redeem.php | 2013-11-12 20:52 | 3.84 KB | 76129f60960:kunden | -xw-x----- | |
| gv_send.php | 2013-11-12 20:52 | 9.58 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_3dsecure.php | 2013-11-12 20:52 | 966 B | 76129f60960:kunden | -xw-x----- | |
| heidelpay_3dsecure_return.php | 2013-11-12 20:52 | 1.5 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_checkout_iframe.php | 2013-11-12 20:52 | 1.19 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_iframe.php | 2013-11-12 20:52 | 1.24 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_redirect.php | 2013-11-12 20:52 | 2.68 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_response.php | 2013-11-12 20:52 | 3.95 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_style.css | 2013-11-12 20:52 | 1.27 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_success.php | 2013-11-12 20:52 | 4.6 KB | 76129f60960:kunden | -xw-x----- | |
| index.php | 2013-11-12 20:52 | 5.89 KB | 76129f60960:kunden | -xw-x----- | |
| login.php | 2013-11-12 20:52 | 2.63 KB | 76129f60960:kunden | -xw-x----- | |
| login_admin.php | 2013-11-12 20:52 | 6.06 KB | 76129f60960:kunden | -xw-x----- | |
| login_mobile.php | 2013-11-12 20:52 | 3.75 KB | 76129f60960:kunden | -xw-x----- | |
| logoff.php | 2013-11-12 20:52 | 2.1 KB | 76129f60960:kunden | -xw-x----- | |
| magnaCallback.php | 2013-11-12 20:52 | 20.86 KB | 76129f60960:kunden | -xw-x----- | |
| magnalister_compatibility_check.php | 2013-11-12 20:52 | 17.23 KB | 76129f60960:kunden | -xw-x----- | |
| media_content.php | 2013-11-12 20:52 | 2.6 KB | 76129f60960:kunden | -xw-x----- | |
| mkd_@_.html | 2014-05-29 21:30 | 5.84 KB | 76129f60960:kunden | -xw-x----- | |
| moneybookers_iframe.php | 2013-11-12 20:52 | 3.07 KB | 76129f60960:kunden | -xw-x----- | |
| newsletter.php | 2013-11-12 20:52 | 10.64 KB | 76129f60960:kunden | -xw-x----- | |
| notify_vrepay_elv.php | 2013-11-12 20:52 | 3.72 KB | 76129f60960:kunden | -xw-x----- | |
| notify_vrepay_giropay.php | 2013-11-12 20:52 | 3.77 KB | 76129f60960:kunden | -xw-x----- | |
| notify_vrepay_kreditkarte.php | 2013-11-12 20:52 | 3.81 KB | 76129f60960:kunden | -xw-x----- | |
| password_double_opt.php | 2013-11-12 20:52 | 11.65 KB | 76129f60960:kunden | -xw-x----- | |
| paypal_api_check.php | 2013-11-12 20:52 | 7.37 KB | 76129f60960:kunden | -xw-x----- | |
| paypal_checkout.php | 2013-11-12 20:52 | 39.45 KB | 76129f60960:kunden | -xw-x----- | |
| popup_content.php | 2013-11-12 20:52 | 3.3 KB | 76129f60960:kunden | -xw-x----- | |
| popup_coupon_help.php | 2013-11-12 20:52 | 5.08 KB | 76129f60960:kunden | -xw-x----- | |
| popup_cvv.php | 2013-11-12 20:52 | 2.69 KB | 76129f60960:kunden | -xw-x----- | |
| popup_image.php | 2013-11-12 20:52 | 5.03 KB | 76129f60960:kunden | -xw-x----- | |
| popup_search_help.php | 2013-11-12 20:52 | 1.64 KB | 76129f60960:kunden | -xw-x----- | |
| print_order.php | 2013-11-12 20:52 | 3.23 KB | 76129f60960:kunden | -xw-x----- | |
| print_product_info.php | 2013-11-12 20:52 | 7.29 KB | 76129f60960:kunden | -xw-x----- | |
| product_info.php | 2013-11-12 20:52 | 2.63 KB | 76129f60960:kunden | -xw-x----- | |
| product_reviews.php | 2013-11-12 20:52 | 4.58 KB | 76129f60960:kunden | -xw-x----- | |
| product_reviews_info.php | 2013-11-12 20:52 | 4.92 KB | 76129f60960:kunden | -xw-x----- | |
| product_reviews_write.php | 2013-11-12 20:52 | 7.13 KB | 76129f60960:kunden | -xw-x----- | |
| products_new.php | 2013-11-12 20:52 | 8.04 KB | 76129f60960:kunden | -xw-x----- | |
| redirect.php | 2013-11-12 20:52 | 3.77 KB | 76129f60960:kunden | -xw-x----- | |
| release_info.php | 2013-11-12 20:52 | 82 B | 76129f60960:kunden | -xw-x----- | |
| request_port.php | 2013-11-12 20:52 | 5.4 KB | 76129f60960:kunden | -xw-x----- | |
| reviews.php | 2013-11-12 20:52 | 4.25 KB | 76129f60960:kunden | -xw-x----- | |
| robots.txt | 2013-11-12 20:52 | 3.36 KB | 76129f60960:kunden | -xw-x----- | |
| send_order.php | 2013-11-12 20:52 | 9.69 KB | 76129f60960:kunden | -xw-x----- | |
| shop_content.php | 2013-11-12 20:52 | 8.22 KB | 76129f60960:kunden | -xw-x----- | |
| shopping_cart.php | 2013-11-12 20:52 | 2.08 KB | 76129f60960:kunden | -xw-x----- | |
| show_product_thumbs.php | 2013-11-12 20:52 | 2.33 KB | 76129f60960:kunden | -xw-x----- | |
| sitemap1.xml | 2013-11-14 19:16 | 2.04 KB | 76129f60960:kunden | -xw-x----- | |
| specials.php | 2013-11-12 20:52 | 5.02 KB | 76129f60960:kunden | -xw-x----- | |
| ssl_check.php | 2013-11-12 20:52 | 1.9 KB | 76129f60960:kunden | -xw-x----- | |
| stylesheet_new.css | 2013-11-12 20:52 | 26.88 KB | 76129f60960:kunden | -xw-x----- | |
| vrepay_kreditkarte.php | 2013-11-12 20:52 | 26.35 KB | 76129f60960:kunden | -xw-x----- | |
| wish_list.php | 2013-11-12 20:52 | 2.28 KB | 76129f60960:kunden | -xw-x----- | |
| wpcallback.php | 2013-11-12 20:52 | 3.5 KB | 76129f60960:kunden | -xw-x----- | |
| xtbcallback.php | 2013-11-12 20:52 | 12.48 KB | 76129f60960:kunden | -xw-x----- | |
| yatego.php | 2013-11-12 20:52 | 1.36 KB | 76129f60960:kunden | -xw-x----- | |