Phishing anketa - nastavljeno da vraca kodo 404

This commit is contained in:
pero1203 2021-08-03 09:44:25 +02:00
parent 18381b5be4
commit 7f96af1cd2

View File

@ -93,6 +93,13 @@ class InitClass extends Controller
$anketa = (isset($_GET['anketa'])) ? $_GET['anketa'] : ((isset($_POST['anketa'])) ? $_POST['anketa'] : die("Missing anketa id!"));
save('anketa', $anketa);
// Preverimo, ce gre za deaktivirano phishing anketo - vrnemo 404
global $mysql_database_name;
if($mysql_database_name == 'real1kasi' && get('anketa') == '321069'){
http_response_code(404);
die();
}
// Preverimo ce gre za POSEBNO webSM anketo (ki ne shranjuje nicesar - samo direktno preusmeri na ustrezno stran)
if (get('anketa') == get('webSMSurvey') && Common::checkModule('websmsurvey') == '1')
$this->jeWebSMSurvey();