mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added rejection-case for wrong-credentials
This commit is contained in:
@@ -99,7 +99,11 @@ class Clublog_model extends CI_Model
|
||||
} else {
|
||||
$return = "Error " . $response;
|
||||
log_message('error', 'Clublog upload for ' . $station_row->station_callsign . ' failed reason ' . $response);
|
||||
if (substr($response,0,13) == 'Upload denied') { // Deactivate Upload for Station if Clublog rejects it (prevent being blacklisted at Clublog)
|
||||
if (substr($response,0,13) == 'Upload denied') { // Deactivate Upload for Station if Clublog rejects it due to non-configured Call (prevent being blacklisted at Clublog)
|
||||
$sql = 'update station_profile set clublogignore = 1 where station_id = ?';
|
||||
$this->db->query($sql,$station_row->station_id);
|
||||
}
|
||||
if (substr($response,0,14) == 'Login rejected') { // Deactivate Upload for Station if Clublog rejects it due to wrong credentials (prevent being blacklisted at Clublog)
|
||||
$sql = 'update station_profile set clublogignore = 1 where station_id = ?';
|
||||
$this->db->query($sql,$station_row->station_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user