uawdijnntqw1x1x1
IP : 216.73.216.39
Hostname : diefsweb003.fsit.ch
Kernel : Linux diefsweb003.fsit.ch 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
wirbesti
/
lscache
/
..
/
public_html
/
php
/
SubscrData.php
/
/
<?php class SubscrData { private $con; // Database Connection public function __construct(DBConnection $database) { $this->con = $database; return $this->con; } public function insertData($param) { try { $userid = $param['userid']; $date = $param['created']; $campaignname = $param['campaignname']; $anrede = $param['anrede']; $vorname = $param['vorname']; $nachname = $param['nachname']; $email = $param['email']; $adresse = $param['adresse']; $plz = $param['plz']; $stadt = $param['stadt']; $kanton = $param['kanton']; $geburtstag = $param['geburtstag']; $chronoform = $param['chronoform']; $campaignnewsletter = $param['campaignnewsletter']; $newcampaign = $param['newcampaign']; $data = [ 'userid' => $userid, 'created' => $date, 'campaignname' => $campaignname, 'anrede' => $anrede, 'vorname' => $vorname, 'nachname' => $nachname, 'email' => $email, 'adresse' => $adresse, 'plz' => $plz, 'stadt' => $stadt, 'kanton' => $kanton, 'geburtstag' => $geburtstag, 'chronoform' => $chronoform, 'campaignnewsletter' => $campaignnewsletter, 'newcampaign' => $newcampaign ]; $insertSQL = "INSERT INTO `nvbjn_chronoforms_data_subscr-data` (`user_id`, `created`, `camapaingname`, `anrede`, `vorname`, `nachname`, `email`, `adresse`, `plz`, `stadt`, `kanton`, `geburtstag`, `chronoform`, `campaign_newsletter`, `new_campaign`) ". "VALUES (:userid,:created,:campaignname,:anrede,:vorname,:nachname,:email,:adresse,:plz,:stadt,:kanton,:geburtstag,:chronoform,:campaignnewsletter,:newcampaign )"; $insertSubscr = $this->con->dbc->prepare($insertSQL); $result = $insertSubscr->execute($data); $last_id = $this->con->dbc->lastInsertId(); $param['aid'] = $last_id; if ($result==1) { return $last_id; } else { echo "Insert failed try again! Result = ".$result.'<br/>'; } } catch (Exception $ex) { echo $ex->getMessage(); } } } ?>
/home/wirbesti/lscache/../public_html/php/SubscrData.php