From 38f7c99aa90f48ccf1809d4709d108f5270b433b Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Tue, 16 Aug 2016 21:24:08 +0200 Subject: [PATCH] activation form: removes legacy sms check --- snapporder/lib/functions.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/snapporder/lib/functions.php b/snapporder/lib/functions.php index e0d7024..758a78e 100644 --- a/snapporder/lib/functions.php +++ b/snapporder/lib/functions.php @@ -669,21 +669,6 @@ function save_activation_form($data) { return true; } -function get_purchase_date_legacy($phone, $activation_code) { - global $conn; - - $gsm = substr($phone, 3); // strip off country code - - $sql = "SELECT date FROM din_sms_sent WHERE activation_code=".$conn->quoteSmart($activation_code)." AND receiver=".$conn->quoteSmart($gsm); - $res = $conn->getOne($sql); - - if( DB::isError($res) ) { - throw new InsideDatabaseException($res->getMessage().". DEBUG: ".$res->getDebugInfo()); - } - - return $res !== null ? $res : false; -} - function get_purchase_date_card($phone, $activation_code) { global $conn; @@ -744,13 +729,6 @@ function get_purchase_date_and_source($phone, $activation_code) { $source = 'sms'; } - /* Try legacy SMS-table */ - // FIXME: Remove if date later than 2016-02-01 - if ($timestamp === false) { - $timestamp = get_purchase_date_legacy($phone, $activation_code); - $source = 'sms'; - } - if($timestamp === false) { $source = NULL; }