diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z.evidence.json b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z.evidence.json
new file mode 100644
index 0000000..a21357b
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z.evidence.json
@@ -0,0 +1,15 @@
+{
+ "finding_ref": null,
+ "log_excerpt": "[quarantine] partners.archlinexp.com:application -> reinfection-quarantined (dest=/var/lib/web-hids/quarantine/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z)",
+ "original_sha256": "1a2de948e5625aa769173a9abf248ac81386a9373bcf8825138daf945cd0f24f",
+ "original_stat": {
+ "gid": 30037,
+ "mtime": 1714473082,
+ "size": 4096,
+ "uid": 11669
+ },
+ "rel_path": "application",
+ "result": "reinfection-quarantined",
+ "timestamp": "20260718T160424Z",
+ "vhost": "partners.archlinexp.com"
+}
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/cadline.session b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/cadline.session
new file mode 100644
index 0000000..e69de29
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/cadline.webprj b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/cadline.webprj
new file mode 100644
index 0000000..bd4aca4
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/cadline.webprj
@@ -0,0 +1,12 @@
+
+
Directory access is forbidden.
+
+ Directory access is forbidden.
+
+
parancs: ".$command;
+ $ph = popen($command, "r")
+ or die( "A 'codegen' paranccsal nem veheto fel kapcsolat" );
+ $key = fgets($ph, 1024);
+ // print "
ered: ".$key."
";
+ pclose($ph);
+ $xp2013 = true;
+ }
+
+ // E-Mail küldés
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+
+ $this->email->from('info@cadline.hu', 'CadLine');
+
+ $tomb['key']=$key;
+ $tomb['ser']=$ser;
+ $tomb['pwd']=$pwd;
+ $tomb['email']=$email;
+ $tomb['xp2013']=$xp2013;
+ $tomb['version']='trial';
+
+ if($this->muser->user['lang']=='hun')
+ {
+ $tomb['mailcontent'] = 'business/mail_activate_trial_hun';
+ $this->email->subject('ARCHlineXP.com aktiválasi kod keres');
+ $this->email->message($this->load->view('mail',$tomb,true));
+ }
+ else
+ {
+ $tomb['mailcontent'] = 'business/mail_activate_trial_eng';
+ $this->email->subject('ARCHlineXP.com Activation Code Request');
+ $this->email->message($this->load->view('mail',$tomb,true));
+ }
+
+ $this->email->send($email,'smtp');
+ // $this->email->send('info@cadline.hu','smtp');
+
+
+
+ //// email nekünk is
+//
+// $this->email->clear();
+//
+// $this->email->from('info@cadline.hu', 'CadLine');
+// $this->email->to('info@cadline.hu');
+//
+// $this->email->subject('30 Napos aktiválás történt');
+// $this->email->message($this->load->view('business/report_act_30',$tomb,true));
+//
+// $this->email->send();
+
+
+ //adatbázis
+
+ $record['act_ser']=$ser;
+ $record['act_pwd']=$pwd;
+ $record['act_name']=$nev;
+ $record['act_email']=$email;
+ $record['act_userlang']=$this->muser->user['lang'];
+ $record['act_version']='trial';
+ $record['act_date']=time();
+
+ $this->db->insert('activations',$record);
+
+
+ $verzio = (int)substr($ser,7,2);
+ $tipus = (int)substr($ser,6,1);
+ $kulcs = (int)substr($ser,0,6);
+ $ctr = (int)substr($ser,0,2);
+ $verziotomb = array(
+ 30 => "2013",
+ 29 => "2013 Béta",
+ 28 => "2012",
+ 27 => "2011",
+ 26 => "2010"
+ );
+ $tipustomb = array(
+ 8 => "interior",
+ 9 => "építészet"
+ );
+
+ // felhasznaloi adatbazis
+ $this->load->model('mclusers');
+ if($ctr == "36"){
+ $nUserID = $this->mclusers->get_nUserIDByEmail($email,'hun');
+
+ if(!$nUserID){
+ $tomb3['strName'] = $nev;
+ $nUserID = $this->mclusers->addUserHun($tomb3);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $email;
+ $this->mclusers->addUserEmailHun($tomb2);
+ }
+ $info = "30 napos aktivalas, verzió: ".$verziotomb[$verzio];
+ $this->mclusers->addEvent($nUserID, 165, $info);
+ }elseif($ctr == "44"){
+ $nUserID = $this->mclusers->get_nUserIDByEmail($email,'eng');
+
+ if(!$nUserID){
+ $tomb3['strName'] = $nev;
+ $nUserID = $this->mclusers->addUserEng($tomb3);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $email;
+ $this->mclusers->addUserEmailEng($tomb2);
+ }
+ $info = "30 napos aktivalas, verzió: ".$verziotomb[$verzio];
+ $this->mclusers->addEvent($nUserID, 197, $info, "eng");
+ }
+
+ // redirect
+
+ redirect('business/activate_ok');
+
+ }
+
+ }
+ else
+ {
+ $this->load->model('mctr');
+ hun() ? $data['ctr']=$this->mctr->get_all_ctr('ctrNameHun') : $data['ctr']=$this->mctr->get_all_ctr();
+ if(hun())
+ $data['page'] = $this->mpages->get_row(778);
+ else
+ $data['page'] = $this->mpages->get_row(779);
+
+ $data['csik'] = array('home','Activation');
+ $data['javascript'] = array('regformcheck');
+ $data['tartalom'] = 'business/act30';
+
+ $data['pwd'] = $pwd;
+ $data['ser'] = $ser;
+
+ $this->load->view('site',$data);
+
+ }
+ }
+
+
+ function activate_30_99(){
+ $this->load->helper('email');
+ $this->load->helper('serial');
+
+ $ser = $this->input->post('ser');
+ $pwd = $this->input->post('pwd');
+ $email = $this->input->post('strEMail');
+ $nev = $this->input->post('strName1').' '.$this->input->post('strName2');
+ $country = $this->input->post('ctrName');
+ $tel = $this->input->post('strTel');
+ $tema = $this->input->post('tema');
+ $uzenet = $this->input->post('uzenet');
+
+ $strCompany= $this->input->post('strCompany');
+ $strCity = $this->input->post('strCity');
+ $strStreet = $this->input->post('strStreet');
+ $strZip = $this->input->post('strZip');
+ $nUserProf = $this->input->post('nUserProf');
+
+
+ if(!$ser || !$pwd || !valid_email($email)){
+ show_error('Missing or invalid dates');
+ return;
+ }
+
+ $ell1 = issoftwarekey($ser);
+ if($ell1!==true){
+ show_error('Error key');
+ return;
+ }
+
+
+ $elteltnapok = idokod($pwd);
+ $isid = substr($pwd,5,4);
+ $xp2013 = true;
+
+ // ha van az adatbázisban kódja (és az legalább 60 napos) akkor azt, egyébként 60 napos kódot
+ $programab = $this->db->query("SELECT prActCode FROM ".CRMADATBAZIS.".h_programs WHERE prPass='{$ser}'")->row();
+
+
+ // Mindeképp generáljon egy 60 napos kódot - 2014. 03. 11.
+ /*if( $programab->prActCode && idokod($programab->prActCode)>60 ){
+ $key = $programab->prActCode;
+ }
+ else{*/
+ $command = PATH_CODEGEN." -GenerateTimeCode ".$ser." ".$isid." 60";
+ $ph = popen($command, "r")
+ or die( "A 'codegen' paranccsal nem veheto fel kapcsolat" );
+ $key = fgets($ph, 1024);
+ pclose($ph);
+ //}
+
+
+ //adatbázis
+ $record['act_ser']=$ser;
+ $record['act_pwd']=$pwd;
+ $record['act_name']=$nev;
+ $record['act_email']=$email;
+ $record['act_userlang']=$this->muser->user['lang'];
+ $record['act_version']='trial';
+ $record['act_date']=time();
+
+ $this->db->insert('activations',$record);
+
+
+ // felhasznaloi adatbazis
+ $this->load->model('mclusers');
+
+ if($kulcsctr=="36"){
+ $nUserID = $this->mclusers->get_nUserIDByEmail($email,'hun');
+
+ if(!$nUserID){
+ $countries = array();
+
+ $orszagok = $this->db->query('SELECT * FROM `'.CRMADATBAZIS.'`.`countries`')->result_array();
+ foreach( $orszagok as $orszag )
+ $countries[$orszag['ctrID']] = hun() ? strtolower($orszag['ctrName']) : strtolower($orszag['ctrNameEng']);
+
+
+ $tomb3['strName'] = $nev;
+ $tomb3['strCompany'] = $strCompany;
+ $tomb3['strTel'] = $tel;
+ $tomb3['strCity'] = $strCity;
+ $tomb3['strStreet'] = $strStreet;
+ $tomb3['strZip'] = $strZip;
+ $tomb3['nUserProf'] = $nUserProf;
+ $tomb3['nCtrID'] = array_search(strtolower($country), $countries);
+ $nUserID = $this->mclusers->addUserHun($tomb3);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $email;
+ $this->mclusers->addUserEmailHun($tomb2);
+ }
+ $info = "aktivalasi kérelem, sorozatszám: ".$ser;
+ $this->mclusers->addEvent($nUserID, 115, $info);
+
+ // 60 napos kódot beírni, ha üres az aktiváló kód mező
+ $datum = date("Y-m-d");
+ /*if(UJUGYFELKEZELO===true)
+ $this->db->update(CRMADATBAZIS.'.h_programs',array('prActCode'=>$key,'prActDate'=>$datum),"prPass='{$ser}' AND (prActCode IS NULL OR prActCode='')");
+ else
+ $this->db->update('clusers.cl_fo_programs',array('prActCode'=>$key,'prActDate'=>$datum),"prPass='{$ser}' AND (prActCode IS NULL OR prActCode='')");*/
+ $this->db->limit(1);
+ $this->db->where('prPass',$ser);
+ $this->db->where('SUBSTRING(prActCode,6,4)',$isid);
+
+ $this->db->update(CRMADATBAZIS.'.h_programs',array('prActCode'=>$key,'prActDate'=>$datum));
+
+ if(!$this->db->affected_rows()){
+ $this->db->limit(1);
+ $this->db->where('prPass',$ser);
+ $this->db->where(' (prActCode IS NULL OR prActCode="" )');
+ $this->db->update(CRMADATBAZIS.'.h_programs',array('prActCode'=>$key,'prActDate'=>$datum));
+
+ if(!$this->db->affected_rows())
+ redirect('business/activate_error');
+ }
+
+ // kulcs esemény
+ $kulcshistory['hiHlNum'] = substr($ser,0,6);
+ $kulcshistory['hiTypeID'] = 16;
+ $kulcshistory['hiDate'] = $datum;
+ $kulcshistory['hiTime'] = date("Y-m-d H:i:s");
+ // $kulcshistory['hiCtrID'] = $kulcsctr;
+ if(UJUGYFELKEZELO===true)
+ $this->db->insert(CRMADATBAZIS.'.h_history',$kulcshistory);
+ else
+ $this->db->insert('clusers.cl_fo_history',$kulcshistory);
+
+ }
+ elseif($kulcsctr!="44"){
+ // 60 napos kódot beírni, ha üres az aktiváló kód mező
+ $datum = date("Y-m-d");
+ $this->db->limit(1);
+ $this->db->where('prPass',$ser);
+ $this->db->where('SUBSTRING(prActCode,6,4)',$isid);
+
+ $this->db->update(CRMADATBAZIS.'.h_programs',array('prActCode'=>$key,'prActDate'=>$datum));
+
+ if(!$this->db->affected_rows()){
+ $this->db->limit(1);
+ $this->db->where('prPass',$ser);
+ $this->db->where(' (prActCode IS NULL OR prActCode="" )');
+ $this->db->update(CRMADATBAZIS.'.h_programs',array('prActCode'=>$key,'prActDate'=>$datum));
+
+ if(!$this->db->affected_rows())
+ redirect('business/activate_error');
+ }
+
+ // kulcs esemény
+ $kulcshistory['hiHlNum'] = substr($ser,0,6);
+ $kulcshistory['hiTypeID'] = 20;
+ $kulcshistory['hiDate'] = $datum;
+ $kulcshistory['hiTime'] = date("Y-m-d H:i:s");
+ // $kulcshistory['hiCtrID'] = $kulcsctr;
+ if(UJUGYFELKEZELO===true){
+ $kulcshistory['hiTypeID'] = 16;
+ $this->db->insert(CRMADATBAZIS.'.h_history',$kulcshistory);
+ }else
+ $this->db->insert('clusers.cl_fo_history',$kulcshistory);
+
+ }
+ elseif($kulcsctr=="44"){
+ $nUserID = $this->mclusers->get_nUserIDByEmail($email,'eng');
+
+ if(!$nUserID){
+ $countries = array();
+
+ $orszagok = $this->db->query('SELECT * FROM `'.CRMADATBAZIS.'`.`countries`')->result_array();
+ foreach( $orszagok as $orszag )
+ $countries[$orszag['ctrID']] = hun() ? strtolower($orszag['ctrName']) : strtolower($orszag['ctrNameEng']);
+
+ $tomb3['strName'] = $nev;
+ $tomb3['strCompany'] = $strCompany;
+ $tomb3['strTel'] = $tel;
+ $tomb3['strCity'] = $strCity;
+ $tomb3['strStreet'] = $strStreet;
+ $tomb3['strZip'] = $strZip;
+ $tomb3['nUserProf'] = $nUserProf;
+ $tomb3['nCtrID'] = array_search(strtolower($country), $countries);
+ $nUserID = $this->mclusers->addUserEng($tomb3);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $email;
+ $this->mclusers->addUserEmailEng($tomb2);
+ }
+ $info = "aktivalasi kérelem, sorozatszám: ".$ser;
+ $this->mclusers->addEvent($nUserID, 197, $info);
+
+ // 60 napos kódot beírni, ha üres az aktiváló kód mező
+ $datum = date("Y-m-d");
+ $this->db->limit(1);
+ $this->db->where('prPass',$ser);
+ $this->db->where('SUBSTRING(prActCode,6,4)',$isid);
+
+ $this->db->update(CRMADATBAZIS.'.h_programs',array('prActCode'=>$key,'prActDate'=>$datum));
+
+ if(!$this->db->affected_rows()){
+ $this->db->limit(1);
+ $this->db->where('prPass',$ser);
+ $this->db->where(' (prActCode IS NULL OR prActCode="" )');
+ $this->db->update(CRMADATBAZIS.'.h_programs',array('prActCode'=>$key,'prActDate'=>$datum));
+
+ if(!$this->db->affected_rows())
+ redirect('business/activate_error');
+ }
+
+ // kulcs esemény
+ $kulcshistory['hiHlNum'] = substr($ser,0,6);
+ $kulcshistory['hiTypeID'] = 20;
+ $kulcshistory['hiDate'] = $datum;
+ $kulcshistory['hiTime'] = date("Y-m-d H:i:s");
+ // $kulcshistory['hiCtrID'] = $kulcsctr;
+ if(UJUGYFELKEZELO===true){
+ $kulcshistory['hiTypeID'] = 16;
+ $this->db->insert(CRMADATBAZIS.'.h_history',$kulcshistory);
+ }else
+ $this->db->insert('clusers_eng.cl_fo_history',$kulcshistory);
+ }
+
+
+
+
+
+
+ // E-Mail küldés
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+
+ $this->email->from('info@cadline.hu', 'CadLine');
+
+ $tomb['key']=$key;
+ $tomb['ser']=$ser;
+ $tomb['pwd']=$pwd;
+ $tomb['email']=$email;
+ $tomb['nev']=$nev;
+ $tomb['tel']=$tel;
+ $tomb['orszag']=$country;
+ $tomb['xp2013']=$xp2013;
+ $tomb['version']='trial';
+ $tomb['notitleimg']=true;
+ $tomb['tema']=$tema;
+ $tomb['uzenet']=$uzenet;
+
+ $ttemp = $this->_akt99email($ser);
+ $archlineemail = $ttemp[0];
+ $kulcsctr = $ttemp[1];
+
+ if($kulcsctr=="36")
+ $tomb['nyelv'] = "hun";
+ else
+ $tomb['nyelv'] = "eng";
+
+ $tomb['mailcontent'] = 'business/mail_activate_trial_cadline';
+ $this->email->subject('ARCHlineXP.com Activation Code Request');
+ $this->email->message($this->load->view('mail',$tomb,true));
+
+
+ if($archlineemail){
+ $this->email->send($archlineemail,'smtp');
+ }
+
+
+ //// email neki
+ $this->email->clear();
+
+ if($kulcsctr=="36")
+ $this->email->from('info@cadline.hu', 'CadLine');
+ else
+ $this->email->from('info@archlinexp.com', 'CadLine');
+
+ $this->email->subject('ARCHLineXP Activate');
+ if($elteltnapok<=30){
+ if($kulcsctr=="36")
+ $emailpage = $this->mpages->get_row(776);
+ else
+ $emailpage = $this->mpages->get_row(777);
+ $emailtext = str_ireplace('#serial#', $ser, $emailpage->page_body);
+ $emailtext = str_ireplace('#aktkod#', $key, $emailtext);
+ $this->email->message($emailtext);
+ }
+ else{
+ if($kulcsctr=="36")
+ $emailpage = $this->mpages->get_row(774);
+ else
+ $emailpage = $this->mpages->get_row(775);
+ $emailtext = str_ireplace('#nev#', $nev, $emailpage->page_body);
+ $this->email->message($emailtext);
+ }
+
+ $this->email->send($email,'smtp');
+
+
+
+
+ // redirect
+
+ redirect('business/activate_ok');
+ }
+
+ function activate_std()
+ {
+ $this->load->helper('serial');
+
+ $ser = $this->uri->segment(3);
+ $pwd = $this->uri->segment(4);
+
+ $do = $this->input->post('do');
+
+
+ if($do)
+ {
+ $this->load->helper('email');
+
+ $ser = $this->input->post('ser');
+ $pwd = $this->input->post('pwd');
+ $email = $this->input->post('email');
+ $name = $this->input->post('name');
+ $birth = $this->input->post('birth');
+
+
+ if(!$ser || !$pwd || !valid_email($email) || !$name || !$birth)
+ {
+ show_error('Hibás/Hiányos adatok');
+ }
+ else
+ {
+ $this->load->helper('serial');
+
+ if(substr($ser,0,2)!=96 && substr($ser,0,2)!=97)
+ {
+ show_error('Invalid Serial NO.');
+ }
+
+ $key = serial($ser,$pwd);
+ if(!$key)
+ {
+ show_error('Hibás kulcs');
+ }
+ else
+ {
+ // E-Mail küldés
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+ /*
+ $this->email->from('info@cadline.hu', 'CadLine');
+ */
+ $tomb['ser']=$ser;
+ $tomb['pwd']=$pwd;
+ $tomb['email']=$email;
+ $tomb['version']='trial';
+ $tomb['name']=$name;
+ $tomb['birth']=$birth;
+
+ if($this->muser->user['lang']=='hun')
+ {
+ $tomb['mailcontent'] = 'business/mail_activate_student_hun';
+ $this->email->subject('ARCHlineXP.com aktiválasi kod keres');
+ $this->email->message($this->load->view('mail',$tomb,true));
+ }
+ else
+ {
+ $tomb['mailcontent'] = 'business/mail_activate_student_eng';
+ $this->email->subject('ARCHlineXP.com Activation Code Request');
+ $this->email->message($this->load->view('mail',$tomb,true));
+ }
+
+ $this->email->send($email,'smtp');
+
+
+ //email nekünk is
+
+ $this->email->clear();
+
+ $this->email->from('info@cadline.hu', 'CadLine');
+ $to = 'info@cadline.hu';
+
+ $this->email->subject('Student aktivalasi kerelem');
+ $this->email->message($this->load->view('business/report_act_student',$tomb,true));
+
+ $this->email->send($to,'smtp');
+
+
+ //adatbázis
+
+ $record['act_ser']=$ser;
+ $record['act_pwd']=$pwd;
+ $record['act_name']=$name;
+ $record['act_email']=$email;
+ $record['act_userlang']=$this->muser->user['lang'];
+ $record['act_version']='student';
+ $record['act_date']=time();
+
+ $this->db->insert('activations',$record);
+
+ $this->phpsession->flashsave('email',$email);
+
+ // redirect
+
+ redirect('business/activate_ok_std');
+
+ }
+ }
+ }
+ else
+ {
+ $data['csik']=array('home','Activation');
+ $data['tartalom']='business/actstd';
+
+ $data['pwd'] = $pwd;
+ $data['ser'] = $ser;
+
+ $this->load->view('site',$data);
+
+ }
+ }
+
+ function activate_ok_full()
+ {
+ $data['tartalom']='business/activate_ok_full';
+ $data['csik']=array('home','Aktiválás');
+ $data['lang']=$this->muser->user['lang'];
+ $data['email']=$this->phpsession->flashget('email');
+
+ $this->load->view('site',$data);
+ }
+
+ function activate_ok_int()
+ {
+ $data['tartalom']='business/activate_ok_int_web';
+ if($this->uri->segment(3)=='hun')
+ $data['csik']=array('home','Aktiválás');
+ else
+ $data['csik']=array('home','Activate');
+ $data['lang']='eng';
+ $data['ser'] = $this->uri->segment(3);
+ $data['key'] = $this->uri->segment(4);
+ $data['email']=$this->phpsession->flashget('email');
+
+ $this->load->view('site',$data);
+ }
+
+ function activate_ok()
+ {
+ $data['tartalom']='business/activate_ok';
+ $data['csik']=array('home','Aktiválás');
+ $data['lang']=$this->muser->user['lang'];
+ $data['email']=$this->phpsession->flashget('email');
+
+ $this->load->view('site',$data);
+ }
+
+ function activate_ok_std()
+ {
+ $data['tartalom']='business/activate_ok_std';
+ $data['csik']=array('home','Aktiválás');
+ $data['lang']=$this->muser->user['lang'];
+ $data['email']=$this->phpsession->flashget('email');
+
+ $this->load->view('site',$data);
+ }
+
+ function activate_error()
+ {
+ $data['tartalom']='business/activate_error';
+ $data['csik']=array('home','Aktiválás');
+ $data['lang']=$this->muser->user['lang'];
+ $data['email']=$this->phpsession->flashget('email');
+
+ $this->load->view('site',$data);
+ }
+
+ function _akt99email($ser){
+ $kulcssz = substr($ser,0,6);
+
+ /*$kulcs = $this->db->query("SELECT hlCtrID FROM clusers.cl_fo_hardlock WHERE hlNum='{$kulcssz}'")->row();
+ if(!$kulcs)
+ $kulcs = $this->db->query("SELECT hlCtrID FROM clusers_eng.cl_fo_hardlock WHERE hlNum='{$kulcssz}'")->row();
+ if(!$kulcs)
+ $kulcs = $this->db->query("SELECT hlCtrID FROM clusers_spa.cl_fo_hardlock WHERE hlNum='{$kulcssz}'")->row();*/
+ $kulcs = $this->db->query("SELECT hlCtrID FROM ".CRMADATBAZIS.".hardlock WHERE hlNum='{$kulcssz}'")->row();
+
+ if(!$kulcs->hlCtrID)
+ return false;
+
+ switch($kulcs->hlCtrID){
+ case '88':
+ $ertesitoemail = "Khong@kdmac.com.my";
+ break;
+ case '82':
+ $ertesitoemail = "carpenter@cadalog.co.kr";
+ break;
+ case '48':
+ $ertesitoemail = "archlinexp@archlinexp.pl";
+ break;
+ case '41':
+ case '43':
+ case '30':
+ $ertesitoemail = "office@it-concept.at";
+ break;
+ case '42':
+ $ertesitoemail = "info@archline.cz";
+ break;
+ case '39':
+ $ertesitoemail = "info@cadlinesw.com";
+ break;
+ case '38':
+ $ertesitoemail = "info@digitalmedia.hr";
+ break;
+ case '36':
+ $ertesitoemail = "edit@cadline.hu";
+ break;
+ // 44, 34, egyéb
+ case '34':
+ case '44':
+ default:
+ $ertesitoemail = "info@archlinexp.com";
+ break;
+
+ }
+
+ //return array($ertesitoemail,$kulcs->hlCtrID);
+ return array("edit@cadline.hu",$kulcs->hlCtrID);
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/buy.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/buy.php
new file mode 100644
index 0000000..2ff3ab1
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/buy.php
@@ -0,0 +1,250 @@
+muser->user['lang'];
+
+ $data['title'] = hun() ? 'ARCHLine.XP CAD Software - Vásárlás' : 'ARCHLine.XP CAD Software - Purchase';
+ $data['tartalom']='buy/index';
+ $data['csik']=array('home','buy');
+ if(hun())
+ {
+ $this->buyegyben2013();
+ return;
+ //$data['cimlap']=$this->mpages->get_row(110); 2011-es
+ $data['cimlap']=$this->mpages->get_row(648);
+ }
+ elseif(eng())
+ {
+ $data['cimlap']=$this->mpages->get_row(111);
+ }
+ elseif(be())
+ {
+ $data['cimlap']=$this->mpages->get_row(343);
+ }
+ elseif(cr())
+ {
+ $data['cimlap']=$this->mpages->get_row(251);
+ }
+ elseif(gr())
+ {
+ $data['cimlap']=$this->mpages->get_row(206);
+ }
+ elseif(jap())
+ {
+ $data['cimlap']=$this->mpages->get_row(150);
+ }
+
+ $this->load->view('site',$data);
+ }
+
+ function check()
+ {
+ $temp="";
+ if($this->input->post('pr25') && is_numeric($this->input->post('pr25')))
+ {
+ if($this->input->post('currency25')=='eur')
+ $temp.='&PRODUCT[300357096]='.$this->input->post('pr25');
+ elseif($this->input->post('currency25')=='gbp')
+ $temp.='&PRODUCT[300300561]='.$this->input->post('pr25');
+ }
+
+ if($this->input->post('pr30') && is_numeric($this->input->post('pr30')))
+ {
+ if($this->input->post('currency30')=='eur')
+ $temp.='&PRODUCT[300300560]='.$this->input->post('pr30');
+ elseif($this->input->post('currency30')=='gbp')
+ $temp.='&PRODUCT[300300560]='.$this->input->post('pr30');
+ }
+
+ if($this->input->post('pr35') && is_numeric($this->input->post('pr35')))
+ {
+ if($this->input->post('currency35')=='eur')
+ $temp.='&PRODUCT[300357097]='.$this->input->post('pr35');
+ elseif($this->input->post('currency35')=='gbp')
+ $temp.='&PRODUCT[300357090]='.$this->input->post('pr35');
+ }
+
+ // interior
+ if( is_numeric($this->input->post('dbint')) && $this->input->post('dbint') > 0 )
+ {
+ if($this->input->post('valuta')=='eur'){
+ //$temp.='&PRODUCT[300357097]='.$this->input->post('dbint');
+ $temp.='&PRODUCT[300357096]='.$this->input->post('dbint');
+ }elseif($this->input->post('valuta')=='gbp'){
+ //$temp.='&PRODUCT[300357096]='.$this->input->post('dbint');
+ $temp.='&PRODUCT[300300561]='.$this->input->post('dbint');
+ }elseif($this->input->post('valuta')=='usd'){
+ $temp.='&PRODUCT[300500917]='.$this->input->post('dbint');
+ }
+ }
+
+ // render
+ if( is_numeric($this->input->post('dbren')) && $this->input->post('dbren') > 0 )
+ {
+ if($this->input->post('valutarender')=='eur')
+ $temp.='&PRODUCT[300505884]='.$this->input->post('dbren');
+ elseif($this->input->post('valutarender')=='gbp')
+ $temp.='&PRODUCT[300162430]='.$this->input->post('dbren');
+ }
+
+ // animáció
+ if( is_numeric($this->input->post('dbani')) && $this->input->post('dbani') > 0 )
+ {
+ if($this->input->post('valutaanimacio')=='eur')
+ $temp.='&PRODUCT[300505886]='.$this->input->post('dbani');
+ elseif($this->input->post('valutaanimacio')=='gbp')
+ $temp.='&PRODUCT[300505876]='.$this->input->post('dbani');
+ }
+
+ // 3DTV
+ if( is_numeric($this->input->post('db3d')) && $this->input->post('db3d') > 0 )
+ {
+ if($this->input->post('valuta3dtv')=='eur')
+ $temp.='&PRODUCT[300496927]='.$this->input->post('db3d');
+ elseif($this->input->post('valuta3dtv')=='gbp')
+ $temp.='&PRODUCT[300496926]='.$this->input->post('db3d');
+ }
+
+ // virtual staging
+ if( is_numeric($this->input->post('dbvt')) && $this->input->post('dbvt') > 0 )
+ {
+ if($this->input->post('valutavs')=='eur')
+ $temp.='&PRODUCT[300505888]='.$this->input->post('dbvt');
+ elseif($this->input->post('valutavs')=='gbp')
+ $temp.='&PRODUCT[300505880]='.$this->input->post('dbvt');
+ }
+
+ if($this->input->post('pr23')) $temp.='&PRODUCT[300161018]='.$this->input->post('pr23');
+ if($this->input->post('pr24')) $temp.='&PRODUCT[300300560]='.$this->input->post('pr24');
+ if($this->input->post('pr26')) $temp.='&PRODUCT[300308301]='.$this->input->post('pr26');
+ if($this->input->post('pr29')) $temp.='&PRODUCT[300161029]='.$this->input->post('pr29');
+ //if($this->input->post('pr30')) $temp.='&PRODUCT[300300560]='.$this->input->post('pr30');
+
+
+ if($temp=="")
+ {
+ header("Location: ".$_SERVER['HTTP_REFERER']);
+ exit;
+ }
+ elseif($temp!="")
+ {
+ eng() ? $temp .= '&language=English' : '' ;
+ $head = "https://secure.shareit.com/shareit/cart.html?DELIVERY[300158265]=EML".$temp;
+ header("Location: ".$head);
+ exit;
+ }
+ }
+
+ function check_old()
+ {
+ if($this->input->post('serial'))
+ {
+ if(strlen($this->input->post('serial'))!=16)
+ {
+ $_SESSION['serial_error'] = "Bad Serial Number";
+ $link = "/buy/shareit_old";
+ header("Location: ".$link);
+ exit;
+ }
+ }
+
+ $temp="";
+ $temp2="";
+ if ($this->input->post('pr21')) $temp.='&PRODUCT[300161033]='.$this->input->post('pr21');
+ if ($this->input->post('pr22')) $temp.='&PRODUCT[300161029]='.$this->input->post('pr22');
+ if ($this->input->post('pr23')) $temp.='&PRODUCT[300161018]='.$this->input->post('pr23');
+ if ($this->input->post('pr24')) $temp.='&PRODUCT[300160770]='.$this->input->post('pr24');
+ if ($this->input->post('pr25')) $temp.='&PRODUCT[300160765]='.$this->input->post('pr25');
+ if ($this->input->post('pr71')) $temp.='&PRODUCT[300162430]='.$this->input->post('pr71');
+ if ($temp=="")
+ {
+ if ($this->input->post('pr31')) $temp2.='&PRODUCT[300161162]=1';
+ if ($this->input->post('pr32')) $temp2.='&PRODUCT[300161334]=1';
+ if ($this->input->post('pr33')) $temp2.='&PRODUCT[300161090]=1';
+ if ($this->input->post('pr34')) $temp2.='&PRODUCT[300161332]=1';
+ if ($this->input->post('pr35')) $temp2.='&PRODUCT[300161437]=1';
+ if ($this->input->post('pr36')) $temp2.='&PRODUCT[300161531]=1';
+ if ($this->input->post('pr37')) $temp2.='&PRODUCT[300161339]=1';
+ if ($this->input->post('pr38')) $temp2.='&PRODUCT[300161439]=1';
+ if ($this->input->post('pr39')) $temp2.='&PRODUCT[300161430]=1';
+ }
+
+ if($temp=="" && $temp2=="")
+ {
+ $link = "/buy/shareit_old";
+ header("Location: ".$link);
+ exit;
+ }
+ elseif($temp2!="" && $this->input->post('serial')=="")
+ {
+ $link = "/buy/shareit_old";
+ header("Location: ".$link);
+ exit;
+ }
+ elseif($temp2=="" && $this->input->post('serial')!="")
+ {
+ $link = "/buy/shareit_old";
+ header("Location: ".$link);
+ exit;
+ }
+ elseif($temp!="")
+ {
+ $head = "https://secure.shareit.com/shareit/cart.html?DELIVERY[300158265]=EML".$temp;
+ header("Location: ".$head);
+ exit;
+ }
+ elseif($temp2!="" && $this->input->post('serial')!="")
+ {
+ $head = "https://secure.shareit.com/shareit/cart.html?DELIVERY[300158265]=EML".$temp2;
+ header("Location: ".$head);
+ exit;
+ }
+ }
+
+ function shareit()
+ {
+ $data['lang']=$this->muser->user['lang'];
+ $data['tartalom']='buy/shareit';
+ $data['csik']=array('home','buy');
+ $this->load->view('site',$data);
+
+ }
+
+ function shareit_old()
+ {
+ $data['lang']=$this->muser->user['lang'];
+ $data['tartalom']='buy/shareit_old';
+ $data['csik']=array('home','buy');
+ $this->load->view('site',$data);
+
+ }
+
+ function buyegyben2013(){
+ $data['cimlap'] = $this->mpages->get_row(761);
+ $data['title'] = 'ARCHLine.XP építészeti és belsőépítészi tervezőprogram - Vásárlás';
+ $data['tartalom'] = 'interior/buy2';
+ $data['javascript'] = array('jquery.corner');
+ $data['csik']=array('home','buy');
+
+ $this->load->view('site',$data);
+ }
+
+ function temp(){
+ $data['cimlap'] = $this->mpages->get_row(761);
+ $data['title'] = 'ARCHLine.XP építészeti és belsőépítészi tervezőprogram - Vásárlás';
+ $data['tartalom'] = 'interior/buy2';
+ $data['javascript'] = array('jquery.corner');
+ $data['csik']=array('home','buy');
+
+ $this->load->view('site',$data);
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/collection2.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/collection2.php
new file mode 100644
index 0000000..c8fb07c
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/collection2.php
@@ -0,0 +1,937 @@
+array('style_new','showroomweb_min'),'tartalom'=>'site');
+
+ function Collection2()
+ {
+ parent::Controller();
+ $this->load->model('mcollection2');
+
+ if($this->uri->segment(1)!="collection2")
+ setcookie("sr_prversion","2020",time()+10000,"/");
+ }
+
+ function index($param1=""){
+ $data['gyartok'] = $this->mcollection2->get_gyartok();
+
+ $data['tartalom']='collection2/index';
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem - ' : 'ARCHLine.XP Showroom - ';
+ $data['title'] .= lang('collec_brands');
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+
+ if($this->uri->segment(1)=="collection2"){
+ if( is_numeric($this->uri->segment(4))){
+ $prverzio = 2012;
+ switch($this->uri->segment(4)){
+ case "29" :
+ case "30" : $prverzio = 2013; break;
+ case "31" : $prverzio = 2014; break;
+ case "32" : $prverzio = 2015; break;
+ case "33" : $prverzio = 2016; break;
+ }
+ setcookie("sr_prversion",$prverzio,time()+10000,"/");
+ }elseif( isset($_COOKIE['sr_prversion']) && !$this->uri->segment(4) ){
+
+ }else{
+ setcookie("sr_prversion","2012",time()+10000,"/");
+ }
+
+ // ez nem szükséges ..
+ $data['javascript'] = array("collection");
+ }else{
+ setcookie("sr_prversion","2020",time()+10000,"/");
+ }
+
+ if($this->uri->segment(3)!="" && in_array($this->uri->segment(3),$this->collectionlangs) ){
+ $latogato = $this->phpsession->get('user');
+ $latogato['lang'] = $this->uri->segment(3);
+ $this->phpsession->save('user',$latogato);
+ if($this->muser->user['lang']!=$this->uri->segment(3)){
+ redirect($this->uri->segment(1)."/".$this->uri->segment(2)."/".$this->uri->segment(3)."/".$this->uri->segment(4));
+ }
+ }
+
+ if($this->uri->segment(1)=="collection2"){
+ //redirect($this->uri->segment(1)."/types/".$this->uri->segment(2)."/".$this->uri->segment(3)."/".$this->uri->segment(4));
+ redirect($this->uri->segment(1)."/types");
+ }
+
+
+
+
+ $showroomstat = $this->cache->get('showroom-stat');
+ if( !$showroomstat ){
+ $showroomstat = $this->mcollection2->get_all_showdown();
+ $this->cache->write($showroomstat, 'showroom-stat', 3600); // óránként frissül majd
+ }
+
+ $data['stat'] = $showroomstat;
+ $data['mobilink'] = "/mobile/shbrands";
+
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+ function brandgroup($param1=""){
+
+ if( !$this->uri->segment(3) ){
+ $this->index();
+ return;
+ }
+
+ $brandgroup = $this->db->query("SELECT * FROM coll2_mangrp WHERE azon='{$this->uri->segment(3)}'")->row();
+
+ if( !$brandgroup->group_id ){
+ $this->index();
+ return;
+ }
+ $data['gyartok'] = $this->mcollection2->get_gyartokcsop($brandgroup->group_id);
+
+ $data['tartalom']='collection2/index';
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem - ' : 'ARCHLine.XP Showroom - ';
+ $data['title'] .= $brandgroup->nev;
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+ $showroomstat = $this->cache->get('showroom-stat-'.$brandgroup->azon);
+ if( !$showroomstat ){
+ $showroomstat = $this->mcollection2->get_group_showdown($brandgroup->group_id);
+ $this->cache->write($showroomstat, 'showroom-stat-'.$brandgroup->azon, 3600); // óránként frissül majd
+ }
+
+ $data['stat'] = $showroomstat;
+
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+ function manufacturer($param1=""){
+
+ if( !$this->uri->segment(3) ){
+ $this->index();
+ return;
+ }
+
+ $dir = $this->uri->segment(3);
+ $gyarto = $this->mcollection2->get_manBydir($dir);
+
+ if(!$gyarto){
+ header("HTTP/1.1 404 Not Found");
+ //show_404('Hibas marka: '.$dir);
+ }
+
+ $kategoriak = $this->mcollection2->get_kategoriak($dir);
+
+ $data['kategoriak'] = $kategoriak;
+ $data['gyarto'] = $gyarto;
+ $data['gyartok'] = $this->mcollection2->get_gyartok();
+
+
+ $kategorianevek = "";
+ $i=0;
+
+ foreach($kategoriak as $kat){
+ if($i==6)
+ break;
+ hun() ? $kategorianevek .= $kat->nev_hun.", " : $kategorianevek .= $kat->nev_eng.", ";
+ $i++;
+ }
+
+ if(hun()){
+ $data['meta']['desc'] = 'ARCHLine.XP Bemutatóterem - '.$gyarto->name.' kategóriák: '.substr($kategorianevek,0,-2);
+ }else{
+ $data['meta']['desc'] = 'ARCHLine.XP Showroom - categories of '.$gyarto->name.': '.substr($kategorianevek,0,-2);
+ }
+
+
+ $data['mobilink'] = "/mobile/shcategories/".$dir;
+ $data['tartalom'] ='collection2/manufacturer';
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem' : 'ARCHLine.XP Showroom';
+ $data['title'] .= " - " . $gyarto->name;
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+ function category($param1=""){
+ if( !$this->uri->segment(3) || !is_numeric($this->uri->segment(3)) ){
+ redirect($this->uri->segment(1));
+ $this->index();
+ return;
+ }
+
+ $ordernev = hun() ? 'title_hun' : 'title_eng';
+
+ $cid = $this->uri->segment(3);
+ $kategoria = $this->mcollection2->get_kategoria($cid);
+ if(!$kategoria){
+ header("HTTP/1.1 404 Not Found");
+ //show_404('Nem letezo kategoria: '.$kategoria);
+ }
+ $objkektumok = $this->mcollection2->get_objektumok($cid,$ordernev.' ASC');
+ $gyarto = $this->mcollection2->get_manById($kategoria->m_id);
+ $kategoriak = $this->mcollection2->get_kategoriak($gyarto->dir);
+
+ $data['kategoriak'] = $kategoriak;
+
+ $data['objektumok'] = $objkektumok;
+ $data['kategoria'] = $kategoria;
+ $data['gyarto'] = $gyarto;
+
+
+ $elemekstr = "";
+ $i=0;
+ $nyelv = $this->muser->user['lang'];
+
+ foreach($objkektumok as $obj){
+ if($i<6)
+ hun() ? $elemekstr .= $obj->title_hun.", " : $elemekstr .= $obj->title_eng.", ";
+
+ $leiras = $this->db->query("SELECT title FROM coll2_desc WHERE lang='{$nyelv}' AND o_id=".$obj->o_id)->row();
+ if( !$leiras )
+ $leiras = $this->db->query("SELECT title FROM coll2_desc WHERE lang='eng' AND o_id=".$obj->o_id)->row();
+ $obj->title = $leiras->title;
+
+ $i++;
+ }
+
+ if(hun()){
+ $data['meta']['desc'] = 'ARCHLine.XP Bemutatóterem - '.$kategoria->nev_hun.' kategória elemei: '.substr($elemekstr,0,-2);
+ $data['title'] = 'ARCHLine.XP Bemutatóterem';
+ $katnev = $kategoria->nev_hun;
+ }else{
+ $data['meta']['desc'] = 'ARCHLine.XP Showroom - '.$kategoria->nev_eng." items: ".substr($elemekstr,0,-2);
+ $data['title'] = 'ARCHLine.XP Showroom';
+ $katnev = $kategoria->nev_eng;
+ }
+
+ $data['title'] .= " - " . $gyarto->name." - ".$katnev;
+ $data['mobilink'] = "/mobile/shobjects/".$cid;
+ $data['tartalom']='collection2/category';
+
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+ function details($param1=""){
+ if( !$this->uri->segment(3) || !is_numeric($this->uri->segment(3)) ){
+ $this->index();
+ return;
+ }else{
+ $this->shownovel($this->uri->segment(3));
+ }
+
+ $oid = $this->uri->segment(3);
+ $adatok = $this->mcollection2->get_elem($oid);
+ if($adatok === false){
+ header("HTTP/1.1 404 Not Found");
+ $adatok->title_hun = "A keresett elem nem található";
+ $adatok->title_eng = "Not found";
+ $data['adatok'] = $adatok;
+ $data['style'] = array('collection','style_new');
+ $data['title'] = 'ARCHLine.XP Collection';
+ $data['tartalom'] = 'collection2/details';
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+
+ return;
+ }
+
+ $ordernev = hun() ? 'title_hun' : 'title_eng';
+
+ $gyarto = $this->mcollection2->get_manById($adatok->m_id);
+ $fajlok = scandir('public/collection/'.$gyarto->dir.'/'.$adatok->o_id);
+ $kategoriaelemek = $this->mcollection2->get_objektumok($adatok->c_id,$ordernev.' ASC');
+ $nagykepek = scandir('public/img/collection/'.$gyarto->dir.'/'.$adatok->o_id."/big");
+ $kategoria = $this->mcollection2->get_kategoria($adatok->c_id);
+ $verziok = $this->db->query("SELECT fajl, version FROM coll2_ver WHERE o_id={$adatok->o_id} AND deleted=0")->result_array();
+
+ $object = $this->mcollection2->get_elem2($oid);
+ $kovi = $this->mcollection2->get_elem_next2($object);
+ $elozo = $this->mcollection2->get_elem_prev2($object);
+ $sorszam = $this->mcollection2->get_sorszam2($object);
+
+ function fajl_ev($array){
+ $vals = array();
+ foreach ($array as $value) {
+ $vals[$value['fajl']] = $value['version'];
+ }
+ return $vals;
+ }
+
+ if( count($verziok)>0 ){
+ $verziok2 = fajl_ev($verziok);
+ }
+
+
+ foreach($kategoriaelemek as $elem){
+ $kepek = scandir('public/img/collection/'.$gyarto->dir.'/'.$elem->o_id);
+ foreach($kepek as $kep){
+ if( $kep != "." && $kep != ".." && !is_dir("public/img/collection/".$gyarto->dir."/".$elem->o_id."/".$kep) ){
+ $elem->kep = "public/img/collection/".$gyarto->dir."/".$elem->o_id."/".$kep;
+ break;
+ }
+ }
+ $elem->kep2 = "public/img/collection/".$gyarto->dir."/".$elem->o_id."/zz_small.jpg";
+ }
+
+ $mit = array("\r\n", "\n", "\r");
+
+ $nyelv = $this->muser->user['lang'];
+ $leiras = $this->db->query("SELECT title, `desc` FROM coll2_desc WHERE lang='{$nyelv}' AND o_id=".$oid)->row();
+ if( !$leiras )
+ $leiras = $this->db->query("SELECT title, `desc` FROM coll2_desc WHERE lang='eng' AND o_id=".$oid)->row();
+
+ $querydowntype = $this->db->query("SELECT type_download FROM coll2_types WHERE type='{$adatok->tipus}'")->row();
+ $letolttipus = ($querydowntype->type_download) ? $querydowntype->type_download : $adatok->tipus;
+
+ $adatok->leiras = $leiras->desc;
+ $adatok->leiras = str_replace($mit,'
',$adatok->leiras);
+ $adatok->title = $leiras->title;
+ $adatok->tipus = $letolttipus;
+
+ $data['adatok'] = $adatok;
+ $data['gyarto'] = $gyarto;
+ $data['kat'] = $kategoria;
+ $data['fajlok'] = $fajlok;
+ $data['verziok'] = $verziok2;
+ $data['kepek'] = $kategoriaelemek;
+ $data['sorszam'] = $sorszam;
+ $data['nagykepek'] = $nagykepek;
+ $data['kovetkezo'] = $kovi->o_id;
+ $data['elozo'] = $elozo->o_id;
+
+ if( isset($_SERVER['HTTP_REFERER']) && strstr($_SERVER['HTTP_REFERER'],'search') && isset($_SESSION['shsearch']) && $_SESSION['shsearch'] ){
+ $data['search'] = true;
+ }
+
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array(
+ '../js/jsor-jcarousel/skins/tango/skincollection',
+ 'collection',
+ 'style_new'
+ ); // archline-ba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+ $data['style'][] = "../js/Smooth-Div-Scroll/css/smoothDivScroll";
+
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem - ' : 'ARCHLine.XP Showroom - ';
+ $data['title'] .= hun() ? $adatok->title_hun : $adatok->title_eng;
+ $data['title'] .= " (by ".$gyarto->name.")";
+ $data['meta']['desc'] = $data['title'].": ";
+ $data['meta']['desc'] .= trim(str_replace("\n"," ",substr(($str=wordwrap(strip_tags($adatok->leiras),80,'$$')),0,strpos($str,'$$'))." ..."));
+
+ if($gyarto->dir=="cadline")
+ $data['noindex']=true;
+
+ $data['tartalom'] = 'collection2/details';
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+ function detailssimple(){
+ if( !$this->uri->segment(3) || !is_numeric($this->uri->segment(3)) ){
+ print "Parameter error";
+ return;
+ }else{
+ $this->shownovel($this->uri->segment(3));
+ }
+
+
+ $oid = $this->uri->segment(3);
+ $adatok = $this->mcollection2->get_elem($oid);
+ $gyarto = $this->mcollection2->get_manById($adatok->m_id);
+ $fajlok = scandir('public/collection/'.$gyarto->dir.'/'.$adatok->o_id);
+ $kategoriaelemek = $this->mcollection2->get_objektumok($adatok->c_id);
+ $nagykepek = scandir('public/img/collection/'.$gyarto->dir.'/'.$adatok->o_id."/big");
+ $kategoria = $this->mcollection2->get_kategoria($adatok->c_id);
+ $verziok = $this->db->query("SELECT fajl, version FROM coll2_ver WHERE o_id={$adatok->o_id} AND deleted=0")->result_array();
+
+ $object = $this->mcollection2->get_elem2($oid);
+ if($this->uri->segment(4)=="type"){
+ $kovi = $this->mcollection2->get_elem_next3($object);
+ $elozo = $this->mcollection2->get_elem_prev3($object);
+ }else{
+ $kovi = $this->mcollection2->get_elem_next2($object);
+ $elozo = $this->mcollection2->get_elem_prev2($object);
+ }
+ $sorszam = $this->mcollection2->get_sorszam2($object);
+
+ function fajl_ev($array){
+ $vals = array();
+ foreach ($array as $value) {
+ $vals[$value['fajl']] = $value['version'];
+ }
+ return $vals;
+ }
+
+ if( count($verziok)>0 ){
+ $verziok2 = fajl_ev($verziok);
+ }
+
+ $mit = array("\r\n", "\n", "\r");
+
+ $nyelv = $this->muser->user['lang'];
+ $leiras = $this->db->query("SELECT title, `desc` FROM coll2_desc WHERE lang='{$nyelv}' AND o_id=".$oid)->row();
+ if( !$leiras )
+ $leiras = $this->db->query("SELECT title, `desc` FROM coll2_desc WHERE lang='eng' AND o_id=".$oid)->row();
+
+ $querydowntype = $this->db->query("SELECT type_download FROM coll2_types WHERE type='{$adatok->tipus}'")->row();
+ $letolttipus = ($querydowntype->type_download) ? $querydowntype->type_download : $adatok->tipus;
+
+ $adatok->leiras = $leiras->desc;
+ $adatok->leiras = str_replace($mit,'
',$adatok->leiras);
+ $adatok->title = $leiras->title;
+ $adatok->tipus = $letolttipus;
+
+ $data['adatok'] = $adatok;
+ $data['gyarto'] = $gyarto;
+ $data['kat'] = $kategoria;
+ $data['fajlok'] = $fajlok;
+ $data['verziok'] = $verziok2;
+ $data['kepek'] = $kategoriaelemek;
+ $data['sorszam'] = $sorszam;
+ $data['nagykepek'] = $nagykepek;
+ $data['kovetkezo'] = $kovi->o_id;
+ $data['elozo'] = $elozo->o_id;
+
+ $this->load->view('collection2/detailssimple',$data);
+ }
+
+ function downloadcategory(){
+ $cat_id = $this->uri->segment(3);
+
+ if(!$cat_id){
+ print "0";
+ return;
+ }
+
+ function fajl_ev($array){
+ $vals = array();
+ foreach ($array as $value) {
+ $vals[$value['fajl']] = $value['version'];
+ }
+ return $vals;
+ }
+
+ $valasz = array();
+ $kategoria = $this->mcollection2->get_kategoria($cat_id);
+ $gyarto = $this->mcollection2->get_manById($kategoria->m_id);
+
+ $objkektumok = $this->mcollection2->get_objektumok($cat_id);
+ foreach($objkektumok as $obj){
+ $fajlok = scandir('public/collection/'.$gyarto->dir.'/'.$obj->o_id);
+
+ $verziok = $this->db->query("SELECT fajl, version FROM coll2_ver WHERE o_id={$obj->o_id} AND deleted=0")->result_array();
+ if( count($verziok)>0 ){
+ $verziok = fajl_ev($verziok);
+ }
+
+ $letoltlink = "http://www.archlinexp.com";
+ $fajl = "";
+ // megfelelő programverzióhoz tartozó fájl
+ if(count($fajlok)>3){
+ $prverzio = 2013;
+ $fajl = array_search($prverzio, $verziok);
+ if(in_array($fajl,$fajlok)){
+ $letoltlink .= "/public/collection/{$gyarto->dir}/{$obj->o_id}/{$fajl}?download=1&type=";
+ if( $verziok[$fajl] == "2013" && $obj->tipus=="object" ){
+ $letoltlink .= "accessory";
+ }elseif($verziok[$fajl] == "2014" && $obj->tipus=="object"){
+ $letoltlink .= "accessory2014";
+ }elseif($obj->tipus=="lamp"){
+ $letoltlink .= "lamps";
+ }else{
+ $letoltlink .= $obj->tipus;
+ }
+ $letoltlink .= "&brandcategory=".base64_encode($gyarto->name.'\\'.$kategoria->nev_eng);
+ }else{
+ $letoltlink = "hibas fajl!";
+ }
+ }elseif(!isset($fajlok[2])){
+ $letoltlink = "nincs fajl!";
+ }else{
+ $fajl=$fajlok[2];
+ $letoltlink .= "/public/collection/{$gyarto->dir}/{$obj->o_id}/{$fajl}?download=1&type=";
+ if( $verziok[$fajl] == "2013" && $obj->tipus=="object" ){
+ $letoltlink .= "accessory";
+ }elseif( $verziok[$fajl] == "2014" && $obj->tipus=="object" ){
+ $letoltlink .= "accessory2014";
+ }elseif($obj->tipus=="lamp"){
+ $letoltlink .= "lamps";
+ }else{
+ $letoltlink .= $obj->tipus;
+ }
+ $letoltlink .= "&brandcategory=".base64_encode($gyarto->name.'\\'.$kategoria->nev_eng);
+ }
+
+ $valasz[] = array($letoltlink, $obj->o_id, $verziok[$fajl]);
+
+ }
+
+
+ // statisztika + válasz az archline-nak
+ // print count($valasz);
+ foreach($valasz as $v){
+ print $v[0].";";
+
+ // statisztika
+ //$this->downloadplus($v[1]);
+ fopen("http://www.archlinexp.com/collection2/downloadplus/".$v[1]."/".$v[2], "r");
+ }
+
+ }
+
+
+ function ajaxkategoriak(){
+ $dir = $this->uri->segment(3);
+ $kategoriak = $this->mcollection2->get_kategoriak($dir);
+
+
+ print "";
+ }
+
+ function downloadplus(){
+ if( !$this->uri->segment(3) || !is_numeric($this->uri->segment(3)) )
+ return;
+
+ $oid = $this->uri->segment(3);
+
+ $this->load->library('user_agent');
+ // robotokat ne számítsa a statisztikába
+ if($this->agent->is_robot())
+ return;
+
+
+ if(isset($_SESSION['coll2elemletoltve']))
+ $letoltve = $_SESSION['coll2elemletoltve'];
+ else
+ $letoltve = array();
+ if( !in_array($oid, $letoltve) ){
+ $this->db->query("UPDATE collection2 SET `down` = `down`+1 WHERE o_id={$oid}");
+ $_SESSION['coll2elemletoltve'][] = $oid;
+
+ $prverzio = $this->uri->segment(4);
+ if( is_numeric($prverzio) ){
+ $this->db->query("UPDATE coll2_ver SET `down` = `down`+1 WHERE o_id={$oid} AND version='{$prverzio}'");
+ }
+ }
+ }
+
+ function shownovel($oid){
+ if(isset($_SESSION['coll2elemmegtekintve']))
+ $megtekintve = $_SESSION['coll2elemmegtekintve'];
+ else
+ $megtekintve = array();
+ if( !in_array($oid, $megtekintve) ){
+ $this->db->query("UPDATE collection2 SET `show` = `show`+1 WHERE o_id={$oid}");
+ $_SESSION['coll2elemmegtekintve'][] = $oid;
+ }
+ }
+
+
+ function search($param1=""){
+ $search = urldecode($this->uri->segment(3));
+ if( !$search && isset($_SESSION['shsearch']) )
+ $search = $_SESSION['shsearch'];
+ else
+ $_SESSION['shsearch'] = str_replace('_', ' ', $search);
+
+ $search = str_replace('_', ' ', $search);
+
+ $result = $this->mcollection2->search($search);
+ $gyartoktmp = array();
+
+ if(!$result){
+ header("HTTP/1.1 404 Not Found");
+ }else{
+ foreach($result as $obj){
+ if( !in_array( $obj->gyartodir, $gyartoktmp ) ){
+ $gyartoktmp[] = $obj->gyartodir;
+ if( count($gyartoktmp) > 1 )
+ break;
+ }
+ }
+ }
+
+ if( count($gyartoktmp) == 1 ){
+ $gyarto = new stdClass();
+ $gyarto->dir = $gyartoktmp[0];
+ }
+ else
+ $gyarto = false;
+
+ $data['kategoria'] = $search;
+ $data['objektumok'] = $result;
+ $data['gyarto'] = $gyarto;
+ $data['noindex'] = true;
+ $data['search'] = true;
+ $data['title'] = hun() ? "Bemutatóterem keresés: ".$search : "Showroom search: ".$search;
+
+ $data['tartalom'] = 'collection2/category';
+
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+
+
+ function types($param1=""){
+ if($this->uri->segment(1)!="collection2")
+ $param1 = $this->defaultparam;
+
+ if( $this->uri->segment(3)!="" ){
+ //print "type: ".$this->uri->segment(3).", param: "; print_r($param1);
+ $this->typebrands($this->uri->segment(3),$param1);
+ return;
+ }
+
+ $mezo = hun() ? "name_hun" : "name_eng";
+ $sql = "SELECT type, {$mezo} as name FROM coll2_types WHERE type IN (SELECT tipus FROM collection2 WHERE deleted=0 AND m_id IN (SELECT id FROM coll2_man WHERE deleted=0) GROUP BY tipus) ORDER BY {$mezo} ASC";
+ $types = $this->db->query($sql)->result();
+
+
+ $data['types'] = $types;
+
+ $data['tartalom'] = 'collection2/types';
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem - típusok' : 'ARCHLine.XP Showroom - types';
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+ $data['style'][] = "jquery.ui";
+ $data['javascript'] = array('jquery_ui');
+
+ $showroomstat = $this->cache->get('showroom-stat');
+ if( !$showroomstat ){
+ $showroomstat = $this->mcollection2->get_all_showdown();
+ $this->cache->write($showroomstat, 'showroom-stat', 3600); // óránként frissül majd
+ }
+ $data['stat'] = $showroomstat;
+
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+ // típusból márkák
+ function typebrands($type,$param1=""){
+ if( $this->uri->segment(4)!="" ){
+ $this->typebrandscategory($type,$this->uri->segment(4),$param1);
+ return;
+ }
+
+ //print_r($param1);
+ $sql = "SELECT name, dir FROM coll2_man m WHERE m.deleted=0 AND id IN (SELECT m_id FROM collection2 WHERE tipus='{$type}' AND deleted=0 GROUP BY m_id) ORDER BY name ASC";
+ $brands = $this->db->query($sql)->result();
+
+ $leiras = $this->db->query("SELECT * FROM coll2_types WHERE type='{$type}'")->row();
+ $leiras = hun() ? $leiras->desc_hun : $leiras->desc_eng;
+ $leiras = str_replace(array("\r\n", "\n", "\r"),'
',$leiras);
+
+ $showroomstat = $this->cache->get('showroom-stat-'.$type);
+ if( !$showroomstat ){
+ $sql = "SELECT sum(`show`) as views, sum(`down`) as downloads FROM `collection2` o INNER JOIN `coll2_cat` c ON c.c_id=o.c_id WHERE o.deleted=0 AND c.deleted=0 AND o.tipus='{$type}'";
+ $showroomstat = $this->db->query($sql)->row();
+ $this->cache->write($showroomstat, 'showroom-stat-'.$type, 3600); // óránként frissül majd
+ }
+ $data['stat'] = $showroomstat;
+
+
+ $data['gyartok'] = $brands;
+ $data['ballink'] = "types/{$type}";
+ $data['leiras'] = $leiras;
+
+ $data['canonical'] = "showroom";
+ $data['tartalom'] = 'collection2/index';
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem - ' : 'ARCHLine.XP Showroom - ';
+ $data['title'] .= lang('collec_brands');
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+
+ }
+
+ // típusból márkákból kategóriák
+ function typebrandscategory($type,$brand,$param1=""){
+ $order = hun() ? "c.nev_hun" : "c.nev_eng";
+ $sql = "SELECT o.c_id, c.nev_hun, c.nev_eng FROM collection2 o LEFT JOIN coll2_cat c ON c.c_id=o.c_id WHERE tipus='{$type}' AND o.m_id=(SELECT id FROM coll2_man WHERE dir='{$brand}') AND o.deleted=0 AND c.deleted=0 GROUP BY c_id ORDER BY {$order} ASC";
+ $kategoriak = $this->db->query($sql)->result();
+
+ if( $this->uri->segment(5)!="" ){
+ $this->typebrandscategoryitems($type,$brand,$this->uri->segment(5),$kategoriak,$param1);
+ return;
+ }
+
+ $data['kategoriak'] = $kategoriak;
+ $data['gyarto']->dir = $brand;
+ $data['ballink'] = "types/{$type}/{$brand}";
+
+ $data['canonical'] = "showroom/manufacturer/{$brand}";
+ $data['tartalom'] = 'collection2/manufacturer';
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem' : 'ARCHLine.XP Showroom';
+ $data['title'] .= " - " . $gyarto->name;
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else{
+ $data['style'] = $param1['style']; // átlag böngészőbe
+ }
+
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+
+ }
+
+ // típusból márkákból kategóriákból elemek
+ function typebrandscategoryitems($type,$brand,$cid,$kategoriak,$param1=""){
+ if( $this->uri->segment(6)!="" ){
+ $this->typebrandscategoryitemdetails($type,$brand,$cid,$this->uri->segment(6),$param1);
+ return;
+ }
+ // utvonal stimmel-e
+ $marka = $this->db->query("SELECT dir FROM coll2_cat c LEFT JOIN coll2_man m ON c.m_id=m.id WHERE c_id={$cid}")->row();
+ if($marka->dir!=$brand){
+ redirect($this->uri->segment(1)."/types/{$type}/{$marka->dir}/{$cid}");
+ }
+
+ $ordernev = hun() ? 'title_hun' : 'title_eng';
+ $sql = "SELECT * FROM collection2 WHERE tipus='{$type}' AND c_id={$cid} AND deleted=0 ORDER BY {$ordernev} ASC ";
+ $objkektumok = $this->db->query($sql)->result();
+
+ $data['objektumok'] = $objkektumok;
+ $data['kategoriak'] = $kategoriak;
+ $data['gyarto']->dir = $brand;
+ $data['canonical'] = "showroom/category/{$cid}";
+ $data['ballink'] = "types/{$type}/{$brand}";
+ $data['jobblink'] = "types/{$type}/{$brand}/{$cid}";
+ $data['tartalom'] = 'collection2/category';
+
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array('collection','style_new'); // programba való
+ else
+ $data['style'] = $param1['style']; // átlag böngészőbe
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+
+ }
+
+ function typebrandscategoryitemdetails($type,$brand,$cid,$oid,$param1=""){
+ //$oid = $this->uri->segment(6);
+ $adatok = $this->mcollection2->get_elem($oid);
+ if($adatok === false){
+ header("HTTP/1.1 404 Not Found");
+ $adatok->title_hun = "A keresett elem nem található";
+ $adatok->title_eng = "Not found";
+ $data['adatok'] = $adatok;
+ $data['style'] = array('collection','style_new');
+ $data['title'] = 'ARCHLine.XP Collection';
+ $data['tartalom'] = 'collection2/details';
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+
+ return;
+ }
+
+ // utvonal stimmel-e
+ $marka = $this->db->query("SELECT dir FROM coll2_man WHERE id={$adatok->m_id}")->row();
+ if($adatok->c_id!=$cid || $marka->dir!=$brand){
+ redirect($this->uri->segment(1)."/types/{$type}/{$marka->dir}/{$adatok->c_id}/{$oid}");
+ }
+
+ $ordernev = hun() ? 'title_hun' : 'title_eng';
+ $sqlobjs = "SELECT * FROM collection2 WHERE tipus='{$type}' AND c_id={$cid} AND deleted=0 ORDER BY {$ordernev} ASC ";
+ $gyarto = $this->mcollection2->get_manById($adatok->m_id);
+ $fajlok = scandir('public/collection/'.$gyarto->dir.'/'.$adatok->o_id);
+ $kategoriaelemek = $this->db->query($sqlobjs)->result();
+ $nagykepek = scandir('public/img/collection/'.$gyarto->dir.'/'.$adatok->o_id."/big");
+ $kategoria = $this->mcollection2->get_kategoria($adatok->c_id);
+ $verziok = $this->db->query("SELECT fajl, version FROM coll2_ver WHERE o_id={$adatok->o_id} AND deleted=0")->result_array();
+
+ $object = $this->mcollection2->get_elem2($oid);
+ $kovi = $this->mcollection2->get_elem_next3($object);
+ $elozo = $this->mcollection2->get_elem_prev3($object);
+ $sorszam = $this->mcollection2->get_sorszam2($object);
+
+ foreach($kategoriaelemek as $elem){
+ $kepek = scandir('public/img/collection/'.$gyarto->dir.'/'.$elem->o_id);
+ foreach($kepek as $kep){
+ if( $kep != "." && $kep != ".." && !is_dir("public/img/collection/".$gyarto->dir."/".$elem->o_id."/".$kep) ){
+ $elem->kep = "public/img/collection/".$gyarto->dir."/".$elem->o_id."/".$kep;
+ break;
+ }
+ }
+ $elem->kep2 = "public/img/collection/".$gyarto->dir."/".$elem->o_id."/zz_small.jpg";
+ }
+
+
+ $mit = array("\r\n", "\n", "\r");
+ $nyelv = $this->muser->user['lang'];
+ $leiras = $this->db->query("SELECT title, `desc` FROM coll2_desc WHERE lang='{$nyelv}' AND o_id=".$oid)->row();
+ if( !$leiras )
+ $leiras = $this->db->query("SELECT title, `desc` FROM coll2_desc WHERE lang='eng' AND o_id=".$oid)->row();
+
+ $querydowntype = $this->db->query("SELECT type_download FROM coll2_types WHERE type='{$adatok->tipus}'")->row();
+ $letolttipus = ($querydowntype->type_download) ? $querydowntype->type_download : $adatok->tipus;
+
+ $adatok->leiras = $leiras->desc;
+ $adatok->leiras = str_replace($mit,'
',$adatok->leiras);
+ $adatok->title = $leiras->title;
+ $adatok->tipus = $letolttipus;
+
+ function fajl_ev($array){
+ $vals = array();
+ foreach ($array as $value) {
+ $vals[$value['fajl']] = $value['version'];
+ }
+ return $vals;
+ }
+
+ if( count($verziok)>0 ){
+ $verziok2 = fajl_ev($verziok);
+ }
+
+ $data['adatok'] = $adatok;
+ $data['gyarto'] = $gyarto;
+ $data['kat'] = $kategoria;
+ $data['fajlok'] = $fajlok;
+ $data['verziok'] = $verziok2;
+ $data['kepek'] = $kategoriaelemek;
+ $data['sorszam'] = $sorszam;
+ $data['nagykepek'] = $nagykepek;
+ $data['kovetkezo'] = $kovi->o_id;
+ $data['elozo'] = $elozo->o_id;
+ $data['urlend'] = '/type';
+ $data['vurl'] = '/collection2/detailssimple/';
+ $data['canonical'] = "showroom/details/{$oid}";
+
+ $this->shownovel($oid);
+
+ if( !is_array($param1) || count($param1['style']) == 0 )
+ $data['style'] = array(
+ '../js/jsor-jcarousel/skins/tango/skincollection',
+ 'collection',
+ 'style_new'
+ ); // archline-ba való
+ else
+ $data['style'] = $param1['style']; // átlag böngészőbe
+
+
+ $data['style'][] = "../js/Smooth-Div-Scroll/css/smoothDivScroll";
+
+ $data['title'] = hun() ? 'ARCHLine.XP Bemutatóterem - ' : 'ARCHLine.XP Showroom - ';
+ $data['title'] .= hun() ? $adatok->title_hun : $adatok->title_eng;
+ $data['title'] .= " (by ".$gyarto->name.")";
+
+ if($gyarto->dir=="cadline")
+ $data['noindex']=true;
+
+ $data['tartalom'] = 'collection2/details';
+
+ if( isset($param1['tartalom']) && strlen($param1['tartalom']) > 1 )
+ $this->load->view($param1['tartalom'],$data);
+ else
+ $this->load->view('site_upload',$data);
+ }
+
+ function getbigimage(){
+ $objid = $this->uri->segment(3);
+ if(!is_numeric($objid)){
+ print "error: hibas azonosito";
+ return;
+ }
+
+ $brandid = $this->db->query("SELECT m_id FROM collection2 WHERE o_id={$objid}")->row();
+ if( !isset($brandid->m_id) || !is_numeric($brandid->m_id) ){
+ print "error: hibas marka";
+ return;
+ }
+
+ $brand = $this->db->query("SELECT dir FROM coll2_man WHERE id={$brandid->m_id}")->row();
+ if( !isset($brand->dir) ){
+ print "error: hibas marka";
+ return;
+ }
+
+ $utvonal = "public/img/collection/{$brand->dir}/{$objid}/zz_big.jpg";
+ print $utvonal;
+ }
+
+}
+
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/collection2012.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/collection2012.php
new file mode 100644
index 0000000..6c5b90c
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/collection2012.php
@@ -0,0 +1,86 @@
+
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/compatibility.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/compatibility.php
new file mode 100644
index 0000000..a14f82d
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/compatibility.php
@@ -0,0 +1,78 @@
+uri->segments;
+ $ttmp = explode('&',$tmp[1]);
+ unset($ttmp[0]);
+ $tp = explode('=',$ttmp[1]);
+ if($tp[0]=="p")
+ $arch_id = $tp[1];
+ elseif($tp[0]=="lang")
+ $lang = $tp[1];
+
+ $tl = explode('=',$ttmp[2]);
+ if($tl[0]=="p")
+ $arch_id = $tl[1];
+ elseif($tl[0]=="lang")
+ $lang = $tl[1];*/
+
+ if(isset($this->input->origget['lang']))
+ $lang = $this->input->origget['lang'];
+ if(isset($this->input->origget['p']))
+ $arch_id = $this->input->origget['p'];
+
+
+ $lang = mysql_real_escape_string($lang);
+ $elemdesc = "";
+
+ //print 'archid: '.$arch_id. " , lang: ".$lang;
+
+ $page = $this->mpages->get_row(810);
+
+ $cserek = $this->db->query("SELECT a_name, title, version FROM compatibility WHERE lang='eng'")->result();
+
+ if($lang!='' && $lang!="eng"){
+ foreach($cserek as $k=>$csere){
+ $nyelvititle = $this->db->query("SELECT title FROM compatibility WHERE lang='{$lang}' AND a_name='{$csere->a_name}'")->row();
+ if($nyelvititle->title){
+ $cserek[$k]->title = $nyelvititle->title;
+ }
+ }
+ }
+
+ if($arch_id != ''){
+ $a_name = mysql_real_escape_string($arch_id);
+ $elem = $this->db->query("SELECT title, version FROM compatibility WHERE lang='{$lang}' AND a_name='{$a_name}'")->row();
+ if(!$elem->title)
+ $elem = $this->db->query("SELECT title, version FROM compatibility WHERE lang='eng' AND a_name='{$a_name}'")->row();
+ if($elem->title){
+ $page2 = $this->mpages->get_row(812);
+ $page2->page_body = str_replace('#accessoryName#',$elem->title,$page2->page_body);
+ $page2->page_body = str_replace('#minVersion#',$elem->version,$page2->page_body);
+ $elemdesc = $page2->page_body;
+ }
+ }
+
+ $page->page_body = str_replace('#elemleiras#',$elemdesc,$page->page_body);
+
+ $data['tartalom'] = 'compatibility/index';
+ $data['accessories'] = $cserek;
+ $data['page'] = $page;
+
+ $this->load->view('site',$data);
+ }
+
+ function details(){
+ $arch_id = $_GET['archid'];
+ $lang = $_GET['lang'];
+ print "details";
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/contact.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/contact.php
new file mode 100644
index 0000000..69eccee
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/contact.php
@@ -0,0 +1,297 @@
+uri->segment(3);
+
+ $this->load->view('site',$data);
+ }
+
+ function submit(){
+ foreach($_POST as $k=>$v)
+ $$k = $v;
+
+ if($url){
+ $record->osztaly = "contact";
+ $record->fv = "submit";
+ $record->hiba = "Robot? Új levél:";
+ foreach($_POST as $k=>$v)
+ $record->hiba .= "\n['".$k."'] = ".$v;
+ $record->datum = date('Y-m-d H:i:s',time());
+ $this->db->insert('a_hibak',$record);
+ }
+
+
+ if( $strEMail && !$url && ($subject!="Other" || trim($message) != "" && trim($message) != "
', $error);
+ } else {
+ //insert registration into the database
+ $result = $this->mevents->EventRegistration($post);
+
+ //collecting main event details
+ $main_event_details = $this->mevents->getMainEventDetails($post['event_main_id']);
+
+ if($result == 'success'){
+ $event_details = $this->mevents->getEventDetailsByID($post['event_id']);
+
+ //collect the event's and user's data for the emails
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'cegnev' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'start' => date('Y-m-d H:i',$event_details->start_ts),
+ 'end' => date('Y-m-d H:i',$event_details->end_ts),
+ 'event_details' => $this->mevents->getEventDetailsByID($post['event_id']),
+ 'main_event_details' => $this->mevents->getMainEventDetails($post['event_main_id'])
+ );
+
+ //send an email to cadline
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Cadline Weboldal');
+ $this->email->subject($main_event_details->name.' Registration');
+ $this->email->message($this->load->view('courses/mail/reg_success_to_cadline', $mail_data, true));
+
+ $this->email->send('info@archlinexp.com', 'smtp');
+ $this->email->clear();
+
+ //send an email to the registered user
+ $page = $this->mpages->get_row($main_event_details->reg_success_mail_page);
+
+ //change the users name constans in the page body
+ $page->page_body = str_ireplace('#reg_name#', $mail_data['nev'], $page->page_body);
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
+ $this->email->subject($page->page_title);
+ $this->email->message($page->page_body);
+
+ $this->email->send($post['email'], 'smtp');
+
+ //get the content of the success page
+ $data['cimlap'] = $this->mpages->get_row($main_event_details->reg_success_page);
+ } elseif($result == 'limit') {
+ //get the content of the limit page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(489) : $this->mpages->get_row(481);
+ } elseif($result == 'multiple') {
+ //get the content of the multiple registration page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(488) : $this->mpages->get_row(482);
+ }
+
+ $data['tartalom'] = 'courses/registration_success';
+ }
+
+ $this->load->view('site', $data);
+ }
+ }
+
+ function no_main_event(){
+ $data['lang'] = $this->muser->user['lang'];
+ $data['title'] = hun() ? 'Bemutatk - ARCHLine.XP CAD Software' : 'Events - ARCHLine.XP CAD Software';
+ $data['tartalom'] = 'courses/no_main_event';
+ $data['page'] = hun() ? $this->mpages->get_row(493) : $this->mpages->get_row(494);
+ if(hun())
+ $data['csik'] = array('Foldal', 'Bemutatk');
+ else
+ $data['csik'] = array('home', 'events');
+ $this->load->view('site', $data);
+ }
+
+ function registrate(){
+ redirect('courses');
+ /*
+ $event_main_id = $this->uri->segment(3);
+
+ if(!$event_main_id || !$main_event_details = $this->mevents->getMainEventDetails($event_main_id)){
+ redirect('events');
+ }
+
+ $data['lang'] = $this->muser->user['lang'];
+ $data['title'] = hun() ? $main_event_details->name.' - Events - ARCHLine.XP CAD Software' : $main_event_details->name.' - Events - ARCHLine.XP CAD Software';
+ $data['tartalom'] = 'events/registrate';
+ $data['csik'] = array('home', 'events', $main_event_details->name);
+ $data['error'] = false;
+
+ $data['main_event'] = $main_event_details;
+
+ $results = $this->mevents->getEventDatesByDay($event_main_id);
+
+ $data['events'] = $results['events'];
+ $data['times'] = $results['times'];
+
+ $do = $this->input->post('do');
+
+ if(!$do){
+ $this->load->view('site', $data);
+ } else {
+ $post = array();
+
+ $post['nev'] = $this->input->post('nev');
+ $post['cegnev'] = $this->input->post('cegnev');
+ $post['varos'] = $this->input->post('varos');
+ $post['irsz'] = $this->input->post('irsz');
+ $post['cim'] = $this->input->post('cim');
+ $post['tel'] = $this->input->post('tel');
+ $post['email'] = $this->input->post('email');
+ $post['comment'] = $this->input->post('comment');
+ $post['event_id'] = $this->input->post('event_id');
+ $post['event_main_id'] = $event_main_id;
+
+ if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
+ $data['error'] = implode('
', $error);
+ } else {
+ //insert registration into the database
+ $result = $this->mevents->EventRegistration($post);
+
+ if($result == 'success'){
+ //get the content of the success page
+ $data['cimlap'] = $this->mpages->get_row(480);
+
+ $event_details = $this->mevents->getEventDetailsByID($post['event_id']);
+
+ //collect the event's and user's data for the emails
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'cegnev' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'start' => date('Y-m-d H:i',$event_details->start_ts),
+ 'end' => date('Y-m-d H:i',$event_details->end_ts),
+ 'event_details' => $this->mevents->getEventDetailsByID($post['event_id'])
+ );
+
+ //send an email to cadline
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Cadline Weboldal');
+ $this->email->subject($main_event_details->name.' Registration');
+ $this->email->message($this->load->view('events/mail/reg_success_to_cadline', $mail_data, true));
+
+ $this->email->send('info@archlinexp.com', 'smtp');
+ //$this->email->send('sztikee@gmail.com', 'smtp');
+ //$this->email->send('atikenny@gmail.com', 'smtp');
+ $this->email->clear();
+
+ //send an email to the registered user
+ $page = $this->mpages->get_row($main_event_details->reg_success_mail_page);
+
+ //change the users name constans in the page body
+ $page->page_body = str_ireplace('#reg_name#', $mail_data['nev'], $page->page_body);
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
+ $this->email->subject($page->page_title);
+ $this->email->message($page->page_body);
+
+ $this->email->send($post['email'], 'smtp');
+ } elseif($result == 'limit') {
+ //get the content of the limit page
+ $data['cimlap'] = $this->mpages->get_row(481);
+ } elseif($result == 'multiple') {
+ //get the content of the multiple registration page
+ $data['cimlap'] = $this->mpages->get_row(482);
+ }
+
+ $data['tartalom'] = 'events/registration_success';
+ }
+
+ $this->load->view('site', $data);
+ }
+ */
+ }
+}
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/cron.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/cron.php
new file mode 100644
index 0000000..a73c360
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/cron.php
@@ -0,0 +1,396 @@
+load->model('mclusers');
+ $kiirni = "";
+ $log = "\n".date('Y-m-d H:i',time()).":";
+
+ $elteltnap = 20;
+
+ $maxtime = time()-($elteltnap*24*60*60);
+ $mintime = time()-(($elteltnap+1)*24*60*60);
+
+ // azok a magyar letöltők akik nem kaptak még e-mailt
+ $sql = "SELECT stat_id, stat_email, stat_first, stat_country FROM download_stats ";
+ $sql .= " WHERE stat_pron='' AND stat_date>{$mintime} AND stat_date<{$maxtime} ";
+ $sql .= " AND stat_lang='hun' ";
+ $sql .= " GROUP BY stat_email";
+
+ // print "sql: ".$sql."
";
+
+ $letoltokhun = $this->db->query($sql)->result();
+ $pagehun = $this->mpages->get_row(783);
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ foreach($letoltokhun as $letolto){
+
+ // felhasználónak ne küldjön levelet (van-e aktiv kulcsa)
+ $nUserID = $this->mclusers->get_nUserIDByEmail($letolto->stat_email,'hun');
+ if(is_numeric($nUserID) && $nUserID>0){
+ $kulcssql = "SELECT hlNum FROM ".CRMADATBAZIS.".hardlock WHERE hlUser='{$nUserID}' AND hlStat=1";
+ $kulcs = $this->db->query($kulcssql)->row();
+ if(isset($kulcs->hlNum) && $kulcs->hlNum!=""){
+ $kiirni .= "\n\nnincs elkuldve: ".print_r($letolto,true);//.$leveltext;
+ $log .= "\nHUN nincs elkuldve (felhasznalo): ".$letolto->stat_email." ".$letolto->stat_first." ".$letolto->stat_id." (hun)";
+ continue;
+ }
+ }
+
+ $leveltext = str_ireplace('#nev#', $letolto->stat_first, $pagehun->page_body );
+ $this->email->setFrom('info@archline.hu', 'CadLine');
+ $this->email->subject('ARCHLine.XP letoltes');
+ $this->email->message($leveltext);
+
+ $this->email->send($letolto->stat_email, 'smtp');
+ $this->email->clear();
+
+ $ujletolto['stat_pron'] = "1";
+ $this->db->update('download_stats',$ujletolto,"stat_id=".$letolto->stat_id);
+
+ $kiirni .= "\n\nelkuldve: ".print_r($letolto,true);//.$leveltext;
+ $log .= "\nHUN elkuldve: ".$letolto->stat_email." ".$letolto->stat_first." ".$letolto->stat_id." (hun)";
+
+ // sleep(2);
+ }
+
+
+ /***********************************************************************************/
+
+ // azok a NEM magyar letöltők akik nem kaptak még e-mailt
+ $sql = "SELECT stat_id, stat_email, stat_first, stat_country FROM download_stats ";
+ $sql .= " WHERE stat_pron='' AND stat_date>{$mintime} AND stat_date<{$maxtime} ";
+ $sql .= " AND stat_lang!='hun' ";
+ $sql .= " GROUP BY stat_email";
+
+
+ //print "
angol sql: ".$sql."
";
+
+ $letoltokeng = $this->db->query($sql)->result();
+ $pageeng = $this->mpages->get_row(784);
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ foreach($letoltokeng as $letolto){
+
+ // felhasználónak ne küldjön levelet (van-e aktiv kulcsa)
+ $nUserID = $this->mclusers->get_nUserIDByEmail($letolto->stat_email,'eng');
+ if(is_numeric($nUserID) && $nUserID>0){
+ $kulcssql = "SELECT hlNum FROM ".CRMADATBAZIS.".hardlock WHERE hlUser='{$nUserID}' AND hlStat=1";
+ $kulcs = $this->db->query($kulcssql)->row();
+ if(isset($kulcs->hlNum) && $kulcs->hlNum!=""){
+ $kiirni .= "\n\nnincs elkuldve: ".print_r($letolto,true)."nUserID: ".$nUserID.", hlnum: ".$kulcs->hlNum;
+ $log .= "\nENG nincs elkuldve (felhasznalo): ".$letolto->stat_email." ".$letolto->stat_first." ".$letolto->stat_id." (eng), hlNum: ".$kulcs->hlNum." , user: ".$nUserID;
+ continue;
+ }
+ }
+
+ $leveltext = str_ireplace('#nev#', $letolto->stat_first, $pageeng->page_body );
+ $this->email->setFrom('info@archlinexp.com', 'ARCHLine');
+ $this->email->subject('ARCHLine.XP download');
+ $this->email->message($leveltext);
+
+ $this->email->send($letolto->stat_email, 'smtp');
+ $this->email->clear();
+
+ $ujletolto['stat_pron'] = "1";
+ $this->db->update('download_stats',$ujletolto,"stat_id=".$letolto->stat_id);
+
+ $kiirni .= "\n\nENG elkuldve: ".print_r($letolto,true);//.$leveltext;
+ $log .= "\nENG elkuldve: ".$letolto->stat_email." ".$letolto->stat_first." ".$letolto->stat_id." (eng)";
+
+ print "
elkuldve: ";print_r($letolto);
+
+ // sleep(2);
+ }
+
+ $record['osztaly'] = "cron";
+ $record['fv'] = "downloademail";
+ $record['hiba'] = $kiirni;
+ $record['datum'] = date('Y-m-d H:i',time());
+ $this->db->insert('a_hibak',$record);
+
+ exec("echo '{$log}' >> public/download_email.txt");
+ }
+
+
+ // minden nap 07:30-kor - kék / sárga könyvből üzeneteket elküldeni e-mailben
+ function messages_email(){
+
+ $managerek = array("25", "10"); // egyelore csak Illesnek es nekem
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ $kiirni = "";
+
+ foreach( array(CRMADATBAZIS) as $db ){
+ foreach( $managerek as $i){ // foreach managers
+ $ma = date("Y-m-d");
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ $mailsql = "SELECT strMail FROM `{$db}`.managers WHERE nManagerID={$i}";
+ $mailrow = $this->db->query($mailsql)->row();
+ $email = $mailrow->strMail;
+
+ if(!$email)
+ continue;
+
+ if($email == "barthaattila@hotmail.com")
+ $email = "eszter@cadline.hu";
+
+ $query = "SELECT nMsgID, strTopic, strMsg, nUserID FROM `{$db}`.`u_messages` WHERE nManagerID={$i} AND `dateSend` = '{$ma}' AND bFlag=0 ";
+
+ $result = $this->db->query($query)->result();
+
+ foreach( $result as $row ){ // foreach messages
+ $message = $row->strMsg."
";
+ $message .= "";
+ $message .= "https://crm.cadline.hu/hu/users/show/".$row->nUserID;
+ $message .= "";
+
+ $this->email->subject($row->strTopic);
+ $this->email->message($message);
+ $elkuldve = $this->email->send($email, 'smtp');
+
+ print "kuldom: ".$email."-nek: ".$message;
+
+ if($elkuldve){
+ $valtoztatas['bFlag'] = 1;
+ $this->db->update("{$db}.u_messages",$valtoztatas,"nMsgID=".$row->nMsgID);
+ $kiirni .= " elkuldve";
+ }
+
+ $this->email->clear();
+ }
+
+ $kiirni .= "
";
+ }
+ }
+
+ print $kiirni;
+
+ /*$record['osztaly'] = "cron";
+ $record['fv'] = "messages_email";
+ $record['hiba'] = strip_tags($kiirni);
+ $record['datum'] = date('Y-m-d H:i',time());
+ $this->db->insert('a_hibak',$record);*/
+
+ }
+
+
+ // minden órában - excel feltöltések mennek-e
+ function elofizexcelcheck(){
+ $utolsofajl = filemtime( PATH_WEBSITE."fizetesek" );
+ print "utolso: ".date("Y-m-d H:i:s",$utolsofajl);
+ $log = "\n".date("Y-m-d H:i:s")."\n\t";
+
+ if( time()-(60*60) > $utolsofajl){
+ // már egy órája nincs feltöltés
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ $this->email->setFrom('info@archline.hu', 'CadLine');
+ $this->email->subject('Hiba - Excel fizetesek feltoltes');
+ $this->email->message("Már több mint egy órája nincs feltöltés. Utolsó feltöltés időpontja: ".date("Y-m-d H:i:s",$utolsofajl));
+
+ $this->email->send("bodnart@cadline.hu", 'smtp');
+ $log .= "hiba volt, utolso: ".date("Y-m-d H:i:s",$utolsofajl);
+ }
+ else{
+ $log .= "rendben.";
+ }
+
+ exec("echo '{$log}' >> public/log_fizetesek_excel.txt");
+
+ }
+
+ // előfizetők tábla ürítése hajnal 02:00-kor
+ function elofizurites(){
+ $sql = "TRUNCATE TABLE ".CRMADATBAZIS.".t_excelfizetes";
+ $sql2 = "TRUNCATE TABLE ".CRMADATBAZIS.".temp_excelfizetes";
+ $this->db->query($sql);
+ $this->db->query($sql2);
+ }
+
+
+ // minden nap 06:00-kor - azok az aktív cserélt kulcsok, ahol a cserét már elindították
+ function startchangedhardlock(){
+
+ // cserélt aktív kulcsok
+ $aktivak = $this->db->query("SELECT hlNum, hlNewHlNum FROM ".CRMADATBAZIS.".hardlock WHERE hlStat=1 AND hlNewHlNum!='' AND hlNewHlNum IS NOT NULL")->result();
+ $ujak = array();
+
+ foreach($aktivak as $kulcs){
+ print "
Cserelt: ".$kulcs->hlNum." ";
+ $inditott = $this->db->query("SELECT kulcs, datum FROM ".CRMADATBAZIS.".h_aktivalas_infok WHERE kulcs='{$kulcs->hlNewHlNum}' AND leiras LIKE 'programinditas - %' ORDER BY datum LIMIT 0,1")->row();
+ if( isset($inditott->datum) && $inditott->datum!="")
+ $ujak[$kulcs->hlNum] = $kulcs->hlNewHlNum;
+ }
+
+ print_r($ujak);
+
+ $message = "Ez egy automatikusan generált CRM rendszer üzenet. Azokról a kulcsokról, melyek lecserélésre kerültek, de a Régi kulcs” még nem volt letiltva. Az üzenet azt jelenti, hogy az „Új Kulcs”-al valaki elinditotta a 2013-as programot. Mindig a teljes listát tartalmazza. Eltünik a régi kulcs, ha a státusa „letiltott” lesz.
+
+ A következő cserélt és aktív kulcsok 2013-as programjait indították már el. (A régi kulcs letiltható, amit a viszonteladóval egyeztetni kell!): ";
+ foreach($ujak as $k=>$uj){
+ $message .= "
Régi kulcs: ".$k.", új kulcs: ".$uj;
+ }
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $this->email->subject('Cserélt kulcsok');
+ $this->email->message($message);
+ $this->email->send('edit@cadline.hu', 'smtp');
+
+
+ /* tegnapi hibás programindítások */
+ //$this->hibasprograminditasok();
+
+ }
+
+ // minden nap 6:00-kor - hibás programindítások listája
+ function hibasprograminditasok(){
+ $tegnap = date('Y-m-d',time()-(60*60*24));
+ $sql = "SELECT kulcs, leiras FROM ".CRMADATBAZIS.".`h_aktivalas_infok` WHERE substring(datum, 1, 10) = '{$tegnap}' AND `kuldo` = 'tips' AND `leiras` LIKE '%error:%' GROUP BY kulcs ORDER BY kulcs ASC";
+ $kulcsokobjarray = $this->db->query($sql)->result();
+
+ $kulcsok = array();
+
+ /*foreach($kulcsokobjarray as $obj){
+ $kulcsok[] = $obj->kulcs;
+ $hardlock = $this->db->query("SELECT hlCtrID, hlUser FROM ".CRMADATBAZIS.".hardlock WHERE hlNum='{$obj->kulcs}'")->row();
+ $orszag = $this->db->query("SELECT ctrName FROM ".CRMADATBAZIS.".countries WHERE ctrID=".$hardlock->hlCtrID)->row();
+ if(is_numeric($hardlock->hlUser)){
+ $user = $this->db->query("SELECT strName FROM ".CRMADATBAZIS.".users WHERE nUserID=".$hardlock->hlUser)->row();
+ $user = $user->strName;
+ }else
+ $user = $hardlock->hlUser;
+ $htmlkulcsok .= "";
+ $htmlkulcsok .= " ";
+ }*/
+ foreach($kulcsokobjarray as $obj){
+ $orszag->ctrName = "";
+ $hardlock = $this->db->query("SELECT hlCtrID, hlUser FROM ".CRMADATBAZIS.".hardlock WHERE hlNum='{$obj->kulcs}'")->row();
+ if($hardlock->hlCtrID)
+ $orszag = $this->db->query("SELECT ctrName FROM ".CRMADATBAZIS.".countries WHERE ctrID=".$hardlock->hlCtrID)->row();
+ if(is_numeric($hardlock->hlUser)){
+ $user = $this->db->query("SELECT strName FROM ".CRMADATBAZIS.".users WHERE nUserID=".$hardlock->hlUser)->row();
+ $user = $user->strName;
+ }else
+ $user = $hardlock->hlUser;
+
+ $hibahun = $hibaeng = "";
+ if( strstr($obj->leiras,"error: nincs ilyen password") ){
+ $hibahun = "nincs ilyen Sorozatszám";
+ $hibaeng = "no Serial code in CRM database";
+ $support = "Check user figures and send order to CadLine";
+ }
+ elseif(strstr($obj->leiras,"error: nem aktiv a program") ){
+ $hibahun = "nem aktiv a program";
+ $hibaeng = "this Serial code is not active";
+ $support = "Check why? (Maybe prohibited, but old hardlock was not sent back to office.)";
+ }
+ elseif(strstr($obj->leiras,"error: nincs vasarlasi idopont") ){
+ $hibahun = "nincs vasarlasi idopont a CRM-ben";
+ $hibaeng = "no selling date setup in database";
+ $support = "Check the User payments and ask new activation code from CadLine";
+ }
+ elseif(strstr($obj->leiras,"error: hianyzo kod") ){
+ $hibahun = "hianyzo Aktiválási kod";
+ $hibaeng = "no Activation code in CRM";
+ $support = "Check the User payments and ask new activation code from CadLine";
+ }
+ elseif(strstr($obj->leiras,"error: masik gep van regisztralva") ){
+ $hibahun = "masik gep van regisztralva - Feloldás kell";
+ $hibaeng = "this is already registered on another PC";
+ $support = "Check it, maybe user tried to download more times. If its OK, ask to release from CadLine (after that user can register again and can use for more 60 days!) Its your decision.";
+ }
+ elseif(strstr($obj->leiras,"error: nincs kifizetve") ){
+ $hibahun = "nincs kifizetve, aktiválási kód lejárt";
+ $hibaeng = "the program is not paid in CRM system";
+ $support = "Check the payment and ask new activation from CadLine";
+ }
+ elseif(strstr($obj->leiras,"error: tul sok telepites") ){
+ $hibahun = "túl sok telepités - Feloldás kell";
+ $hibaeng = "the program already registered ";
+ $support = "Check, discuss with user why tried it twice, and If its OK, ask to release from CadLine (after that user can register again and can use for more 60 days!) Its your decision.";
+ }
+
+ preg_match('/\d{16}/', $obj->leiras, $serialmatch);
+
+ $ujhibaskulcs = array();
+ $ujhibaskulcs['kulcs'] = $obj->kulcs;
+ $ujhibaskulcs['serial'] = $serialmatch[0];
+ $ujhibaskulcs['ctrName'] = $orszag->ctrName;
+ $ujhibaskulcs['user'] = $user;
+ $ujhibaskulcs['hibahun'] = $hibahun;
+ $ujhibaskulcs['hibaeng'] = $hibaeng;
+ $ujhibaskulcs['support'] = $support;
+ $kulcsok[] = $ujhibaskulcs;
+ }
+
+ $htmlkulcsok = "".$obj->kulcs." ";
+ $htmlkulcsok .= "".$orszag->ctrName." ";
+ $htmlkulcsok .= "".$user." ";
+ $htmlkulcsok .= "\n";
+ $htmlkulcsok .= "
";
+
+ $kulcslista = implode(", ",$kulcsok);
+
+ $message = "Ez egy automatikusan generált CRM rendszer üzenet. Azokról a kulcsokról, melyeknél tegnap ({$tegnap}) olyan programindítás történt, amire hiba volt a válasz:\n";
+ $htmlkulcsok .= "\t \n";
+ foreach($kulcsok as $kulcs){
+ $htmlkulcsok .= "Hardlock No \n";
+ $htmlkulcsok .= "\tSerial No \n";
+ $htmlkulcsok .= "\tCountry \n";
+ $htmlkulcsok .= "\tUser name \n";
+ $htmlkulcsok .= "\terror message \n";
+ //$htmlkulcsok .= "\thibaüzenet \n";
+ $htmlkulcsok .= "\tHow should you support ? \n";
+ $htmlkulcsok .= "\n";
+ $htmlkulcsok .= "\t \n";
+ }
+ $htmlkulcsok .= "{$kulcs['kulcs']} \n";
+ $htmlkulcsok .= "\t{$kulcs['serial']} \n";
+ $htmlkulcsok .= "\t{$kulcs['ctrName']} \n";
+ $htmlkulcsok .= "\t{$kulcs['user']} \n";
+ $htmlkulcsok .= "\t{$kulcs['hibaeng']} \n";
+ //$htmlkulcsok .= "\t{$kulcs['hibahun']} \n";
+ $htmlkulcsok .= "\t{$kulcs['support']} \n";
+ $htmlkulcsok .= "
+
+ Dear xxxxxxx,
+ According to our system report please find the errors from yesterday below.
+ ";
+ //$message .= $kulcslista;
+ $message .= $htmlkulcsok;
+ $message .= "
Best Regards,
Edit Grőger";
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $this->email->subject('Hibas programinditasok');
+ $this->email->message($message);
+ $this->email->send('edit@cadline.hu', 'smtp');
+ //$this->email->send('eszter@cadline.hu', 'smtp');
+
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/downloads.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/downloads.php
new file mode 100644
index 0000000..52dcfc1
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/downloads.php
@@ -0,0 +1,1494 @@
+load->model('mdownloads');
+ $this->load->model('mctr');
+ }
+
+ function index()
+ {
+ $this->indexv2();
+ return;
+
+ $data['aktiv']=1;
+
+ $data['lang']=$this->muser->user['lang'];
+ hun() ? $data['ctr']=$this->mctr->get_all_ctr('ctrNameHun') : $data['ctr']=$this->mctr->get_all_ctr();
+
+ if(jap()){
+ $data['aktiv']=9;
+ $data['tartalom']='downloads/japantrial';
+ $data['javascript'] = array('prototype');
+ }
+ else
+ {
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(304);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(364);
+ else
+ $data['cimlap'] = $this->mpages->get_row(305);
+
+ $data['tartalom']='downloads/index';
+ $data['javascript'] = array('downloads');
+ }
+
+ $data['title'] = hun() ? 'ARCHLine.XP Letöltés' : 'ARCHLine.XP Download';
+ $data['csik']=array('home','downloads');
+ $this->load->view('site',$data);
+ }
+
+ function indexv2(){
+ $data['aktiv']=1;
+
+ $data['lang']=$this->muser->user['lang'];
+ hun() ? $data['ctr']=$this->mctr->get_all_ctr('ctrNameHun') : $data['ctr']=$this->mctr->get_all_ctr();
+
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(304);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(364);
+ else
+ $data['cimlap'] = $this->mpages->get_row(305);
+
+ //if( $_SERVER['REMOTE_ADDR']=='87.242.17.127' )
+ $data['tartalom']='downloads/indexv3';
+ /*else
+ $data['tartalom']='downloads/indexv2';*/
+ $data['javascript'] = array(
+ /*'downloads',*/
+ 'regformcheck',
+ 'fancybox/jquery-1.3.2.min',
+ 'fancybox/jquery.easing.1.3',
+ 'fancybox/jquery.fancybox-1.2.1.pack'/*,
+ 'fancybox/fancy'*/
+ );
+ $data['style'] = array('fancybox_gal');
+
+ $data['title'] = hun() ? 'ARCHLine.XP Építészeti próbaverzió Letöltés' : 'ARCHLine.XP Architect trial Download';
+ $data['csik']=array('home','downloads');
+ $this->load->view('site',$data);
+ }
+
+ function japantrial()
+ {
+ $data['aktiv']=9;
+
+ $data['lang']=$this->muser->user['lang'];
+ $data['tartalom']='downloads/japantrial';
+ $data['javascript'] = array('prototype');
+ $data['csik']=array('home','downloads');
+ $this->load->view('site',$data);
+ }
+
+
+ function student()
+ {
+ $this->studentv2();
+ return;
+
+ $data['aktiv']=5;
+ $data['ctr'] = hun() ? $this->mctr->get_all_ctr('ctrNameHun') : $this->mctr->get_all_ctr();
+ $data['lang']=$this->muser->user['lang'];
+
+ $data['title'] = hun() ? 'ARCHLine.XP Letöltés - Diákváltozat' : 'ARCHLine.XP Download - Student';
+ $data['tartalom'] = 'downloads/student';
+ $data['javascript'] = array('downloads_stud');
+ $data['csik'] = array('home','downloads');
+ $this->load->view('site',$data);
+ }
+
+ function studentv2(){
+
+ redirect('downloads');
+
+ $data['ctr'] = hun() ? $this->mctr->get_all_ctr('ctrNameHun') : $this->mctr->get_all_ctr();
+ $data['lang']=$this->muser->user['lang'];
+
+
+ $data['title'] = hun() ? 'ARCHLine.XP Építészet letöltés - Diákváltozat' : 'ARCHLine.XP Download - Student';
+ $data['tartalom'] = 'downloads/studentv2';
+ $data['javascript'] = array('downloads_stud');
+ $data['csik'] = array('home','downloads');
+ $this->load->view('site',$data);
+ }
+
+ function student2009()
+ {
+ $data['aktiv']=5;
+
+ $data['lang']=$this->muser->user['lang'];
+ $data['tartalom']='downloads/student2009';
+ $data['javascript'] = array('prototype');
+ $data['csik']=array('home','downloads');
+ $this->load->view('site',$data);
+ }
+
+ function itc()
+ {
+ Header("HTTP/1.1 301 Moved Permanently");
+ if(hun())
+ header("Location: /page/show/462");
+ else
+ Header("Location: /page/show/469");
+ exit;
+
+ $data['aktiv']=6;
+ $data['ctr'] = hun() ? $this->mctr->get_all_ctr('ctrNameHun') : $this->mctr->get_all_ctr();
+ $data['lang']=$this->muser->user['lang'];
+
+ $data['title'] = hun() ? 'ARCHLine.XP Letöltés - ITC' : 'ARCHLine.XP Download - ITC';
+ $data['tartalom']='downloads/itc';
+ $data['csik']=array('home','downloads');
+ $data['javascript'] = array('prototype');
+ $this->load->view('site',$data);
+ }
+
+ function validate()
+ {
+ $this->load->helper('email');
+
+ $email = ($this->input->post('strEMail') && $this->input->post('strEMail')!="") ? $this->input->post('strEMail') : $this->input->post('email');
+ $do = $this->input->post('do');
+
+ $record['stat_lang']=$this->muser->user['lang'];
+ $record['stat_date']=time();
+
+ if($do && valid_email($email))
+ {
+ $code = md5($this->config->item('salt').time().$email.$do);
+
+ $mezok = array('strName1','strName2','strCompany','strStreet','strCity','strZip','ctrName','strEMail','strTel','nUserProf');
+ $infotomb = array();
+ foreach($mezok as $mezo)
+ $infotomb[$mezo] = $this->input->post($mezo);
+
+ if($do == 'trial')
+ {
+ if($this->input->post('public')=='on' && (!$this->input->post('cim') || $this->input->post('cim')==''))
+ redirect('downloads');
+
+ //if( $_SERVER['REMOTE_ADDR']=='87.242.17.127' ){
+ $record['stat_version'] = 'trial';
+ $record['stat_email'] = $this->input->post('strEMail');
+ $record['stat_first'] = trim($this->input->post('strName1')." ".$this->input->post('strName2'));
+ $record['stat_country'] = $this->input->post('ctrName');
+ $record['stat_lang'] = $this->muser->user['lang'];
+ $record['stat_tel'] = $this->input->post('strTel');
+ $record['stat_cim'] = $this->input->post('ctrName')." ".$this->input->post('strCity').' '.$this->input->post('strStreet').' '.$this->input->post('strZip');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ $record['info'] = json_encode($infotomb);
+ //}
+ /*else{
+ $record['stat_version'] = 'trial';
+ $record['stat_email'] = $email;
+ $record['stat_first'] = $this->input->post('first');
+ $record['stat_country'] = $this->input->post('country');
+ $record['stat_lang'] = $this->muser->user['lang'];
+ $record['stat_tel'] = $this->input->post('tel');
+ $record['stat_cim'] = $this->input->post('cim');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ if(hun())
+ $record['info'] = $this->input->post('szakmai');
+ }*/
+
+ if( $this->input->post('infok') == "on" ){
+ $record['stat_last'] = $this->input->post('infok');
+ }
+
+
+ $this->db->insert('download_stats_temp',$record);
+
+ //sending the e-mail
+ $mail_vars['first'] = $this->muser->string_to_code($this->input->post('first'));
+ $mail_vars['email'] = $this->input->post('email',true);
+
+ //set the authenticating link
+ $mail_vars['confirm_link'] = hun() ? 'http://archline.hu/downloads/confirm/' . $code : 'http://www.archlinexp.com/downloads/confirm/' . $code;
+
+ //setting and sending the email
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_hun';
+ $this->email->subject('ARCHLine.XP letoltes');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ else
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_eng';
+ $this->email->subject('ARCHLine.XP Download');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+
+ //$this->email->send($mail_vars['email'],'smtp');
+ $this->email->send($email,'smtp');
+
+
+ redirect('downloads/sentconf');
+ }
+
+ elseif($do=='student')
+ {
+ if($this->input->post('public_std')=='on' && (!$this->input->post('cim_std') || $this->input->post('cim_std')==''))
+ redirect('downloads/student');
+
+ $record['stat_version'] = 'student';
+ $record['stat_email'] = $email;
+ $record['stat_first'] = $this->input->post('first_std');
+ $record['stat_country'] = $this->input->post('country_std');
+ $record['stat_cim'] = $this->input->post('cim_std');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ $record['stat_lang'] = $this->muser->user['lang'];
+ $record['stat_school'] = $this->input->post('school_std');
+
+ if( $this->input->post('infok') == "on" ){
+ $record['stat_last'] = $this->input->post('infok');
+ }
+
+ $this->db->insert('download_stats_temp', $record);
+
+ //sending the e-mail
+ $mail_vars['first'] = $this->muser->string_to_code($this->input->post('first'));
+ $mail_vars['email'] = $email;
+
+ //set the authenticating link
+ $mail_vars['confirm_link'] = hun() ? 'http://archline.hu/downloads/confirm/' . $code : 'http://www.archlinexp.com/downloads/confirm/' . $code;
+
+ //setting and sending the email
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_hun';
+ $this->email->subject('ARCHLine.XP letoltes');
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+ }
+ else
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_eng';
+ $this->email->subject('ARCHLine.XP Download');
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+ }
+
+ $this->email->send($mail_vars['email'], 'smtp');
+
+ redirect('downloads/sentconf');
+ }
+ elseif($do=='itc')
+ {
+ $record['stat_version']='trial';
+ $record['stat_email']=$this->input->post('email_std');
+
+ $record['stat_first'] = $this->input->post('first_itc',true);
+ $record['stat_country'] = $this->input->post('country_itc',true);
+
+
+
+ $this->db->insert('download_stats',$record);
+
+ // E-Mail küldés
+ $mail_vars['file'] = $this->muser->get_setting('itc_'.$this->muser->user['lang']);
+ $mail_vars['url'] = $this->config->item('base_url').$mail_vars['file'];
+
+ $mail_vars['lang']=$this->muser->user['lang'];
+ $mail_vars['version']='itc';
+
+ $mail_vars['first'] = $this->muser->string_to_code($this->input->post('first_itc',true));
+ $mail_vars['country'] = $this->muser->string_to_code($this->input->post('country_itc',true));
+ $mail_vars['email'] = $this->input->post('email',true);
+
+ ///////////
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+ $this->email->setTextCharset('UTF-8');
+
+ $mail_vars['archline'] = $this->input->post('prog_archline');
+ $mail_vars['autocad'] = $this->input->post('prog_autocad');
+ $mail_vars['archicad'] = $this->input->post('prog_archicad');
+
+ if($mail_vars['archline'] == 1)
+ {
+ $mail_vars['archline'] = 'X';
+ }
+ if($mail_vars['autocad'] == 1)
+ {
+ $mail_vars['autocad'] = 'X';
+ }
+ if($mail_vars['archicad'] == 1)
+ {
+ $mail_vars['archicad'] = 'X';
+ }
+
+ $this->email->from('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $mail_vars['mailcontent']='downloads/mail_itc_hun';
+ $mail_vars['demourl']=$this->muser->get_setting('itc',$this->muser->user['lang']);
+ $this->email->subject('ITC Items');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ else
+ {
+ $mail_vars['mailcontent']='downloads/mail_itc_eng';
+ $mail_vars['demourl']=$this->muser->get_setting('itc',$this->muser->user['lang']);
+ $this->email->subject('ITC Items');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+
+ //$this->load->view('downloads/mail_itc_hun',$mail_vars);
+ $this->email->send($mail_vars['email'],'smtp');
+
+ // Mail nekünk is
+
+ $this->email->clear();
+ $this->email->setTextCharset('UTF-8');
+
+ if(hun())
+ {
+ $this->email->from('info@cadline.hu', 'CadLine');
+ $this->email->subject('ITC Items Letöltés');
+ // $this->email->message($this->load->view('business/report_dl_itc',$mail_vars,true));
+ }
+ else
+ {
+ $this->email->from('info@cadline.hu', 'CadLine');
+ $this->email->subject('ITC Items Download');
+ // $this->email->message($this->load->view('business/report_dl_itc',$mail_vars,true));
+ }
+
+ $this->email->send('info@cadline.hu','smtp');
+
+ redirect('downloads/sent');
+ }
+ elseif($do=='3months')
+ {
+ $record['stat_version']='3months';
+ $record['stat_email']=$email;
+ $record['stat_first'] = $this->input->post('nev',true);
+ $record['stat_cim'] = $this->input->post('cim',true);
+ $record['stat_tel'] = $this->input->post('tel',true);
+ $record['stat_fax'] = $this->input->post('fax',true);
+ $record['stat_pron'] = $this->input->post('pron',true);
+ $record['stat_company'] = $this->input->post('cegnev',true);
+ $record['stat_ucAUC'] = $this->input->post('cb1',true);
+ $record['stat_ucARC'] = $this->input->post('cb2',true);
+ $record['stat_ucVEW'] = $this->input->post('cb3',true);
+ $record['stat_ucJWC'] = $this->input->post('cb4',true);
+ $record['stat_ucART'] = $this->input->post('cb5',true);
+ $record['stat_ucGSK'] = $this->input->post('cb6',true);
+ $record['stat_ucDRC'] = $this->input->post('cb7',true);
+ $record['stat_ucSSO'] = $this->input->post('cb8',true);
+ $record['stat_ucELS'] = $this->input->post('other',true);
+ $record['stat_opinion'] = $this->input->post('comment',true);
+
+ //$record['host'] gethostbyaddr($_SERVER['remote_addr']);
+
+
+ $this->db->insert('download_stats',$record);
+
+ // E-Mail küldés
+ $mail_vars['file'] = $this->muser->get_setting('3months',$this->muser->user['lang']);
+ $mail_vars['url'] = $this->config->item('base_url').$mail_vars['file'];
+
+ $mail_vars['lang']=$this->muser->user['lang'];
+ $mail_vars['version']='trial';
+
+ $mail_vars['name'] = $this->input->post('nev',true);
+ $mail_vars['pron'] = $this->input->post('pron',true);
+ $mail_vars['email'] = $this->input->post('email');
+ $mail_vars['tel'] = $this->input->post('tel',true);
+ $mail_vars['fax'] = $this->input->post('fax',true);
+ $mail_vars['cim'] = $this->input->post('cim',true);
+
+ $mail_vars['demourl']=$this->muser->get_setting('3months',$this->muser->user['lang']);
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ $this->email->from('info@cadline.hu', 'ARCHLine.XP Support');
+
+ $this->email->subject('ARCHLine.XP');
+ $this->email->message($this->load->view('downloads/mail_3m_jap',$mail_vars,true));
+
+ $this->email->send($mail_vars['email'],'smtp');
+
+ $this->email->clear();
+
+ redirect('downloads/sent');
+ }
+ elseif($do=='japtrial')
+ {
+ $record['stat_version']='japtrial';
+ $record['stat_email']=$email;
+ $record['stat_country'] = 'jap';
+ $record['stat_first'] = $this->input->post('nev',true);
+ $record['stat_cim'] = $this->input->post('cim',true);
+ $record['stat_tel'] = $this->input->post('tel',true);
+ $record['stat_fax'] = $this->input->post('fax',true);
+ $record['stat_pron'] = $this->input->post('pron',true);
+ $record['stat_company'] = $this->input->post('cegnev',true);
+ $record['stat_ucAUC'] = $this->input->post('cb1',true);
+ $record['stat_ucARC'] = $this->input->post('cb2',true);
+ $record['stat_ucVEW'] = $this->input->post('cb3',true);
+ $record['stat_ucJWC'] = $this->input->post('cb4',true);
+ $record['stat_ucART'] = $this->input->post('cb5',true);
+ $record['stat_ucGSK'] = $this->input->post('cb6',true);
+ $record['stat_ucDRC'] = $this->input->post('cb7',true);
+ $record['stat_ucSSO'] = $this->input->post('cb8',true);
+ $record['stat_ucELS'] = $this->input->post('other',true);
+ $record['stat_opinion'] = $this->input->post('comment',true);
+
+ $this->db->insert('download_stats',$record);
+
+ // E-Mail küldés
+ $mail_vars['file'] = $this->muser->get_setting('3months',$this->muser->user['lang']);
+ $mail_vars['url'] = $this->config->item('base_url').$mail_vars['file'];
+
+ $mail_vars['lang']=$this->muser->user['lang'];
+ $mail_vars['version']='trial';
+
+ $mail_vars['name'] = $this->input->post('nev',true);
+ $mail_vars['pron'] = $this->input->post('pron',true);
+ $mail_vars['email'] = $this->input->post('email');
+ $mail_vars['tel'] = $this->input->post('tel',true);
+ $mail_vars['fax'] = $this->input->post('fax',true);
+ $mail_vars['cim'] = $this->input->post('cim',true);
+
+ $mail_vars['demourl']=$this->muser->get_setting('trial',$this->muser->user['lang']);
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ $this->email->from('info@cadline.hu', 'ARCHLine.XP Support');
+
+
+ $this->email->subject('ARCHLine.XP');
+ $this->email->message($this->load->view('downloads/mail_trial_jap',$mail_vars,true));
+
+ $this->email->send($mail_vars['email'],'smtp');
+
+ $this->email->clear();
+
+ redirect('downloads/sent');
+ }
+
+ elseif($do == 'interior')
+ {
+ if($this->input->post('public')=='on' && (!$this->input->post('cim') || $this->input->post('cim')==''))
+ redirect('downloads');
+
+ /*$record['stat_version'] = 'interior';
+ $record['stat_email'] = $email;
+ $record['stat_first'] = $this->input->post('first');
+ $record['stat_country'] = $this->input->post('country');
+ $record['stat_cim'] = $this->input->post('cim');
+ $record['stat_tel'] = $this->input->post('tel');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ $record['stat_lang'] = $this->muser->user['lang'];*/
+ $record['stat_version'] = 'interior';
+ $record['stat_email'] = $this->input->post('strEMail');
+ $record['stat_first'] = trim($this->input->post('strName1')." ".$this->input->post('strName2'));
+ $record['stat_country'] = $this->input->post('ctrName');
+ $record['stat_lang'] = $this->muser->user['lang'];
+ $record['stat_tel'] = $this->input->post('strTel');
+ $record['stat_cim'] = $this->input->post('ctrName')." ".$this->input->post('strCity').' '.$this->input->post('strStreet').' '.$this->input->post('strZip');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ $record['info'] = json_encode($infotomb);
+
+ if( $this->input->post('infok') == "on" ){
+ $record['stat_last'] = $this->input->post('infok');
+ }
+
+ /*if(hun())
+ $record['info'] = $this->input->post('szakmai');*/
+
+
+ $this->db->insert('download_stats_temp', $record);
+
+ //sending the e-mail
+ $mail_vars['first'] = $this->muser->string_to_code($this->input->post('first'));
+ $mail_vars['email'] = $this->input->post('strEMail',true);
+
+ //set the authenticating link
+ $mail_vars['confirm_link'] = hun() ? 'http://archline.hu/downloads/confirm/' . $code : 'http://www.archlinexp.com/downloads/confirm/' . $code;
+
+ //setting and sending the email
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_hun';
+ $this->email->subject('ARCHLine.XP letoltes');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ elseif(esp())
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_esp';
+ $this->email->subject('Descargar ARCHLine.XP');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ else
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_eng';
+ $this->email->subject('ARCHLine.XP Download');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+
+ $this->email->send($email,'smtp');
+ //print "email: ".$email;
+
+ // átirányítás
+ redirect('downloads/sentconf');
+ }
+
+
+ elseif($do == 'free')
+ {
+ return;
+
+ if($this->input->post('public')=='on' && (!$this->input->post('cim') || $this->input->post('cim')==''))
+ redirect('free');
+
+ $record['stat_version'] = 'free';
+ $record['stat_email'] = $email;
+ $record['stat_first'] = $this->input->post('first');
+ $record['stat_country'] = $this->input->post('country');
+ $record['stat_cim'] = $this->input->post('cim');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ $record['stat_tel'] = $this->input->post('tel');
+ $record['stat_lang'] = $this->muser->user['lang'];
+
+ $this->db->insert('download_stats_temp', $record);
+
+
+ $mail_vars['first'] = $this->muser->string_to_code($this->input->post('first'));
+ $mail_vars['email'] = $this->input->post('email',true);
+
+
+ $mail_vars['confirm_link'] = hun() ? 'http://archline.hu/downloads/confirm/' . $code : 'http://www.archlinexp.com/downloads/confirm/' . $code;
+
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_hun';
+ $this->email->subject('ARCHLine.XP letoltes');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ elseif(esp())
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_esp';
+ $this->email->subject('Descargar ARCHline XP');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ else
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_eng';
+ $this->email->subject('ARCHLine.XP Download');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+
+ $this->email->send($email,'smtp');
+
+
+ redirect('downloads/sentconf');
+ }
+
+ elseif($do == 'photo')
+ {
+ return;
+
+ if($this->input->post('public')=='on' && (!$this->input->post('cim') || $this->input->post('cim')==''))
+ redirect('photo');
+
+ $record['stat_version'] = 'photo';
+ $record['stat_email'] = $email;
+ $record['stat_first'] = $this->input->post('first');
+ $record['stat_country'] = $this->input->post('country');
+ $record['stat_cim'] = $this->input->post('cim');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ $record['stat_tel'] = $this->input->post('tel');
+ $record['stat_lang'] = $this->muser->user['lang'];
+
+ if( $this->input->post('infok') == "on" ){
+ $record['stat_last'] = $this->input->post('infok');
+ }
+
+ if(hun())
+ $record['info'] = $this->input->post('szakmai');
+
+ $this->db->insert('download_stats_temp', $record);
+
+
+ $mail_vars['first'] = $this->muser->string_to_code($this->input->post('first'));
+ $mail_vars['email'] = $this->input->post('email',true);
+
+
+ $mail_vars['confirm_link'] = hun() ? 'http://archline.hu/downloads/confirm/' . $code : 'http://www.archlinexp.com/downloads/confirm/' . $code;
+
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_hun';
+ $this->email->subject('ARCHLine.XP Photo Edition letoltes');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ elseif(esp())
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_esp';
+ $this->email->subject('Descargar ARCHline XP');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ else
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_eng';
+ $this->email->subject('ARCHLine.XP Photo Edition Download');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+
+ $this->email->send($mail_vars['email'],'smtp');
+
+
+ redirect('downloads/sentconf');
+ }
+
+ elseif($do == 'reader'){
+
+ $record['stat_version'] = 'reader';
+ $record['stat_email'] = $this->input->post('strEMail');
+ $record['stat_first'] = trim($this->input->post('strName1')." ".$this->input->post('strName2'));
+ $record['stat_country'] = $this->input->post('ctrName');
+ $record['stat_lang'] = $this->muser->user['lang'];
+ $record['stat_tel'] = $this->input->post('strTel');
+ $record['stat_cim'] = $this->input->post('ctrName')." ".$this->input->post('strCity').' '.$this->input->post('strStreet').' '.$this->input->post('strZip');
+ $record['stat_code'] = $code;
+ $record['stat_date'] = time();
+ $record['info'] = json_encode($infotomb);
+
+ if( $this->input->post('infok') == "on" ){
+ $record['stat_last'] = $this->input->post('infok');
+ }
+
+ $this->db->insert('download_stats_temp', $record);
+
+ //sending the e-mail
+ $mail_vars['first'] = $this->muser->string_to_code($record['stat_first']);
+ $mail_vars['email'] = $this->input->post('strEMail',true);
+
+ //set the authenticating link
+ $mail_vars['confirm_link'] = hun() ? 'http://archline.hu/downloads/confirm/' . $code : 'http://www.archlinexp.com/downloads/confirm/' . $code;
+
+ //setting and sending the email
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ if(hun()){
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_hun';
+ $this->email->subject('ARCHLine.XP Reader letöltés - regisztráció');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ else{
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'mail/confirm_dl_eng';
+ $this->email->subject('ARCHLine.XP Reader Download - Registration');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+
+ $this->email->send($email,'smtp');
+
+ // átirányítás
+ redirect('downloads/sentconf');
+ }
+
+ else
+ {
+ show_404();
+ }
+ }
+ else
+ {
+ show_404();
+ }
+
+ }
+
+
+ function get()
+ {
+ $download_id = $this->uri->rsegment(3);
+
+ if($download_id==1000){
+ $download_id = (hun()) ? 10 : 58;
+ }
+
+ if(!$download_id || !is_numeric($download_id))
+ {
+ show_404();
+ }
+
+ $record = $this->mdownloads->get_row($download_id);
+ if(!$record)
+ {
+ show_404();
+ }
+
+ $this->db->simple_query("update downloads set download_count=download_count+1 where download_id=$download_id");
+
+ //redirect($record->download_file);
+ header("Location: ".$record->download_file);
+ }
+
+ function sentconf()
+ {
+ $data['title'] = hun() ? 'ARCHLine.XP Letöltés' : 'ARCHLine.XP Download';
+ $data['tartalom']='downloads/sentconf';
+ $data['csik']=array('Home','Download');
+ $data['lang']=$this->muser->user['lang'];
+
+ $this->load->view('site',$data);
+ }
+
+ function sentstu()
+ {
+ if( !hun() ){
+ include('application/helpers/video.php');
+ //$videohtml = video_html('workshop_beginner_level');
+ $videok = $this->db->query("SELECT * FROM videos WHERE csoport='workshop_beginner_level' AND sorszam > 0 ORDER BY sorszam")->result();
+ $csoport2 = $this->db->query("SELECT * FROM videogroups WHERE azon='workshop_beginner_level'")->row();
+ $videohtml = video_strcsere('workshop_beginner_level',$csoport2,$videok);
+
+ $data['videohtml'] = $videohtml;
+ $data['style'] = array( 'jquery.jscrollpane' );
+ $data['javascript'] = array( 'jquery.mousewheel.min', 'jscrollpane/jquery.jscrollpane.min' );
+ }
+
+
+ $data['title'] = hun() ? 'ARCHLine.XP Diákváltozat Letöltés - Sikeres' : 'ARCHLine.XP Student Download - Successful';
+ $data['tartalom']='downloads/sentstu';
+ $data['csik']=array('Home','Download');
+ $data['lang']=$this->muser->user['lang'];
+
+ $this->load->view('site',$data);
+ }
+
+
+ function senttri()
+ {
+ if( !hun() ){
+ include('application/helpers/video.php');
+ //$videohtml = video_html('workshop_beginner_level');
+ $videok = $this->db->query("SELECT * FROM videos WHERE csoport='workshop_beginner_level' AND sorszam > 0 ORDER BY sorszam")->result();
+ $csoport2 = $this->db->query("SELECT * FROM videogroups WHERE azon='workshop_beginner_level'")->row();
+ $videohtml = video_strcsere('workshop_beginner_level',$csoport2,$videok);
+
+ $data['videohtml'] = $videohtml;
+ $data['style'] = array( 'jquery.jscrollpane' );
+ $data['javascript'] = array( 'jquery.mousewheel.min', 'jscrollpane/jquery.jscrollpane.min' );
+ }
+
+ $data['title'] = hun() ? 'ARCHLine.XP Próbaverzió Letöltés - Sikeres' : 'ARCHLine.XP Trial Download - Successful';
+ $data['tartalom']='downloads/senttri';
+ $data['csik']=array('home','downloads');
+ $data['lang']=$this->muser->user['lang'];
+
+ $this->load->view('site',$data);
+ }
+
+ function sentint()
+ {
+ if( !hun() ){
+ include('application/helpers/video.php');
+ //$videohtml = video_html('workshop_beginner_level');
+ $videok = $this->db->query("SELECT * FROM videos WHERE csoport='workshop_beginner_level' AND sorszam > 0 ORDER BY sorszam")->result();
+ $csoport = $this->db->query("SELECT * FROM videogroups WHERE azon='workshop_beginner_level'")->row();
+ $videohtml = video_strcsere('workshop_beginner_level',$csoport,$videok);
+
+ $data['videohtml'] = $videohtml;
+ $data['style'] = array( 'jquery.jscrollpane' );
+ $data['javascript'] = array( 'jquery.mousewheel.min', 'jscrollpane/jquery.jscrollpane.min' );
+ }
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Letöltés - Sikeres' : 'ARCHLine.XP Interior Download - Successful';
+ $data['tartalom']='downloads/sentint';
+ $data['csik']=array('home','downloads');
+ $data['lang']=$this->muser->user['lang'];
+
+ $this->load->view('site',$data);
+ }
+
+ function sent()
+ {
+ redirect('downloads/senttri');
+ }
+
+
+ function updates()
+ {
+
+ $data['heading']=$this->mdownloads->get_heading('updates');
+ $data['downloads']=$this->mdownloads->get_category('updates',$this->muser->user['lang']);
+ $data['aktiv']=2;
+
+ $data['lang']=$this->muser->user['lang'];
+ $data['tartalom']='downloads/list';
+ $data['csik']=array('home','downloads','updates');
+ $data['title'] = hun() ? 'ARCHline.XP CAD szoftver - Frissítések letöltés' : 'ARCHline.XP CAD Software - Download Updates';
+ $this->load->view('site',$data);
+ }
+
+ function support()
+ {
+
+ $data['heading']=$this->mdownloads->get_heading('support');
+ $data['downloads']=$this->mdownloads->get_category('support',$this->muser->user['lang']);
+ $data['aktiv']=4;
+
+ $data['lang']=$this->muser->user['lang'];
+ $data['title'] = hun() ? 'ARCHLine.XP Támogatás' : 'ARCHLine.XP Support';
+ $data['tartalom']='downloads/list';
+ $data['csik']=array('home','downloads','support');
+ $this->load->view('site',$data);
+ }
+
+ function drivers()
+ {
+ $data['heading']=$this->mdownloads->get_heading('drivers');
+ $data['downloads']=$this->mdownloads->get_category('drivers',$this->muser->user['lang']);
+ $data['aktiv']=3;
+
+ $data['lang']=$this->muser->user['lang'];
+
+ $data['title'] = hun() ? 'ARCHLine.XP Driverek' : 'ARCHLine.XP Drivers';
+ $data['tartalom']='downloads/list';
+ $data['csik']=array('home','downloads','drivers');
+ $this->load->view('site',$data);
+ }
+
+ function confirm()
+ {
+ if(!$this->uri->segment(3))
+ redirect('');
+ elseif($this->uri->segment(3) == "sarga"){
+ $sargakonyvbe = array();
+
+ //$sargaorszagok = $this->db->get('`clusers_eng`.`cl_countries`')->result_array();
+ $sargaorszagok = $this->db->query('SELECT * FROM `'.CRMADATBAZIS.'`.`countries` WHERE show_db LIKE "%clusers_eng%"')->result_array();
+ foreach( $sargaorszagok as $orszag )
+ $sargakonyvbe[$orszag['ctrID']] = strtolower($orszag['ctrNameEng']);
+
+ $sargakonyvbe[44] = "united kingdom";
+ $sargakonyvbe[70] = "russia";
+ unset($sargakonyvbe[34], $sargakonyvbe[67], $sargakonyvbe[77]);
+
+ print "";print_r($sargakonyvbe);print"
";
+ print " kod: ".$tomb->nCtrID = array_search('czech republic', $sargakonyvbe);
+ }
+ else
+ {
+ $code = $this->uri->segment(3);
+
+ $query = $this->db->where('stat_code', $code)->limit(1)->get('download_stats_temp');
+
+ $result = $query->result_array();
+
+ if(empty($result))
+ {
+ $data['title'] = hun() ? 'ARCHLine.XP Letöltés - Hiba' : 'ARCHLine.XP Download - Error';
+ $data['tartalom'] = 'error/mail_temp_notexists';
+ $data['csik'] = array('home', 'downloads');
+ $data['lang'] = $this->muser->user['lang'];
+
+ $this->load->view('site', $data);
+ }
+ else
+ {
+ $kekkonyvbe = array("magyarország","hungary","magyar","slovakia","szlovákia","románia","romania");
+ $pinkkonyvbe = array("spanyolország","spain","argentína","argentina","costa rica","portugália","portugal",/*"csehország","czech republic",*/"mexico","mexikó");
+ $sargakonyvbe = array();
+ $egyikbese = array("ausztria","austria","olaszország","italy","németország","germany","dél-korea","korea, south","észak-korea","korea, north");
+
+ $sargaorszagok = $this->db->query('SELECT * FROM `'.CRMADATBAZIS.'`.`countries` WHERE show_db LIKE "%clusers_eng%"')->result_array();
+ foreach( $sargaorszagok as $orszag )
+ $sargakonyvbe[$orszag['ctrID']] = strtolower($orszag['ctrNameEng']);
+
+ $sargakonyvbe[44] = "united kingdom";
+ $sargakonyvbe[70] = "russia";
+ unset($sargakonyvbe[34], $sargakonyvbe[39], $sargakonyvbe[43], $sargakonyvbe[67], $sargakonyvbe[77], $sargakonyvbe[420]);
+
+ foreach($result as $row)
+ {
+ foreach($row as $k => $r){
+ if($k!='stat_code' && $k!='stat_id')
+ $record[$k] = $row[$k];
+ }
+
+ $jsinfo = json_decode($row['info']);
+
+ $record['stat_date'] = time();
+ $kisorszag = strtolower($record['stat_country']);
+
+ //inserting to the final table
+ $this->db->insert('download_stats', $record);
+
+ // kek konyvbe is ha magyar vagy szlovák
+ if( in_array(strtolower($record['stat_country']),$kekkonyvbe) ){
+ // email szerepel-e az email clusersben
+ $this->load->model('mclusers');
+ $nUserID = $this->mclusers->get_nUserIDByEmailFirst($record['stat_email']);
+
+ $info22 = "Verzió: ".$row['stat_version'];
+ $info22 .= " , cím: ".$row['stat_cim'];
+ $info22 .= " , tel: ".$row['stat_tel'];
+
+ /*if( $row['info'] != "" )
+ $info22 .= ", ".$row['info'];*/
+
+ if( $row['stat_school'] != "" )
+ $info22 .= ", iskola: ".$row['stat_school'];
+
+
+ if($nUserID){
+ $this->mclusers->addEvent($nUserID, "117", $info22);
+ $frissiteni = (array)$jsinfo;
+ $this->mclusers->userUpdateIfEmpty($nUserID,$frissiteni);
+ }else{
+ // user beszúrás
+ $tomb->strName = $row['stat_first'];
+ $tomb->strTel = $row['stat_tel'];
+ $tomb->strEMail = $row['stat_email'];
+ $tomb->strStreet = $jsinfo->strStreet;
+ $tomb->strCity = $jsinfo->strCity;
+ $tomb->strZip = $jsinfo->strZip;
+ $tomb->strCompany = $jsinfo->strCompany;
+ $tomb->nUserProf = $jsinfo->nUserProf;
+ $tomb->nUserType = "0";
+ $tomb->nCtrID = "36";
+
+ switch(strtolower($record['stat_country'])){
+ case "slovakia":
+ case "szlovákia":
+ $tomb->nCtrID = "421";
+ break;
+ case "romania":
+ case "románia":
+ $tomb->nCtrID = "40";
+ break;
+ }
+
+
+
+ if( $row['stat_last'] == "on" )
+ $tomb->strInfo = "letöltés: '".lang('down_int_keres')."'";
+
+ if( $row['stat_version'] != "student" )
+ $tomb->nEsely = "3";
+ /*else
+ $tomb->nUserProf = "10";
+
+ if( $row['stat_version'] == "interior" )
+ $tomb->nUserProf = "4";*/
+
+ $nUserID = $this->mclusers->addUserHun($tomb);
+
+ // email beszúrás
+ $tomb2->email = $row['stat_email'];
+ $tomb2->nUserID = $nUserID;
+ $tomb2->default = "1";
+ $tomb2->active = "1";
+ $tomb2->deleted = "0";
+
+ $this->mclusers->addUserEmailHun($tomb2);
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->addEvent($nUserID, "117", $info22);
+ else
+ $this->mclusers->addEvent($nUserID, "105", $info22);
+
+ }
+
+ }
+ // end kek konyvbe
+
+ // sarga konyvbe is ha az orszag "United Kingdom"
+ //elseif( $record['stat_country'] == 'United Kingdom' || in_array($kisorszag,$sargakonyvbe) || ( !in_array($kisorszag,$egyikbese) && !in_array($kisorszag,$pinkkonyvbe) ) ){
+ elseif( !in_array($kisorszag,$egyikbese) ){
+ // email szerepel-e az email clusersben
+ $this->load->model('mclusers');
+ $nUserID = $this->mclusers->get_nUserIDByEmail($row['stat_email'],'eng');
+
+
+ $info22 = "Version: ".$row['stat_version'];
+ $info22 .= " , address: ".$row['stat_cim'];
+ $info22 .= " , tel: ".$row['stat_tel'];
+
+ if( $row['stat_school'] != "" )
+ $info22 .= ", school: ".$row['stat_school'];
+
+
+ if($nUserID){
+ $this->mclusers->addEvent($nUserID, "167", $info22, 'eng');
+ }else{
+ // user beszúrás
+ $tomb->strName = $row['stat_first'];
+ $tomb->strTel = $row['stat_tel'];
+ $tomb->strEMail = $row['stat_email'];
+ /*$tomb->strCity = substr($row['stat_cim'], 0, 30);
+ if( strlen($row['stat_cim']) > 30 )
+ $tomb->strStreet = substr($row['stat_cim'], 30);*/
+ // $tomb->dateInsert = time();
+ $tomb->strStreet = $jsinfo->strStreet;
+ $tomb->strCity = $jsinfo->strCity;
+ $tomb->strZip = $jsinfo->strZip;
+ $tomb->strCompany = $jsinfo->strCompany;
+ $tomb->nUserProf = $jsinfo->nUserProf;
+ $tomb->nUserType = "0";
+
+ if( $record['stat_country'] == 'United Kingdom' || in_array($kisorszag,$sargakonyvbe) ){
+ $tomb->nCtrID = array_search(strtolower($record['stat_country']), $sargakonyvbe);
+ }else{
+ //$tomb->strCompany = $record['stat_country'];
+ $tomb->nCtrID = 0;
+ }
+
+ if( $row['stat_version'] != "student" )
+ $tomb->nEsely = "3";
+
+ /*if( $row['stat_version'] == "interior" )
+ $tomb->nUserProf = "4";*/
+ if( $row['stat_last'] == "on" )
+ //$tomb->strInfo = "download: 'Send me software updates for the latest tips & tricks, special offers and product information.'";
+ $tomb->strInfo = "download: ".lang('down_int_keres');
+
+
+ $nUserID = $this->mclusers->addUserEng($tomb);
+
+
+ // email beszúrás
+ $tomb2->email = $row['stat_email'];
+ $tomb2->nUserID = $nUserID;
+ $tomb2->default = "1";
+ $tomb2->active = "1";
+ $tomb2->deleted = "0";
+
+ $this->mclusers->addUserEmailEng($tomb2);
+ $this->mclusers->addEvent($nUserID, "167", $info22, 'eng');
+
+ }
+
+ }
+ // end sarga konyvbe
+
+ // rozsaszin konyvbe ha spanyol
+ elseif( $record['stat_country'] == 'Spain' || $record['stat_country'] == 'Spanyolország' || in_array(strtolower($record['stat_country']),$pinkkonyvbe) ){
+ // email szerepel-e az email clusersben
+ $this->load->model('mclusers');
+ $nUserID = $this->mclusers->get_nUserIDByEmail($row['stat_email'],'esp');
+
+ $row['stat_cim'] = $row['stat_cim'];
+
+ $info22 = "Verzió: ".$row['stat_version'];
+ $info22 .= " , cim: ".$row['stat_cim'];
+ $info22 .= " , tel: ".$row['stat_tel'];
+
+ if( $row['stat_school'] != "" )
+ $info22 .= ", iskola: ".$row['stat_school'];
+
+
+ if($nUserID){
+ $this->mclusers->addEvent($nUserID, "269", $info22, 'esp');
+ }else{
+ // user beszúrás
+ $tomb->strName = $row['stat_first'];
+ $tomb->strTel = $row['stat_tel'];
+ $tomb->strEMail = $row['stat_email'];
+
+ $tomb->strStreet = $jsinfo->strStreet;
+ $tomb->strCity = $jsinfo->strCity;
+ $tomb->strZip = $jsinfo->strZip;
+ $tomb->strCompany = $jsinfo->strCompany;
+ $tomb->nUserProf = $jsinfo->nUserProf;
+ $tomb->nUserType = "0";
+ switch( strtolower($record['stat_country']) ){
+ case "argentina":
+ case "argentína":
+ $tomb->nCtrID = 54;
+ break;
+ case "portugália":
+ case "portugal":
+ $tomb->nCtrID = 351;
+ break;
+ case "costa rica":
+ $tomb->nCtrID = 506;
+ break;
+ case "csehország":
+ case "czech republic":
+ $tomb->nCtrID = 420;
+ break;
+ default:
+ $tomb->nCtrID = 34;
+ }
+
+ if( $row['stat_version'] != "student" )
+ $tomb->nEsely = "3";
+
+ if( $row['stat_last'] == "on" )
+ $tomb->strInfo = "download: 'Send me software updates for the latest tips & tricks, special offers and product information.'";
+
+ // kéne? SET NAMES latin1 COLLATE latin1_swedish_ci;
+ // $this->db->db_set_charset("latin1", "latin1_swedish_ci");
+ $nUserID = $this->mclusers->addUserSpa($tomb);
+
+
+ // email beszúrás
+ $tomb2->email = $row['stat_email'];
+ $tomb2->nUserID = $nUserID;
+ $tomb2->default = "1";
+ $tomb2->active = "1";
+ $tomb2->deleted = "0";
+
+ $this->mclusers->addUserEmailEng($tomb2);
+
+ $this->mclusers->addEvent($nUserID, "269", $info22, 'esp');
+
+ }
+
+ }
+ // end rozsaszin konyvbe
+
+ if($row['stat_version']=='trial')
+ {
+ //sending email
+ $mail_vars['first'] = $row['stat_first'];
+ $mail_vars['country'] = $row['stat_country'];
+ $mail_vars['email'] = $row['stat_email'];
+ //$mail_vars['demourl'] = $this->muser->get_setting('trial',$this->muser->user['lang']);
+
+ //setting and sending the email
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $mail_vars['demourl'] = "http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_32bit_setup.exe";
+ $mail_vars['demourl64'] = "http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_64bit_setup.exe";
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_trial_hun';
+ $this->email->subject('ARCHLine.XP letoltes');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+ else
+ {
+ $mail_vars['demourl'] = "http://www.archlinexp.com/public/downloads/eng/ARCHLINE_XP2014_32bit_setup.exe"; //"http://download.archlinexp.com/ARCHLINE_XP2013_32bit_setup.exe";
+ $mail_vars['demourl64'] = "http://www.archlinexp.com/public/downloads/eng/ARCHLINE_XP2014_64bit_setup.exe"; //"http://download.archlinexp.com/ARCHLINE_XP2013_64bit_setup.exe";
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_trial_eng';
+ $this->email->subject('ARCHLine.XP Download');
+ $this->email->message($this->load->view('mail',$mail_vars,true));
+ }
+
+ $this->email->send($row['stat_email'],'smtp');
+
+ //deleting from the temporary table
+ $this->db->delete('download_stats_temp', array('stat_code' => $code));
+
+ //redirect
+ redirect('downloads/senttri');
+ }
+ elseif($row['stat_version']=='student')
+ {
+ $mail_vars['first'] = $row['stat_first'];
+ $mail_vars['country'] = $row['stat_country'];
+ $mail_vars['email'] = $row['stat_email'];
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->from('info@cadline.hu', 'CadLine');
+
+ if(hun())
+ {
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_student_hun';
+ $mail_vars['demourl'] = $this->muser->get_setting('student', 'hun');
+ $this->email->subject('ARCHLine.XP letoltes');
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+ }
+ else
+ {
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_student_eng';
+ $mail_vars['demourl'] = $this->muser->get_setting('student', 'eng');
+ $this->email->subject('ARCHLine.XP Download');
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+ }
+
+ $this->email->send($row['stat_email'],'smtp');
+
+ //deleting from the temporary table
+ $this->db->delete('download_stats_temp', array('stat_code' => $code));
+
+ redirect('downloads/sentstu');
+ }
+ elseif($row['stat_version']=='interior')
+ {
+ $mail_vars['first'] = $row['stat_first'];
+ $mail_vars['country'] = $row['stat_country'];
+ $mail_vars['email'] = $row['stat_email'];
+
+ if(hun()){
+ $mail_vars['demourl'] = "http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_32bit_setup.exe";
+ $mail_vars['demourl64'] = "http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_64bit_setup.exe";
+ }elseif(esp()){
+ $mail_vars['demourl'] = "http://www.archlinexp.com/public/downloads/eng/ARCHLINE_XP2014_32bit_setup.exe"; //"http://download.archlinexp.com/ARCHLINE_XP2013_32bit_setup.exe";
+ $mail_vars['demourl64'] = "http://www.archlinexp.com/public/downloads/eng/ARCHLINE_XP2014_64bit_setup.exe"; //"http://download.archlinexp.com/ARCHLINE_XP2013_64bit_setup.exe";
+ }
+ else{
+ $mail_vars['demourl'] = "http://www.archlinexp.com/public/downloads/eng/ARCHLINE_XP2014_32bit_setup.exe"; //"http://download.archlinexp.com/ARCHLINE_XP2013_32bit_setup.exe";
+ $mail_vars['demourl64'] = "http://www.archlinexp.com/public/downloads/eng/ARCHLINE_XP2014_64bit_setup.exe"; //"http://download.archlinexp.com/ARCHLINE_XP2013_64bit_setup.exe";
+ }
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if( hun() ){
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_interior_hun';
+ $this->email->subject('ARCHLine.XP Interior Letoltes');
+ }
+ elseif( esp() ){
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_interior_esp';
+ $this->email->subject('Descargar ARCHline XP Interior');
+ }
+ else{
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_interior_eng';
+ $this->email->subject('ARCHLine.XP Interior Trial version download');
+ }
+
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+
+ $this->email->send($mail_vars['email'],'smtp');
+
+ //deleting from the temporary table
+ $this->db->delete('download_stats_temp', array('stat_code' => $code));
+
+ // átirányítás
+ redirect('interior/sentint');
+ }
+
+ elseif($row['stat_version']=='free')
+ {
+ $mail_vars['first'] = $row['stat_first'];
+ $mail_vars['country'] = $row['stat_country'];
+ $mail_vars['email'] = $row['stat_email'];
+
+ if(hun())
+ $mail_vars['demourl'] = "http://www.archlinexp.com/public/downloads/hun/Hun_XP_2010.exe";
+ else
+ $mail_vars['demourl'] = "http://www.archlinexp.com/public/downloads/eng/Eng_XP_2010_FREE.exe";
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if( hun() ){
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_free_hun';
+ $this->email->subject('ARCHLine.XP Free Edition Letoltes');
+ }
+ else{
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_free_eng';
+ $this->email->subject('ARCHLine.XP Free Edition download');
+ }
+
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+
+ $this->email->send($mail_vars['email'],'smtp');
+
+ //deleting from the temporary table
+ $this->db->delete('download_stats_temp', array('stat_code' => $code));
+
+ // átirányítás
+ redirect('free/sentint');
+ }
+
+ elseif($row['stat_version']=='photo')
+ {
+ $mail_vars['first'] = $row['stat_first'];
+ $mail_vars['country'] = $row['stat_country'];
+ $mail_vars['email'] = $row['stat_email'];
+
+ if(hun())
+ $mail_vars['demourl'] = "http://www.cadline.hu/public/downloads/eng/Eng_XP_2010_Photo.exe";
+ else
+ $mail_vars['demourl'] = "http://www.cadline.hu/public/downloads/eng/Eng_XP_2010_Photo.exe";
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+ // $this->email->setFrom('info@cadline.hu', 'CadLine');
+
+ if( hun() ){
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_photo_hun';
+ $this->email->subject('ARCHLine.XP Photo Edition Letoltes');
+ }
+ else{
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $mail_vars['mailcontent'] = 'downloads/mail_photo_eng';
+ $this->email->subject('ARCHLine.XP Photo Edition download');
+ }
+
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+
+ $this->email->send($mail_vars['email'],'smtp');
+
+
+ $this->db->delete('download_stats_temp', array('stat_code' => $code));
+
+
+ redirect('photo/sentint');
+ }
+
+ elseif($row['stat_version']=='reader')
+ {
+ $mail_vars['first'] = $row['stat_first'];
+ $mail_vars['country'] = $row['stat_country'];
+ $mail_vars['email'] = $row['stat_email'];
+ $mail_vars['mailcontent'] = 'downloads/mail_reader';
+ $mail_vars['demourl'] = "http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_Reader_32.exe";
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->addOfficialImages();
+
+
+ if( hun() ){
+ $this->email->setFrom('info@cadline.hu', 'CadLine');
+ $this->email->subject('ARCHLine.XP Reader Letoltes');
+ }
+ else{
+ $this->email->setFrom('info@archlinexp.com', 'CadLine');
+ $this->email->subject('ARCHLine.XP Reader download');
+ }
+
+ $this->email->message($this->load->view('mail', $mail_vars, true));
+ $this->email->send($mail_vars['email'],'smtp');
+
+ //deleting from the temporary table
+ $this->db->delete('download_stats_temp', array('stat_code' => $code));
+
+ // átirányítás
+ redirect('interior/sentint');
+ }
+
+ }
+ }
+ }
+ }
+
+ function workshop(){
+ $this->load->model('mdownloads');
+
+ if( !eng() )
+ $data['heading']=$this->mdownloads->get_heading('support');
+ else
+ $data['heading']='Workshop documentation';
+ $data['downloads']=$this->mdownloads->get_category('workshop',$this->muser->user['lang']);
+ //$data['aktiv']=6;
+
+ $data['support']=true;
+
+ $data['lang']=$this->muser->user['lang'];
+ $data['title'] = hun() ? 'ARCHLine.XP CAD Software - Letöltés' : 'ARCHLine.XP CAD Software - Downloads';
+ $data['tartalom']='downloads/list';
+ $data['csik']=array('home');
+ $this->load->view('site',$data);
+ }
+
+
+ function projects(){
+ $this->load->model('mclusers');
+
+ $temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
+ $email = str_replace("%40","@",end($temptomb));
+
+ $projekt = $this->uri->segment(3);
+
+ $egyezes = "public/downloads/eng/projects/".$projekt.".pro";
+ $info = "Project download: (http://archlinexp.com/public/downloads/eng/projects/".$projekt.".pro)";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "downloads", "projects", 197, $egyezes, $info, "eng", $projekt);
+ else
+ $this->mclusers->levelesemeny($email, "downloads", "projects", 188, $egyezes, $info, "eng", $projekt);
+
+ redirect("public/downloads/eng/projects/".$projekt.".pro");
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/drawingbyhand.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/drawingbyhand.php
new file mode 100644
index 0000000..2da0cc7
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/drawingbyhand.php
@@ -0,0 +1,249 @@
+load->model('mctr');
+
+ $data['tema'] = "Kézzel tervez";
+
+ if(hun())
+ $data['page'] = $this->mpages->get_row(596);
+ else
+ $data['page'] = $this->mpages->get_row(618);
+
+ /*hun() ? $data['ctr']=$this->mctr->get_all_ctr('ctrNameHun') : */$data['ctr']=$this->mctr->get_all_ctr();
+
+ $data['title'] = 'ARCHLine.XP - '.lang('kt_oldalcim');
+ $data['tartalom']='kezzeltervez/index';
+ $data['csik']=array('home','kezzeltervez');
+ $this->load->view('site',$data);
+ }
+
+ function index2(){
+ $this->load->model('mclusers');
+
+ $temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
+ $email = str_replace("%40","@",end($temptomb));
+
+ $egyezes = "drawingbyhand/index";
+ $info = "Kézzel tervez, tervek beküldési oldala megtekintve: archlinexp.com/drawingbyhand/index";
+
+ $this->mclusers->levelesemeny($email, "drawingbyhand", "index2", 156, $egyezes, $info, "eng");
+
+ redirect("drawingbyhand");
+ }
+
+ function submit(){
+ $this->load->model('mclusers');
+
+ if(hun())
+ $nyelv = "hun";
+ else
+ $nyelv = "eng";
+
+ foreach($_POST as $k=>$v)
+ $$k = $v;
+
+
+ $config['upload_path'] = '/var/www/hosting/cadline.hu/www/public/img/kezzeltervez/bekuldott_kepek/eng/';
+ $config['allowed_types'] = 'gif|jpg|png|bmp|tif';
+
+ $kep = "
";
+
+ $this->load->library('upload', $config);
+
+ $hovakep = '/var/www/hosting/cadline.hu/www/public/img/kezzeltervez/bekuldott_kepek/eng/';
+
+ include('application/helpers/sajatfeltolto.php');
+ for($i=1;$i<=5;$i++){
+ $asd = "kep".$i;
+ if(isset($_FILES, $_FILES[$asd]['name']) && $_FILES[$asd]['name'] != ''){
+ $ered = feltolt($asd,$hovakep,$name."_".$_FILES[$asd]['name'],true);
+ if($ered)
+ $kep .= $i.". ".lang('kt_kep').": ".basename($ered)."
";
+ else
+ $kep .= $i.". kép feltöltési hiba: ".$name."_".$_FILES[$asd]['name']."
";
+ }else{
+ if(hun())
+ $kep .= "nincs ".$i.". kép"."
";
+ else
+ $kep .= "no ".$i.". image
";
+ }
+ }
+
+
+ $message = preg_replace("/<.+>/Usi", "", $message);
+ // $message .= "
Képek:
".$kep;
+
+ $nUserID = $this->mclusers->get_nUserIDByEmail($email,$nyelv);
+
+ if($nUserID > 0){
+ if(hun())
+ $this->mclusers->addEvent($nUserID, 121, '"'.$message.'"
'.$kep);
+ else
+ $this->mclusers->addEvent($nUserID, 150, '"'.$message.'"
'.$kep,"eng");
+ }else{
+ $tomb->strName = $name;
+ $tomb->strEMail = $email;
+ $tomb->strTel = $tel;
+
+ if(hun()){
+ $nUserID = $this->mclusers->addUserHun($tomb);
+ $this->mclusers->addEvent($nUserID, 121, '"'.$message.'"
'.$kep);
+ }else{
+ $nUserID = $this->mclusers->addUserEng($tomb);
+ $this->mclusers->addEvent($nUserID, 150, '"'.$message.'"
'.$kep,"eng");
+ }
+
+ $tomb2->email = $email;
+ $tomb2->nUserID = $nUserID;
+ if(hun())
+ $this->db->insert('clusers.cl_users_emails',$tomb2);
+ else
+ $this->db->insert('clusers_eng.cl_users_emails',$tomb2);
+ }
+
+
+
+ $mail_data = array(
+ 'mailcontent' => 'mail/contact',
+ 'name' => $name,
+ 'email' => $email,
+ 'phone' => $tel,
+ 'subject' => $subject,
+ 'message' => $message.$kep,
+ 'eleje' => lang('kt_kedves')." ".$name.lang('kt_kitoltottadatok')."
",
+ 'vege' => "
".lang('kt_udvozlettel')
+ );
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ $this->email->message($this->load->view('mail/contact', $mail_data, true));
+
+ $this->email->subject(lang('kt_emailsubject'));
+ if(hun()){
+ $this->email->from('info@cadline.hu', 'CadLine Weboldal');
+ $this->email->send('info@cadline.hu', 'smtp');
+ }else{
+ $this->email->from('info@archlinexp.com', 'CadLine Website');
+ $this->email->send('info@archlinexp.com', 'smtp');
+ //$this->email->send('sztikee@gmail.com', 'smtp');
+ }
+
+
+ // $this->email->send("sztikee@gmail.com", 'smtp');
+
+ //Kintre:
+ $this->email->clear();
+
+ if(hun())
+ $this->email->from('info@cadline.hu', 'CadLine Weboldal');
+ else
+ $this->email->from('info@archlinexp.com', 'CadLine Website');
+ $this->email->subject(lang('kt_emailsubject'));
+ $this->email->message($this->load->view('mail', $mail_data, true));
+ $this->email->send($email,'smtp');
+
+
+ $record->osztaly = "kezzeltervez";
+ $record->fv = "submit";
+ $record->hiba = $subject."\n".$name."\n".$email."\n".$tel."\n".$message."\n".$kep;
+ $record->datum = date('Y-m-d H:i:s',time());
+ $this->db->insert('a_hibak',$record);
+
+ $data['title'] = hun() ? 'Jelentkezés' : 'Jelentkezés';
+ $data['tartalom'] = 'forum/kiir';
+ $data['csik']=array('home');
+
+ $data['info'] = "
".lang('kt_submit')."
', $error));
+ header("Location: ".$_SERVER["HTTP_REFERER"]);
+ return;
+ }
+
+ // kért-e parkolót
+ if( hun() && $this->input->post('parkolo') == "on" ){
+ $post['parkolo'] = 1;
+ $osszhely = $foesemx->parkolo;
+ $foglalthelyek = $foglaltak->parkolo;
+ // ha nincs üres hely, megszakítás
+ if( $foglalthelyek >= $osszhely ){
+ $this->phpsession->save('wshiba',"Az Ön által megadott napra már minden parkolóhelyünk foglalt, kérjük, válasszon másik időpontot, vagy sziveskedjék a MOntevideo 5. sz. mélygarázsban parkolni.");
+ $this->phpsession->save('wshibaadatok',$post);
+ header("Location: ".$_SERVER["HTTP_REFERER"]);
+ return;
+ }
+ }
+
+ // kért-e gépet
+ if( hun() && $this->input->post('gep') == "on" ){
+ $post['gep'] = 1;
+ $osszgep = 2;
+ $foglaltgepek = $foglaltak->gep;
+ // ha nincs üres hely, megszakítás
+ if( $foglaltgepek >= $osszgep ){
+ $this->phpsession->save('wshiba',"A kiválasztott workshop időpontra már nincs szabad gépünk!");
+ header("Location: ".$_SERVER["HTTP_REFERER"]);
+ return;
+ }
+ }
+
+
+ //insert registration into the database
+ if( $post['event_id'] != "online" && $post['event_id'] != "personal" )
+ $result = $this->mevents->EventRegistration($post);
+ else
+ $result = 'success';
+
+ //collecting main event details
+ $main_event_details = $this->mevents->getMainEventDetails($post['event_main_id']);
+
+ if($result == 'success'){
+ $event_details = $this->mevents->getEventDetailsByID($post['event_id']);
+
+ if( $post['event_id'] != "online" && $post['event_id'] != "personal" && $post['event_id'] != "eloado" ){
+ $event_details = $this->mevents->getEventDetailsByID($post['event_id']);
+ $start = date('Y-m-d H:i',$event_details->start_ts);
+ $end = date('Y-m-d H:i',$event_details->end_ts);
+ }else{
+ $event_details->name = $main_event_details->name." - ".$post['event_id'];
+ $start = "";
+ $end = "";
+ }
+
+ //collect the event's and user's data for the emails
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'cegnev' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'start' => $start,
+ 'end' => $end,
+ 'event_details' => $event_details,
+ 'main_event_details' => $this->mevents->getMainEventDetails($post['event_main_id'])
+ );
+
+ //send an email to cadline
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Cadline Weboldal');
+ $this->email->subject($main_event_details->name.' Registration');
+ $this->email->message($this->load->view('events/mail/reg_success_to_cadline', $mail_data, true));
+
+ if(hun())
+ $this->email->send('info@cadline.hu', 'smtp');
+ else
+ $this->email->send('info@archlinexp.com', 'smtp');
+ // $this->email->send('eszter@cadline.hu', 'smtp');
+ $this->email->clear();
+
+ //send an email to the registered user
+ $this->load->model('mclusers');
+ if( $post['event_id'] == "online" ){
+ if(hun())
+ $page = $this->mpages->get_row(611);
+ else{
+ $page = $this->mpages->get_row(610);
+
+
+ $email = $post['email'];
+
+ $egyezes = "klkájkl".rand(2222222);
+ $info = "Online WS kérés".", téma: ".$main_event_details->name;
+ if($post['comment'] != "")
+ $info .= ", komment: ".$post['comment'];
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "regisztracio", 190, $egyezes, $info, "eng", $info);
+ else
+ $this->mclusers->levelesemeny($email, "events", "regisztracio", 149, $egyezes, $info, "eng", $info);
+ }
+ }
+ elseif( $post['event_id'] == "personal" )
+ {
+ $info = "WS kérés: ".$event_details->name." ".mysql_escape_string($post['comment']);
+ $datum = date('Y-m-d', time());
+
+ if(hun()){
+ if($post['event_main_id']==56){
+ $page = $this->mpages->get_row(746);
+ $nTopicID = (UJUGYFELKEZELO===true) ? 5 : 161;
+ $info .= " Javasolt tema: ".$this->input->post('ujtema');
+ }
+ else{
+ $page = $this->mpages->get_row(613);
+ $nTopicID = 121;
+ }
+
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email'],'hun');
+
+ if(!$nUserID){
+ $tomb['strName'] = $post['nev'];
+ $tomb['strCompany'] = $post['cegnev'];
+ $tomb['strCity'] = $post['varos'];
+ $tomb['strZip'] = $post['irsz'];
+ $tomb['strStreet'] = $post['cim'];
+ $tomb['strMobil'] = $post['tel'];
+ $tomb['nUserProf'] = $post['foglalkozas'];
+ $tomb['nCtrID'] = $post['nctrid'];
+ $nUserID = $this->mclusers->addUserHun($tomb);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $post['email'];
+ $this->mclusers->addUserEmailHun($tomb2);
+ }
+
+ $query .= "INSERT INTO `".CRMADATBAZIS."`.`u_history` VALUES (NULL,{$nUserID},{$nTopicID},'{$datum}','web','{$info}', 36, '', '', NULL, NULL, NULL)";
+
+ $this->db->query($query);
+
+ }else{
+ $page = $this->mpages->get_row(612);
+
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email'],'eng');
+
+ if(!$nUserID){
+ $tomb['strName'] = $post['nev'];
+ $tomb['strCompany'] = $post['cegnev'];
+ $tomb['strCity'] = $post['varos'];
+ $tomb['strZip'] = $post['irsz'];
+ $tomb['strStreet'] = $post['cim'];
+ $tomb['strTel'] = $post['tel'];
+ $tomb['nUserProf'] = $post['foglalkozas'];
+ $tomb['nCtrID'] = $post['nctrid'];
+ $nUserID = $this->mclusers->addUserEng($tomb);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $post['email'];
+ $this->mclusers->addUserEmailEng($tomb2);
+ }
+
+ if(UJUGYFELKEZELO===true)
+ $query = "INSERT INTO `".CRMADATBAZIS."`.`u_history` VALUES (NULL,{$nUserID},223,'{$datum}','web','{$info}', 36, '', '', NULL, NULL, NULL)";
+ else
+ $query .= "INSERT INTO `clusers_eng`.`cl_history` VALUES (NULL, ".$nUserID.", 138, '{$datum}', 'web', '{$info}', 0)";
+
+ $this->db->query($query);
+ }
+ }
+ elseif( $post['event_id'] == "eloado" ){
+ $page = hun() ? $this->mpages->get_row(773) : $this->mpages->get_row(838);
+
+ $email = $post['email'];
+
+ $egyezes = "klkájkl".rand(2222222);
+ $info = "AL Klub előadó ";
+ if($post['comment'] != "")
+ $info .= "komment: ".$post['comment'];
+ $info2 = $info.print_r($mail_data,true);
+
+ $nTopicID = hun() ? 3 : 278;
+
+ $this->mclusers->levelesemeny($email, "events", "regisztracio", $nTopicID, $egyezes, $info, "hun", $info2);
+ }
+ else
+ {
+ if( hun() && $main_event_details->reg_success_mail_page==578 ){
+ // parkoló nem, pc nem
+ if( $post['parkolo']!=1 && $post['gep']!=1 )
+ $page = $this->mpages->get_row(735);
+
+ // parkoló nem, pc igen
+ if( $post['parkolo']!=1 && $post['gep']==1 )
+ $page = $this->mpages->get_row(738);
+
+ // parkoló igen, pc nem
+ if( $post['parkolo']==1 && $post['gep']!=1 )
+ $page = $this->mpages->get_row(736);
+
+ // parkoló igen, pc igen
+ if( $post['parkolo']==1 && $post['gep']==1 )
+ $page = $this->mpages->get_row(737);
+ }elseif($post['event_main_id']==56 && isset($post['nolimit']) && $post['nolimit']===true){
+ $page = $this->mpages->get_row(747);
+ }
+ else{
+ $page = $this->mpages->get_row($main_event_details->reg_success_mail_page);
+ }
+ $info = "(web) ".mysql_escape_string($post['comment']);
+ if($this->input->post('sz_nev') || $this->input->post('sz_varos') || $this->input->post('sz_irsz') || $this->input->post('sz_cim'))
+ $info .= ", Számlázási adatok: ".$this->input->post('sz_nev')." ".$this->input->post('sz_varos')." ".$this->input->post('sz_irsz')." ".$this->input->post('sz_cim');
+ if( $this->input->post('al_javaslat'=="on") || $this->input->post('ujtema') != "" ){
+ $info .= " Javasolt téma: ".$this->input->post('ujtema');
+ }
+
+ $datum = date('Y-m-d', $event_details->start_ts);
+
+ if(hun()){
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email'],'hun');
+
+ if(!$nUserID){
+ $tomb['strName'] = $post['nev'];
+ $tomb['strCompany'] = $post['cegnev'];
+ $tomb['strCity'] = $post['varos'];
+ $tomb['strZip'] = $post['irsz'];
+ $tomb['strStreet'] = $post['cim'];
+ $tomb['strTel'] = $post['tel'];
+ $tomb['nUserProf'] = $post['foglalkozas'];
+ $tomb['nCtrID'] = $post['nctrid'];
+ $nUserID = $this->mclusers->addUserHun($tomb);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $post['email'];
+ $this->mclusers->addUserEmailHun($tomb2);
+ }
+
+ if(isset($post['parkolo']) && $post['parkolo']>0)
+ $info .= " , Kért parkolóhelyet";
+
+ if(isset($post['gep']) && $post['gep']>0)
+ $info .= " , Kért gépet";
+
+ if($post['event_main_id']==56 && isset($post['nolimit']) && $post['nolimit']===true){
+ $nTopicID = 4;
+ $info .= " , jelentkezés ideje: ".date('Y-m-d H:i:s',time());
+ }elseif($post['event_main_id']==56)
+ $nTopicID = 5;
+ else
+ $nTopicID = 123;
+
+ $info .= " cim: ".$post['irsz']." ".$post['varos'].", ".$post['cim'];
+
+ $query = "INSERT INTO `".CRMADATBAZIS."`.`u_history` VALUES (NULL, {$nUserID}, {$nTopicID}, '{$datum}', '{$event_details->name}', '{$info}', 36, '', '', NULL, NULL, NULL)";
+
+ $this->db->query($query);
+ if( $post['event_main_id']==56 && $this->input->post('al_eloado')=="on" ){
+ $query = "INSERT INTO `".CRMADATBAZIS."`.`u_history` VALUES (NULL, ".$nUserID.", 3, '".$datum."', '{$event_details->name}', '".$info."', 36, '', '', NULL, NULL, NULL)";
+ $this->db->query($query);
+ }
+
+ if($post['event_main_id']==56)
+ $this->cache->delete('archline-klub-idopontok');
+ }else{
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email'],'eng');
+
+ if(!$nUserID){
+ $tomb['strName'] = $post['nev'];
+ $tomb['strCompany'] = $post['cegnev'];
+ $tomb['strCity'] = $post['varos'];
+ $tomb['strZip'] = $post['irsz'];
+ $tomb['strStreet'] = $post['cim'];
+ $tomb['strMobil'] = $post['tel'];
+ $tomb['strTel'] = $post['tel'];
+ $tomb['nUserProf'] = $post['foglalkozas'];
+ $tomb['nCtrID'] = $post['nctrid'];
+ $nUserID = $this->mclusers->addUserEng($tomb);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $post['email'];
+ $this->mclusers->addUserEmailEng($tomb2);
+ }
+
+ $nTopicID = ($post['event_main_id']==63) ? 277 : 226;
+ $query = "INSERT INTO `".CRMADATBAZIS."`.`u_history` VALUES (NULL, ".$nUserID.", {$nTopicID}, '".$datum."', '{$event_details->name}', '".$info."', 36, '', '', NULL, NULL, NULL)";
+ $this->db->query($query);
+ if( $post['event_main_id']==63 && $this->input->post('al_eloado')=="on" ){
+ $query = "INSERT INTO `".CRMADATBAZIS."`.`u_history` VALUES (NULL, ".$nUserID.", 278, '".$datum."', '{$event_details->name}', '".$info."', 36, '', '', NULL, NULL, NULL)";
+ $this->db->query($query);
+ }
+
+ }
+ }
+
+ //change the users name constans in the page body
+ $page->page_body = str_ireplace('#reg_name#', $mail_data['nev'], $page->page_body);
+
+ // construmásnál időpont
+ //$hetnapok = array("hétfő", "kedd", "szerda", "csütörtök", "péntek", "szombat", "vasárnap");
+ $hetnapok = lang('napok');
+ $ennyiedik = date('N',$event_details->start_ts);
+ $hetnap = $hetnapok[($ennyiedik-1)];
+
+ $idopontkimenolevelbe = date('Y. m. d. (', $event_details->start_ts);
+ $idopontkimenolevelbe .= $hetnap;
+ $idopontkimenolevelbe .= date(') - H', $event_details->start_ts);
+ $idopontkimenolevelbe .= " óra";
+
+ $idopontkimenolevelbe2 = date('Y. m. d. (', $event_details->start_ts);
+ $idopontkimenolevelbe2 .= $hetnap;
+ $idopontkimenolevelbe2 .= date(') H:i - ', $event_details->start_ts);
+ $idopontkimenolevelbe2 .= date('H:i', $event_details->end_ts);
+
+ $esemnevkimenolevelbe = $event_details->name;
+
+ $page->page_body = str_ireplace('#idopont#', $idopontkimenolevelbe, $page->page_body);
+ $page->page_body = str_ireplace('#idopont2#', $idopontkimenolevelbe2, $page->page_body);
+ $page->page_body = str_ireplace('#esemenyneve#',$esemnevkimenolevelbe,$page->page_body);
+
+ $this->load->library('email');
+ $this->email->initialize();
+ if(hun())
+ $this->email->from('info@cadline.hu', 'ARCHLine.hu');
+ else
+ $this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
+ $this->email->subject($page->page_title);
+ $this->email->message($page->page_body);
+
+ $this->email->send($post['email'], 'smtp');
+ // $this->email->send('sztikee@gmail.com', 'smtp');
+
+ //get the content of the success page
+ $lapid = $main_event_details->reg_success_page;
+ $data['cimlap'] = $this->mpages->get_row($lapid);
+ $data['cimlap']->page_body = str_ireplace('#reg_name#',$post['nev'],$data['cimlap']->page_body);
+ } elseif($result == 'limit') {
+ //get the content of the limit page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(489) : $this->mpages->get_row(481);
+ } elseif($result == 'multiple') {
+ //get the content of the multiple registration page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(488) : $this->mpages->get_row(482);
+ }
+
+ $data['tartalom'] = 'events/registration_success';
+
+ $this->load->view('site', $data);
+ }
+
+
+ function csoportosregisztracio(){
+ $data['lang'] = $this->muser->user['lang'];
+ $data['title'] = hun() ? 'Workshopok - ARCHLine.XP CAD Software' : 'Workshops - ARCHLine.XP CAD Software';
+ $data['tartalom'] = 'page/show';
+ $data['javascript'] = array('jquery_ui','regformcheck');
+ $data['style'] = array('jquery.ui');
+ $data['error'] = false;
+
+ $countries = array();
+ $orszagok = $this->db->query('SELECT * FROM `'.CRMADATBAZIS.'`.`countries`')->result_array();
+ foreach( $orszagok as $orszag )
+ $countries[$orszag['ctrID']] = hun() ? strtolower($orszag['ctrName']) : strtolower($orszag['ctrNameEng']);
+
+
+ $post = array();
+
+ $post['nev'] = $this->input->post('strName1').' '.$this->input->post('strName2');
+ $post['cegnev'] = $this->input->post('strCompany');
+ $post['varos'] = $this->input->post('strCity');
+ $post['irsz'] = $this->input->post('strZip');
+ $post['cim'] = $this->input->post('strStreet');
+ $post['tel'] = $this->input->post('strTel');
+ $post['email'] = $this->input->post('strEMail');
+
+ $post['foglalkozas'] = $this->input->post('nUserProf');
+ $post['nctrid'] = array_search(strtolower($this->input->post('ctrName')), $countries);
+
+ $post['comment'] = $this->input->post('comment');
+ $post['event_ids'] = $this->input->post('event_ids');
+ $post['event_main_id'] = $this->input->post('event_main_id');
+
+
+
+ // robot szűrés
+ if( !$post['email'] || $this->input->post('url') ){
+ print "Nem megfelelo adatok! ";
+
+ $record->osztaly = "events";
+ $record->fv = "regisztracio";
+ $record->hiba = "Robot? Workshop jelentkezés:";
+ foreach($_POST as $k=>$v)
+ $record->hiba .= "\n['".$k."'] = ".$v;
+ $record->hiba .= "\nIP: ".$_SERVER['REMOTE_ADDR'];
+ $record->datum = date('Y-m-d H:i:s',time());
+ $this->db->insert('a_hibak',$record);
+
+ return;
+ }
+
+
+ $darab = ($post['event_main_id']=="haladokurzus") ? 6 : 4;
+
+ //if(count($post['event_ids'])!=$darab){
+ if(count($post['event_ids'])<0){
+ $this->phpsession->save('wshiba',"Az érvényes jelentkezéshez {$darab} workshopot kell kiválasztani!");
+ header("Location: ".$_SERVER["HTTP_REFERER"]);
+ return;
+ }
+
+ $post['event_main_id'] = 0;
+ foreach($post['event_ids'] as $evid){
+ $post['event_id'] = $evid;
+ if( is_numeric($evid) && $error = $this->mevents->eventFormCheck($post, "hun")){
+ $this->phpsession->save('wshiba',implode('
', $error));
+ header("Location: ".$_SERVER["HTTP_REFERER"]);
+ return;
+ }
+ }
+ $post['event_main_id'] = $this->input->post('event_main_id');
+
+
+ //insert registration into the database
+ if( $post['event_ids'][0] != "personal" ){
+ foreach($post['event_ids'] as $evid){
+ $post['event_id'] = $evid;
+ $post['parkolo'] = ($_POST['parkolo'][$evid]=="on") ? 1 : 0;
+ $post['gep'] = ($_POST['gep'][$evid]=="on") ? 1 : 0;
+ $result = $this->mevents->EventRegistration($post);
+ }
+ }else
+ $result = 'success';
+
+ //collecting main event details
+ if($result == 'success'){
+
+ //send an email to the registered user
+ $this->load->model('mclusers');
+
+ $page = $this->mpages->get_row(799);
+
+ $info = "(web) ".mysql_escape_string($post['comment']);
+ if($this->input->post('sz_nev') || $this->input->post('sz_varos') || $this->input->post('sz_irsz') || $this->input->post('sz_cim'))
+ $info .= ", Számlázási adatok: ".$this->input->post('sz_nev')." ".$this->input->post('sz_varos')." ".$this->input->post('sz_irsz')." ".$this->input->post('sz_cim');
+
+
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email'],'hun');
+
+ if(!$nUserID){
+ $tomb['strName'] = $post['nev'];
+ $tomb['strCompany'] = $post['cegnev'];
+ $tomb['strCity'] = $post['varos'];
+ $tomb['strZip'] = $post['irsz'];
+ $tomb['strStreet'] = $post['cim'];
+ $tomb['strTel'] = $post['tel'];
+ $tomb['nUserProf'] = $post['foglalkozas'];
+ $tomb['nCtrID'] = $post['nctrid'];
+ $nUserID = $this->mclusers->addUserHun($tomb);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $post['email'];
+ $this->mclusers->addUserEmailHun($tomb2);
+ }
+
+ $nTopicID = (UJUGYFELKEZELO===true) ? 123 : 132;
+
+ $emailesemenyekinfo = "";
+ foreach($post['event_ids'] as $evid){
+ $event_details = $this->mevents->getEventDetailsByID($evid);
+ $datum = date('Y-m-d', $event_details->start_ts);
+
+ $kurzus = $emailinfo = $infoplusz = "";
+ if( ($darab==4 && count($post['event_ids'])==4) || ($darab==6 && count($post['event_ids'])==6) )
+ $kurzus = "Kurzus - ";
+
+ if($_POST['parkolo'][$evid]=="on"){
+ $infoplusz .= ", kért parkolót";
+ $emailinfo = " Parkolóhely foglalva.";
+ }
+ else{
+ $emailinfo = " Nem igényelt parkolóhelyet.";
+ }
+
+ if($_POST['gep'][$evid]=="on"){
+ $infoplusz .= ", kért gépet";
+ $emailinfo .= " Számítógép igényét rögzítettük.";
+ }
+ else{
+ $emailinfo .= " Nem igényelt számítógépet.";
+ }
+
+ //print "emailinfo: {$emailinfo}"; exit;
+ $infoplusz .= " cim: ".$post['irsz']." ".$post['varos'].", ".$post['cim'];
+
+ $query = "INSERT INTO `".CRMADATBAZIS."`.`u_history` VALUES (NULL, {$nUserID}, {$nTopicID}, '{$datum}', '{$kurzus}{$event_details->name}', '{$info}{$infoplusz}', 36, '', '', NULL, NULL, NULL)";
+ $this->db->query($query);
+ //$this->mclusers->addEvent($nUserID, $nTopicID, $info.$infoplusz, 'hun', $datum);
+ $emailesemenyekinfo .= "".$event_details->name." ".date('Y. m. d. H:i', $event_details->start_ts)." - ".date('H:i', $event_details->end_ts);
+ $emailesemenyekinfo .= " {$emailinfo}
";
+ }
+
+
+ //change the users name constans in the page body
+
+ $event_details = $this->mevents->getEventDetailsByID($post['event_ids'][0]);
+
+ if( $post['event_id'] != "personal" ){
+ $event_details->name = $emailesemenyekinfo;
+ $start = date('Y-m-d H:i',$event_details->start_ts);
+ $end = date('Y-m-d H:i',$event_details->end_ts);
+ }else{
+ $event_details->name = "Csoportos regisztráció kérés - ".$post['event_id'];
+ $start = "";
+ $end = "";
+ }
+
+ //collect the event's and user's data for the emails
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'cegnev' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'start' => $start,
+ 'end' => $end,
+ 'event_details' => $event_details
+ );
+
+ //send an email to cadline
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Cadline Weboldal');
+ $this->email->subject('ARCHLine.XP Workshop Regisztráció');
+ $this->email->message($this->load->view('events/mail/reg_success_to_cadline', $mail_data, true));
+
+ $this->email->send('info@cadline.hu', 'smtp');
+ // $this->email->send('eszter@cadline.hu', 'smtp');
+ $this->email->clear();
+
+ if(count($post['event_ids'])>5 && $darab==6)
+ $arak = "6 alkalom: 42.000 Ft+áfa = bruttó 53.340 Ft - helyett 35.000 Ft +Áfa = bruttó 44.450.- Ft";
+ elseif(count($post['event_ids'])>3 && $darab==4)
+ $arak = "4 alkalom: 24.000 Ft+áfa = bruttó 30.480 Ft - helyett 18.000 Ft +Áfa = bruttó 22.860.- Ft";
+ else{
+ if($darab==6)
+ $arak = count($post['event_ids'])." alkalom: 7.000,-Ft + Áfa = 8.890,-Ft / alkalom = összesen bruttó ".(count($post['event_ids'])*8890).".- Ft";
+ else
+ $arak = count($post['event_ids'])." alkalom: 6.000,-Ft + Áfa = 7.620,-Ft / alkalom = összesen bruttó ".(count($post['event_ids'])*7620).".- Ft";
+ }
+
+ $page->page_body = str_ireplace('#idopontok#', $emailesemenyekinfo, $page->page_body);
+ $page->page_body = str_ireplace('#nev#',$post['nev'],$page->page_body);
+ $page->page_body = str_ireplace('#arak#',$arak,$page->page_body);
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'ARCHLine.hu');
+ $this->email->subject('ARCHLine.XP Workshop Regisztráció');
+ $this->email->message($page->page_body);
+
+ $this->email->send($post['email'], 'smtp');
+
+ //get the content of the success page
+ $data['cimlap'] = $this->mpages->get_row(490);
+ $data['cimlap']->page_body = str_ireplace('#reg_name#',$post['nev'],$data['cimlap']->page_body);
+ } elseif($result == 'limit') {
+ //get the content of the limit page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(489) : $this->mpages->get_row(481);
+ } elseif($result == 'multiple') {
+ //get the content of the multiple registration page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(488) : $this->mpages->get_row(482);
+ }
+
+ $data['tartalom'] = 'events/registration_success';
+
+ $this->load->view('site', $data);
+ }
+
+
+
+ // vizsgára jelentkezés
+ function felhasznaloivizsga(){
+ $csoport_id = 5;
+ $data['error'] = false;
+ $data['title'] = 'ARCHLine.XP Felhasználói vizsga, vizsgajelentkezés';
+ $data['tartalom']='interior/oktatoivizsga';
+
+ $idopontok = array();
+ $vizsga_idk = $this->db->query("SELECT * FROM `tcexam`.`tce_testgroups` WHERE tstgrp_group_id = {$csoport_id}")->result();
+
+ foreach($vizsga_idk as $v_id){
+ $v_id = $v_id->tstgrp_test_id;
+ $vizsga = $this->db->query("SELECT * FROM `tcexam`.`tce_tests` WHERE test_id = {$v_id} AND test_begin_time>'".date('Y-m-d H:i:s',time())."'")->row();
+ if($vizsga)
+ $idopontok[] = $vizsga;
+ }
+ $data['idopontok'] = $idopontok;
+
+
+ $do = $this->input->post('do');
+ if($do){
+ $this->load->model('mclusers');
+ $post = array();
+
+ $post['nev'] = $this->input->post('nev');
+ $post['cegnev'] = $this->input->post('cegnev');
+ $post['iskola'] = $this->input->post('cegnev');
+ $post['varos'] = $this->input->post('varos');
+ $post['irsz'] = $this->input->post('irsz');
+ $post['cim'] = $this->input->post('cim');
+ $post['tel'] = $this->input->post('tel');
+ $post['email'] = $this->input->post('email');
+ $post['comment'] = $this->input->post('comment');
+ $post['test_id'] = $this->input->post('test_id');
+ $useremail = $post['email'];
+
+ // hibaellenőrzés
+ if( !$post['nev'] || !$post['email'] || !$post['tel'] || !is_numeric($post['test_id']) ){
+ $data['cimlap'] = $this->mpages->get_row(697);
+ $data['cimlap']->page_body = "";
+ $data['error'] = 'A név, e-mail cím, telefonszám és időpont megadása kötelező!';
+ $this->load->view('site',$data);
+ return;
+ }
+
+ if( $post['test_id'] != -1 )
+ $vizsga = $this->db->query("SELECT * FROM `tcexam`.`tce_tests` WHERE test_id = ".$post['test_id'])->row();
+
+ // Felhasználó azonosítása a kék könyvben, e-mail címből
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email']);
+ // ha nincs benne vagy nem egyertelmu, akkor ujat felvenni
+ if( !$nUserID ){
+ $tomb['strName'] = $post['nev'];
+ $tomb['strCompany'] = $post['cegnev'];
+ $tomb['strCity'] = $post['varos'];
+ $tomb['strZip'] = $post['irsz'];
+ $tomb['strMobil'] = $post['tel'];
+ $tomb['strTel'] = $post['tel'];
+ $nUserID = $this->mclusers->addUserHun($tomb);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $post['email'];
+ $this->mclusers->addUserEmailHun($tomb2);
+ }
+
+ // felvenni a TCExam-ba, vagy új jelszót generálni neki
+ $chars = "abcdefghijkmnopqrstuvwxyzABCDEFGHIJKMNOPQRSTUVWXYZ0123456789";
+ $jelszo = '' ;
+ for($i=0; $i<8; $i++){
+ $num = rand() % strlen($chars);
+ $jelszo = $jelszo . $chars[$num];
+ }
+ $bennevane = $this->db->query("SELECT user_id FROM `tcexam`.`tce_users` WHERE user_email='{$useremail}'")->row();
+ // felvenni
+ if( !$bennevane ){
+ // users táblába
+ $beszurni['user_name'] = $useremail;
+ $beszurni['user_password'] = md5($jelszo);
+ $beszurni['user_email'] = $useremail;
+ $beszurni['user_regdate'] = date('Y-m-d H:i:s', time());
+ $beszurni['user_ip'] = $_SERVER['REMOTE_ADDR'];
+ $beszurni['user_firstname'] = current(explode(' ',$post['nev']));
+ $beszurni['user_lastname'] = end(explode(' ',$post['nev']));
+ $beszurni['user_regnumber'] = $nUserID;
+ $beszurni['user_level'] = 3;
+
+ $this->db->insert('tcexam.tce_users',$beszurni);
+
+ $tcexam_user_id = mysql_insert_id();
+
+ // csoporthoz rendelés
+ $query2 = "INSERT INTO `tcexam`.`tce_usrgroups` (usrgrp_user_id, usrgrp_group_id) ";
+ $query2 .= " VALUES ({$tcexam_user_id}, {$csoport_id}) ";
+ $this->db->query($query2);
+
+ } // új jelszó
+ else{
+ $query = "UPDATE `tcexam`.`tce_users` SET user_password=MD5('{$jelszo}') WHERE user_id=".$bennevane->user_id;
+ $this->db->query($query);
+ }
+
+
+ // CadLine AB esemény
+ $eseminfo = 'Vizsgára jelentkezés '.date('Y-m-d H:i',time()).' idopontban, e-mail: '.$post['email'].', jelszó: '.$jelszo;
+ if($post['comment'])
+ $eseminfo .= ", megjegyzés: ".$post['comment'];
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->addEvent($nUserID, 85, $eseminfo, 'hun', substr($vizsga->test_begin_time,0,10));
+ else
+ $this->mclusers->addEvent($nUserID, 150, $eseminfo, 'hun', substr($vizsga->test_begin_time,0,10));
+
+
+ // levelek küldése
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'iskola' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'event_details' => "ARCHLine.XP felhasználói vizsga",
+ 'jelszo' => $jelszo,
+ );
+ if($vizsga){
+ $mail_data['start'] = substr($vizsga->test_begin_time,0,-3);
+ $mail_data['end'] = substr($vizsga->test_end_time,0,-3);
+ $mail_data['idopont'] = substr($vizsga->test_begin_time,0,-3)." - ".substr($vizsga->test_end_time,-8,5);
+ }else{
+ $mail_data['start'] = "Egyéni időpont kérés";
+ $mail_data['end'] = "";
+ $mail_data['idopont'] = $mail_data['start'];
+ }
+
+ $page = $this->mpages->get_row(724);
+ foreach($mail_data as $k=>$adat){
+ $csere = '#'.$k.'#';
+ $page->page_body = str_ireplace($csere,$adat,$page->page_body);
+ }
+
+
+ // cadline-nak
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Archline Weboldal');
+ $this->email->subject('ARCHLine.XP vizsgajelentkezés');
+ $this->email->message($page->page_body);
+
+ $this->email->send('info@cadline.hu', 'smtp');
+ // $this->email->send('eszter@cadline.hu', 'smtp');
+ $this->email->clear();
+
+ // felhasználónak
+ $this->email->from('info@cadline.hu', 'Archline Weboldal');
+ $this->email->subject('ARCHLine.XP vizsgajelentkezés');
+ $this->email->message($page->page_body);
+ $this->email->send($post['email'], 'smtp');
+
+
+ // visszajelzés a honlapon
+ $data['cimlap'] = $this->mpages->get_row(490);
+ $data['tartalom'] = 'events/registration_success';
+ }
+
+ $this->load->view('site',$data);
+ }
+
+ function oktatoivizsga(){
+ $csoport_id = 3;
+ $data['error'] = false;
+ $data['title'] = 'ARCHLine.XP Oktatói vizsga, vizsgajelentkezés';
+ $data['tartalom']='interior/oktatoivizsga';
+
+ $idopontok = array();
+ $vizsga_idk = $this->db->query("SELECT * FROM `tcexam`.`tce_testgroups` WHERE tstgrp_group_id = {$csoport_id}")->result();
+
+ foreach($vizsga_idk as $v_id){
+ $v_id = $v_id->tstgrp_test_id;
+ $vizsga = $this->db->query("SELECT * FROM `tcexam`.`tce_tests` WHERE test_id = {$v_id} AND test_begin_time>'".date('Y-m-d H:i:s',time())."'")->row();
+ if($vizsga)
+ $idopontok[] = $vizsga;
+ }
+ $data['idopontok'] = $idopontok;
+
+
+ $do = $this->input->post('do');
+ if($do){
+ $this->load->model('mclusers');
+ $post = array();
+
+ $post['nev'] = $this->input->post('nev');
+ $post['cegnev'] = $this->input->post('cegnev');
+ $post['iskola'] = $this->input->post('cegnev');
+ $post['varos'] = $this->input->post('varos');
+ $post['irsz'] = $this->input->post('irsz');
+ $post['cim'] = $this->input->post('cim');
+ $post['tel'] = $this->input->post('tel');
+ $post['email'] = $this->input->post('email');
+ $post['comment'] = $this->input->post('comment');
+ $post['test_id'] = $this->input->post('test_id');
+ $useremail = $post['email'];
+
+ // hibaellenőrzés
+ if( !$post['nev'] || !$post['email'] || !$post['tel'] || !is_numeric($post['test_id']) ){
+ $data['cimlap'] = $this->mpages->get_row(697);
+ $data['cimlap']->page_body = "";
+ $data['error'] = 'A név, e-mail cím, telefonszám és időpont megadása kötelező!';
+ $this->load->view('site',$data);
+ return;
+ }
+
+ if( $post['test_id'] != -1 )
+ $vizsga = $this->db->query("SELECT * FROM `tcexam`.`tce_tests` WHERE test_id = ".$post['test_id'])->row();
+
+ // Felhasználó azonosítása a kék könyvben, e-mail címből
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email']);
+ // ha nincs benne vagy nem egyertelmu, akkor ujat felvenni
+ if( !$nUserID ){
+ $tomb['strName'] = $post['nev'];
+ $tomb['strCompany'] = $post['cegnev'];
+ $tomb['strCity'] = $post['varos'];
+ $tomb['strZip'] = $post['irsz'];
+ $tomb['strMobil'] = $post['tel'];
+ $tomb['strTel'] = $post['tel'];
+ $nUserID = $this->mclusers->addUserHun($tomb);
+
+ $tomb2['nUserID'] = $nUserID;
+ $tomb2['email'] = $post['email'];
+ $this->mclusers->addUserEmailHun($tomb2);
+ }
+
+ // felvenni a TCExam-ba, vagy új jelszót generálni neki
+ $chars = "abcdefghijkmnopqrstuvwxyzABCDEFGHIJKMNOPQRSTUVWXYZ0123456789";
+ $jelszo = '' ;
+ for($i=0; $i<8; $i++){
+ $num = rand() % strlen($chars);
+ $jelszo = $jelszo . $chars[$num];
+ }
+ $bennevane = $this->db->query("SELECT user_id FROM `tcexam`.`tce_users` WHERE user_email='{$useremail}'")->row();
+ // felvenni
+ if( !$bennevane ){
+ // users táblába
+ $beszurni['user_name'] = $useremail;
+ $beszurni['user_password'] = md5($jelszo);
+ $beszurni['user_email'] = $useremail;
+ $beszurni['user_regdate'] = date('Y-m-d H:i:s', time());
+ $beszurni['user_ip'] = $_SERVER['REMOTE_ADDR'];
+ $beszurni['user_firstname'] = current(explode(' ',$post['nev']));
+ $beszurni['user_lastname'] = end(explode(' ',$post['nev']));
+ $beszurni['user_regnumber'] = $nUserID;
+ $beszurni['user_level'] = 3;
+
+ $this->db->insert('tcexam.tce_users',$beszurni);
+
+ $tcexam_user_id = mysql_insert_id();
+
+ // csoporthoz rendelés
+ $query2 = "INSERT INTO `tcexam`.`tce_usrgroups` (usrgrp_user_id, usrgrp_group_id) ";
+ $query2 .= " VALUES ({$tcexam_user_id}, 3) ";
+ $this->db->query($query2);
+ $query3 = "INSERT INTO `tcexam`.`tce_usrgroups` (usrgrp_user_id, usrgrp_group_id) ";
+ $query3 .= " VALUES ({$tcexam_user_id}, 4) ";
+ $this->db->query($query3);
+
+ } // új jelszó
+ else{
+ $query = "UPDATE `tcexam`.`tce_users` SET user_password=MD5('{$jelszo}') WHERE user_id=".$bennevane->user_id;
+ $this->db->query($query);
+ }
+
+
+ // CadLine AB esemény
+ $eseminfo = 'Vizsgára jelentkezés '.date('Y-m-d H:i',time()).' idopontban, e-mail: '.$post['email'].', jelszó: '.$jelszo;
+ if($post['comment'])
+ $eseminfo .= ", megjegyzés: ".$post['comment'];
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->addEvent($nUserID, 85, $eseminfo, 'hun', substr($vizsga->test_begin_time,0,10));
+ else
+ $this->mclusers->addEvent($nUserID, 150, $eseminfo, 'hun', substr($vizsga->test_begin_time,0,10));
+
+
+ // levelek küldése
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'iskola' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'event_details' => "ARCHLine.XP oktatói vizsga",
+ 'jelszo' => $jelszo,
+ );
+ if($vizsga){
+ $mail_data['start'] = substr($vizsga->test_begin_time,0,-3);
+ $mail_data['end'] = substr($vizsga->test_end_time,0,-3);
+ $mail_data['idopont'] = substr($vizsga->test_begin_time,0,-3)." - ".substr($vizsga->test_end_time,-8,5);
+ }else{
+ $mail_data['start'] = "Egyéni időpont kérés";
+ $mail_data['end'] = "";
+ $mail_data['idopont'] = $mail_data['start'];
+ }
+
+ $page = $this->mpages->get_row(700);
+ foreach($mail_data as $k=>$adat){
+ $csere = '#'.$k.'#';
+ $page->page_body = str_ireplace($csere,$adat,$page->page_body);
+ }
+
+
+ // cadline-nak
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Archline Weboldal');
+ $this->email->subject('ARCHLine.XP vizsgajelentkezés');
+ $this->email->message($page->page_body);
+
+ $this->email->send('info@cadline.hu', 'smtp');
+ // $this->email->send('eszter@cadline.hu', 'smtp');
+ $this->email->clear();
+
+ // oktatónak
+ $this->email->from('info@cadline.hu', 'Archline Weboldal');
+ $this->email->subject('ARCHLine.XP vizsgajelentkezés');
+ $this->email->message($page->page_body);
+ $this->email->send($post['email'], 'smtp');
+
+
+ // visszajelzés a honlapon
+ $data['cimlap'] = $this->mpages->get_row(490);
+ $data['tartalom'] = 'events/registration_success';
+ }
+
+ $this->load->view('site',$data);
+ }
+
+ function ujoktatoivizsgajelszo(){
+ $do = $this->input->post('do');
+ $useremail = $this->input->post('email');
+ if( !$useremail )
+ $useremail = $this->input->post('user_email');
+
+ if( $do && $useremail ){
+ $chars = "abcdefghijkmnopqrstuvwxyzABCDEFGHIJKMNOPQRSTUVWXYZ0123456789";
+ $jelszo = '' ;
+ for($i=0; $i<8; $i++){
+ $num = rand() % strlen($chars);
+ $jelszo = $jelszo . $chars[$num];
+ }
+
+ $bennevane = $this->db->query("SELECT user_id, user_regnumber, user_name FROM `tcexam`.`tce_users` WHERE user_email='{$useremail}'")->row();
+ // megváltoztatás + email küldés
+ if($bennevane){
+ $query = "UPDATE `tcexam`.`tce_users` SET user_password=MD5('{$jelszo}') WHERE user_id=".$bennevane->user_id;
+ $this->db->query($query);
+
+ $mail_data = array(
+ 'email' => $bennevane->user_name,
+ 'jelszo' => $jelszo
+ );
+ $page = $this->mpages->get_row(705);
+ foreach($mail_data as $k=>$adat){
+ $csere = '#'.$k.'#';
+ $page->page_body = str_ireplace($csere,$adat,$page->page_body);
+ }
+
+ // új jelszót a kék könyvbe
+ $this->load->model('mclusers');
+ $eseminfo = "Új jelszót igényelt: ".$jelszo;
+ $this->mclusers->addEvent($bennevane->user_regnumber, 150, $eseminfo, 'hun');
+
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Archline Weboldal');
+ $this->email->subject('ARCHLine.XP vizsga jelszó');
+ $this->email->message($page->page_body);
+ $this->email->send($useremail, 'smtp');
+
+ $data['cimlap'] = $this->mpages->get_row(706);
+
+ } // hiba
+ else{
+ $data['cimlap'] = $this->mpages->get_row(707);
+ }
+
+ }
+ else{
+ $data['cimlap'] = $this->mpages->get_row(707);
+ }
+
+ $data['tartalom'] = 'events/registration_success';
+ $this->load->view('site',$data);
+ }
+
+ function idealhomeshow(){
+ $data['lang'] = $this->muser->user['lang'];
+ $data['javascript'] = array('jquery_ui');
+ $data['style'] = array('jquery.ui');
+ $data['error'] = false;
+ $data['title'] = 'ARCHLine.XP Interior Design Software - Ideal Home Show 2012';
+ $data['tartalom']='workshop/idealhomeshow';
+
+ $results = $this->mevents->getEventDatesByDay(52, true);
+
+ $events2 = array();
+ $eventsxxx = $this->mevents->getEventsByMainEventID(52, true);
+ foreach($eventsxxx as $event){
+ $event->able_to_reg = $this->mevents->checkEventLimit($event->event_id);
+ $return_events[strtotime(date('Y-m-d', $event->start_ts))][date('H:i', $event->start_ts).' - '.date('H:i', $event->end_ts)] = $event;
+ }
+ // print_r($return_events);
+
+ ksort($results['times']);
+
+ $data['times'] = $results['times'];
+ $data['esemenyek'] = $return_events;
+
+
+ $do = $this->input->post('do');
+
+ if($do){
+ $post = array();
+
+ $post['nev'] = $this->input->post('nev');
+ $post['cegnev'] = $this->input->post('cegnev');
+ $post['varos'] = $this->input->post('varos');
+ $post['irsz'] = $this->input->post('irsz');
+ $post['cim'] = $this->input->post('cim');
+ $post['tel'] = $this->input->post('tel');
+ $post['email'] = $this->input->post('email');
+ $post['comment'] = $this->input->post('comment');
+ $post['event_id'] = $this->input->post('event_id');
+ $post['event_main_id'] = 52;
+
+ if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
+ $data['error'] = implode('
', $error);
+ } else {
+ //insert registration into the database
+ $result = $this->mevents->EventRegistration($post);
+
+ //collecting main event details
+ $main_event_details = $this->mevents->getMainEventDetails(52);
+
+ if($result == 'success'){
+ $event_details = $this->mevents->getEventDetailsByID($post['event_id']);
+
+ //collect the event's and user's data for the emails
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'cegnev' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'start' => date('Y-m-d H:i',$event_details->start_ts),
+ 'end' => date('Y-m-d H:i',$event_details->end_ts),
+ 'event_details' => $this->mevents->getEventDetailsByID($post['event_id']),
+ 'main_event_details' => $this->mevents->getMainEventDetails(52)
+ );
+
+ //send an email to cadline
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@archlinexp.com', 'Cadline Website');
+ $this->email->subject($main_event_details->name.' Registration');
+ $this->email->message($this->load->view('courses/mail/reg_success_to_cadline', $mail_data, true));
+
+ $this->email->send('info@archlinexp.com', 'smtp');
+ // $this->email->send('sztikee@gmail.com', 'smtp');
+ $this->email->clear();
+
+
+ //send an email to the registered user
+ $page = $this->mpages->get_row($main_event_details->reg_success_mail_page);
+
+ //change the users name constans in the page body
+ $page->page_body = str_ireplace('#reg_name#', $mail_data['nev'], $page->page_body);
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
+ $this->email->subject($page->page_title);
+ $this->email->message($page->page_body);
+
+ $this->email->send($post['email'], 'smtp');
+
+
+ // esemény felvétele a sárga könyvbe
+ $this->load->model('mclusers');
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email'],'eng');
+ if( !$nUserID ){
+ // user beszúrás
+ $tomb->strName = $post['nev'];
+ $tomb->strTel = $post['tel'];
+ $tomb->strMobil = $post['tel'];
+ $tomb->strEMail = $post['email'];
+ $tomb->strCity = $post['varos'];
+ $tomb->nUserType = 0;
+ $tomb->nCtrID = 0;
+ $tomb->strCompany = '';
+ $tomb->strInfo = "";
+
+ $nUserID = $this->mclusers->addUserEng($tomb);
+
+
+ // email beszúrás
+ $tomb2->email = $post['email'];
+ $tomb2->nUserID = $nUserID;
+ $tomb2->default = "1";
+ $tomb2->active = "1";
+ $tomb2->deleted = "0";
+
+ $this->mclusers->addUserEmailEng($tomb2);
+ }
+ $info = "Ideal home show: ".$mail_data['start']." - ".$mail_data['end'];
+ $this->mclusers->addEvent($nUserID, "113", $info, 'eng');
+
+
+ //get the content of the success page
+ $data['cimlap'] = $this->mpages->get_row($main_event_details->reg_success_page);
+ $data['cimlap']->page_body = str_ireplace('#reg_name#',$post['nev'],$data['cimlap']->page_body);
+ } elseif($result == 'limit') {
+ //get the content of the limit page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(489) : $this->mpages->get_row(481);
+ } elseif($result == 'multiple') {
+ //get the content of the multiple registration page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(488) : $this->mpages->get_row(482);
+ }
+
+ $data['tartalom'] = 'events/registration_success';
+ }
+ }
+
+ $this->load->view('site',$data);
+
+ }
+
+ function pecsexpo(){
+ $data['lang'] = $this->muser->user['lang'];
+ $data['javascript'] = array('jquery_ui');
+ $data['style'] = array('jquery.ui');
+ $data['error'] = false;
+ $data['title'] = 'ARCHLine.XP CAD program, Pécs Expo';
+ $data['tartalom']='workshop/pecsexpo';
+
+ $results = $this->mevents->getEventsByMainEventID(53, true);
+ $results = $this->db->query("SELECT * FROM `events_new` WHERE `event_main_id` =53 ORDER BY `events_new`.`name` ASC")->result();
+
+ // print_r($results);
+ foreach($results as $date){
+ $date->times->able_to_reg = $this->mevents->checkEventLimit($date->event_id);
+ }
+ $data['dates'] = $results;
+
+
+ $do = $this->input->post('do');
+
+ if($do){
+ $post = array();
+
+ $post['nev'] = $this->input->post('nev');
+ $post['cegnev'] = $this->input->post('cegnev');
+ $post['varos'] = $this->input->post('varos');
+ $post['irsz'] = $this->input->post('irsz');
+ $post['cim'] = $this->input->post('cim');
+ $post['tel'] = $this->input->post('tel');
+ $post['email'] = $this->input->post('email');
+ $post['comment'] = $this->input->post('comment');
+ $post['event_id'] = $this->input->post('event_id');
+ $post['event_main_id'] = 53;
+
+ if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
+ $data['error'] = implode('
', $error);
+ } else {
+ //insert registration into the database
+ $result = $this->mevents->EventRegistration($post);
+
+ //collecting main event details
+ $main_event_details = $this->mevents->getMainEventDetails(53);
+
+ if($result == 'success'){
+ $event_details = $this->mevents->getEventDetailsByID($post['event_id']);
+
+ //collect the event's and user's data for the emails
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'cegnev' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'start' => date('Y-m-d H:i',$event_details->start_ts),
+ 'end' => date('Y-m-d H:i',$event_details->end_ts),
+ 'event_details' => $this->mevents->getEventDetailsByID($post['event_id']),
+ 'main_event_details' => $this->mevents->getMainEventDetails(52)
+ );
+
+ //send an email to cadline
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Cadline Website');
+ $this->email->subject($main_event_details->name.' Registration');
+ $this->email->message($this->load->view('courses/mail/reg_success_to_cadline', $mail_data, true));
+
+ $this->email->send('info@cadline.hu', 'smtp');
+ // $this->email->send('sztikee@gmail.com', 'smtp');
+ $this->email->clear();
+
+
+ //send an email to the registered user
+ $page = $this->mpages->get_row($main_event_details->reg_success_mail_page);
+
+ //change the users name constans in the page body
+ $page->page_body = str_ireplace('#name#', $mail_data['nev'], $page->page_body);
+ $page->page_body = str_ireplace('#idopont#', date('Y-m-d H:i',$event_details->start_ts), $page->page_body);
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'CadLine Kft.');
+ $this->email->subject($page->page_title);
+ $this->email->message($page->page_body);
+
+ $this->email->send($post['email'], 'smtp');
+
+
+ // esemény felvétele a kék könyvbe
+ $this->load->model('mclusers');
+ $nUserID = $this->mclusers->get_nUserIDByEmail($post['email'],'hun');
+ if( !$nUserID ){
+ // user beszúrás
+ $tomb->strName = $post['nev'];
+ $tomb->strTel = $post['tel'];
+ $tomb->strMobil = $post['tel'];
+ $tomb->strEMail = $post['email'];
+ $tomb->strCity = $post['varos'];
+ $tomb->nUserType = 0;
+ $tomb->nCtrID = 0;
+ $tomb->strCompany = '';
+ $tomb->strInfo = "";
+
+ $nUserID = $this->mclusers->addUserEng($tomb);
+
+
+ // email beszúrás
+ $tomb2->email = $post['email'];
+ $tomb2->nUserID = $nUserID;
+ $tomb2->default = "1";
+ $tomb2->active = "1";
+ $tomb2->deleted = "0";
+
+ $this->mclusers->addUserEmailEng($tomb2);
+ }
+ $info = "Pécs expo: ".$mail_data['start']." - ".$mail_data['end'];
+ $this->mclusers->addEvent($nUserID, "12", $info, 'hun', date('Y-m-d',$event_details->start_ts));
+
+
+ //get the content of the success page
+ $data['cimlap'] = $this->mpages->get_row($main_event_details->reg_success_page);
+ $data['cimlap']->page_body = str_ireplace('#reg_name#',$post['nev'],$data['cimlap']->page_body);
+ } elseif($result == 'limit') {
+ //get the content of the limit page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(489) : $this->mpages->get_row(481);
+ } elseif($result == 'multiple') {
+ //get the content of the multiple registration page
+ $data['cimlap'] = hun() ? $this->mpages->get_row(488) : $this->mpages->get_row(482);
+ }
+
+ $data['tartalom'] = 'events/registration_success';
+ }
+ }
+
+ $this->load->view('site',$data);
+ }
+
+ function no_main_event(){
+ $data['lang'] = $this->muser->user['lang'];
+ $data['title'] = hun() ? 'Bemutatók - ARCHLine.XP CAD Software' : 'Events - ARCHLine.XP CAD Software';
+ $data['tartalom'] = 'events/no_main_event';
+ $data['page'] = hun() ? $this->mpages->get_row(493) : $this->mpages->get_row(494);
+ if(hun())
+ $data['csik'] = array('Főoldal', 'Bemutatók');
+ else
+ $data['csik'] = array('home', 'events');
+ $this->load->view('site', $data);
+ }
+
+ function registrate(){
+ redirect('events');
+ /*
+ $event_main_id = $this->uri->segment(3);
+
+ if(!$event_main_id || !$main_event_details = $this->mevents->getMainEventDetails($event_main_id)){
+ redirect('events');
+ }
+
+ $data['lang'] = $this->muser->user['lang'];
+ $data['title'] = hun() ? $main_event_details->name.' - Events - ARCHLine.XP CAD Software' : $main_event_details->name.' - Events - ARCHLine.XP CAD Software';
+ $data['tartalom'] = 'events/registrate';
+ $data['csik'] = array('home', 'events', $main_event_details->name);
+ $data['error'] = false;
+
+ $data['main_event'] = $main_event_details;
+
+ $results = $this->mevents->getEventDatesByDay($event_main_id);
+
+ $data['events'] = $results['events'];
+ $data['times'] = $results['times'];
+
+ $do = $this->input->post('do');
+
+ if(!$do){
+ $this->load->view('site', $data);
+ } else {
+ $post = array();
+
+ $post['nev'] = $this->input->post('nev');
+ $post['cegnev'] = $this->input->post('cegnev');
+ $post['varos'] = $this->input->post('varos');
+ $post['irsz'] = $this->input->post('irsz');
+ $post['cim'] = $this->input->post('cim');
+ $post['tel'] = $this->input->post('tel');
+ $post['email'] = $this->input->post('email');
+ $post['comment'] = $this->input->post('comment');
+ $post['event_id'] = $this->input->post('event_id');
+ $post['event_main_id'] = $event_main_id;
+
+ if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
+ $data['error'] = implode('
', $error);
+ } else {
+ //insert registration into the database
+ $result = $this->mevents->EventRegistration($post);
+
+ if($result == 'success'){
+ //get the content of the success page
+ $data['cimlap'] = $this->mpages->get_row(480);
+
+ $event_details = $this->mevents->getEventDetailsByID($post['event_id']);
+
+ //collect the event's and user's data for the emails
+ $mail_data = array(
+ 'nev' => $post['nev'],
+ 'cegnev' => $post['cegnev'],
+ 'varos' => $post['varos'],
+ 'irsz' => $post['irsz'],
+ 'cim' => $post['cim'],
+ 'tel' => $post['tel'],
+ 'email' => $post['email'],
+ 'comment' => $post['comment'],
+ 'start' => date('Y-m-d H:i',$event_details->start_ts),
+ 'end' => date('Y-m-d H:i',$event_details->end_ts),
+ 'event_details' => $this->mevents->getEventDetailsByID($post['event_id'])
+ );
+
+ //send an email to cadline
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@cadline.hu', 'Cadline Weboldal');
+ $this->email->subject($main_event_details->name.' Registration');
+ $this->email->message($this->load->view('events/mail/reg_success_to_cadline', $mail_data, true));
+
+ $this->email->send('info@archlinexp.com', 'smtp');
+ //$this->email->send('sztikee@gmail.com', 'smtp');
+ //$this->email->send('atikenny@gmail.com', 'smtp');
+ $this->email->clear();
+
+ //send an email to the registered user
+ $page = $this->mpages->get_row($main_event_details->reg_success_mail_page);
+
+ //change the users name constans in the page body
+ $page->page_body = str_ireplace('#reg_name#', $mail_data['nev'], $page->page_body);
+
+ $this->load->library('email');
+ $this->email->initialize();
+ $this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
+ $this->email->subject($page->page_title);
+ $this->email->message($page->page_body);
+
+ $this->email->send($post['email'], 'smtp');
+ } elseif($result == 'limit') {
+ //get the content of the limit page
+ $data['cimlap'] = $this->mpages->get_row(481);
+ } elseif($result == 'multiple') {
+ //get the content of the multiple registration page
+ $data['cimlap'] = $this->mpages->get_row(482);
+ }
+
+ $data['tartalom'] = 'events/registration_success';
+ }
+
+ $this->load->view('site', $data);
+ }
+ */
+ }
+
+ function click(){
+ $this->load->model('mclusers');
+
+ $temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
+ $email = str_replace("%40","@",end($temptomb));
+ $tema = $this->uri->segment(3);
+
+ $user = $this->phpsession->get('user');
+ $user['voltmobiloldal'] = true;
+ $this->phpsession->save('user',$user);
+
+ if($tema == "marzipan"){ // már nincs
+ $egyezes = "/marzipan";
+ $info = "Marcipán oldal megtekintve: archlinexp.com/marzipan";
+ $hibainfo = "Marzipán";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 181, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 157, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("marzipan");
+
+ }elseif($tema == "akcio"){ // már nincs
+ // $egyezes = "/page/show/635";
+ $egyezes = "news/show/ev-vegi-akcio";
+ $info = "Akció oldal megtekintve: archline.hu/page/show/635";
+ $hibainfo = "Akció";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 57, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 138, $egyezes, $info, "hun", $hibainfo);
+
+ // redirect("page/show/635");
+ redirect("news/show/ev-vegi-akcio");
+
+ }elseif($tema == "bratislava"){ // már nincs
+ $egyezes = "/page/show/637";
+ $info = "Presentation in Bratislava megtekintve: http://www.archlinexp.com/page/show/637";
+ $hibainfo = "Bratislava";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 250, $egyezes, $info, "esp", $hibainfo);
+ else
+ $this->mclusers->levelesemenyEsp($email, "events", "click", 136, $egyezes, $info, "esp", $hibainfo);
+
+ redirect("page/show/637");
+
+ }elseif($tema == "interiorpro"){
+ $egyezes = "/interior/pro";
+ $info = "Has been seen: http://www.archlinexp.com/interior/pro";
+ $hibainfo = "Interior PRO";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 180, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 164, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("/interior/pro");
+
+ }elseif($tema == "interiorproesp"){
+ $egyezes = "/interior/pro";
+ $info = "Has been seen: http://www.archlinexp.com/interior/pro";
+ $hibainfo = "Interior PRO, esp";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 255, $egyezes, $info, "esp", $hibainfo);
+ else
+ $this->mclusers->levelesemenyEsp($email, "events", "click", 137, $egyezes, $info, "esp", $hibainfo);
+
+ redirect("/interior/pro");
+
+ }elseif($tema == "ujdonsagok2012"){
+ $egyezes = "/ujdonsagok-2012";
+ $info = "Újdonságok megtekintve: http://www.archline.hu/ujdonsagok-2012";
+ $hibainfo = "Ujdonságok 2012, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 74, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 131, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("ujdonsagok-2012");
+
+ }elseif($tema == "birmingham"){
+ $egyezes = "/workshop/birmingham";
+ $info = "Has been seen: http://www.archlinexp.com/workshop/birmingham";
+ $hibainfo = "birmingham";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 170, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 165, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("/workshop/birmingham");
+
+ }elseif($tema == "akcio-vn"){
+ //$egyezes = "Valentin napi akci";
+ //$info = "Megtekintve: http://www.archline.hu/ Valentin napi akció";
+ $egyezes = "/buy Valentin napi akc";
+ $info = "Megtekintve: http://www.archline.hu/buy Valentin napi akció";
+ $hibainfo = "Valentin napi akció, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 57, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 138, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("buy");
+
+ }elseif($tema == "akcio-construma"){
+ $egyezes = "/buy Construma akc";
+ $info = "Megtekintve: http://www.archline.hu/buy Construma akció";
+ $hibainfo = "Construma akció, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 57, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 138, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("buy");
+
+ }elseif($tema == "akcio-megrendelo"){
+ $egyezes = "megrendelo lap";
+ $info = "Megtekintve: http://www.archline.hu/public/upload/hun/Megrendelo_2012_Interior.pdf akció, megrendelo lap";
+ $hibainfo = "Valentin nap, megrendelő lap, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 57, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 138, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("public/upload/hun/Megrendelo_2012_Interior.pdf");
+
+ }elseif($tema == "service-handsketch"){
+ /*$egyezes = "archlinexp.com/services/sketch .";
+ $info = "Has been seen: http://www.archlinexp.com/services/sketch .";
+ $hibainfo = "Hand sketch, eng";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("services/sketch");*/
+ $egyezes = "archlinexp.eu/packages/3d-interior-modeling .";
+ $info = "3D model, Has been seen: www.archlinexp.eu/packages/3d-interior-modeling .";
+ $hibainfo = "Model price, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 187, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+ header('Location: http://www.archlinexp.eu/packages/3d-interior-modeling');
+ exit;
+
+ }elseif($tema == "service-rendering"){
+ /*$egyezes = "archlinexp.com/services/rendering";
+ $info = "Has been seen: http://www.archlinexp.com/services/rendering";
+ $hibainfo = "Rendering, eng";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("services/rendering");*/
+ $egyezes = "archlinexp.eu/packages/photorealistic-rendering .";
+ $info = "Rendering, Has been seen: www.archlinexp.eu/packages/photorealistic-rendering .";
+ $hibainfo = "RE price, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 187, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+ header('Location: http://www.archlinexp.eu/packages/photorealistic-rendering');
+ exit;
+
+ }elseif($tema == "service-virtuallyfurnish"){
+ /*$egyezes = "archlinexp.com/services/virtuallyfurnish";
+ $info = "Has been seen: http://www.archlinexp.com/services/virtuallyfurnish";
+ $hibainfo = "Virtually staged, eng";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("services/virtuallyfurnish");*/
+ $egyezes = "archlinexp.eu/packages/virtual-photo-staging .";
+ $info = "Virtually staged, Has been seen: www.archlinexp.eu/packages/virtual-photo-staging .";
+ $hibainfo = "VS price, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 187, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+ header('Location: http://www.archlinexp.eu/packages/virtual-photo-staging');
+ exit;
+
+ }elseif($tema == "service-vs-price"){
+ /*$egyezes = "archlinexp.com/services/virtuallyfurnish/pricing";
+ $info = "Virtually staged, Has been seen: http://www.archlinexp.com/services/virtuallyfurnish/pricing";
+ $hibainfo = "VS price, eng";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("services/virtuallyfurnish/pricing");*/
+ $egyezes = "archlinexp.eu/packages/virtual-photo-staging/details";
+ $info = "Virtually staged, Has been seen: www.archlinexp.eu/packages/virtual-photo-staging/details";
+ $hibainfo = "VS price, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 187, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+ header('Location: http://www.archlinexp.eu/packages/virtual-photo-staging/details');
+ exit;
+
+ }elseif($tema == "service-re-price"){
+ /*$egyezes = "archlinexp.com/services/rendering/pricing";
+ $info = "Rendering, Has been seen: http://www.archlinexp.com/services/rendering/pricing";
+ $hibainfo = "RE price, eng";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("services/rendering/pricing");*/
+ $egyezes = "archlinexp.eu/packages/photorealistic-rendering/details";
+ $info = "Rendering, Has been seen: www.archlinexp.eu/packages/photorealistic-rendering/details";
+ $hibainfo = "RE price, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 187, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+ header('Location: http://www.archlinexp.eu/packages/photorealistic-rendering/details');
+ exit;
+
+ }elseif($tema == "service-sk-price"){
+ /*$egyezes = "archlinexp.com/services/sketch/pricing";
+ $info = "Hand sketch, Has been seen: http://www.archlinexp.com/services/sketch/pricing";
+ $hibainfo = "SK price, eng";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("services/sketch/pricing");*/
+ $egyezes = "archlinexp.eu/packages/3d-interior-modeling/details";
+ $info = "3D model, Has been seen: www.archlinexp.eu/packages/3d-interior-modeling/details";
+ $hibainfo = "Model price, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 187, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+ header('Location: http://www.archlinexp.eu/packages/3d-interior-modeling/details');
+ exit;
+
+ }elseif($tema == "szolgaltatasok-kezirajz"){
+ $egyezes = "archline.hu/services/sketch .";
+ $info = "Megtekintve: http://www.archline.hu/services/sketch .";
+ $hibainfo = "Szolgáltatások, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 72, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 140, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("services/sketch");
+
+ }elseif($tema == "szolgaltatasok-vs-arak"){
+ $egyezes = "archline.hu/services/virtuallyfurnish/pricing";
+ $info = "Virtual staging, megtekintve: http://www.archline.hu/services/virtuallyfurnish/pricing";
+ $hibainfo = "VS árak, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 72, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 140, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("services/virtuallyfurnish/pricing");
+
+ }elseif($tema == "szolgaltatasok-re-arak"){
+ $egyezes = "archline.hu/services/rendering/pricing";
+ $info = "Renderelt képek készítése, megtekintve: http://www.archline.hu/services/rendering/pricing";
+ $hibainfo = "Renderelés árak, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 72, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 140, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("services/rendering/pricing");
+
+ }elseif($tema == "szolgaltatasok-sk-arak"){
+ $egyezes = "archline.hu/services/sketch/pricing";
+ $info = "3D modell készítése, megtekintve: http://www.archline.hu/services/sketch/pricing";
+ $hibainfo = "3D modell árak, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 72, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 140, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("services/sketch/pricing");
+
+ }elseif($tema == "service-handsketch-esp"){
+ $egyezes = "archlinexp.com/services/sketch .";
+ $info = "Has been seen: http://www.archlinexp.com/services/sketch .";
+ $hibainfo = "Hand sketch, esp";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 257, $egyezes, $info, "esp", $hibainfo);
+ else
+ $this->mclusers->levelesemenyEsp($email, "events", "click", 140, $egyezes, $info, "esp", $hibainfo);
+
+ redirect("services/sketch");
+
+ }elseif($tema == "service-vs-price-esp"){
+ $egyezes = "archlinexp.com/services/virtuallyfurnish/pricing";
+ $info = "Virtually staged, Has been seen: http://www.archlinexp.com/services/virtuallyfurnish/pricing";
+ $hibainfo = "VS price, esp";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 257, $egyezes, $info, "esp", $hibainfo);
+ else
+ $this->mclusers->levelesemenyEsp($email, "events", "click", 140, $egyezes, $info, "esp", $hibainfo);
+
+ redirect("services/virtuallyfurnish/pricing");
+
+ }elseif($tema == "service-re-price-esp"){
+ $egyezes = "archlinexp.com/services/rendering/pricing";
+ $info = "Rendering, Has been seen: http://www.archlinexp.com/services/rendering/pricing";
+ $hibainfo = "RE price, esp";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 257, $egyezes, $info, "esp", $hibainfo);
+ else
+ $this->mclusers->levelesemenyEsp($email, "events", "click", 140, $egyezes, $info, "esp", $hibainfo);
+
+ redirect("services/rendering/pricing");
+
+ }elseif($tema == "service-sk-price-esp"){
+ $egyezes = "archlinexp.com/services/sketch/pricing";
+ $info = "Hand sketch, Has been seen: http://www.archlinexp.com/services/sketch/pricing";
+ $hibainfo = "SK price, esp";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 257, $egyezes, $info, "esp", $hibainfo);
+ else
+ $this->mclusers->levelesemenyEsp($email, "events", "click", 140, $egyezes, $info, "esp", $hibainfo);
+
+ redirect("services/sketch/pricing");
+
+ }elseif($tema == "news-services"){
+ $egyezes = "archlinexp.com/new-features-2012";
+ $info = "New Features, Has been seen: http://www.archlinexp.com/new-features-2012";
+ $hibainfo = "News services, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 182, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 178, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("new-features-2012");
+
+ }elseif($tema == "download-interior"){
+ $egyezes = "archlinexp.com/interior/download";
+ $info = "Interior Download, Has been seen: http://www.archlinexp.com/interior/download";
+ $hibainfo = "Int download, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 182, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 178, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("interior/download");
+
+ }elseif($tema == "download-int-hun"){
+ $egyezes = "archline.hu/interior/download";
+ $info = "Letöltési oldal: http://www.archline.hu/interior/download";
+ $hibainfo = "Interior letöltés, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 70, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 141, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("interior/download");
+
+ }elseif($tema == "new-features-esp"){
+ $egyezes = "archlinexp.com/new-features-2012";
+ $info = "Újdonságok oldal megtekintve: http://www.archlinexp.com/new-features-2012";
+ $hibainfo = "újdonságok, esp";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 258, $egyezes, $info, "esp", $hibainfo);
+ else
+ $this->mclusers->levelesemenyEsp($email, "events", "click", 142, $egyezes, $info, "esp", $hibainfo);
+
+ redirect("new-features-2012");
+
+ }elseif($tema == "akcio-hv"){
+ $egyezes = "archline.hu .. húsvét";
+ $info = "Húsvéti akció megtekintve: http://www.archline.hu .. húsvét";
+ $hibainfo = "húsvét, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 67, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 147, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("");
+
+ }elseif($tema == "construma2012" || $tema == "construma2013"){
+ $egyezes = "workshop/construma";
+ $info = "Construma oldal megtekintve: http://www.archline.hu/workshop/construma";
+ $hibainfo = "construma, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 74, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 131, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("workshop/construma");
+
+ }elseif($tema == "honapkepereszletek"){
+ $egyezes = "news/show/83";
+ $info = "A hónap képe pályázat részletei megtekintve: http://www.archline.hu/news/show/83";
+ $hibainfo = "honapkepereszletek, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 66, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 148, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("news/show/83");
+
+ }elseif($tema == "showroom"){
+ $egyezes = "archlinexp.com/showroom";
+ $info = "Showroom, Has been seen: http://www.archlinexp.com/showroom";
+ $hibainfo = "showroom, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 186, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 184, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("showroom");
+
+ }elseif($tema == "bemutatoterem"){
+ $egyezes = "archline.hu/showroom";
+ $info = "Bemutatóterem oldal: http://www.archline.hu/showroom";
+ $hibainfo = "showroom, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 59, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 149, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("showroom");
+
+ }elseif($tema == "ujdonsag-bemutatoterem"){
+ $egyezes = "archline.hu/page/show/bemutatoterem";
+ $info = "Bemutatóterem oldal: http://www.archline.hu/page/show/bemutatoterem";
+ $hibainfo = "Újdonság, bemutatóterem, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 59, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 149, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("page/show/bemutatoterem");
+
+ }elseif($tema == "chelsea"){
+ $egyezes = "archlinexp.com/chelseaflower";
+ $info = "Has been seen: http://www.archlinexp.com/chelseaflower";
+ $hibainfo = "Chelsea, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 171, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 186, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("chelseaflower");
+
+ }elseif($tema == "idealhomeshow"){
+ $egyezes = "archlinexp.com/events/idealhomeshow";
+ $info = "Has been seen: http://www.archlinexp.com/events/idealhomeshow";
+ $hibainfo = "Ideal home show, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 179, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 187, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("events/idealhomeshow");
+
+ }elseif($tema == "pecsexpo"){
+ $egyezes = "archline.hu/events/pecsexpo";
+ $info = "Pécs Expo megtekintve: http://www.archline.hu/events/pecsexpo";
+ $hibainfo = "Pécs expo";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 71, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 151, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("events/pecsexpo");
+
+ }elseif($tema == "mainsite"){
+ $egyezes = "archlinexp.com. ..";
+ $info = "Has been seen: http://www.archlinexp.com. ..";
+ $hibainfo = "Main site, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 176, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 190, $egyezes, $info, "eng", $hibainfo);
+
+ header('Location: http://www.archlinexp.com');
+
+ }elseif($tema == "free-app"){
+ $egyezes = "archlinexp.com/free-app";
+ $info = "Has been seen: http://www.archlinexp.com/free-app";
+ $hibainfo = "Free app, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 177, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 191, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("free-app");
+
+ }elseif($tema == "bnv2012"){
+ $egyezes = "archline.hu/workshop/bnv";
+ $info = "BNV megtekintve: http://www.archline.hu/workshop/bnv";
+ $hibainfo = "BNV levél";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 60, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 157, $egyezes, $info, "hun", $hibainfo);
+
+ //redirect("workshop/bnv");
+ header("Location: http://www.archline.hu/workshop/bnv"); exit;
+
+ }elseif($tema == "interiorpricelist"){
+ $egyezes = "archlinexp.com/interior/buy";
+ $info = "Has been seen: http://www.archlinexp.com/interior/buy";
+ $hibainfo = "Pricelist, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 169, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 192, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("interior/buy");
+
+ }elseif($tema == "onlinepresentation"){
+ $egyezes = "archlinexp.com/presentation/online";
+ $info = "Has been seen: http://www.archlinexp.com/presentation/online";
+ $hibainfo = "Online presentation, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 184, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 193, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("presentation/online");
+
+ }elseif($tema == "freeapphu"){
+ $egyezes = "archline.hu/free-app";
+ $info = "ARCHLine View megtekintve: http://www.archline.hu/free-app";
+ $hibainfo = "Free app hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 62, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 158, $egyezes, $info, "hun", $hibainfo);
+
+ //redirect("workshop/bnv");
+ header("Location: http://www.archline.hu/free-app"); exit;
+
+ }elseif($tema == "archlineklub"){
+ $klubtema = "/".$this->uri->segment(4);
+ if( strpos($klubtema,'@') )
+ $klubtema = "";
+ $egyezes = "archline.hu/archline-klub".$klubtema;
+ $info = "ARCHLine Klub megtekintve: http://www.archline.hu/archline-klub".$klubtema;
+ $hibainfo = "Archline Klub";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 58, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 159, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("archline-klub".$klubtema);
+
+ }elseif($tema == "archlineevening"){
+ $klubtema = "/".$this->uri->segment(4);
+ if( strpos($klubtema,'@') )
+ $klubtema = "";
+ $egyezes = "archlinexp.com/archline-evening".$klubtema;
+ $info = "ARCHLine Evening megtekintve: http://www.archlinexp.com/archline-evening".$klubtema;
+ $hibainfo = "Archline Evening";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 276, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("archline-evening".$klubtema);
+
+ }elseif($tema == "christmasoffer"){
+ $egyezes = "archlinexp.com/news/show/christmas-offer";
+ $info = "Christmas offer: http://www.archlinexp.com/news/show/christmas-offer";
+ $hibainfo = "christmas offer new, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 183, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 147, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("news/show/christmas-offer");
+
+ }elseif($tema == "betaletoltes32"){
+ $egyezes = "Béta letöltve: http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_Beta_32bit_setup.exe";
+ $info = "Béta letöltve: http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_Beta_32bit_setup.exe";
+ $hibainfo = "Béta, hun";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 9, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("public/downloads/eng/ARCHLINE_XP2014_Beta_32bit_setup.exe");
+
+ }elseif($tema == "betaletoltes64"){
+ $egyezes = "Béta letöltve: http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_Beta_64bit_setup.exe";
+ $info = "Béta letöltve: http://www.archline.hu/public/downloads/eng/ARCHLINE_XP2014_Beta_64bit_setup.exe";
+ $hibainfo = "Béta, hun";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 9, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("public/downloads/eng/ARCHLINE_XP2014_Beta_64bit_setup.exe");
+
+ }elseif($tema == "evkepe2012"){
+ //$egyezes = "www.archline.hu/yearpicture2012";
+ //$info = "Has been seen: http://www.archline.hu/yearpicture2012";
+ $egyezes = "www.archline.hu/palyazat/nyertes2012";
+ $info = "Megtekintve: http://www.archline.hu/palyazat/nyertes2012";
+ $hibainfo = "év képe, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 61, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 163, $egyezes, $info, "hun", $hibainfo);
+
+ //redirect("palyazat/evkepe2012");
+ redirect("palyazat/nyertes2012");
+
+ }elseif($tema == "yearpicture2012"){
+ $egyezes = "www.archlinexp.com/yearpicture2012";
+ $info = "Has been seen: http://www.archlinexp.com/yearpicture2012";
+ $hibainfo = "év képe, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 175, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 196, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("yearpicture2012");
+
+ }elseif($tema == "ujdonsagok2013"){
+ $egyezes = "archline.hu/ujdonsagok-2013";
+ $info = "Megtekintve: http://www.archline.hu/ujdonsagok-2013";
+ $hibainfo = "2013 újdonságok, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 73, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 169, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("/ujdonsagok-2013");
+
+ }elseif($tema == "ujdonsagok2013v2"){
+ $egyezes = "archline.hu/ujdonsagok-2013";
+ $info = "Megtekintve: http://www.archline.hu .. újdonságok 2013";
+ $hibainfo = "2013 újdonságok, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 73, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 169, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("");
+
+ }elseif($tema == "newfeatures2013"){
+ $egyezes = "www.archlinexp.com/new-features-2013";
+ $info = "New features 2013: http://www.archlinexp.com/new-features-2013";
+ $hibainfo = "new features, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 172, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 178, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("new-features-2013");
+
+ }elseif($tema == "paratlanlehetosegparosaval"){
+ $egyezes = "archline.hu/construmaakcio";
+ $info = "Megtekintve: http://www.archline.hu/construmaakcio";
+ $hibainfo = "Construma akció, hun";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 57, $egyezes, $info, "hun", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 138, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("/construmaakcio");
+
+ }elseif($tema == "kbbpresentation"){
+ $egyezes = "www.archlinexp.com/presentation/kbb";
+ $info = "KBB London 2013: http://www.archlinexp.com/presentation/kbb";
+ $hibainfo = "kbb presentation, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 182, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 178, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("presentation/kbb");
+
+ }elseif($tema == "kbbworkshop"){
+ $egyezes = "www.archlinexp.com/workshop/kbb";
+ $info = "KBB London 2013: http://www.archlinexp.com/workshop/kbb";
+ $hibainfo = "kbb workshop, eng";
+
+ if(UJUGYFELKEZELO===true)
+ $this->mclusers->levelesemeny($email, "events", "click", 182, $egyezes, $info, "eng", $hibainfo);
+ else
+ $this->mclusers->levelesemeny($email, "events", "click", 178, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("workshop/kbb");
+
+ }elseif($tema == "tervezz-szabadon"){
+ $egyezes = "www.archline.hu/tervezz-szabadon/palyazat";
+ $info = "Tervezz szabadon pályázat: http://www.archline.hu/tervezz-szabadon/palyazat";
+ $hibainfo = "tervezz szabadon, hun";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 273, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("tervezz-szabadon/palyazat");
+
+ }elseif($tema == "tervezz-szabadon-amator"){
+ $egyezes = "www.archline.hu/tervezz-szabadon/palyazat/amator";
+ $info = "Tervezz szabadon pályázat: http://www.archline.hu/tervezz-szabadon/palyazat/amator";
+ $hibainfo = "tervezz szabadon, hun amator";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 283, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("tervezz-szabadon/palyazat/amator");
+
+ }elseif($tema == "tervezz-szabadon-felhasznalo"){
+ $egyezes = "www.archline.hu/tervezz-szabadon/palyazat/felhasznalo";
+ $info = "Tervezz szabadon pályázat: http://www.archline.hu/tervezz-szabadon/palyazat/felhasznalo";
+ $hibainfo = "tervezz szabadon, hun felhasznalo";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 285, $egyezes, $info, "hun", $hibainfo);
+
+ redirect("tervezz-szabadon/palyazat/felhasznalo");
+
+ }elseif($tema == "feel-free-to-design-amature"){
+ $egyezes = "www.archlinexp.com/voting/voting/amature";
+ $info = "Tervezz szabadon pályázat: http://www.archline.com/voting/voting/amature";
+ $hibainfo = "tervezz szabadon, eng amature";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 284, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("feel-free-to-design/voting/amature");
+
+ }elseif($tema == "feel-free-to-design-user"){
+ $egyezes = "www.archlinexp.com/feel-free-to-design/voting/user";
+ $info = "Tervezz szabadon pályázat: http://www.archlinexp.com/feel-free-to-design/voting/felhasznalo";
+ $hibainfo = "tervezz szabadon, eng user";
+
+ $this->mclusers->levelesemeny($email, "events", "click", 286, $egyezes, $info, "eng", $hibainfo);
+
+ redirect("feel-free-to-design/voting/felhasznalo");
+
+ }else{
+ $record->osztaly = "events";
+ $record->fv = "click";
+ $record->hiba = "Hibás téma: ".$tema."\nemail: ".$email;
+ $record->datum = date('Y-m-d H:i:s',time());
+ $this->db->insert('a_hibak',$record);
+
+ redirect('');
+ }
+
+ redirect('');
+ }
+
+ function newclick(){
+ $this->load->model('mclusers');
+
+ $temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
+ $email = str_replace("%40","@",end($temptomb));
+ $tema = $this->uri->segment(3);
+
+ $user = $this->phpsession->get('user');
+ $user['voltmobiloldal'] = true;
+ $this->phpsession->save('user',$user);
+
+ if($adatok = $this->db->where('alias',$tema)->get('followed_links')->row()){
+ $egyezes = $adatok->esem_cont;
+ $info = $adatok->esem_cont;
+ $hibainfo = $adatok->name;
+ $lang = $adatok->lang;
+ $esem_id = $adatok->esem_id;
+
+ $this->mclusers->levelesemeny($email, "events", "newclick", $esem_id, $egyezes, $info, $lang, $hibainfo);
+
+ header("Location: ".$adatok->redirect); exit;
+ }
+
+ redirect('');
+ }
+
+ function regcz(){
+ $this->load->model('mclusers');
+
+ $user["strName"] = $this->input->post("name");
+ $user["strTel"] = $this->input->post("phone");
+ $user["strEmail"] = $this->input->post("email");
+ $user["nCtrID"] = 420;
+
+ $info = "Regisztráció a honlapon: Presentation in Bratislava, name: ".$user["strName"].", phone: ".$user["strTel"];
+
+ $nUserID = $this->mclusers->get_nUserIDByEmail($user["strEmail"],'esp');
+
+
+ if($nUserID){
+ $this->mclusers->addEvent($nUserID, "113", $info, 'esp');
+
+ }else{
+
+ $nUserID = $this->mclusers->addUserSpa($user);
+
+ $this->mclusers->addEvent($nUserID, "113", $info,'esp');
+
+ }
+
+ $page = $this->mpages->get_row(638);
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ $this->email->from('info@archlinexp.com', 'Cadline Weboldal');
+ $this->email->subject('Registration, Presentation in Bratislava');
+ $this->email->message($page->page_body);
+ $this->email->send($this->input->post("email"), 'smtp');
+
+ redirect('/page/show/638');
+
+ /*$this->email->clear();
+
+ $this->email->from('info@archlinexp.com', 'Cadline Weboldal');
+ $this->email->subject('Registration, Presentation in Bratislava');
+ $this->email->message($page->page_body);
+ $this->email->send('info@archlinexp.com', 'smtp');*/
+
+ }
+
+ function chelseaflower(){
+
+ $data['javascript'] = array(
+ 'jquery.mousewheel.min',
+
+ 'fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack',
+
+ );
+
+ $data['style'] = array(
+
+ '../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2'
+ );
+
+ $data['title'] = "ARCHLine.XP, Chelsea Flower Show";
+
+ $data['page'] = $this->mpages->get_row(687);
+
+ $data['tartalom'] = 'other/chelseaflower';
+
+ $this->load->view('site', $data);
+ }
+
+}
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/flashreel.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/flashreel.php
new file mode 100644
index 0000000..0ce8f8e
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/flashreel.php
@@ -0,0 +1,90 @@
+load->model('mflashreel');
+ }
+
+ function index()
+ {
+ //print $this->muser->user['lang'];
+
+ $adatok = $this->mflashreel->get_allnext();
+ //print_r($adatok);
+ print count($adatok)."\r\n";
+ foreach($adatok as $adat){
+ //print $adat->position."
";
+ print $adat->filename."\r\n";
+ print $adat->runtime."\r\n";
+ print $adat->link."\r\n";
+ }
+
+
+ }
+
+ function hun2(){
+ $adatok = $this->mflashreel->get_allnext('hun');
+ print count($adatok)."\r\n";
+ foreach($adatok as $adat){
+ print $adat->filename."\r\n";
+ print $adat->runtime."\r\n";
+ print $adat->link."\r\n";
+ }
+ }
+
+ function eng2(){
+ $adatok = $this->mflashreel->get_allnext('eng');
+ print count($adatok)."\r\n";
+ foreach($adatok as $adat){
+ print $adat->filename."\r\n";
+ print $adat->runtime."\r\n";
+ print $adat->link."\r\n";
+ }
+ }
+
+ function uj(){
+
+ }
+
+ function vf(){
+ $lang = $this->uri->segment(3);
+ if( !$lang ) $lang = "eng";
+
+ $adatok = $this->db->query('SELECT * FROM `cadline2`.`service_flash` WHERE service = "vf" AND position > 0 AND lang = "'.$lang.'" ORDER BY position ASC')->result();
+ print count($adatok)."\r\n";
+ foreach($adatok as $adat){
+ print $adat->filename."\r\n";
+ print $adat->runtime."\r\n";
+ print "http://www.archlinexp.com"."\r\n";
+ }
+ }
+
+ function re(){
+ $lang = $this->uri->segment(3);
+ if( !$lang ) $lang = "eng";
+
+ $adatok = $this->db->query('SELECT * FROM `cadline2`.`service_flash` WHERE service = "re" AND position > 0 AND lang = "'.$lang.'" ORDER BY position ASC')->result();
+ print count($adatok)."\r\n";
+ foreach($adatok as $adat){
+ print $adat->filename."\r\n";
+ print $adat->runtime."\r\n";
+ print "http://www.archlinexp.com"."\r\n";
+ }
+ }
+
+ function sk(){
+ $lang = $this->uri->segment(3);
+ if( !$lang ) $lang = "eng";
+
+ $adatok = $this->db->query('SELECT * FROM `cadline2`.`service_flash` WHERE service = "sk" AND position > 0 AND lang = "'.$lang.'" ORDER BY position ASC')->result();
+ print count($adatok)."\r\n";
+ foreach($adatok as $adat){
+ print $adat->filename."\r\n";
+ print $adat->runtime."\r\n";
+ print "http://www.archlinexp.com"."\r\n";
+ }
+ }
+}
+?>
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/free.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/free.php
new file mode 100644
index 0000000..9041aee
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/free.php
@@ -0,0 +1,245 @@
+load->model('mctr');
+
+ $data['ctr'] = hun() ? $this->mctr->get_all_ctr('ctrNameHun') : $this->mctr->get_all_ctr();
+
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(291);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(363);
+ elseif(jap())
+ $data['cimlap'] = $this->mpages->get_row(303);
+ elseif( esp() )
+ $data['cimlap'] = $this->mpages->get_row(453);
+ else
+ $data['cimlap'] = $this->mpages->get_row(470);
+
+ $data['title'] = hun() ? 'ARCHLine.XP - Letöltés' : 'ARCHLine.XP FREE-EDITION - Download';
+ $data['tartalom']='free/download';
+ $data['javascript'] = array('intkit/JavaScriptFlashGateway', 'comparison', 'interior_menu', 'downloads_int');
+ $data['csik']=array('home','freedownloads');
+
+ $data["noindex"] = true;
+
+ $this->load->view('site',$data);
+ }
+
+ function workflow()
+ {
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(289);
+ elseif(jap())
+ $data['cimlap'] = $this->mpages->get_row(300);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(361);
+ else
+ $data['cimlap'] = $this->mpages->get_row(288);
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - Munkamenet' : 'ARCHLine.XP Interior Design Software - Workflow';
+ $data['tartalom'] = '/interior/workflow';
+ $data['javascript'] = array('intkit/JavaScriptFlashGateway', 'interior_menu', 'interior_banner');
+
+ $this->load->view('site',$data);
+ }
+
+ function powerful()
+ {
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(285);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(354);
+ elseif(jap())
+ $data['cimlap'] = $this->mpages->get_row(302);
+ else
+ $data['cimlap'] = $this->mpages->get_row(284);
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - Kiemelkedő Jellemzők' : 'ARCHLine.XP Interior Design Software - Powerful Features';
+ $data['tartalom'] = 'interior/powerful';
+ $data['javascript'] = array('intkit/JavaScriptFlashGateway', 'interior_menu', 'interior_banner');
+
+ $this->load->view('site',$data);
+ }
+
+ function comparison()
+ {
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(290);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(362);
+ elseif(jap())
+ $data['cimlap'] = $this->mpages->get_row(301);
+ else
+ $data['cimlap'] = $this->mpages->get_row(292);
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - Összehasonlítás' : 'ARCHLine.XP Interior Design Software - Comparison';
+ $data['tartalom'] = 'interior/comparison';
+ $data['javascript'] = array('intkit/JavaScriptFlashGateway', 'comparison', 'interior_menu', 'interior_banner');
+
+ $this->load->view('site',$data);
+ }
+
+ function buy()
+ {
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(287);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(360);
+ elseif(jap())
+ $data['cimlap'] = $this->mpages->get_row(299);
+ else
+ $data['cimlap'] = $this->mpages->get_row(446);
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - Vásárlás' : 'ARCHLine.XP Interior Design Software - Purchase';
+ $data['tartalom'] = 'interior/buy';
+ $data['javascript'] = array('interior_menu');
+
+ $this->load->view('site',$data);
+ }
+
+ function download()
+ {
+ Header("HTTP/1.1 301 Moved Permanently");
+ Header("Location: http://www.archlinexp.com/interior/download");
+
+
+ if( $this->uri->segment(3) == "esp" ){
+ redirect('settings/lang2/esp');
+ }
+
+ $this->load->model('mctr');
+
+ $data['ctr'] = hun() ? $this->mctr->get_all_ctr('ctrNameHun') : $this->mctr->get_all_ctr();
+
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(291);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(363);
+ elseif(jap())
+ $data['cimlap'] = $this->mpages->get_row(303);
+ elseif( esp() )
+ $data['cimlap'] = $this->mpages->get_row(453);
+ else
+ $data['cimlap'] = $this->mpages->get_row(293);
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - Letöltés' : 'ARCHLine.XP Interior Design Software - Download';
+ $data['tartalom']='interior/download';
+ //$data['javascript'] = array('intkit/JavaScriptFlashGateway', 'comparison', 'interior_menu', 'interior_banner', 'downloads_int');
+ $data['javascript'] = array('intkit/JavaScriptFlashGateway', 'comparison', 'interior_menu', 'downloads_int');
+
+ $data['csik']=array('home','downloads');
+ $this->load->view('site',$data);
+ }
+
+ function updates()
+ {
+ $this->load->model('mdownloads');
+ $this->load->model('mctr');
+
+ $data['heading']=$this->mdownloads->get_heading('updates');
+ $data['downloads']=$this->mdownloads->get_category('updates',$this->muser->user['lang']);
+ $data['aktiv']=2;
+
+ $data['lang']=$this->muser->user['lang'];
+ $data['tartalom']='interior/list2';
+ $data['csik']=array('home','interior','updates');
+ $data['title']='ARCHline.XP CAD Software - Download Updates';
+ $this->load->view('site',$data);
+ }
+
+
+ function support()
+ {
+ $this->load->model('mdownloads');
+ $this->load->model('mctr');
+
+ $data['heading']=$this->mdownloads->get_heading('support');
+ $data['downloads']=$this->mdownloads->get_category('support',$this->muser->user['lang']);
+ $data['aktiv']=4;
+
+ $data['lang']=$this->muser->user['lang'];
+ $data['title'] = hun() ? 'ARCHLine.XP Támogatás' : 'ARCHLine.XP Support';
+ $data['tartalom']='interior/list2';
+ $data['csik']=array('home','interior','support');
+ $this->load->view('site',$data);
+ }
+
+ function learn()
+ {
+ $data['learn_url'] = base64_decode($this->uri->segment(4));
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - Oktatás' : 'ARCHLine.XP Interior Design Software - Learn';
+ $data['tartalom'] = 'interior/learn';
+ $data['javascript'] = array('prototype', 'base64', 'anchor.jquery', 'learn', 'interior_menu', 'tooltip');
+ !hun() ? $data['javascript'][3] = 'learn_eng' : '';
+
+ $this->load->view('site',$data);
+ }
+
+ function system()
+ {
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(275);
+ elseif(be())
+ $data['cimlap'] = $this->mpages->get_row(355);
+ else
+ $data['cimlap'] = $this->mpages->get_row(274);
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - Rendszerkövetelmények' : 'ARCHLine.XP Interior Design Software - System Requirements';
+ $data['tartalom'] = 'interior/system';
+ $data['javascript'] = array('interior_menu');
+
+ $data['csik']=array('home', 'rendszer');
+
+ $this->load->view('site', $data);
+ }
+
+ function reasons()
+ {
+ if(hun())
+ $data['cimlap'] = $this->mpages->get_row(369);
+ else
+ $data['cimlap'] = $this->mpages->get_row(370);
+
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Belsőépítész program - 10 ok a vásárlásra' : 'ARCHLine.XP Interior Design Software - 10 reasons to buy';
+ $data['tartalom'] = '/interior/reasons';
+ $data['javascript'] = array('interior_menu');
+
+ $data['csik']=array('home','10ok');
+
+ $this->load->view('site',$data);
+ }
+
+ function sentint()
+ {
+ $data['title'] = hun() ? 'ARCHLine.XP Interior Letöltés - Sikeres' : 'ARCHLine.XP Free Edition Download - Successful';
+ $data['tartalom']='free/sentint';
+ $data['csik']=array('home','downloads');
+ $data['lang']=$this->muser->user['lang'];
+
+ $this->load->view('site',$data);
+ }
+
+ function special_offer()
+ {
+ $data['title'] = 'ARCHLine.XP Interior - Special Offer';
+ $data['tartalom']='interior/special_offer';
+ $data['cimlap'] = $this->mpages->get_row(430);
+ $data['csik']=array('home','interior');
+
+ $this->load->view('site',$data);
+ }
+
+}
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/gallery.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/gallery.php
new file mode 100644
index 0000000..292a38f
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/gallery.php
@@ -0,0 +1,84 @@
+load->view('site_new',$data);
+ }
+
+ function show(){
+ $mappa = $this->uri->segment(2);
+ $utvonal = "public/gallery/{$mappa}/";
+ $kepek = scandir($utvonal);
+ unset($kepek[0],$kepek[1]);
+ if( is_dir($utvonal."thumbs/") ){
+ $kiskepek = scandir($utvonal."thumbs/");
+ unset($kiskepek[0],$kiskepek[1]);
+ }
+
+ foreach($kepek as $kep){
+ if( !is_dir( $utvonal.$kep ) ){
+ $data['elsokep'] = $utvonal.$kep;
+
+ break;
+ }else{
+ unset($kep); // ???
+ }
+ }
+
+ $data['utvonal'] = $utvonal;
+ $data['kepek'] = $kepek;
+
+ $data['title'] = hun() ? 'Galéria' : 'Gallery';
+ $data['tartalom' ] = 'gallery/show';
+ $data['style'] = array('gallery');
+
+ $this->load->view('site',$data);
+ }
+
+ function show2(){
+ $this->load->model('mclusers');
+ $mappa = $this->uri->segment(3);
+
+ // email atalakitasa
+ $temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
+ $email = str_replace("%40","@",end($temptomb));
+
+
+ $egyezes = "gallery/".$mappa;
+ if(hun())
+ $info = "Galéria megtekintve: ".$level->news_title." (http://archline.hu/gallery/".$mappa.")";
+ else
+ $info = "Has been seen: ".$level->news_title." (http://archlinexp.com/gallery/".$mappa.")";
+ $hibainfo = "Uj galeria, {$mappa}";
+
+ if(hun()){
+ $this->mclusers->levelesemeny($email, "gallery", "show2", 63, $egyezes, $info, "hun", $hibainfo);
+ }
+ else{
+ $this->mclusers->levelesemeny($email, "gallery", "show2", 178, $egyezes, $info, "eng", $hibainfo);
+ }
+
+
+ $user = $this->phpsession->get('user');
+ $user['voltmobiloldal'] = true;
+ $this->phpsession->save('user',$user);
+ $mobil = $user['mobil'];
+
+ redirect("gallery/".$mappa);
+ return;
+ }
+
+}
+
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/getfile.php b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/getfile.php
new file mode 100644
index 0000000..019d583
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/getfile.php
@@ -0,0 +1,110 @@
+"; //ZG93bmxvYWRzL2h1bi9IdW5fWFBfMjAxMC5leGU=
+
+ //print base64_encode("downloads/hun/putty.exe")."
";
+
+ if(!$this->uri->segment(3))
+ {
+ redirect('');
+ exit;
+ }
+
+ $file = base64_decode($this->uri->segment(3));
+ //print "fajl: " . $file;
+
+ $filename = '/home/cadline/public_html/website/public/' . $file;
+ if(file_exists($filename))
+ {
+ header('Content-Disposition: attachment; filename="'.basename($filename).'"');
+ header('Content-type: mime_content_type($file)');
+ readfile($filename);
+ }
+ else
+ {
+ echo 'Nincs ilyen fájl';
+ }
+ }
+
+
+ function pdf()
+ {
+ if(!$this->uri->segment(3))
+ {
+ redirect('');
+ exit;
+ }
+
+ $file = base64_decode($this->uri->segment(3));
+
+ $filename = '/home/cadline/public_html/website/public/pdf/' . $file;
+
+ if(file_exists($filename))
+ {
+ header("Pragma: public");
+ header("Expires: 0");
+ header("Pragma: no-cache");
+ header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
+ header("Content-Type: application/pdf");
+ header('Content-disposition: attachment; filename=' . basename($filename));
+ header("Content-Transfer-Encoding: binary");
+ header('Content-Description: File Transfer');
+ ob_clean();
+ flush();
+ readfile($filename);
+ exit(0);
+ }
+ else
+ {
+ echo 'Nincs ilyen f�jl';
+ }
+ }
+
+ function swf()
+ {
+ if(!$this->uri->segment(3))
+ {
+ redirect('');
+ exit;
+ }
+
+ $file = base64_decode($this->uri->segment(3));
+
+ $filename = '/home/cadline/public_html/website/public/swf/' . $file;
+
+ if(file_exists($filename))
+ {
+ header("Pragma: public");
+ header("Expires: 0");
+ header("Pragma: no-cache");
+ header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
+ header("Content-Type: application/x-shockwave-flash");
+ header('Content-disposition: attachment; filename=' . basename($filename));
+ header('Content-Transfer-Encoding: binary');
+ header('Content-Description: File Transfer');
+ header('Content-Length: ' . filesize($filename));
+ ob_clean();
+ flush();
+ readfile($filename);
+ exit(0);
+ }
+ else
+ {
+ echo 'Nincs ilyen f�jl';
+ }
+
+ }
+}
+?>
\ No newline at end of file
diff --git a/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/index.html b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/index.html
new file mode 100644
index 0000000..4f1f4cb
--- /dev/null
+++ b/var/www/hosting/archlinexp.com/partners/application.reinfect-20260718T160424Z/controllers/index.html
@@ -0,0 +1,15 @@
+
+
+
+
+
";
+
+ $this->load->library('upload', $config);
+
+ $hovakep = '/var/www/hosting/cadline.hu/www/public/img/kezzeltervez/bekuldott_kepek/'.$nyelv.'/';
+
+ include('application/helpers/sajatfeltolto.php');
+ for($i=1;$i<=5;$i++){
+ $asd = "kep".$i;
+ if(isset($_FILES, $_FILES[$asd]['name']) && $_FILES[$asd]['name'] != ''){
+ $ered = feltolt($asd,$hovakep,$name."_".$_FILES[$asd]['name'],true);
+ if($ered)
+ $kep .= $i.". ".lang('kt_kep').": ".basename($ered)."
";
+ else
+ $kep .= $i.". kép feltöltési hiba: ".$name."_".$_FILES[$asd]['name']."
";
+ }else{
+ if(hun())
+ $kep .= "nincs ".$i.". kép"."
";
+ else
+ $kep .= "no ".$i.". image
";
+ }
+ }
+
+
+ $message = preg_replace("/<.+>/Usi", "", $message);
+ // $message .= "
Képek:
".$kep;
+
+ $nUserID = $this->mclusers->get_nUserIDByEmail($email,$nyelv);
+
+ if($nUserID > 0){
+ if(hun())
+ $this->mclusers->addEvent($nUserID, 121, '"'.$message.'"
'.$kep);
+ else
+ $this->mclusers->addEvent($nUserID, 150, '"'.$message.'"
'.$kep,"eng");
+ }else{
+ $tomb->strName = $name;
+ $tomb->strEMail = $email;
+ $tomb->strTel = $tel;
+
+ if(hun()){
+ $nUserID = $this->mclusers->addUserHun($tomb);
+ $this->mclusers->addEvent($nUserID, 121, '"'.$message.'"
'.$kep);
+ }else{
+ $nUserID = $this->mclusers->addUserEng($tomb);
+ $this->mclusers->addEvent($nUserID, 150, '"'.$message.'"
'.$kep,"eng");
+ }
+
+ $tomb2->email = $email;
+ $tomb2->nUserID = $nUserID;
+ if(hun())
+ $this->db->insert('clusers.cl_users_emails',$tomb2);
+ else
+ $this->db->insert('clusers_eng.cl_users_emails',$tomb2);
+ }
+
+ if(!hun())
+ $subject = "Still drawing by hand?";
+
+ $mail_data = array(
+ 'mailcontent' => 'mail/contact',
+ 'name' => $name,
+ 'email' => $email,
+ 'phone' => $tel,
+ 'subject' => $subject,
+ 'message' => $message.$kep,
+ 'eleje' => lang('kt_kedves')." ".$name.lang('kt_kitoltottadatok')."
",
+ 'vege' => "
".lang('kt_udvozlettel')
+ );
+
+ $this->load->library('email');
+ $this->email->initialize();
+
+ $this->email->message($this->load->view('mail/contact', $mail_data, true));
+
+ $this->email->subject(lang('kt_emailsubject'));
+ if(hun()){
+ $this->email->from('info@cadline.hu', 'CadLine Weboldal');
+ $this->email->send('info@cadline.hu', 'smtp');
+ }else{
+ $this->email->from('info@archlinexp.com', 'CadLine Website');
+ $this->email->send('info@archlinexp.com', 'smtp');
+ // $this->email->send('sztikee@gmail.com', 'smtp');
+ }
+
+
+ //Kintre:
+ $this->email->clear();
+
+ if(hun())
+ $this->email->from('info@cadline.hu', 'CadLine Weboldal');
+ else
+ $this->email->from('info@archlinexp.com', 'CadLine Website');
+ $this->email->subject(lang('kt_emailsubject'));
+ $this->email->message($this->load->view('mail', $mail_data, true));
+ $this->email->send($email,'smtp');
+
+
+ $record->osztaly = "kezzeltervez";
+ $record->fv = "submit";
+ $record->hiba = $subject."\n".$name."\n".$email."\n".$tel."\n".$message."\n".$kep."\nország: ".$country;
+ $record->datum = date('Y-m-d H:i:s',time());
+ $this->db->insert('a_hibak',$record);
+
+ $data['title'] = hun() ? 'Jelentkezés' : 'Jelentkezés';
+ $data['tartalom'] = 'forum/kiir';
+ $data['csik']=array('home');
+
+ $data['info'] = "
".lang('kt_submit')."