activation form: removes legacy sms check

This commit is contained in:
nikolark committed 2016-08-16 21:24:08 +02:00
1 parent ff2cc4914e
commit 38f7c99aa9
1 file changed
-22
-22
View File
@@ -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;
}