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; }