quarantine: partners.archlinexp.com:application (reinfection-quarantined)
vhost: partners.archlinexp.com rel_path: application result: reinfection-quarantined evidence_sha256: 1a2de948e5625aa769173a9abf248ac81386a9373bcf8825138daf945cd0f24f timestamp: 20260718T160424Z
This commit is contained in:
parent
31ebdf84fa
commit
8e4dbf07ba
@ -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"
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE webproject>
|
||||
<webproject>
|
||||
<project type="Local" name="cadline" encoding="utf8" >
|
||||
<upload/>
|
||||
<author/>
|
||||
<email/>
|
||||
<defaultDTD>-//W3C//DTD HTML 4.01 Transitional//EN</defaultDTD>
|
||||
<item url="" uploadstatus="1" />
|
||||
<templates>templates/</templates>
|
||||
<toolbars>toolbars/</toolbars>
|
||||
</project>
|
||||
</webproject>
|
||||
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE webprojectsession>
|
||||
<webprojectsession>
|
||||
<session usePreviewPrefix="0" previewPrefix="" >
|
||||
<itemcursorpositions>
|
||||
<item line="58" column="18" url="controllers/page.php" />
|
||||
<item line="564" column="8" url="controllers/version.php" />
|
||||
<item line="575" column="46" url="views/admin/downloads.php" />
|
||||
</itemcursorpositions>
|
||||
<treestatus>
|
||||
<openfolder url="controllers" />
|
||||
<openfolder url="views" />
|
||||
<openfolder url="views/admin" />
|
||||
</treestatus>
|
||||
</session>
|
||||
</webprojectsession>
|
||||
@ -0,0 +1,839 @@
|
||||
<!DOCTYPE webproject>
|
||||
<webproject>
|
||||
<project type="Local" name="cadline2" encoding="utf8" >
|
||||
<upload/>
|
||||
<author/>
|
||||
<email/>
|
||||
<defaultDTD>-//W3C//DTD HTML 4.01 Transitional//EN</defaultDTD>
|
||||
<item url="config/" uploadstatus="1" />
|
||||
<item url="config/autoload.php" uploadstatus="1" />
|
||||
<item url="config/config.php" uploadstatus="1" />
|
||||
<item url="config/constants.php" uploadstatus="1" />
|
||||
<item url="config/database.php" uploadstatus="1" />
|
||||
<item url="config/hooks.php" uploadstatus="1" />
|
||||
<item url="config/index.html" uploadstatus="1" />
|
||||
<item url="config/mimes.php" uploadstatus="1" />
|
||||
<item url="config/routes.php" uploadstatus="1" />
|
||||
<item url="config/smileys.php" uploadstatus="1" />
|
||||
<item url="config/tcpdf.php" uploadstatus="1" />
|
||||
<item url="config/user_agents.php" uploadstatus="1" />
|
||||
<item url="controllers/" uploadstatus="1" />
|
||||
<item url="controllers/academic.php" uploadstatus="1" />
|
||||
<item url="controllers/admin.php" uploadstatus="1" />
|
||||
<item url="controllers/apprentice.php" uploadstatus="1" />
|
||||
<item url="controllers/belepo.php" uploadstatus="1" />
|
||||
<item url="controllers/blog.php" uploadstatus="1" />
|
||||
<item url="controllers/business.php" uploadstatus="1" />
|
||||
<item url="controllers/buy.php" uploadstatus="1" />
|
||||
<item url="controllers/collection.php" uploadstatus="1" />
|
||||
<item url="controllers/contact.php" uploadstatus="1" />
|
||||
<item url="controllers/courses.php" uploadstatus="1" />
|
||||
<item url="controllers/downloads.php" uploadstatus="1" />
|
||||
<item url="controllers/drawingbyhand.php" uploadstatus="1" />
|
||||
<item url="controllers/events.php" uploadstatus="1" />
|
||||
<item url="controllers/flashreel.php" uploadstatus="1" />
|
||||
<item url="controllers/forum.php" uploadstatus="1" />
|
||||
<item url="controllers/free.php" uploadstatus="1" />
|
||||
<item url="controllers/getfile.php" uploadstatus="1" />
|
||||
<item url="controllers/groups.php" uploadstatus="1" />
|
||||
<item url="controllers/index.html" uploadstatus="1" />
|
||||
<item url="controllers/interior.php" uploadstatus="1" />
|
||||
<item url="controllers/kezzeltervez.php" uploadstatus="1" />
|
||||
<item url="controllers/lang.php" uploadstatus="1" />
|
||||
<item url="controllers/le.php" uploadstatus="1" />
|
||||
<item url="controllers/monthpicture.php" uploadstatus="1" />
|
||||
<item url="controllers/multimedia.php" uploadstatus="1" />
|
||||
<item url="controllers/newsletter.php" uploadstatus="1" />
|
||||
<item url="controllers/news.php" uploadstatus="1" />
|
||||
<item url="controllers/objects.php" uploadstatus="1" />
|
||||
<item url="controllers/page.php" uploadstatus="1" />
|
||||
<item url="controllers/pagesimple.php" uploadstatus="1" />
|
||||
<item url="controllers/palyazat.php" uploadstatus="1" />
|
||||
<item url="controllers/partners_old.php" uploadstatus="1" />
|
||||
<item url="controllers/partners.php" uploadstatus="1" />
|
||||
<item url="controllers/photo_index.php" uploadstatus="1" />
|
||||
<item url="controllers/photo.php" uploadstatus="1" />
|
||||
<item url="controllers/products.php" uploadstatus="1" />
|
||||
<item url="controllers/projects.php" uploadstatus="1" />
|
||||
<item url="controllers/render.php" uploadstatus="1" />
|
||||
<item url="controllers/rss.php" uploadstatus="1" />
|
||||
<item url="controllers/search.php" uploadstatus="1" />
|
||||
<item url="controllers/settings.php" uploadstatus="1" />
|
||||
<item url="controllers/sitemap.php" uploadstatus="1" />
|
||||
<item url="controllers/stats.php" uploadstatus="1" />
|
||||
<item url="controllers/support_interior.php" uploadstatus="1" />
|
||||
<item url="controllers/support.php" uploadstatus="1" />
|
||||
<item url="controllers/support_save.php" uploadstatus="1" />
|
||||
<item url="controllers/temp_course.php" uploadstatus="1" />
|
||||
<item url="controllers/temp.php" uploadstatus="1" />
|
||||
<item url="controllers/testforum.php" uploadstatus="1" />
|
||||
<item url="controllers/testrender.php" uploadstatus="1" />
|
||||
<item url="controllers/tips.php" uploadstatus="1" />
|
||||
<item url="controllers/unsubscribe.php" uploadstatus="1" />
|
||||
<item url="controllers/version.php" uploadstatus="1" />
|
||||
<item url="controllers/webrender.php" uploadstatus="1" />
|
||||
<item url="controllers/welcome.php" uploadstatus="1" />
|
||||
<item url="controllers/workshop.php" uploadstatus="1" />
|
||||
<item url="errors/" uploadstatus="1" />
|
||||
<item url="errors/error_404.php" uploadstatus="1" />
|
||||
<item url="errors/error_db.php" uploadstatus="1" />
|
||||
<item url="errors/error_general.php" uploadstatus="1" />
|
||||
<item url="errors/error_php.php" uploadstatus="1" />
|
||||
<item url="errors/index.html" uploadstatus="1" />
|
||||
<item url="helpers/" uploadstatus="1" />
|
||||
<item url="helpers/index.html" uploadstatus="1" />
|
||||
<item url="helpers/myimg_helper.php" uploadstatus="1" />
|
||||
<item url="helpers/pclzip.lib.php" uploadstatus="1" />
|
||||
<item url="helpers/sajatfeltolto.php" uploadstatus="1" />
|
||||
<item url="helpers/serial_helper.php" uploadstatus="1" />
|
||||
<item url="hooks/" uploadstatus="1" />
|
||||
<item url="hooks/index.html" uploadstatus="1" />
|
||||
<item url="hooks/preroute.php" uploadstatus="1" />
|
||||
<item url="language/" uploadstatus="1" />
|
||||
<item url="language/be/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/be/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/be/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/be/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/be/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/be/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/cr/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/cr/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/cr/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/cr/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/eng/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/text-base/site_lang 3103.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/text-base/site_lang old.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/eng/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/eng/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/eng/site_lang 3103.php" uploadstatus="1" />
|
||||
<item url="language/eng/site_lang old.php" uploadstatus="1" />
|
||||
<item url="language/eng/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/eng/site_lang save 2011-08-19.php" uploadstatus="1" />
|
||||
<item url="language/esp/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/text-base/site_lang old.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/esp/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/esp/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/esp/site_lang old.php" uploadstatus="1" />
|
||||
<item url="language/esp/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/gr/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/gr/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/gr/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/gr/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/hun/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/hun/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/hun/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/hun/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/jap/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/jap/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/jap/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/jap/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/pol/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/text-base/admin_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/text-base/site_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/text-base/site_lang_regi.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/pol/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/pol/admin_lang.php" uploadstatus="1" />
|
||||
<item url="language/pol/site_lang.php" uploadstatus="1" />
|
||||
<item url="language/pol/site_lang_regi.php" uploadstatus="1" />
|
||||
<item url="language/.svn/" uploadstatus="1" />
|
||||
<item url="language/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/.svn/text-base/index.html.svn-base" uploadstatus="1" />
|
||||
<item url="language/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/system/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/props/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/calendar_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/date_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/db_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/email_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/ftp_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/imglib_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/index.html.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/profiler_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/scaffolding_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/unit_test_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/upload_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/text-base/validation_lang.php.svn-base" uploadstatus="1" />
|
||||
<item url="language/system/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="language/system/.svn/entries" uploadstatus="1" />
|
||||
<item url="language/system/calendar_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/date_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/db_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/email_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/ftp_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/imglib_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/index.html" uploadstatus="1" />
|
||||
<item url="language/system/profiler_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/scaffolding_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/unit_test_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/upload_lang.php" uploadstatus="1" />
|
||||
<item url="language/system/validation_lang.php" uploadstatus="1" />
|
||||
<item url="libraries/" uploadstatus="1" />
|
||||
<item url="libraries/Excel/" uploadstatus="1" />
|
||||
<item url="libraries/Excel/BIFFwriter.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/File.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/Format.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/OLE.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/Parser.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/PPS.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/Root.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/Validator.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/Workbook.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel/Worksheet.php" uploadstatus="1" />
|
||||
<item url="libraries/mmail/" uploadstatus="1" />
|
||||
<item url="libraries/mmail/htmlMimeMail.php" uploadstatus="1" />
|
||||
<item url="libraries/mmail/mimePart.php" uploadstatus="1" />
|
||||
<item url="libraries/mmail/RFC822.php" uploadstatus="1" />
|
||||
<item url="libraries/mmail/smtp.php" uploadstatus="1" />
|
||||
<item url="libraries/Dateclass.php" uploadstatus="1" />
|
||||
<item url="libraries/Email.php" uploadstatus="1" />
|
||||
<item url="libraries/Excel.php" uploadstatus="1" />
|
||||
<item url="libraries/index.html" uploadstatus="1" />
|
||||
<item url="libraries/pdf.php" uploadstatus="1" />
|
||||
<item url="libraries/phpsession.php" uploadstatus="1" />
|
||||
<item url="models/" uploadstatus="1" />
|
||||
<item url="models/index.html" uploadstatus="1" />
|
||||
<item url="models/mclusers.php" uploadstatus="1" />
|
||||
<item url="models/mcollection.php" uploadstatus="1" />
|
||||
<item url="models/mctr.php" uploadstatus="1" />
|
||||
<item url="models/mdb.php" uploadstatus="1" />
|
||||
<item url="models/mdownloads.php" uploadstatus="1" />
|
||||
<item url="models/mevents.php" uploadstatus="1" />
|
||||
<item url="models/mfaq.php" uploadstatus="1" />
|
||||
<item url="models/mflashreel.php" uploadstatus="1" />
|
||||
<item url="models/mforum_old.php" uploadstatus="1" />
|
||||
<item url="models/mforum.php" uploadstatus="1" />
|
||||
<item url="models/mgallery.php" uploadstatus="1" />
|
||||
<item url="models/mgroups.php" uploadstatus="1" />
|
||||
<item url="models/mhelp.php" uploadstatus="1" />
|
||||
<item url="models/minterview.php" uploadstatus="1" />
|
||||
<item url="models/mmedia.php" uploadstatus="1" />
|
||||
<item url="models/mmeta.php" uploadstatus="1" />
|
||||
<item url="models/mnews.php" uploadstatus="1" />
|
||||
<item url="models/mobjects.php" uploadstatus="1" />
|
||||
<item url="models/mopi.php" uploadstatus="1" />
|
||||
<item url="models/mpages.php" uploadstatus="1" />
|
||||
<item url="models/mpartners_old.php" uploadstatus="1" />
|
||||
<item url="models/mpartners.php" uploadstatus="1" />
|
||||
<item url="models/mprojects.php" uploadstatus="1" />
|
||||
<item url="models/mrender.php" uploadstatus="1" />
|
||||
<item url="models/mstats.php" uploadstatus="1" />
|
||||
<item url="models/mtips.php" uploadstatus="1" />
|
||||
<item url="models/muser.php" uploadstatus="1" />
|
||||
<item url="models/mversion.php" uploadstatus="1" />
|
||||
<item url="plugins/" uploadstatus="1" />
|
||||
<item url="plugins/misc_pi.php" uploadstatus="1" />
|
||||
<item url="views/" uploadstatus="1" />
|
||||
<item url="views/academic/" uploadstatus="1" />
|
||||
<item url="views/academic/index.php" uploadstatus="1" />
|
||||
<item url="views/admin/" uploadstatus="1" />
|
||||
<item url="views/admin/events_new/" uploadstatus="1" />
|
||||
<item url="views/admin/events_new/index.php" uploadstatus="1" />
|
||||
<item url="views/admin/act_stat2.php" uploadstatus="1" />
|
||||
<item url="views/admin/act_stat.php" uploadstatus="1" />
|
||||
<item url="views/admin/banner.php" uploadstatus="1" />
|
||||
<item url="views/admin/benelux.php" uploadstatus="1" />
|
||||
<item url="views/admin/collection_new.php" uploadstatus="1" />
|
||||
<item url="views/admin/collection.php" uploadstatus="1" />
|
||||
<item url="views/admin/dl_stat.php" uploadstatus="1" />
|
||||
<item url="views/admin/downloadsedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/downloads.php" uploadstatus="1" />
|
||||
<item url="views/admin/editor.php" uploadstatus="1" />
|
||||
<item url="views/admin/eventsedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/events.php" uploadstatus="1" />
|
||||
<item url="views/admin/faqedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/faq.php" uploadstatus="1" />
|
||||
<item url="views/admin/galeria.php" uploadstatus="1" />
|
||||
<item url="views/admin/groupedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/index.php" uploadstatus="1" />
|
||||
<item url="views/admin/japandataexport.php" uploadstatus="1" />
|
||||
<item url="views/admin/kategedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/login.php" uploadstatus="1" />
|
||||
<item url="views/admin/menu.php" uploadstatus="1" />
|
||||
<item url="views/admin/newsedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/news.php" uploadstatus="1" />
|
||||
<item url="views/admin/objectedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/pageedit_help.php" uploadstatus="1" />
|
||||
<item url="views/admin/pageedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/poland.php" uploadstatus="1" />
|
||||
<item url="views/admin/projectedit.php" uploadstatus="1" />
|
||||
<item url="views/admin/promo_mail_stat.php" uploadstatus="1" />
|
||||
<item url="views/admin/render.php" uploadstatus="1" />
|
||||
<item url="views/admin/settings.php" uploadstatus="1" />
|
||||
<item url="views/admin/workshop.php" uploadstatus="1" />
|
||||
<item url="views/apprentice/" uploadstatus="1" />
|
||||
<item url="views/apprentice/index.php" uploadstatus="1" />
|
||||
<item url="views/belepo/" uploadstatus="1" />
|
||||
<item url="views/belepo/index.php" uploadstatus="1" />
|
||||
<item url="views/blog/" uploadstatus="1" />
|
||||
<item url="views/blog/index.php" uploadstatus="1" />
|
||||
<item url="views/business/" uploadstatus="1" />
|
||||
<item url="views/business/act30.php" uploadstatus="1" />
|
||||
<item url="views/business/act_interior.php" uploadstatus="1" />
|
||||
<item url="views/business/activate_mod.php" uploadstatus="1" />
|
||||
<item url="views/business/activate_ok_full.php" uploadstatus="1" />
|
||||
<item url="views/business/activate_ok_int.php" uploadstatus="1" />
|
||||
<item url="views/business/activate_ok_int_web.php" uploadstatus="1" />
|
||||
<item url="views/business/activate_ok.php" uploadstatus="1" />
|
||||
<item url="views/business/activate_ok_std.php" uploadstatus="1" />
|
||||
<item url="views/business/activate.php" uploadstatus="1" />
|
||||
<item url="views/business/act.php" uploadstatus="1" />
|
||||
<item url="views/business/actstd.php" uploadstatus="1" />
|
||||
<item url="views/business/mail_activate_full_eng.php" uploadstatus="1" />
|
||||
<item url="views/business/mail_activate_full_hun.php" uploadstatus="1" />
|
||||
<item url="views/business/mail_activate_full.php" uploadstatus="1" />
|
||||
<item url="views/business/mail_activate_student_eng.php" uploadstatus="1" />
|
||||
<item url="views/business/mail_activate_student_hun.php" uploadstatus="1" />
|
||||
<item url="views/business/mail_activate_trial_eng.php" uploadstatus="1" />
|
||||
<item url="views/business/mail_activate_trial_hun.php" uploadstatus="1" />
|
||||
<item url="views/business/modmail.php" uploadstatus="1" />
|
||||
<item url="views/business/mod_ok.php" uploadstatus="1" />
|
||||
<item url="views/business/notify_act_request.php" uploadstatus="1" />
|
||||
<item url="views/business/report_act_student.php" uploadstatus="1" />
|
||||
<item url="views/business/report_dl_30.php" uploadstatus="1" />
|
||||
<item url="views/business/report_dl_int.php" uploadstatus="1" />
|
||||
<item url="views/business/report_dl_itc.php" uploadstatus="1" />
|
||||
<item url="views/business/report_dl_student2009.php" uploadstatus="1" />
|
||||
<item url="views/business/report_dl_student.php" uploadstatus="1" />
|
||||
<item url="views/buy/" uploadstatus="1" />
|
||||
<item url="views/buy/index.php" uploadstatus="1" />
|
||||
<item url="views/buy/shareit_old.php" uploadstatus="1" />
|
||||
<item url="views/buy/shareit.php" uploadstatus="1" />
|
||||
<item url="views/collection/" uploadstatus="1" />
|
||||
<item url="views/collection/desc.php" uploadstatus="1" />
|
||||
<item url="views/collection/edit.php" uploadstatus="1" />
|
||||
<item url="views/collection/kat.php" uploadstatus="1" />
|
||||
<item url="views/collection/login.php" uploadstatus="1" />
|
||||
<item url="views/collection/mycollection.php" uploadstatus="1" />
|
||||
<item url="views/collection/ujjelszo.php" uploadstatus="1" />
|
||||
<item url="views/collection/ujjelszo_valasz.php" uploadstatus="1" />
|
||||
<item url="views/collection/upload.php" uploadstatus="1" />
|
||||
<item url="views/contact/" uploadstatus="1" />
|
||||
<item url="views/contact/index.php" uploadstatus="1" />
|
||||
<item url="views/courses/" uploadstatus="1" />
|
||||
<item url="views/courses/mail/" uploadstatus="1" />
|
||||
<item url="views/courses/mail/mail.php" uploadstatus="1" />
|
||||
<item url="views/courses/mail/reg_success_to_cadline.php" uploadstatus="1" />
|
||||
<item url="views/courses/decorex2010.php" uploadstatus="1" />
|
||||
<item url="views/courses/index.php" uploadstatus="1" />
|
||||
<item url="views/courses/no_main_event.php" uploadstatus="1" />
|
||||
<item url="views/courses/registrate.php" uploadstatus="1" />
|
||||
<item url="views/courses/registration_success.php" uploadstatus="1" />
|
||||
<item url="views/downloads/" uploadstatus="1" />
|
||||
<item url="views/downloads/consent.php" uploadstatus="1" />
|
||||
<item url="views/downloads/index.php" uploadstatus="1" />
|
||||
<item url="views/downloads/itc.php" uploadstatus="1" />
|
||||
<item url="views/downloads/japantrial.php" uploadstatus="1" />
|
||||
<item url="views/downloads/list.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_3m_jap.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_free_eng.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_free_hun.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_interior_eng.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_interior_esp.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_interior_hun.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_itc_eng.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_itc_hun.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_photo_eng.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_photo_hun.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_student_eng.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_student_hun.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_trial_eng.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_trial_hun.php" uploadstatus="1" />
|
||||
<item url="views/downloads/mail_trial_jap.php" uploadstatus="1" />
|
||||
<item url="views/downloads/sentconf.php" uploadstatus="1" />
|
||||
<item url="views/downloads/sentint.php" uploadstatus="1" />
|
||||
<item url="views/downloads/sent_student.php" uploadstatus="1" />
|
||||
<item url="views/downloads/sentstu.php" uploadstatus="1" />
|
||||
<item url="views/downloads/sent_trial.php" uploadstatus="1" />
|
||||
<item url="views/downloads/senttri.php" uploadstatus="1" />
|
||||
<item url="views/downloads/student2009.php" uploadstatus="1" />
|
||||
<item url="views/downloads/student.php" uploadstatus="1" />
|
||||
<item url="views/downloads/tabs.php" uploadstatus="1" />
|
||||
<item url="views/error/" uploadstatus="1" />
|
||||
<item url="views/error/mail_temp_notexists.php" uploadstatus="1" />
|
||||
<item url="views/error/unsubscribe.php" uploadstatus="1" />
|
||||
<item url="views/events/" uploadstatus="1" />
|
||||
<item url="views/events/mail/" uploadstatus="1" />
|
||||
<item url="views/events/mail/mail.php" uploadstatus="1" />
|
||||
<item url="views/events/mail/reg_success_to_cadline.php" uploadstatus="1" />
|
||||
<item url="views/events/decorex2010.php" uploadstatus="1" />
|
||||
<item url="views/events/index.php" uploadstatus="1" />
|
||||
<item url="views/events/no_main_event.php" uploadstatus="1" />
|
||||
<item url="views/events/registrate.php" uploadstatus="1" />
|
||||
<item url="views/events/registration_success.php" uploadstatus="1" />
|
||||
<item url="views/forum/" uploadstatus="1" />
|
||||
<item url="views/forum/belepfeltolto.php" uploadstatus="1" />
|
||||
<item url="views/forum/belep.php" uploadstatus="1" />
|
||||
<item url="views/forum/confirm_hiba.php" uploadstatus="1" />
|
||||
<item url="views/forum/confirm_ok.php" uploadstatus="1" />
|
||||
<item url="views/forum/editgaleria.php" uploadstatus="1" />
|
||||
<item url="views/forum/edit_user.php" uploadstatus="1" />
|
||||
<item url="views/forum/galeria.php" uploadstatus="1" />
|
||||
<item url="views/forum/hszlapozas.php" uploadstatus="1" />
|
||||
<item url="views/forum/index.php" uploadstatus="1" />
|
||||
<item url="views/forum/keyfilter.php" uploadstatus="1" />
|
||||
<item url="views/forum/kiir.php" uploadstatus="1" />
|
||||
<item url="views/forum/login.php" uploadstatus="1" />
|
||||
<item url="views/forum/myedit.php" uploadstatus="1" />
|
||||
<item url="views/forum/mypost.php" uploadstatus="1" />
|
||||
<item url="views/forum/regisztracio.php" uploadstatus="1" />
|
||||
<item url="views/forum/renderek.php" uploadstatus="1" />
|
||||
<item url="views/forum/sajatgaleria.php" uploadstatus="1" />
|
||||
<item url="views/forum/sentconf.php" uploadstatus="1" />
|
||||
<item url="views/forum/szabalyzat.php" uploadstatus="1" />
|
||||
<item url="views/forum/szerkeszt.php" uploadstatus="1" />
|
||||
<item url="views/forum/temaatnevez.php" uploadstatus="1" />
|
||||
<item url="views/forum/temakorlapozas.php" uploadstatus="1" />
|
||||
<item url="views/forum/temakorok.php" uploadstatus="1" />
|
||||
<item url="views/forum/temak.php" uploadstatus="1" />
|
||||
<item url="views/forum/temalapozas.php" uploadstatus="1" />
|
||||
<item url="views/forum/temamutat.php" uploadstatus="1" />
|
||||
<item url="views/forum/tkatnevez.php" uploadstatus="1" />
|
||||
<item url="views/forum/ujhsz.php" uploadstatus="1" />
|
||||
<item url="views/forum/ujjelszo.php" uploadstatus="1" />
|
||||
<item url="views/forum/ujjelszo_valasz.php" uploadstatus="1" />
|
||||
<item url="views/forum/ujtemakor.php" uploadstatus="1" />
|
||||
<item url="views/forum/ujtema.php" uploadstatus="1" />
|
||||
<item url="views/forum/ujuser.php" uploadstatus="1" />
|
||||
<item url="views/forum/userlapozas.php" uploadstatus="1" />
|
||||
<item url="views/forum/user.php" uploadstatus="1" />
|
||||
<item url="views/forum/users.php" uploadstatus="1" />
|
||||
<item url="views/free/" uploadstatus="1" />
|
||||
<item url="views/free/download.php" uploadstatus="1" />
|
||||
<item url="views/free/menu2.php" uploadstatus="1" />
|
||||
<item url="views/free/sentint.php" uploadstatus="1" />
|
||||
<item url="views/groups/" uploadstatus="1" />
|
||||
<item url="views/groups/applet/" uploadstatus="1" />
|
||||
<item url="views/groups/applet/ftpuploader_v01.jar" uploadstatus="1" />
|
||||
<item url="views/groups/applet/ftpuploader_v02.jar" uploadstatus="1" />
|
||||
<item url="views/groups/applet/ftpuploader_v03.jar" uploadstatus="1" />
|
||||
<item url="views/groups/javauploader/" uploadstatus="1" />
|
||||
<item url="views/groups/javauploader/uploadedfiles/" uploadstatus="1" />
|
||||
<item url="views/groups/javauploader/connectionkeeper.js" uploadstatus="1" />
|
||||
<item url="views/groups/javauploader/connectionkeeper.php" uploadstatus="1" />
|
||||
<item url="views/groups/javauploader/index.html" uploadstatus="1" />
|
||||
<item url="views/groups/javauploader/submit.php" uploadstatus="1" />
|
||||
<item url="views/groups/java.php" uploadstatus="1" />
|
||||
<item url="views/groups/kat.php" uploadstatus="1" />
|
||||
<item url="views/groups/simple.php" uploadstatus="1" />
|
||||
<item url="views/groups/tabs.php" uploadstatus="1" />
|
||||
<item url="views/groups/uploadnew.php" uploadstatus="1" />
|
||||
<item url="views/groups/upload.php" uploadstatus="1" />
|
||||
<item url="views/interior/" uploadstatus="1" />
|
||||
<item url="views/interior/banner.php" uploadstatus="1" />
|
||||
<item url="views/interior/buy.php" uploadstatus="1" />
|
||||
<item url="views/interior/comparison.php" uploadstatus="1" />
|
||||
<item url="views/interior/download.php" uploadstatus="1" />
|
||||
<item url="views/interior/downloadv2.php" uploadstatus="1" />
|
||||
<item url="views/interior/eventok_2.php" uploadstatus="1" />
|
||||
<item url="views/interior/eventok.php" uploadstatus="1" />
|
||||
<item url="views/interior/eventok_save.php" uploadstatus="1" />
|
||||
<item url="views/interior/events.php" uploadstatus="1" />
|
||||
<item url="views/interior/events_save.php" uploadstatus="1" />
|
||||
<item url="views/interior/gallery.php" uploadstatus="1" />
|
||||
<item url="views/interior/index_old.php" uploadstatus="1" />
|
||||
<item url="views/interior/index.php" uploadstatus="1" />
|
||||
<item url="views/interior/index regi.php" uploadstatus="1" />
|
||||
<item url="views/interior/interview.php" uploadstatus="1" />
|
||||
<item url="views/interior/learn.php" uploadstatus="1" />
|
||||
<item url="views/interior/list2.php" uploadstatus="1" />
|
||||
<item url="views/interior/list.php" uploadstatus="1" />
|
||||
<item url="views/interior/powerful.php" uploadstatus="1" />
|
||||
<item url="views/interior/reasons.php" uploadstatus="1" />
|
||||
<item url="views/interior/special_offer.php" uploadstatus="1" />
|
||||
<item url="views/interior/system.php" uploadstatus="1" />
|
||||
<item url="views/interior/tabs.php" uploadstatus="1" />
|
||||
<item url="views/interior/ticketcomp.php" uploadstatus="1" />
|
||||
<item url="views/interior/ticket.php" uploadstatus="1" />
|
||||
<item url="views/interior/ticket_sent_0.php" uploadstatus="1" />
|
||||
<item url="views/interior/ticket_sent.php" uploadstatus="1" />
|
||||
<item url="views/interior/tutorials.php" uploadstatus="1" />
|
||||
<item url="views/interior/videos.php" uploadstatus="1" />
|
||||
<item url="views/interior/welcome_new.php" uploadstatus="1" />
|
||||
<item url="views/interior/workflow.php" uploadstatus="1" />
|
||||
<item url="views/interior/workshop.php" uploadstatus="1" />
|
||||
<item url="views/interview/" uploadstatus="1" />
|
||||
<item url="views/interview/main/" uploadstatus="1" />
|
||||
<item url="views/interview/main/1.php" uploadstatus="1" />
|
||||
<item url="views/interview/main/2.php" uploadstatus="1" />
|
||||
<item url="views/interview/main/3.php" uploadstatus="1" />
|
||||
<item url="views/interview/main/4.php" uploadstatus="1" />
|
||||
<item url="views/interview/main/5.php" uploadstatus="1" />
|
||||
<item url="views/interview/1.php" uploadstatus="1" />
|
||||
<item url="views/interview/2.php" uploadstatus="1" />
|
||||
<item url="views/interview/3.php" uploadstatus="1" />
|
||||
<item url="views/interview/4.php" uploadstatus="1" />
|
||||
<item url="views/interview/5.php" uploadstatus="1" />
|
||||
<item url="views/interview/index.php" uploadstatus="1" />
|
||||
<item url="views/kezzeltervez/" uploadstatus="1" />
|
||||
<item url="views/kezzeltervez/galeria.php" uploadstatus="1" />
|
||||
<item url="views/kezzeltervez/index.php" uploadstatus="1" />
|
||||
<item url="views/mail/" uploadstatus="1" />
|
||||
<item url="views/mail/confirm_dl_eng.php" uploadstatus="1" />
|
||||
<item url="views/mail/confirm_dl_esp.php" uploadstatus="1" />
|
||||
<item url="views/mail/confirm_dl_hun.php" uploadstatus="1" />
|
||||
<item url="views/mail/confirm_forum_eng.php" uploadstatus="1" />
|
||||
<item url="views/mail/confirm_forum_hun.php" uploadstatus="1" />
|
||||
<item url="views/mail/contact.php" uploadstatus="1" />
|
||||
<item url="views/mail/events_reg.php" uploadstatus="1" />
|
||||
<item url="views/mail/forum_ujhsz.php" uploadstatus="1" />
|
||||
<item url="views/mail/hun_mail_bnv_new.php" uploadstatus="1" />
|
||||
<item url="views/mail/hun_mail.php" uploadstatus="1" />
|
||||
<item url="views/mail/interior_ticket.php" uploadstatus="1" />
|
||||
<item url="views/mail/render_kesz.php" uploadstatus="1" />
|
||||
<item url="views/mail/render_keszteszt.php" uploadstatus="1" />
|
||||
<item url="views/mail/ujrender_eng.php" uploadstatus="1" />
|
||||
<item url="views/mail/ujrender_hun.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_invite_mail.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_invite_mail_special.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_invite_mail_ticket.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_mail_50.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_mail_70.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_mail_interior_designers.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_mail.php" uploadstatus="1" />
|
||||
<item url="views/mail/uk_mail_schools.php" uploadstatus="1" />
|
||||
<item url="views/mail/unsubscribe.php" uploadstatus="1" />
|
||||
<item url="views/media/" uploadstatus="1" />
|
||||
<item url="views/media/images.php" uploadstatus="1" />
|
||||
<item url="views/media/images.php old" uploadstatus="1" />
|
||||
<item url="views/media/images_row.php" uploadstatus="1" />
|
||||
<item url="views/media/index.php" uploadstatus="1" />
|
||||
<item url="views/media/play.php" uploadstatus="1" />
|
||||
<item url="views/media/show_images.php" uploadstatus="1" />
|
||||
<item url="views/media/showimg.php" uploadstatus="1" />
|
||||
<item url="views/media/videos.php" uploadstatus="1" />
|
||||
<item url="views/media/videos_row.php" uploadstatus="1" />
|
||||
<item url="views/news/" uploadstatus="1" />
|
||||
<item url="views/news/index_2.php" uploadstatus="1" />
|
||||
<item url="views/news/index_3.php" uploadstatus="1" />
|
||||
<item url="views/news/index.php" uploadstatus="1" />
|
||||
<item url="views/news/show.php" uploadstatus="1" />
|
||||
<item url="views/newsletter/" uploadstatus="1" />
|
||||
<item url="views/newsletter/index.php" uploadstatus="1" />
|
||||
<item url="views/newsletter/mail_sub.php" uploadstatus="1" />
|
||||
<item url="views/newsletter/mail_unsub.php" uploadstatus="1" />
|
||||
<item url="views/newsletter/ok_sub.php" uploadstatus="1" />
|
||||
<item url="views/newsletter/ok_unsub.php" uploadstatus="1" />
|
||||
<item url="views/objects/" uploadstatus="1" />
|
||||
<item url="views/objects/applet/" uploadstatus="1" />
|
||||
<item url="views/objects/applet/ftpuploader_v01.jar" uploadstatus="1" />
|
||||
<item url="views/objects/applet/ftpuploader_v02.jar" uploadstatus="1" />
|
||||
<item url="views/objects/applet/ftpuploader_v03.jar" uploadstatus="1" />
|
||||
<item url="views/objects/javauploader/" uploadstatus="1" />
|
||||
<item url="views/objects/javauploader/uploadedfiles/" uploadstatus="1" />
|
||||
<item url="views/objects/javauploader/connectionkeeper.js" uploadstatus="1" />
|
||||
<item url="views/objects/javauploader/connectionkeeper.php" uploadstatus="1" />
|
||||
<item url="views/objects/javauploader/index.html" uploadstatus="1" />
|
||||
<item url="views/objects/javauploader/submit.php" uploadstatus="1" />
|
||||
<item url="views/objects/cadline.php" uploadstatus="1" />
|
||||
<item url="views/objects/editobject.php" uploadstatus="1" />
|
||||
<item url="views/objects/index.php" uploadstatus="1" />
|
||||
<item url="views/objects/java.php" uploadstatus="1" />
|
||||
<item url="views/objects/kat.php" uploadstatus="1" />
|
||||
<item url="views/objects/newobject.php" uploadstatus="1" />
|
||||
<item url="views/objects/simple.php" uploadstatus="1" />
|
||||
<item url="views/objects/submit.php" uploadstatus="1" />
|
||||
<item url="views/objects/tabs.php" uploadstatus="1" />
|
||||
<item url="views/objects/uploadnew.php" uploadstatus="1" />
|
||||
<item url="views/objects/upload.php" uploadstatus="1" />
|
||||
<item url="views/page/" uploadstatus="1" />
|
||||
<item url="views/page/show.php" uploadstatus="1" />
|
||||
<item url="views/page/show_szimpla.php" uploadstatus="1" />
|
||||
<item url="views/palyazat/" uploadstatus="1" />
|
||||
<item url="views/palyazat/gallery.php" uploadstatus="1" />
|
||||
<item url="views/palyazat/index.php" uploadstatus="1" />
|
||||
<item url="views/palyazat/jelentkezes.php" uploadstatus="1" />
|
||||
<item url="views/palyazat/kepek.php" uploadstatus="1" />
|
||||
<item url="views/palyazat/kep.php" uploadstatus="1" />
|
||||
<item url="views/partners/" uploadstatus="1" />
|
||||
<item url="views/partners/filter.php" uploadstatus="1" />
|
||||
<item url="views/partners/index.php" uploadstatus="1" />
|
||||
<item url="views/partners/keyfilter.php" uploadstatus="1" />
|
||||
<item url="views/partners/key.php" uploadstatus="1" />
|
||||
<item url="views/partners/login.php" uploadstatus="1" />
|
||||
<item url="views/photo/" uploadstatus="1" />
|
||||
<item url="views/photo/buy.php" uploadstatus="1" />
|
||||
<item url="views/photo/download.php" uploadstatus="1" />
|
||||
<item url="views/photo/gallery old.php" uploadstatus="1" />
|
||||
<item url="views/photo/gallery oold.php" uploadstatus="1" />
|
||||
<item url="views/photo/gallery.php" uploadstatus="1" />
|
||||
<item url="views/photo/index.php" uploadstatus="1" />
|
||||
<item url="views/photo/sentint.php" uploadstatus="1" />
|
||||
<item url="views/products/" uploadstatus="1" />
|
||||
<item url="views/products/buy.php" uploadstatus="1" />
|
||||
<item url="views/products/index.php" uploadstatus="1" />
|
||||
<item url="views/products/modules.php" uploadstatus="1" />
|
||||
<item url="views/products/tabs.php" uploadstatus="1" />
|
||||
<item url="views/products/versions.php" uploadstatus="1" />
|
||||
<item url="views/projects/" uploadstatus="1" />
|
||||
<item url="views/projects/applet/" uploadstatus="1" />
|
||||
<item url="views/projects/applet/ftpuploader_v01.jar" uploadstatus="1" />
|
||||
<item url="views/projects/applet/ftpuploader_v02.jar" uploadstatus="1" />
|
||||
<item url="views/projects/applet/ftpuploader_v03.jar" uploadstatus="1" />
|
||||
<item url="views/projects/javauploader/" uploadstatus="1" />
|
||||
<item url="views/projects/javauploader/uploadedfiles/" uploadstatus="1" />
|
||||
<item url="views/projects/javauploader/connectionkeeper.js" uploadstatus="1" />
|
||||
<item url="views/projects/javauploader/connectionkeeper.php" uploadstatus="1" />
|
||||
<item url="views/projects/javauploader/index.html" uploadstatus="1" />
|
||||
<item url="views/projects/javauploader/submit.php" uploadstatus="1" />
|
||||
<item url="views/projects/index.php" uploadstatus="1" />
|
||||
<item url="views/projects/java.php" uploadstatus="1" />
|
||||
<item url="views/projects/kat.php" uploadstatus="1" />
|
||||
<item url="views/projects/newproject.php" uploadstatus="1" />
|
||||
<item url="views/projects/simple.php" uploadstatus="1" />
|
||||
<item url="views/projects/submit.php" uploadstatus="1" />
|
||||
<item url="views/projects/tabs.php" uploadstatus="1" />
|
||||
<item url="views/projects/uploadnew.php" uploadstatus="1" />
|
||||
<item url="views/projects/upload.php" uploadstatus="1" />
|
||||
<item url="views/redirect/" uploadstatus="1" />
|
||||
<item url="views/redirect/index.php" uploadstatus="1" />
|
||||
<item url="views/render/" uploadstatus="1" />
|
||||
<item url="views/render/lehetosegek.php" uploadstatus="1" />
|
||||
<item url="views/render/submitnew.php" uploadstatus="1" />
|
||||
<item url="views/render/upload.php" uploadstatus="1" />
|
||||
<item url="views/render/valasztas.php" uploadstatus="1" />
|
||||
<item url="views/render/valaszt.php" uploadstatus="1" />
|
||||
<item url="views/rss/" uploadstatus="1" />
|
||||
<item url="views/rss/index.php" uploadstatus="1" />
|
||||
<item url="views/rss/valami.php" uploadstatus="1" />
|
||||
<item url="views/search/" uploadstatus="1" />
|
||||
<item url="views/search/index.php" uploadstatus="1" />
|
||||
<item url="views/stats/" uploadstatus="1" />
|
||||
<item url="views/stats/diagram.php" uploadstatus="1" />
|
||||
<item url="views/stats/index.php" uploadstatus="1" />
|
||||
<item url="views/stats/nemaktivserial.php" uploadstatus="1" />
|
||||
<item url="views/stats/new_stats_2010.php" uploadstatus="1" />
|
||||
<item url="views/stats/new_stats_2011.php" uploadstatus="1" />
|
||||
<item url="views/stats/new_stats.php" uploadstatus="1" />
|
||||
<item url="views/stats/old_stats.php" uploadstatus="1" />
|
||||
<item url="views/support/" uploadstatus="1" />
|
||||
<item url="views/support/article.php" uploadstatus="1" />
|
||||
<item url="views/support/eventmail_ki.php" uploadstatus="1" />
|
||||
<item url="views/support/eventmail.php" uploadstatus="1" />
|
||||
<item url="views/support/eventmail_save.php" uploadstatus="1" />
|
||||
<item url="views/support/eventok.php" uploadstatus="1" />
|
||||
<item url="views/support/events.php" uploadstatus="1" />
|
||||
<item url="views/support/events_save.php" uploadstatus="1" />
|
||||
<item url="views/support/faq.php" uploadstatus="1" />
|
||||
<item url="views/support/help_java.php" uploadstatus="1" />
|
||||
<item url="views/support/helpmailok.php" uploadstatus="1" />
|
||||
<item url="views/support/helpmail.php" uploadstatus="1" />
|
||||
<item url="views/support/help.php" uploadstatus="1" />
|
||||
<item url="views/support/help_simple.php" uploadstatus="1" />
|
||||
<item url="views/support/index.php" uploadstatus="1" />
|
||||
<item url="views/support/keyword.php" uploadstatus="1" />
|
||||
<item url="views/support/kiemelt.php" uploadstatus="1" />
|
||||
<item url="views/support/links.php" uploadstatus="1" />
|
||||
<item url="views/support/show_faq.php" uploadstatus="1" />
|
||||
<item url="views/support/tabs.php" uploadstatus="1" />
|
||||
<item url="views/support/toc.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/prop-base/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/props/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/article.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/eventmail.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/eventmail_save.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/eventok.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/events.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/events_save.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/faq.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/helpmailok.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/helpmail.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/help.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/index.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/keyword.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/kiemelt.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/links.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/show_faq.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/tabs.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/text-base/toc.php.svn-base" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/tmp/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/tmp/prop-base/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/tmp/props/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/tmp/text-base/" uploadstatus="1" />
|
||||
<item url="views/support_interior/.svn/entries" uploadstatus="1" />
|
||||
<item url="views/support_interior/article.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/eventmail.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/eventmail_save.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/eventok.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/events.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/events_save.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/faq.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/helpmailok.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/helpmail.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/help.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/index.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/keyword.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/kiemelt.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/links.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/list.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/show_faq.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/tabs.php" uploadstatus="1" />
|
||||
<item url="views/support_interior/toc.php" uploadstatus="1" />
|
||||
<item url="views/temp/" uploadstatus="1" />
|
||||
<item url="views/temp/feltolt.php" uploadstatus="1" />
|
||||
<item url="views/temp/ikonok.php" uploadstatus="1" />
|
||||
<item url="views/temp/menu2.php" uploadstatus="1" />
|
||||
<item url="views/temp/site.php" uploadstatus="1" />
|
||||
<item url="views/temp/site_wel2.php" uploadstatus="1" />
|
||||
<item url="views/temp/szoveges.php" uploadstatus="1" />
|
||||
<item url="views/temp/terkep.php" uploadstatus="1" />
|
||||
<item url="views/temp/welcome_message.php" uploadstatus="1" />
|
||||
<item url="views/temp/welcome_new.php" uploadstatus="1" />
|
||||
<item url="views/temp/welcome.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/" uploadstatus="1" />
|
||||
<item url="views/temp_course/index.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/nagyonujws.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/naptar.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/naptarral.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/site.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/ujws.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/welcome_new2.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/welcome_new3.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/welcome_new4.php" uploadstatus="1" />
|
||||
<item url="views/temp_course/welcome_new.php" uploadstatus="1" />
|
||||
<item url="views/testforum/" uploadstatus="1" />
|
||||
<item url="views/testforum/temamutat.php" uploadstatus="1" />
|
||||
<item url="views/tips/" uploadstatus="1" />
|
||||
<item url="views/tips/editid.php" uploadstatus="1" />
|
||||
<item url="views/tips/edit.php" uploadstatus="1" />
|
||||
<item url="views/tips/login.php" uploadstatus="1" />
|
||||
<item url="views/tips/response.php" uploadstatus="1" />
|
||||
<item url="views/tips/userstats.php" uploadstatus="1" />
|
||||
<item url="views/unsubscribe/" uploadstatus="1" />
|
||||
<item url="views/unsubscribe/done.php" uploadstatus="1" />
|
||||
<item url="views/unsubscribe/index.php" uploadstatus="1" />
|
||||
<item url="views/version/" uploadstatus="1" />
|
||||
<item url="views/version/index.php" uploadstatus="1" />
|
||||
<item url="views/version/indexv2.php" uploadstatus="1" />
|
||||
<item url="views/version/log2012.php" uploadstatus="1" />
|
||||
<item url="views/webrender/" uploadstatus="1" />
|
||||
<item url="views/webrender/index.php" uploadstatus="1" />
|
||||
<item url="views/workshop/" uploadstatus="1" />
|
||||
<item url="views/workshop/mail/" uploadstatus="1" />
|
||||
<item url="views/workshop/mail/mail.php" uploadstatus="1" />
|
||||
<item url="views/workshop/mail/reg_success_to_cadline.php" uploadstatus="1" />
|
||||
<item url="views/workshop/decorex2010.php" uploadstatus="1" />
|
||||
<item url="views/workshop/index.php" uploadstatus="1" />
|
||||
<item url="views/workshop/no_main_event.php" uploadstatus="1" />
|
||||
<item url="views/workshop/registrate.php" uploadstatus="1" />
|
||||
<item url="views/workshop/registration_success.php" uploadstatus="1" />
|
||||
<item url="views/ikonok.php" uploadstatus="1" />
|
||||
<item url="views/index.html" uploadstatus="1" />
|
||||
<item url="views/langchange.php" uploadstatus="1" />
|
||||
<item url="views/mail_eng.php" uploadstatus="1" />
|
||||
<item url="views/mail.php" uploadstatus="1" />
|
||||
<item url="views/mail_ujjelszo.php" uploadstatus="1" />
|
||||
<item url="views/menu2.php" uploadstatus="1" />
|
||||
<item url="views/menu_interior.php" uploadstatus="1" />
|
||||
<item url="views/menu.php" uploadstatus="1" />
|
||||
<item url="views/site_forum.php" uploadstatus="1" />
|
||||
<item url="views/site_key.php" uploadstatus="1" />
|
||||
<item url="views/site_new.php" uploadstatus="1" />
|
||||
<item url="views/site.php" uploadstatus="1" />
|
||||
<item url="views/site_rss.php" uploadstatus="1" />
|
||||
<item url="views/site_simple.php" uploadstatus="1" />
|
||||
<item url="views/site_upload.php" uploadstatus="1" />
|
||||
<item url="views/site_wel2.php" uploadstatus="1" />
|
||||
<item url="views/topmenu.php" uploadstatus="1" />
|
||||
<item url="views/welcome_message.php" uploadstatus="1" />
|
||||
<item url="views/welcome_new.php" uploadstatus="1" />
|
||||
<item url="views/welcome.php" uploadstatus="1" />
|
||||
<item url="views/welcome_test.php" uploadstatus="1" />
|
||||
<item url="" uploadstatus="1" />
|
||||
<templates>templates/</templates>
|
||||
<toolbars>toolbars/</toolbars>
|
||||
<annotations/>
|
||||
<item url="views/downloads/indexv2.php" uploadstatus="1" />
|
||||
</project>
|
||||
</webproject>
|
||||
@ -0,0 +1,126 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| AUTO-LOADER
|
||||
| -------------------------------------------------------------------
|
||||
| This file specifies which systems should be loaded by default.
|
||||
|
|
||||
| In order to keep the framework as light-weight as possible only the
|
||||
| absolute minimal resources are loaded by default. For example,
|
||||
| the database is not connected to automatically since no assumption
|
||||
| is made regarding whether you intend to use it. This file lets
|
||||
| you globally define which systems you would like loaded with every
|
||||
| request.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| Instructions
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| These are the things you can load automatically:
|
||||
|
|
||||
| 1. Libraries
|
||||
| 2. Helper files
|
||||
| 3. Plugins
|
||||
| 4. Custom config files
|
||||
| 5. Language files
|
||||
| 6. Models
|
||||
|
|
||||
*/
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Libraries
|
||||
| -------------------------------------------------------------------
|
||||
| These are the classes located in the system/libraries folder
|
||||
| or in your system/application/libraries folder.
|
||||
|
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
|
||||
*/
|
||||
|
||||
$autoload['libraries'] = array('database','phpsession','cache');
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Helper Files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['helper'] = array('url', 'file');
|
||||
*/
|
||||
|
||||
$autoload['helper'] = array('url','form','language');
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Plugins
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['plugin'] = array('captcha', 'js_calendar');
|
||||
*/
|
||||
|
||||
$autoload['plugin'] = array('misc');
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Config files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['config'] = array('config1', 'config2');
|
||||
|
|
||||
| NOTE: This item is intended for use ONLY if you have created custom
|
||||
| config files. Otherwise, leave it blank.
|
||||
|
|
||||
*/
|
||||
|
||||
$autoload['config'] = array();
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Language files
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['language'] = array('lang1', 'lang2');
|
||||
|
|
||||
| NOTE: Do not include the "_lang" part of your file. For example
|
||||
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
||||
|
|
||||
*/
|
||||
|
||||
$autoload['language'] = array();
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Models
|
||||
| -------------------------------------------------------------------
|
||||
| Prototype:
|
||||
|
|
||||
| $autoload['model'] = array('model1', 'model2');
|
||||
|
|
||||
*/
|
||||
|
||||
$autoload['model'] = array('muser','mdb','mnews','mpages','mopi','mmeta');
|
||||
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| Auto-load Core Libraries
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| DEPRECATED: Use $autoload['libraries'] above instead.
|
||||
|
|
||||
*/
|
||||
// $autoload['core'] = array();
|
||||
|
||||
|
||||
/* End of file autoload.php */
|
||||
/* Location: ./system/application/config/autoload.php */
|
||||
@ -0,0 +1,7 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$config['cache_dir'] = '/var/www/hosting/archlinexp.com/partners/system/cache/';
|
||||
|
||||
$config['cache_default_expires'] = 0;
|
||||
|
||||
?>
|
||||
@ -0,0 +1,856 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
|
||||
$config['base_url'] = "/";
|
||||
|
||||
$config['salt'] = 'archxp2010';
|
||||
|
||||
$config['index_page'] = "";
|
||||
|
||||
$config['nemclasslang'] = array("hu","en","es","it","de");
|
||||
|
||||
$config['csik']=array
|
||||
(
|
||||
|
||||
'home' => array(
|
||||
'hun' => 'Főoldal',
|
||||
'eng' => 'Home',
|
||||
'be' => 'Home',
|
||||
'gr' => 'Home',
|
||||
'jap' => 'ホーム',
|
||||
'esp' => 'Home',
|
||||
'uri' => ''
|
||||
),
|
||||
|
||||
'products' => array(
|
||||
'hun' => 'Termékek',
|
||||
'eng' => 'Products',
|
||||
'be' => 'Producten',
|
||||
'gr' => 'Products',
|
||||
'jap' => '製品',
|
||||
'esp' => 'Products',
|
||||
'uri' => 'products'
|
||||
),
|
||||
|
||||
'downloads' => array(
|
||||
'hun' => 'Letöltések',
|
||||
'eng' => 'Downloads',
|
||||
'be' => 'Downloads',
|
||||
'gr' => 'Downloads',
|
||||
'jap' => 'ダウンロード',
|
||||
'esp' => 'Downloads',
|
||||
'uri' => 'downloads'
|
||||
),
|
||||
|
||||
'support' => array(
|
||||
'hun' => 'Terméktámogatás',
|
||||
'eng' => 'Support',
|
||||
'be' => 'Ondersteuning',
|
||||
'gr' => 'Support',
|
||||
'jap' => 'サポート',
|
||||
'uri' => 'support'
|
||||
),
|
||||
|
||||
'multimedia' => array(
|
||||
'hun' => 'Multimédia',
|
||||
'eng' => 'Multimedia',
|
||||
'be' => 'Multimedia',
|
||||
'gr' => 'Multimedia',
|
||||
'jap' => 'マルティディア',
|
||||
'uri' => 'multimedia'
|
||||
),
|
||||
|
||||
'images' => array(
|
||||
'hun' => 'Képgaléria',
|
||||
'eng' => 'Image Gallery',
|
||||
'be' => 'Afbeeldingen',
|
||||
'gr' => 'Image Gallery',
|
||||
'jap' => 'イメージ画像作品集',
|
||||
'uri' => 'multimedia/images'
|
||||
),
|
||||
|
||||
'videos' => array(
|
||||
'hun' => 'Videók',
|
||||
'eng' => 'Videos',
|
||||
'be' => 'Video\'s',
|
||||
'gr' => 'Videos',
|
||||
'jap' => 'ビデオ',
|
||||
'uri' => 'multimedia/videos'
|
||||
),
|
||||
|
||||
'buy' => array(
|
||||
'hun' => 'Vásárlás',
|
||||
'eng' => 'Purchase',
|
||||
'be' => 'Kopen',
|
||||
'gr' => 'Purchase',
|
||||
'jap' => '購入',
|
||||
'uri' => 'buy'
|
||||
),
|
||||
|
||||
'professional' => array(
|
||||
'hun' => 'Professional Edition',
|
||||
'eng' => 'Professional Edition',
|
||||
'be' => 'Professional Edition',
|
||||
'gr' => 'Professional Edition',
|
||||
'jap' => 'プロフェッショナルエディション',
|
||||
'uri' => 'products/professional'
|
||||
),
|
||||
|
||||
'studio' => array(
|
||||
'hun' => 'Studio Edition',
|
||||
'eng' => 'Studio Edition',
|
||||
'be' => 'Studio Edition',
|
||||
'gr' => 'Studio Edition',
|
||||
'jap' => 'ARCHLine.XP',
|
||||
'uri' => 'products/studio'
|
||||
),
|
||||
|
||||
'base' => array(
|
||||
'hun' => 'Base Edition',
|
||||
'eng' => 'Base Edition',
|
||||
'be' => 'Base Edition',
|
||||
'gr' => 'Base Edition',
|
||||
'jap' => 'Base Edition',
|
||||
'uri' => 'products/base'
|
||||
),
|
||||
|
||||
'interior' => array(
|
||||
'hun' => 'Interior Edition',
|
||||
'eng' => 'Interior Edition',
|
||||
'be' => 'Interior Edition',
|
||||
'gr' => 'Interior Edition',
|
||||
'jap' => 'Interior Edition',
|
||||
'uri' => 'interior'
|
||||
),
|
||||
|
||||
'standard' => array(
|
||||
'hun' => 'Standard Edition',
|
||||
'eng' => 'Standard Edition',
|
||||
'be' => 'Standard Edition',
|
||||
'gr' => 'Standard Edition',
|
||||
'jap' => ' ARCHLine.XP PRO',
|
||||
'uri' => 'products/standard'
|
||||
),
|
||||
|
||||
'admin' => array(
|
||||
'hun' => 'Adminisztrációs felület',
|
||||
'eng' => 'Administration',
|
||||
'be' => 'Administration',
|
||||
'gr' => 'Administration',
|
||||
'jap' => '登録',
|
||||
'esp' => 'Administration',
|
||||
'uri' => 'admin'
|
||||
),
|
||||
|
||||
'adminlogin' => array(
|
||||
'hun' => 'Bejelentkezés',
|
||||
'eng' => 'Login',
|
||||
'be' => 'Login',
|
||||
'gr' => 'Login',
|
||||
'jap' => 'ログイン',
|
||||
'esp' => 'Login',
|
||||
'uri' => 'admin/login'
|
||||
),
|
||||
|
||||
'updates' => array(
|
||||
'hun' => 'Frissítések',
|
||||
'eng' => 'Updates',
|
||||
'be' => 'Updates',
|
||||
'gr' => 'Updates',
|
||||
'jap' => 'アップデート',
|
||||
'uri' => 'downloads/updates'
|
||||
),
|
||||
|
||||
'drivers' => array(
|
||||
'hun' => 'Driverek',
|
||||
'eng' => 'Drivers',
|
||||
'be' => 'Drivers',
|
||||
'gr' => 'Drivers',
|
||||
'jap' => 'ドライバー',
|
||||
'uri' => 'downloads/drivers'
|
||||
),
|
||||
|
||||
'modules' => array(
|
||||
'hun' => 'Modulok',
|
||||
'eng' => 'Modules',
|
||||
'be' => 'Modules',
|
||||
'gr' => 'Modules',
|
||||
'jap' => 'モデュール',
|
||||
'uri' => 'products/modules'
|
||||
),
|
||||
'partners' => array(
|
||||
'hun' => 'Partners',
|
||||
'eng' => 'Partners',
|
||||
'be' => 'Partners',
|
||||
'gr' => 'Partners',
|
||||
'jap' => 'Partners',
|
||||
'uri' => 'partners'
|
||||
),
|
||||
|
||||
'keys' => array(
|
||||
'hun' => 'Keys',
|
||||
'eng' => 'Keys',
|
||||
'be' => 'Keys',
|
||||
'gr' => 'Keys',
|
||||
'jap' => 'Keys',
|
||||
'uri' => 'partners/keys'
|
||||
),
|
||||
|
||||
'learn' => array(
|
||||
'hun' => 'Oktatás',
|
||||
'eng' => 'Learn',
|
||||
'be' => 'Learn',
|
||||
'gr' => 'Learn',
|
||||
'jap' => 'Learn',
|
||||
'uri' => 'products/interior_2009/learn'
|
||||
),
|
||||
|
||||
'stats' => array(
|
||||
'hun' => 'Statisztika',
|
||||
'eng' => 'Stats',
|
||||
'be' => 'Stats',
|
||||
'gr' => 'Stats',
|
||||
'jap' => 'Stats',
|
||||
'uri' => 'stats'
|
||||
),
|
||||
|
||||
'new_stats' => array(
|
||||
'hun' => 'Új Statisztika',
|
||||
'eng' => 'New Stats',
|
||||
'be' => 'New Stats',
|
||||
'gr' => 'New Stats',
|
||||
'jap' => 'New Stats',
|
||||
'uri' => 'stats/new_stats'
|
||||
),
|
||||
|
||||
'new_stats_2011' => array(
|
||||
'hun' => 'Új Statisztika 2011',
|
||||
'eng' => 'New Stats 2011',
|
||||
'be' => 'New Stats 2011',
|
||||
'gr' => 'New Stats 2011',
|
||||
'jap' => 'New Stats 2011',
|
||||
'uri' => 'stats/new_stats_2011'
|
||||
),
|
||||
|
||||
'old_stats' => array(
|
||||
'hun' => 'Régi Statisztika',
|
||||
'eng' => 'Old Stats',
|
||||
'be' => 'Old Stats',
|
||||
'gr' => 'Old Stats',
|
||||
'jap' => 'Old Stats',
|
||||
'uri' => 'stats/old_stats'
|
||||
),
|
||||
|
||||
'forum' => array(
|
||||
'hun' => 'Fórum',
|
||||
'eng' => 'Forum',
|
||||
'be' => 'Forum',
|
||||
'gr' => 'Forum',
|
||||
'jap' => 'Forum',
|
||||
'uri' => 'forum'
|
||||
),
|
||||
|
||||
'10ok' => array(
|
||||
'hun' => '10 ok a vásárlásra',
|
||||
'eng' => '10 Reasons to Buy',
|
||||
'be' => '10 Reasons to Buy',
|
||||
'gr' => '10 Reasons to Buy',
|
||||
'jap' => '10 Reasons to Buy',
|
||||
'uri' => 'interior/reasons'
|
||||
),
|
||||
|
||||
'interview' => array(
|
||||
'hun' => 'Interjú',
|
||||
'eng' => 'Interview',
|
||||
'be' => 'Interview',
|
||||
'gr' => 'Interview',
|
||||
'jap' => 'Interview',
|
||||
'uri' => 'interior/interview'
|
||||
),
|
||||
|
||||
'blog' => array(
|
||||
'hun' => 'Blogok',
|
||||
'eng' => 'Blogs',
|
||||
'be' => 'Blogs',
|
||||
'gr' => 'Blogs',
|
||||
'jap' => 'Blogs',
|
||||
'uri' => 'blog'
|
||||
),
|
||||
|
||||
'rendszer' => array(
|
||||
'hun' => 'Rendszerkövetelmények',
|
||||
'eng' => 'System requirements',
|
||||
'be' => 'System requirements',
|
||||
'gr' => 'System requirements',
|
||||
'jap' => 'System requirements',
|
||||
'uri' => 'interior/system'
|
||||
),
|
||||
|
||||
'gallery' => array(
|
||||
'hun' => 'Galéria',
|
||||
'eng' => 'Gallery',
|
||||
'be' => 'Gallery',
|
||||
'gr' => 'Gallery',
|
||||
'jap' => 'Gallery',
|
||||
'uri' => 'interior/gallery'
|
||||
),
|
||||
|
||||
'projects' => array(
|
||||
'hun' => 'Projektek',
|
||||
'eng' => 'Projects',
|
||||
'be' => 'Projects',
|
||||
'gr' => 'Projects',
|
||||
'jap' => 'Projects',
|
||||
'uri' => 'projects'
|
||||
),
|
||||
|
||||
'objects' => array(
|
||||
'hun' => 'Objektumok',
|
||||
'eng' => 'Objects',
|
||||
'be' => 'Objects',
|
||||
'gr' => 'Objects',
|
||||
'jap' => 'Objects',
|
||||
'uri' => 'objects'
|
||||
),
|
||||
|
||||
'groups' => array(
|
||||
'hun' => 'Csoportok',
|
||||
'eng' => 'Groups',
|
||||
'be' => 'Groups',
|
||||
'gr' => 'Groups',
|
||||
'jap' => 'Groups',
|
||||
'uri' => 'groups'
|
||||
),
|
||||
|
||||
'freedownloads' => array(
|
||||
'hun' => 'Free Edition download',
|
||||
'eng' => 'Free Edition download',
|
||||
'be' => 'Free Edition download',
|
||||
'gr' => 'Free Edition download',
|
||||
'jap' => 'Free Edition download',
|
||||
'uri' => 'free'
|
||||
),
|
||||
|
||||
'news' => array(
|
||||
'hun' => 'Hírek',
|
||||
'eng' => 'News',
|
||||
'be' => 'News',
|
||||
'gr' => 'News',
|
||||
'jap' => 'News',
|
||||
'uri' => 'news'
|
||||
),
|
||||
|
||||
'events' => array(
|
||||
'hun' => 'Események',
|
||||
'eng' => 'Events',
|
||||
'be' => 'Events',
|
||||
'gr' => 'Events',
|
||||
'jap' => 'Events',
|
||||
'uri' => 'events'
|
||||
),
|
||||
|
||||
'courses' => array(
|
||||
'hun' => 'Kurzusok',
|
||||
'eng' => 'Courses',
|
||||
'be' => 'Courses',
|
||||
'uri' => 'interior/workshop/reception_room'
|
||||
),
|
||||
|
||||
'contact' => array(
|
||||
'hun' => 'Kapcsolatfelvétel',
|
||||
'eng' => 'Contact us',
|
||||
'be' => 'Contact us',
|
||||
'uri' => 'contact'
|
||||
),
|
||||
|
||||
'letoltkozpont' => array(
|
||||
'hun' => 'Letöltési központ',
|
||||
'eng' => 'Download center',
|
||||
'be' => 'Download center',
|
||||
'uri' => 'version'
|
||||
),
|
||||
|
||||
'palyazat' => array(
|
||||
'hun' => 'Pályázat',
|
||||
'eng' => 'Competition',
|
||||
'be' => 'Competition',
|
||||
'uri' => 'palyazat'
|
||||
),
|
||||
|
||||
'kezzeltervez' => array(
|
||||
'hun' => 'Még mindig kézzel tervez?',
|
||||
'eng' => 'Still drawing by hand?',
|
||||
'be' => 'Still drawing by hand?',
|
||||
'uri' => 'kezzeltervez'
|
||||
),
|
||||
|
||||
'services' => array(
|
||||
'hun' => 'Szolgáltatások',
|
||||
'eng' => 'Services',
|
||||
'be' => 'Services',
|
||||
'uri' => 'services'
|
||||
),
|
||||
|
||||
'virtuallyfurnish' => array(
|
||||
'hun' => 'Virtual staging',
|
||||
'eng' => 'Virtually staged photos',
|
||||
'be' => 'Virtually staged photos',
|
||||
'uri' => 'services/virtuallyfurnish'
|
||||
),
|
||||
|
||||
'servrendering' => array(
|
||||
'hun' => 'Renderelt képek készítése ',
|
||||
'eng' => '3D Interior Rendering',
|
||||
'be' => '3D Interior Rendering',
|
||||
'uri' => 'services/rendering'
|
||||
),
|
||||
|
||||
'servsketch' => array(
|
||||
'hun' => '3D modell készítése',
|
||||
'eng' => 'Hand Sketch to 3D Model',
|
||||
'be' => 'Hand Sketch to 3D Model',
|
||||
'uri' => 'services/sketch'
|
||||
),
|
||||
|
||||
'servanimation' => array(
|
||||
'hun' => 'Animáció',
|
||||
'eng' => 'Animation',
|
||||
'be' => 'Animation',
|
||||
'uri' => 'services/animation'
|
||||
),
|
||||
|
||||
'vfpricing' => array(
|
||||
'hun' => 'Árak',
|
||||
'eng' => 'Pricing',
|
||||
'be' => 'Pricing',
|
||||
'uri' => 'services/virtuallyfurnish/pricing'
|
||||
),
|
||||
|
||||
'repricing' => array(
|
||||
'hun' => 'Árak',
|
||||
'eng' => 'Pricing',
|
||||
'be' => 'Pricing',
|
||||
'uri' => 'services/rendering/pricing'
|
||||
),
|
||||
|
||||
'skpricing' => array(
|
||||
'hun' => 'Árak',
|
||||
'eng' => 'Pricing',
|
||||
'be' => 'Pricing',
|
||||
'uri' => 'services/sketch/pricing'
|
||||
),
|
||||
|
||||
'anpricing' => array(
|
||||
'hun' => 'Árak',
|
||||
'eng' => 'Pricing',
|
||||
'be' => 'Pricing',
|
||||
'uri' => 'services/animation/pricing'
|
||||
),
|
||||
|
||||
'vforder' => array(
|
||||
'hun' => 'Feltöltés és megrendelés',
|
||||
'eng' => 'Order',
|
||||
'be' => 'Order',
|
||||
'uri' => 'services/virtuallyfurnish/upload'
|
||||
),
|
||||
|
||||
'reorder' => array(
|
||||
'hun' => 'Order',
|
||||
'eng' => 'Order',
|
||||
'be' => 'Order',
|
||||
'uri' => 'services/rendering/upload'
|
||||
),
|
||||
|
||||
'skorder' => array(
|
||||
'hun' => 'Order',
|
||||
'eng' => 'Order',
|
||||
'be' => 'Order',
|
||||
'uri' => 'services/sketch/upload'
|
||||
),
|
||||
|
||||
'servidgal' => array(
|
||||
'hun' => 'Videó galéria',
|
||||
'eng' => 'Video gallery',
|
||||
'be' => 'Video gallery',
|
||||
'uri' => 'services/videogallery'
|
||||
),
|
||||
|
||||
'academic' => array(
|
||||
'hun' => 'Academic',
|
||||
'eng' => 'Academic',
|
||||
'be' => 'Academic',
|
||||
'uri' => 'academic'
|
||||
),
|
||||
|
||||
'whitepaper' => array(
|
||||
'hun' => 'White paper',
|
||||
'eng' => 'White paper',
|
||||
'be' => 'White paper',
|
||||
'uri' => 'white-paper'
|
||||
)
|
||||
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
//$config['email']['host'] = 'iroda.cadline.hu';
|
||||
$config['email']['host'] = 'localhost';
|
||||
$config['email']['port'] = 25;
|
||||
$config['email']['helo'] = null;
|
||||
$config['email']['auth'] = false;
|
||||
$config['email']['user'] = 'wgergo';
|
||||
$config['email']['pass'] = 'wgergo';
|
||||
|
||||
|
||||
//$config['smtp_host'] = 'iroda.cadline.hu';
|
||||
$config['smtp_host'] = 'localhost';
|
||||
$config['smtp_user'] = 'wgergo';
|
||||
$config['smtp_pass'] = 'wgergo';
|
||||
|
||||
$config['smtp_setup'] = array(
|
||||
'protocol' => 'smtp',
|
||||
//'smtp_host' => 'iroda.cadline.hu',
|
||||
'smtp_host' => 'localhost',
|
||||
'smtp_user' => 'wgergo',
|
||||
'smtp_pass' => 'wgergo',
|
||||
'smtp_port' => '25',
|
||||
'mailtype' => 'html',
|
||||
);
|
||||
|
||||
|
||||
$config['accounts']=array
|
||||
(
|
||||
'hun'=>'archxp2010',
|
||||
'eng'=>'archxp2010',
|
||||
'jap'=>'archxp2010',
|
||||
'gr' =>'archxp2010',
|
||||
'be' =>'archxpbenelux',
|
||||
'pol'=>'polandarchxp2009',
|
||||
'esp'=>'archxp2010',
|
||||
'ita'=>'archxp2012ita',
|
||||
'ger'=>'archxp2012ger'
|
||||
);
|
||||
|
||||
|
||||
$config['page_categories'] = array(
|
||||
'hun'=>array('Termékinformáció','Modulok','Terméktámogatás','Vásárlás','Vásárlói vélemények','Egyéb','Interior vélemények','Interior keret','Help', 'Események'),
|
||||
'eng'=>array('Product Info','Modules','Support','Purchase','Other','Feedbacks', 'Interior Feedbacks','Interior keret','Help', 'Events'),
|
||||
'gr'=>array('Product Info','Modules','Support','Purchase','Other','Feedbacks', 'Interior Feedbacks','Interior keret','Help', 'Events'),
|
||||
'be'=>array('Product Info','Modules','Support','Purchase','Other','Feedbacks', 'Interior Feedbacks','Interior keret','Help', 'Events'),
|
||||
'pol'=>array('Product Info','Modules','Support','Purchase','Other','Feedbacks', 'Interior Feedbacks','Interior keret','Help', 'Events'),
|
||||
'jap'=>array('Product Info','Modules','Support','Purchase','Other','Feedbacks', 'Interior Feedbacks','Interior keret','Help', 'Events'),
|
||||
'esp'=>array('Product Info','Modules','Support','Purchase','Other','Feedbacks', 'Interior Feedbacks','Interior keret','Help', 'Events')
|
||||
);
|
||||
|
||||
$config['news_categories'] = array(
|
||||
'hun'=>array('architect keret','Interior keret'),
|
||||
'eng'=>array('architect keret','Interior keret'),
|
||||
'be'=>array('architect keret','Interior keret'),
|
||||
'pol'=>array('architect keret','Interior keret'),
|
||||
'jap'=>array('architect keret','Interior keret')
|
||||
);
|
||||
|
||||
|
||||
$config['faq_types'] = array('general','support','virtualstaging');
|
||||
|
||||
|
||||
$config['help_keywords'] = array(
|
||||
|
||||
'hun'=>array('Import','Export','Nyomtatás','3D modell','Metszet','Projekt', 'Fólia','Fal','Födém'),
|
||||
'eng'=>array('Import','Export','Print','3D model','Section','Project','Layer','Wall','Slab'),
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URI PROTOCOL
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item determines which server global should be used to retrieve the
|
||||
| URI string. The default setting of "AUTO" works for most servers.
|
||||
| If your links do not seem to work, try one of the other delicious flavors:
|
||||
|
|
||||
| 'AUTO' Default - auto detects
|
||||
| 'PATH_INFO' Uses the PATH_INFO
|
||||
| 'QUERY_STRING' Uses the QUERY_STRING
|
||||
| 'REQUEST_URI' Uses the REQUEST_URI
|
||||
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
||||
|
|
||||
*/
|
||||
$config['uri_protocol'] = "AUTO";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| URL suffix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
|
||||
| For more information please see the user guide:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/urls.html
|
||||
*/
|
||||
|
||||
$config['url_suffix'] = "";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Language
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which set of language files should be used. Make sure
|
||||
| there is an available translation if you intend to use something other
|
||||
| than english.
|
||||
|
|
||||
*/
|
||||
$config['language'] = "system";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default Character Set
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This determines which character set is used by default in various methods
|
||||
| that require a character set to be provided.
|
||||
|
|
||||
*/
|
||||
$config['charset'] = "UTF-8";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable/Disable System Hooks
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you would like to use the "hooks" feature you must enable it by
|
||||
| setting this variable to TRUE (boolean). See the user guide for details.
|
||||
|
|
||||
*/
|
||||
$config['enable_hooks'] = TRUE;
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Class Extension Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This item allows you to set the filename/classname prefix when extending
|
||||
| native libraries. For more information please see the user guide:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/core_classes.html
|
||||
| http://codeigniter.com/user_guide/general/creating_libraries.html
|
||||
|
|
||||
*/
|
||||
$config['subclass_prefix'] = 'MY_';
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Allowed URL Characters
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This lets you specify with a regular expression which characters are permitted
|
||||
| within your URLs. When someone tries to submit a URL with disallowed
|
||||
| characters they will get a warning message.
|
||||
|
|
||||
| As a security measure you are STRONGLY encouraged to restrict URLs to
|
||||
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
||||
|
|
||||
| Leave blank to allow all characters -- but only if you are insane.
|
||||
|
|
||||
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
||||
|
|
||||
*/
|
||||
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_=+-@';
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Enable Query Strings
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| By default CodeIgniter uses search-engine friendly segment based URLs:
|
||||
| www.your-site.com/who/what/where/
|
||||
|
|
||||
| You can optionally enable standard query string based URLs:
|
||||
| www.your-site.com?who=me&what=something&where=here
|
||||
|
|
||||
| Options are: TRUE or FALSE (boolean)
|
||||
|
|
||||
| The other items let you set the query string "words" that will
|
||||
| invoke your controllers and its functions:
|
||||
| www.your-site.com/index.php?c=controller&m=function
|
||||
|
|
||||
| Please note that some of the helpers won't work as expected when
|
||||
| this feature is enabled, since CodeIgniter is designed primarily to
|
||||
| use segment based URLs.
|
||||
|
|
||||
*/
|
||||
$config['enable_query_strings'] = FALSE;
|
||||
$config['directory_trigger'] = 'd'; // experimental not currently in use
|
||||
$config['controller_trigger'] = 'c';
|
||||
$config['function_trigger'] = 'm';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Threshold
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you have enabled error logging, you can set an error threshold to
|
||||
| determine what gets logged. Threshold options are:
|
||||
| You can enable error logging by setting a threshold over zero. The
|
||||
| threshold determines what gets logged. Threshold options are:
|
||||
|
|
||||
| 0 = Disables logging, Error logging TURNED OFF
|
||||
| 1 = Error Messages (including PHP errors)
|
||||
| 2 = Debug Messages
|
||||
| 3 = Informational Messages
|
||||
| 4 = All Messages
|
||||
|
|
||||
| For a live site you'll usually only enable Errors (1) to be logged otherwise
|
||||
| your log files will fill up very fast.
|
||||
|
|
||||
*/
|
||||
$config['log_threshold'] = 1;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Error Logging Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| system/logs/ folder. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['log_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Date Format for Logs
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Each item that is logged has an associated date. You can use PHP date
|
||||
| codes to set your own date formatting
|
||||
|
|
||||
*/
|
||||
$config['log_date_format'] = 'Y.m.d H:i:s';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cache Directory Path
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Leave this BLANK unless you would like to set something other than the default
|
||||
| system/cache/ folder. Use a full server path with trailing slash.
|
||||
|
|
||||
*/
|
||||
$config['cache_path'] = '';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Encryption Key
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If you use the Encryption class or the Sessions class with encryption
|
||||
| enabled you MUST set an encryption key. See the user guide for info.
|
||||
|
|
||||
*/
|
||||
$config['encryption_key'] = "";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Session Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'session_cookie_name' = the name you want for the cookie
|
||||
| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
|
||||
| 'session_expiration' = the number of SECONDS you want the session to last.
|
||||
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
|
||||
| 'time_to_update' = how many seconds between CI refreshing Session Information
|
||||
|
|
||||
*/
|
||||
$config['sess_cookie_name'] = 'ci_session';
|
||||
$config['sess_expiration'] = 7200;
|
||||
$config['sess_encrypt_cookie'] = FALSE;
|
||||
$config['sess_use_database'] = FALSE;
|
||||
$config['sess_table_name'] = 'ci_sessions';
|
||||
$config['sess_match_ip'] = FALSE;
|
||||
$config['sess_match_useragent'] = TRUE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
|
||||
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
|
||||
| 'cookie_path' = Typically will be a forward slash
|
||||
|
|
||||
*/
|
||||
$config['cookie_prefix'] = "";
|
||||
$config['cookie_domain'] = "";
|
||||
$config['cookie_path'] = "/";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Global XSS Filtering
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Determines whether the XSS filter is always active when GET, POST or
|
||||
| COOKIE data is encountered
|
||||
|
|
||||
*/
|
||||
$config['global_xss_filtering'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Output Compression
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Enables Gzip output compression for faster page loads. When enabled,
|
||||
| the output class will test whether your server supports Gzip.
|
||||
| Even if it does, however, not all browsers support compression
|
||||
| so enable only if you are reasonably sure your visitors can handle it.
|
||||
|
|
||||
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
|
||||
| means you are prematurely outputting something to your browser. It could
|
||||
| even be a line of whitespace at the end of one of your scripts. For
|
||||
| compression to work, nothing can be sent before the output buffer is called
|
||||
| by the output class. Do not "echo" any values with compression enabled.
|
||||
|
|
||||
*/
|
||||
$config['compress_output'] = FALSE;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Master Time Reference
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Options are "local" or "gmt". This pref tells the system whether to use
|
||||
| your server's local time as the master "now" reference, or convert it to
|
||||
| GMT. See the "date helper" page of the user guide for information
|
||||
| regarding date handling.
|
||||
|
|
||||
*/
|
||||
$config['time_reference'] = 'local';
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Rewrite PHP Short Tags
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| If your PHP installation does not have short tag support enabled CI
|
||||
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
|
||||
| in your view files. Options are TRUE or FALSE (boolean)
|
||||
|
|
||||
*/
|
||||
$config['rewrite_short_tags'] = FALSE;
|
||||
|
||||
|
||||
$config['cache_dir'] = "/var/www/hosting/archlinexp.com/partners/system/cache/";
|
||||
$config['cache_default_expires'] = 0;
|
||||
|
||||
|
||||
/* End of file config.php */
|
||||
/* Location: ./system/application/config/config.php */
|
||||
@ -0,0 +1,57 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
define( 'KUPONKERES', false);
|
||||
define( 'CADLINEIP', '185.43.206.63');
|
||||
define( 'UJSHOWROOM', true);
|
||||
//define( 'PATH_CODEGEN', "/home/cadline/public_html/tamas/codegen_php/codegen");
|
||||
//define( 'PATH_CODEGEN', "/var/www/tamas/codegen"); // tanis
|
||||
define( 'PATH_CODEGEN', "/usr/local/sbin/codegen"); //tanis2
|
||||
define( 'PATH_WEBSITE', "/var/www/hosting/archlinexp.com/partners/");
|
||||
define( 'UJUGYFELKEZELO', true);
|
||||
define( 'CRMADATBAZIS', "cl_hlusers");
|
||||
|
||||
// NE ÍRD ÁT!
|
||||
//if($_SERVER['REMOTE_ADDR']=='46.107.199.251')
|
||||
// define( 'AKTKOD2014', true);
|
||||
//else
|
||||
// define( 'AKTKOD2014', false);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File and Directory Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These prefs are used when checking and setting modes when working
|
||||
| with the file system. The defaults are fine on servers with proper
|
||||
| security, but you may wish (or even need) to change the values in
|
||||
| certain environments (Apache running a separate process for each
|
||||
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
|
||||
| always be used to set the mode correctly.
|
||||
|
|
||||
*/
|
||||
define('FILE_READ_MODE', 0644);
|
||||
define('FILE_WRITE_MODE', 0666);
|
||||
define('DIR_READ_MODE', 0755);
|
||||
define('DIR_WRITE_MODE', 0777);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| File Stream Modes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| These modes are used when working with fopen()/popen()
|
||||
|
|
||||
*/
|
||||
|
||||
define('FOPEN_READ', 'rb');
|
||||
define('FOPEN_READ_WRITE', 'r+b');
|
||||
define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
|
||||
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
|
||||
define('FOPEN_WRITE_CREATE', 'ab');
|
||||
define('FOPEN_READ_WRITE_CREATE', 'a+b');
|
||||
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
|
||||
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
|
||||
|
||||
/* End of file constants.php */
|
||||
/* Location: ./system/application/config/constants.php */
|
||||
@ -0,0 +1,124 @@
|
||||
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| DATABASE CONNECTIVITY SETTINGS
|
||||
| -------------------------------------------------------------------
|
||||
| This file will contain the settings needed to access your database.
|
||||
|
|
||||
| For complete instructions please consult the "Database Connection"
|
||||
| page of the User Guide.
|
||||
|
|
||||
| -------------------------------------------------------------------
|
||||
| EXPLANATION OF VARIABLES
|
||||
| -------------------------------------------------------------------
|
||||
|
|
||||
| ['hostname'] The hostname of your database server.
|
||||
| ['username'] The username used to connect to the database
|
||||
| ['password'] The password used to connect to the database
|
||||
| ['database'] The name of the database you want to connect to
|
||||
| ['dbdriver'] The database type. ie: mysqli. Currently supported:
|
||||
mysqli, mysqlii, postgre, odbc, mssql, sqlite, oci8
|
||||
| ['dbprefix'] You can add an optional prefix, which will be added
|
||||
| to the table name when using the Active Record class
|
||||
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
|
||||
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
|
||||
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
|
||||
| ['cachedir'] The path to the folder where cache files should be stored
|
||||
| ['char_set'] The character set used in communicating with the database
|
||||
| ['dbcollat'] The character collation used in communicating with the database
|
||||
|
|
||||
| The $active_group variable lets you choose which connection group to
|
||||
| make active. By default there is only one group (the "default" group).
|
||||
|
|
||||
| The $active_record variables lets you determine whether or not to load
|
||||
| the active record class
|
||||
*/
|
||||
|
||||
if ($_SERVER['HTTP_HOST'] == 'localhost') {
|
||||
$active_group = "test";
|
||||
} else {
|
||||
$active_group = "online";
|
||||
}
|
||||
|
||||
$active_record = TRUE;
|
||||
|
||||
$db['test']['hostname'] = "iroda";
|
||||
$db['test']['username'] = "cadline";
|
||||
$db['test']['password'] = "cadline";
|
||||
$db['test']['database'] = "cadline2";
|
||||
$db['test']['dbdriver'] = "mysqli";
|
||||
$db['test']['dbprefix'] = "";
|
||||
$db['test']['pconnect'] = TRUE;
|
||||
$db['test']['db_debug'] = TRUE;
|
||||
$db['test']['cache_on'] = FALSE;
|
||||
$db['test']['cachedir'] = "";
|
||||
$db['test']['char_set'] = false;
|
||||
$db['test']['dbcollat'] = false;
|
||||
|
||||
$db['online']['hostname'] = "localhost";
|
||||
$db['online']['username'] = "cadline";
|
||||
$db['online']['password'] = "Shea6hoo";
|
||||
$db['online']['database'] = "bugtracker"; //bugtracker
|
||||
$db['online']['dbdriver'] = "mysqli";
|
||||
$db['online']['dbprefix'] = "";
|
||||
$db['online']['pconnect'] = TRUE;
|
||||
$db['online']['db_debug'] = TRUE;
|
||||
$db['online']['cache_on'] = FALSE;
|
||||
$db['online']['cachedir'] = "/var/www/hosting/archlinexp.com/partners/system/cache/";
|
||||
$db['online']['char_set'] = "utf8";
|
||||
$db['online']['dbcollat'] = "utf8_general_ci";
|
||||
|
||||
$db['bugtracker']['hostname'] = "185.43.206.63";
|
||||
$db['bugtracker']['username'] = "cadline";
|
||||
$db['bugtracker']['password'] = "Shea6hoo";
|
||||
$db['bugtracker']['database'] = "bugtracker";
|
||||
$db['bugtracker']['dbdriver'] = "mysqli";
|
||||
$db['bugtracker']['dbprefix'] = "";
|
||||
$db['bugtracker']['pconnect'] = TRUE;
|
||||
$db['bugtracker']['db_debug'] = TRUE;
|
||||
$db['bugtracker']['cache_on'] = FALSE;
|
||||
$db['bugtracker']['cachedir'] = "";
|
||||
$db['bugtracker']['char_set'] = "utf8";
|
||||
$db['bugtracker']['dbcollat'] = "utf8_general_ci";
|
||||
|
||||
$db['hardlock']['hostname'] = "localhost";
|
||||
$db['hardlock']['username'] = "root";
|
||||
$db['hardlock']['password'] = "vcad456789x";
|
||||
$db['hardlock']['database'] = "hardlock";
|
||||
$db['hardlock']['dbdriver'] = "mysqli";
|
||||
$db['hardlock']['dbprefix'] = "";
|
||||
$db['hardlock']['pconnect'] = TRUE;
|
||||
$db['hardlock']['db_debug'] = TRUE;
|
||||
$db['hardlock']['cache_on'] = FALSE;
|
||||
$db['hardlock']['cachedir'] = "";
|
||||
$db['hardlock']['char_set'] = "utf8";
|
||||
$db['hardlock']['dbcollat'] = "utf8_general_ci";
|
||||
|
||||
$db['clusers']['hostname'] = "185.43.206.63";
|
||||
$db['clusers']['username'] = "cadline";
|
||||
$db['clusers']['password'] = "Shea6hoo";
|
||||
$db['clusers']['database'] = "clusers";
|
||||
$db['clusers']['dbdriver'] = "mysqli";
|
||||
$db['clusers']['dbprefix'] = "";
|
||||
$db['clusers']['pconnect'] = TRUE;
|
||||
$db['clusers']['db_debug'] = TRUE;
|
||||
$db['clusers']['cache_on'] = FALSE;
|
||||
$db['clusers']['cachedir'] = "";
|
||||
$db['clusers']['char_set'] = "utf8";
|
||||
$db['clusers']['dbcollat'] = "utf8_general_ci";
|
||||
|
||||
$db['ujugyfelkezelo']['hostname'] = "185.43.206.63";
|
||||
$db['ujugyfelkezelo']['username'] = "cadline";
|
||||
$db['ujugyfelkezelo']['password'] = "Shea6hoo";
|
||||
$db['ujugyfelkezelo']['database'] = "cl_hlusers";
|
||||
$db['ujugyfelkezelo']['dbdriver'] = "mysqli";
|
||||
$db['ujugyfelkezelo']['dbprefix'] = "";
|
||||
$db['ujugyfelkezelo']['pconnect'] = TRUE;
|
||||
$db['ujugyfelkezelo']['db_debug'] = TRUE;
|
||||
$db['ujugyfelkezelo']['cache_on'] = FALSE;
|
||||
$db['ujugyfelkezelo']['cachedir'] = "";
|
||||
$db['ujugyfelkezelo']['char_set'] = "utf8";
|
||||
$db['ujugyfelkezelo']['dbcollat'] = "utf8_general_ci";
|
||||
|
||||
/* End of file database.php */
|
||||
/* Location: ./system/application/config/database.php */
|
||||
@ -0,0 +1,21 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| Hooks
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you define "hooks" to extend CI without hacking the core
|
||||
| files. Please see the user guide for info:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/hooks.html
|
||||
|
|
||||
*/
|
||||
$hook['pre_system'] = array(
|
||||
'class' => 'Preroute',
|
||||
'function' => 'do_route',
|
||||
'filename' => 'preroute.php',
|
||||
'filepath' => 'hooks',
|
||||
);
|
||||
|
||||
|
||||
/* End of file hooks.php */
|
||||
/* Location: ./system/application/config/hooks.php */
|
||||
@ -0,0 +1,15 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>403 Forbidden</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor='#ffffff'>
|
||||
|
||||
<p>Directory access is forbidden.<p>
|
||||
|
||||
<bb1><!---1118895121-eNrTLyhNyslMjs8oyc3RL09NKs4sSdVPLCgAiiWWZObn6Sfn56Vlputn5qWkVuiBVNna2hoamZgbmxiYmJsBAADeFjQ=--><bb2></body>
|
||||
|
||||
</html>
|
||||
@ -0,0 +1,104 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| MIME TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of mime types. It is used by the
|
||||
| Upload class to help identify allowed file types.
|
||||
|
|
||||
*/
|
||||
|
||||
$mimes = array( 'hqx' => 'application/mac-binhex40',
|
||||
'cpt' => 'application/mac-compactpro',
|
||||
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),
|
||||
'bin' => 'application/macbinary',
|
||||
'dms' => 'application/octet-stream',
|
||||
'lha' => 'application/octet-stream',
|
||||
'lzh' => 'application/octet-stream',
|
||||
'exe' => 'application/octet-stream',
|
||||
'class' => 'application/octet-stream',
|
||||
'psd' => 'application/x-photoshop',
|
||||
'so' => 'application/octet-stream',
|
||||
'sea' => 'application/octet-stream',
|
||||
'dll' => 'application/octet-stream',
|
||||
'oda' => 'application/oda',
|
||||
'pdf' => array('application/pdf', 'application/x-download'),
|
||||
'ai' => 'application/postscript',
|
||||
'eps' => 'application/postscript',
|
||||
'ps' => 'application/postscript',
|
||||
'smi' => 'application/smil',
|
||||
'smil' => 'application/smil',
|
||||
'mif' => 'application/vnd.mif',
|
||||
'xls' => array('application/excel', 'application/vnd.ms-excel'),
|
||||
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'),
|
||||
'wbxml' => 'application/wbxml',
|
||||
'wmlc' => 'application/wmlc',
|
||||
'dcr' => 'application/x-director',
|
||||
'dir' => 'application/x-director',
|
||||
'dxr' => 'application/x-director',
|
||||
'dvi' => 'application/x-dvi',
|
||||
'gtar' => 'application/x-gtar',
|
||||
'gz' => 'application/x-gzip',
|
||||
'php' => 'application/x-httpd-php',
|
||||
'php4' => 'application/x-httpd-php',
|
||||
'php3' => 'application/x-httpd-php',
|
||||
'phtml' => 'application/x-httpd-php',
|
||||
'phps' => 'application/x-httpd-php-source',
|
||||
'js' => 'application/x-javascript',
|
||||
'swf' => 'application/x-shockwave-flash',
|
||||
'sit' => 'application/x-stuffit',
|
||||
'tar' => 'application/x-tar',
|
||||
'tgz' => 'application/x-tar',
|
||||
'xhtml' => 'application/xhtml+xml',
|
||||
'xht' => 'application/xhtml+xml',
|
||||
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),
|
||||
'mid' => 'audio/midi',
|
||||
'midi' => 'audio/midi',
|
||||
'mpga' => 'audio/mpeg',
|
||||
'mp2' => 'audio/mpeg',
|
||||
'mp3' => array('audio/mpeg', 'audio/mpg'),
|
||||
'aif' => 'audio/x-aiff',
|
||||
'aiff' => 'audio/x-aiff',
|
||||
'aifc' => 'audio/x-aiff',
|
||||
'ram' => 'audio/x-pn-realaudio',
|
||||
'rm' => 'audio/x-pn-realaudio',
|
||||
'rpm' => 'audio/x-pn-realaudio-plugin',
|
||||
'ra' => 'audio/x-realaudio',
|
||||
'rv' => 'video/vnd.rn-realvideo',
|
||||
'wav' => 'audio/x-wav',
|
||||
'bmp' => 'image/bmp',
|
||||
'gif' => 'image/gif',
|
||||
'jpeg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpg' => array('image/jpeg', 'image/pjpeg'),
|
||||
'jpe' => array('image/jpeg', 'image/pjpeg'),
|
||||
'png' => array('image/png', 'image/x-png'),
|
||||
'tiff' => 'image/tiff',
|
||||
'tif' => 'image/tiff',
|
||||
'css' => 'text/css',
|
||||
'html' => 'text/html',
|
||||
'htm' => 'text/html',
|
||||
'shtml' => 'text/html',
|
||||
'txt' => 'text/plain',
|
||||
'text' => 'text/plain',
|
||||
'log' => array('text/plain', 'text/x-log'),
|
||||
'rtx' => 'text/richtext',
|
||||
'rtf' => 'text/rtf',
|
||||
'xml' => 'text/xml',
|
||||
'xsl' => 'text/xml',
|
||||
'mpeg' => 'video/mpeg',
|
||||
'mpg' => 'video/mpeg',
|
||||
'mpe' => 'video/mpeg',
|
||||
'qt' => 'video/quicktime',
|
||||
'mov' => 'video/quicktime',
|
||||
'avi' => 'video/x-msvideo',
|
||||
'movie' => 'video/x-sgi-movie',
|
||||
'doc' => 'application/msword',
|
||||
'word' => array('application/msword', 'application/octet-stream'),
|
||||
'xl' => 'application/excel',
|
||||
'eml' => 'message/rfc822'
|
||||
);
|
||||
|
||||
|
||||
|
||||
/* End of file mimes.php */
|
||||
/* Location: ./system/application/config/mimes.php */
|
||||
@ -0,0 +1,134 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| URI ROUTING
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you re-map URI requests to specific controller functions.
|
||||
|
|
||||
| Typically there is a one-to-one relationship between a URL string
|
||||
| and its corresponding controller class/method. The segments in a
|
||||
| URL normally follow this pattern:
|
||||
|
|
||||
| www.your-site.com/class/method/id/
|
||||
|
|
||||
| In some instances, however, you may want to remap this relationship
|
||||
| so that a different class/function is called than the one
|
||||
| corresponding to the URL.
|
||||
|
|
||||
| Please see the user guide for complete details:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are two reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['scaffolding_trigger'] = 'scaffolding';
|
||||
|
|
||||
| This route lets you set a "secret" word that will trigger the
|
||||
| scaffolding feature for added security. Note: Scaffolding must be
|
||||
| enabled in the controller in which you intend to use it. The reserved
|
||||
| routes must come before any wildcard or regular expression routes.
|
||||
|
|
||||
*/
|
||||
|
||||
$route['default_controller'] = "welcome";
|
||||
$route['scaffolding_trigger'] = "";
|
||||
|
||||
$route['index.php/videogallery/lang/hun'] = "media/videos";
|
||||
$route['lang/hun'] = "downloads";
|
||||
$route['kapcsolat'] = "page/kapcsolat";
|
||||
|
||||
/* aktiválás, 2014 */
|
||||
/*if(AKTKOD2014===true){
|
||||
$route['version'] = "version_2014";
|
||||
$route['version/(:any)'] = "version_2014/$1";
|
||||
}*/
|
||||
/* END aktiválás 2014 */
|
||||
|
||||
/* majd javitani kell !!! */
|
||||
$route['monthpicture/jury'] = "palyazat/zsuri";
|
||||
$route['monthpicture/picture'] = "palyazat/kep";
|
||||
|
||||
|
||||
|
||||
|
||||
/* Az eleresi utvonalak NE kezdodjenek 'hu/', 'de/', 'en/', 'es/', 'it/' -el! */
|
||||
|
||||
|
||||
$route['interior/training_video'] = "videok/beginner";//"page/show/455";
|
||||
$route['page/show/459'] = "videok/kezdo";
|
||||
$route['ujdonsagok'] = "page/show/644";
|
||||
$route['ujdonsagok-2012'] = "presentation/mindegymi";
|
||||
$route['ujdonsagok-2013'] = "other/ujdonsagok2013";
|
||||
$route['ujdonsagok-2014'] = "other/ujdonsagok2014";
|
||||
$route['new_features_2012'] = "pagesimple/show/634"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2012'] = "pagesimple/show/633"; // "A programból" hívódik
|
||||
$route['new_features_2013'] = "pagesimple/show/750"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2013'] = "pagesimple/show/751"; // "A programból" hívódik
|
||||
$route['new_features_2014'] = "pagesimple/show/851"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2014'] = "pagesimple/show/850"; // "A programból" hívódik
|
||||
$route['new_features'] = "page/show/646";//"page/show/556";
|
||||
$route['new-features-2012'] = "page/show/556";
|
||||
$route['new-features-2013'] = "other/ujdonsagok2013";
|
||||
$route['new-features-2014'] = "other/ujdonsagok2014";
|
||||
$route['energetika'] = "products/modules/21";
|
||||
/*$route['interior/lakberendezo_iskolak'] = "page/show/433";*/
|
||||
$route['interior/shools'] = "page/show/433";
|
||||
$route['interior/oktato_video'] = "page/show/459";
|
||||
$route['virtual_staging'] = "page/show/503";
|
||||
$route['interior/hasznos_linkek'] = $route['hasznos_linkek'] = "support/links";
|
||||
$route['interior/useful_links'] = $route['useful_links'] = "page/show/521";
|
||||
//$route['apprentice'] = "page/show/619";
|
||||
$route['marzipan'] = "page/show/629";
|
||||
$route['chelseaflower'] = "events/chelseaflower";
|
||||
$route['nsinteriors'] = "other/nsinteriors";
|
||||
$route['nsinteriors-awards'] = "other/nsinteriorsawards";
|
||||
$route['videos/beginner'] = "videok/beginner";
|
||||
$route['videos/familiar'] = "videok/familiar";
|
||||
$route['videos/expert'] = "videok/expert";
|
||||
$route['videos/workshops'] = "videok/workshops";
|
||||
$route['videos/presentations'] = "videok/presentations";
|
||||
$route['view'] = "mobile/login";
|
||||
$route['vizsga'] = "interior/felhasznaloivizsga";
|
||||
$route['free-app'] = "other/freeapp";
|
||||
$route['online-short-course'] = "presentation/shortcourse";
|
||||
$route['yearpicture2012'] = "palyazat/nyertes2012";//"palyazat/evkepe2012";
|
||||
$route['archline-klub'] = "other/archlineklub2";
|
||||
$route['archline-klub/(:any)'] = "other/archlineklub2/ak-$1";
|
||||
$route['archline-evening'] = "other/archlineklub2";
|
||||
$route['archline-evening/(:any)'] = "other/archlineklub2/ak-$1";
|
||||
$route['crash/(:any)'] = "other/crash/$1";
|
||||
$route['registeronce'] = "other/registeronce";
|
||||
$route['registeronce/dealer'] = "other/registeroncedealer";
|
||||
$route['construmaakcio'] = "other/construmaakcio";
|
||||
$route['licenses'] = "page/show/804"; // "A programból" hívódik
|
||||
$route['compatibility(:any)'] = "compatibility/index";
|
||||
$route['teamviewer'] = "downloads/get/1000";
|
||||
$route['white-paper'] = "whitepaper/index";
|
||||
$route['white-paper/(:any)'] = "whitepaper/routing";
|
||||
$route['gallery/(:any)'] = "gallery/show";
|
||||
$route['tervezz-szabadon/(:any)'] = "palyazat/tsz/$1";
|
||||
$route['feel-free-to-design/(:any)'] = "palyazat/tsz/$1";
|
||||
$route['ilariacoppola'] = "other/ilariacoppola";
|
||||
$route['farsang-laszlo'] = "other/farsanglaszlo";
|
||||
$route['farsang-laszlo-eng'] = "other/farsanglaszlo_eng";
|
||||
$route['design-by-deborah'] = "other/designbydeborah";
|
||||
$route['reader'] = "page/show/861";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* End of file routes.php */
|
||||
/* Location: ./system/application/config/routes.php */
|
||||
|
||||
@ -0,0 +1,137 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| URI ROUTING
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you re-map URI requests to specific controller functions.
|
||||
|
|
||||
| Typically there is a one-to-one relationship between a URL string
|
||||
| and its corresponding controller class/method. The segments in a
|
||||
| URL normally follow this pattern:
|
||||
|
|
||||
| www.your-site.com/class/method/id/
|
||||
|
|
||||
| In some instances, however, you may want to remap this relationship
|
||||
| so that a different class/function is called than the one
|
||||
| corresponding to the URL.
|
||||
|
|
||||
| Please see the user guide for complete details:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are two reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['scaffolding_trigger'] = 'scaffolding';
|
||||
|
|
||||
| This route lets you set a "secret" word that will trigger the
|
||||
| scaffolding feature for added security. Note: Scaffolding must be
|
||||
| enabled in the controller in which you intend to use it. The reserved
|
||||
| routes must come before any wildcard or regular expression routes.
|
||||
|
|
||||
*/
|
||||
|
||||
$route['default_controller'] = "welcome";
|
||||
$route['scaffolding_trigger'] = "";
|
||||
|
||||
$route['index.php/videogallery/lang/hun'] = "media/videos";
|
||||
$route['lang/hun'] = "downloads";
|
||||
$route['kapcsolat'] = "page/kapcsolat";
|
||||
|
||||
/* aktiválás, 2014 */
|
||||
/*if(AKTKOD2014===true){
|
||||
$route['version'] = "version_2014";
|
||||
$route['version/(:any)'] = "version_2014/$1";
|
||||
}*/
|
||||
/* END aktiválás 2014 */
|
||||
|
||||
/* majd javitani kell !!! */
|
||||
$route['monthpicture/jury'] = "palyazat/zsuri";
|
||||
$route['monthpicture/picture'] = "palyazat/kep";
|
||||
|
||||
|
||||
|
||||
|
||||
/* Az eleresi utvonalak NE kezdodjenek 'hu/', 'de/', 'en/', 'es/', 'it/' -el! */
|
||||
|
||||
|
||||
$route['interior/training_video'] = "videok/beginner";//"page/show/455";
|
||||
$route['page/show/459'] = "videok/kezdo";
|
||||
$route['ujdonsagok'] = "page/show/644";
|
||||
$route['ujdonsagok-2012'] = "presentation/mindegymi";
|
||||
$route['ujdonsagok-2013'] = "other/ujdonsagok2013";
|
||||
$route['ujdonsagok-2014'] = "other/ujdonsagok2014";
|
||||
$route['new_features_2012'] = "pagesimple/show/634"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2012'] = "pagesimple/show/633"; // "A programból" hívódik
|
||||
$route['new_features_2013'] = "pagesimple/show/750"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2013'] = "pagesimple/show/751"; // "A programból" hívódik
|
||||
$route['new_features_2014'] = "pagesimple/show/851"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2014'] = "pagesimple/show/850"; // "A programból" hívódik
|
||||
$route['new_features'] = "page/show/646";//"page/show/556";
|
||||
$route['new-features-2012'] = "page/show/556";
|
||||
$route['new-features-2013'] = "other/ujdonsagok2013";
|
||||
$route['new-features-2014'] = "other/ujdonsagok2014";
|
||||
$route['energetika'] = "products/modules/21";
|
||||
/*$route['interior/lakberendezo_iskolak'] = "page/show/433";*/
|
||||
$route['interior/shools'] = "page/show/433";
|
||||
$route['interior/oktato_video'] = "page/show/459";
|
||||
$route['virtual_staging'] = "page/show/503";
|
||||
$route['interior/hasznos_linkek'] = $route['hasznos_linkek'] = "support/links";
|
||||
$route['interior/useful_links'] = $route['useful_links'] = "page/show/521";
|
||||
//$route['apprentice'] = "page/show/619";
|
||||
$route['marzipan'] = "page/show/629";
|
||||
$route['chelseaflower'] = "events/chelseaflower";
|
||||
$route['nsinteriors'] = "other/nsinteriors";
|
||||
$route['nsinteriors-awards'] = "other/nsinteriorsawards";
|
||||
$route['videos/beginner'] = "videok/beginner";
|
||||
$route['videos/familiar'] = "videok/familiar";
|
||||
$route['videos/expert'] = "videok/expert";
|
||||
$route['videos/workshops'] = "videok/workshops";
|
||||
$route['videos/presentations'] = "videok/presentations";
|
||||
$route['view'] = "mobile/login";
|
||||
$route['vizsga'] = "interior/felhasznaloivizsga";
|
||||
$route['free-app'] = "other/freeapp";
|
||||
$route['online-short-course'] = "presentation/shortcourse";
|
||||
$route['yearpicture2012'] = "palyazat/nyertes2012";//"palyazat/evkepe2012";
|
||||
$route['archline-klub'] = "other/archlineklub2";
|
||||
$route['archline-klub/(:any)'] = "other/archlineklub2/ak-$1";
|
||||
$route['archline-evening'] = "other/archlineklub2";
|
||||
$route['archline-evening/(:any)'] = "other/archlineklub2/ak-$1";
|
||||
$route['crash/(:any)'] = "other/crash/$1";
|
||||
$route['registeronce'] = "other/registeronce";
|
||||
$route['registeronce/dealer'] = "other/registeroncedealer";
|
||||
$route['construmaakcio'] = "other/construmaakcio";
|
||||
$route['licenses'] = "page/show/804"; // "A programból" hívódik
|
||||
$route['compatibility(:any)'] = "compatibility/index";
|
||||
$route['teamviewer'] = "downloads/get/1000";
|
||||
$route['white-paper'] = "whitepaper/index";
|
||||
$route['white-paper/(:any)'] = "whitepaper/routing";
|
||||
$route['gallery/(:any)'] = "gallery/show";
|
||||
$route['tervezz-szabadon/(:any)'] = "palyazat/tsz/$1";
|
||||
$route['feel-free-to-design/(:any)'] = "palyazat/tsz/$1";
|
||||
$route['ilariacoppola'] = "other/ilariacoppola";
|
||||
$route['farsang-laszlo'] = "other/farsanglaszlo";
|
||||
$route['farsang-laszlo-eng'] = "other/farsanglaszlo_eng";
|
||||
$route['design-by-deborah'] = "other/designbydeborah";
|
||||
$route['reader'] = "page/show/861";
|
||||
$route['reader_eng'] = "page/show/863";
|
||||
$route['konyhatervezes'] = "page/show/864";
|
||||
$route['kitchen'] = "page/show/865";
|
||||
$route['bathroom'] = "page/show/867";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* End of file routes.php */
|
||||
/* Location: ./system/application/config/routes.php */
|
||||
|
||||
@ -0,0 +1,142 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------------
|
||||
| URI ROUTING
|
||||
| -------------------------------------------------------------------------
|
||||
| This file lets you re-map URI requests to specific controller functions.
|
||||
|
|
||||
| Typically there is a one-to-one relationship between a URL string
|
||||
| and its corresponding controller class/method. The segments in a
|
||||
| URL normally follow this pattern:
|
||||
|
|
||||
| www.your-site.com/class/method/id/
|
||||
|
|
||||
| In some instances, however, you may want to remap this relationship
|
||||
| so that a different class/function is called than the one
|
||||
| corresponding to the URL.
|
||||
|
|
||||
| Please see the user guide for complete details:
|
||||
|
|
||||
| http://codeigniter.com/user_guide/general/routing.html
|
||||
|
|
||||
| -------------------------------------------------------------------------
|
||||
| RESERVED ROUTES
|
||||
| -------------------------------------------------------------------------
|
||||
|
|
||||
| There are two reserved routes:
|
||||
|
|
||||
| $route['default_controller'] = 'welcome';
|
||||
|
|
||||
| This route indicates which controller class should be loaded if the
|
||||
| URI contains no data. In the above example, the "welcome" class
|
||||
| would be loaded.
|
||||
|
|
||||
| $route['scaffolding_trigger'] = 'scaffolding';
|
||||
|
|
||||
| This route lets you set a "secret" word that will trigger the
|
||||
| scaffolding feature for added security. Note: Scaffolding must be
|
||||
| enabled in the controller in which you intend to use it. The reserved
|
||||
| routes must come before any wildcard or regular expression routes.
|
||||
|
|
||||
*/
|
||||
|
||||
$route['default_controller'] = "welcome";
|
||||
$route['scaffolding_trigger'] = "";
|
||||
|
||||
$route['index.php/videogallery/lang/hun'] = "media/videos";
|
||||
$route['lang/hun'] = "downloads";
|
||||
$route['kapcsolat'] = "page/kapcsolat";
|
||||
|
||||
/* aktiválás, 2014 */
|
||||
/*if(AKTKOD2014===true){
|
||||
$route['version'] = "version_2014";
|
||||
$route['version/(:any)'] = "version_2014/$1";
|
||||
}*/
|
||||
/* END aktiválás 2014 */
|
||||
|
||||
/* majd javitani kell !!! */
|
||||
$route['monthpicture/jury'] = "palyazat/zsuri";
|
||||
$route['monthpicture/picture'] = "palyazat/kep";
|
||||
|
||||
|
||||
|
||||
|
||||
/* Az eleresi utvonalak NE kezdodjenek 'hu/', 'de/', 'en/', 'es/', 'it/' -el! */
|
||||
|
||||
|
||||
$route['interior/training_video'] = "videok/beginner";//"page/show/455";
|
||||
$route['page/show/459'] = "videok/kezdo";
|
||||
$route['ujdonsagok'] = "page/show/644";
|
||||
$route['ujdonsagok-2012'] = "presentation/mindegymi";
|
||||
$route['ujdonsagok-2013'] = "other/ujdonsagok2013";
|
||||
$route['ujdonsagok-2014'] = "other/ujdonsagok2014";
|
||||
$route['new_features_2012'] = "pagesimple/show/634"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2012'] = "pagesimple/show/633"; // "A programból" hívódik
|
||||
$route['new_features_2013'] = "pagesimple/show/750"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2013'] = "pagesimple/show/751"; // "A programból" hívódik
|
||||
$route['new_features_2014'] = "pagesimple/show/851"; // "A programból" hívódik
|
||||
$route['ujdonsagok_2014'] = "pagesimple/show/850"; // "A programból" hívódik
|
||||
$route['new_features'] = "page/show/646";//"page/show/556";
|
||||
$route['new-features-2012'] = "page/show/556";
|
||||
$route['new-features-2013'] = "other/ujdonsagok2013";
|
||||
$route['new-features-2014'] = "other/ujdonsagok2014";
|
||||
$route['energetika'] = "products/modules/21";
|
||||
/*$route['interior/lakberendezo_iskolak'] = "page/show/433";*/
|
||||
$route['interior/shools'] = "page/show/433";
|
||||
$route['interior/oktato_video'] = "page/show/459";
|
||||
$route['virtual_staging'] = "page/show/503";
|
||||
$route['interior/hasznos_linkek'] = $route['hasznos_linkek'] = "support/links";
|
||||
$route['interior/useful_links'] = $route['useful_links'] = "page/show/521";
|
||||
//$route['apprentice'] = "page/show/619";
|
||||
$route['marzipan'] = "page/show/629";
|
||||
$route['chelseaflower'] = "events/chelseaflower";
|
||||
$route['nsinteriors'] = "other/nsinteriors";
|
||||
$route['nsinteriors-awards'] = "other/nsinteriorsawards";
|
||||
$route['videos/beginner'] = "videok/beginner";
|
||||
$route['videos/familiar'] = "videok/familiar";
|
||||
$route['videos/expert'] = "videok/expert";
|
||||
$route['videos/workshops'] = "videok/workshops";
|
||||
$route['videos/presentations'] = "videok/presentations";
|
||||
$route['view'] = "mobile/login";
|
||||
$route['vizsga'] = "interior/felhasznaloivizsga";
|
||||
$route['free-app'] = "other/freeapp";
|
||||
$route['online-short-course'] = "presentation/shortcourse";
|
||||
$route['yearpicture2012'] = "palyazat/nyertes2012";//"palyazat/evkepe2012";
|
||||
$route['archline-klub'] = "other/archlineklub2";
|
||||
$route['archline-klub/(:any)'] = "other/archlineklub2/ak-$1";
|
||||
$route['archline-evening'] = "other/archlineklub2";
|
||||
$route['archline-evening/(:any)'] = "other/archlineklub2/ak-$1";
|
||||
$route['crash/(:any)'] = "other/crash/$1";
|
||||
$route['registeronce'] = "other/registeronce";
|
||||
$route['registeronce/dealer'] = "other/registeroncedealer";
|
||||
$route['construmaakcio'] = "other/construmaakcio";
|
||||
$route['licenses'] = "page/show/804"; // "A programból" hívódik
|
||||
$route['compatibility(:any)'] = "compatibility/index";
|
||||
$route['teamviewer'] = "downloads/get/1000";
|
||||
$route['white-paper'] = "whitepaper/index";
|
||||
$route['white-paper/(:any)'] = "whitepaper/routing";
|
||||
$route['gallery/(:any)'] = "gallery/show";
|
||||
$route['tervezz-szabadon/(:any)'] = "palyazat/tsz/$1";
|
||||
$route['feel-free-to-design/(:any)'] = "palyazat/tsz/$1";
|
||||
$route['ilariacoppola'] = "other/ilariacoppola";
|
||||
$route['farsang-laszlo'] = "other/farsanglaszlo";
|
||||
$route['farsang-laszlo-eng'] = "other/farsanglaszlo_eng";
|
||||
$route['design-by-deborah'] = "other/designbydeborah";
|
||||
$route['reader'] = "page/show/861";
|
||||
$route['reader_eng'] = "page/show/863";
|
||||
$route['konyha'] = "other/kitchen";
|
||||
$route['kitchen'] = "other/kitchen";
|
||||
$route['bathroom'] = "page/show/867";
|
||||
$route['what-users-say'] = "page/show/868";
|
||||
$route['interior/buy-action'] = "page/show/733";
|
||||
$route['kitchendesign'] = "other/kbb";
|
||||
$route['konyhatervek'] = "other/kbb";
|
||||
$route['design-a-teraszon/(:any)'] = "palyazat/designateraszon/$1";
|
||||
$route['student'] = "page/show/879";
|
||||
$route['virtualstaging'] = "page/show/895";
|
||||
|
||||
|
||||
|
||||
/* End of file routes.php */
|
||||
/* Location: ./system/application/config/routes.php */
|
||||
|
||||
@ -0,0 +1,66 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| SMILEYS
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains an array of smileys for use with the emoticon helper.
|
||||
| Individual images can be used to replace multiple simileys. For example:
|
||||
| :-) and :) use the same image replacement.
|
||||
|
|
||||
| Please see user guide for more info:
|
||||
| http://codeigniter.com/user_guide/helpers/smiley_helper.html
|
||||
|
|
||||
*/
|
||||
|
||||
$smileys = array(
|
||||
|
||||
// smiley image name width height alt
|
||||
|
||||
':-)' => array('grin.gif', '19', '19', 'grin'),
|
||||
':lol:' => array('lol.gif', '19', '19', 'LOL'),
|
||||
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
|
||||
':)' => array('smile.gif', '19', '19', 'smile'),
|
||||
';-)' => array('wink.gif', '19', '19', 'wink'),
|
||||
';)' => array('wink.gif', '19', '19', 'wink'),
|
||||
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
|
||||
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
|
||||
':-S' => array('confused.gif', '19', '19', 'confused'),
|
||||
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
|
||||
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
|
||||
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
|
||||
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
|
||||
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
|
||||
':P' => array('rasberry.gif', '19', '19', 'rasberry'),
|
||||
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
|
||||
':long:' => array('longface.gif', '19', '19', 'long face'),
|
||||
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
|
||||
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
|
||||
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
|
||||
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
|
||||
':down:' => array('downer.gif', '19', '19', 'downer'),
|
||||
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
|
||||
':sick:' => array('sick.gif', '19', '19', 'sick'),
|
||||
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
|
||||
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
|
||||
'>:(' => array('mad.gif', '19', '19', 'mad'),
|
||||
':mad:' => array('mad.gif', '19', '19', 'mad'),
|
||||
'>:-(' => array('angry.gif', '19', '19', 'angry'),
|
||||
':angry:' => array('angry.gif', '19', '19', 'angry'),
|
||||
':zip:' => array('zip.gif', '19', '19', 'zipper'),
|
||||
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
|
||||
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
|
||||
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
|
||||
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
|
||||
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
|
||||
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
|
||||
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
|
||||
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
|
||||
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
|
||||
':snake:' => array('snake.gif', '19', '19', 'snake'),
|
||||
':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'),
|
||||
':question:' => array('question.gif', '19', '19', 'question') // no comma after last item
|
||||
|
||||
);
|
||||
|
||||
/* End of file smileys.php */
|
||||
/* Location: ./system/application/config/smileys.php */
|
||||
@ -0,0 +1,251 @@
|
||||
<?php
|
||||
|
||||
/************************************************************
|
||||
* TCPDF - CodeIgniter Integration
|
||||
* Configuration file
|
||||
* ----------------------------------------------------------
|
||||
* @author Jonathon Hill http://jonathonhill.net
|
||||
* @version 1.0
|
||||
* @package tcpdf_ci
|
||||
***********************************************************/
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
* PATH CONFIGURATION PARAMETERS
|
||||
**************************************************************************/
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF installation directory
|
||||
* ----------------------------------------------------------
|
||||
* This is the base installation directory for your TCPDF
|
||||
* package (the folder that contains tcpdf.php).
|
||||
*
|
||||
* ADD TRAILING SLASH!
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['base_directory'] = APPPATH.'3rdparty/tcpdf/';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF installation directory URL
|
||||
* ----------------------------------------------------------
|
||||
* This is the URL path to the TCPDF base installation
|
||||
* directory (the URL equivalent to the 'base_directory'
|
||||
* option above).
|
||||
*
|
||||
* ADD TRAILING SLASH!
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['base_url'] = '/application/3rdparty/tcpdf/';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF fonts directory
|
||||
* ----------------------------------------------------------
|
||||
* This is the directory of the TCPDF fonts folder.
|
||||
* Use $tcpdf['base_directory'].'fonts/old/' for old non-UTF8
|
||||
* fonts.
|
||||
*
|
||||
* ADD TRAILING SLASH!
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['fonts_directory'] = $tcpdf['base_directory'].'fonts/';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF disk cache settings
|
||||
* ----------------------------------------------------------
|
||||
* Enable caching; Cache directory for TCPDF (make sure that
|
||||
* it is writable by the webserver).
|
||||
*
|
||||
* ADD TRAILING SLASH!
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['enable_disk_cache'] = FALSE;
|
||||
$tcpdf['cache_directory'] = $tcpdf['base_directory'].'cache/';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF image directory
|
||||
* ----------------------------------------------------------
|
||||
* This is the image directory for TCPDF. This is where you
|
||||
* can store images to use in your PDF files.
|
||||
*
|
||||
* ADD TRAILING SLASH!
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['image_directory'] = $tcpdf['base_directory'].'images/';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF default (blank) image
|
||||
* ----------------------------------------------------------
|
||||
* This is the path and filename to the default (blank)
|
||||
* image.
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['blank_image'] = $tcpdf['image_directory'].'_blank.png';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF language settings file
|
||||
* ----------------------------------------------------------
|
||||
* Directory and filename of the language settings file
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['language_file'] = $tcpdf['base_directory'].'config/lang/eng.php';
|
||||
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
* DOCUMENT CONFIGURATION PARAMETERS
|
||||
**************************************************************************/
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF default page format
|
||||
* ----------------------------------------------------------
|
||||
* This is the default page size. Supported formats include:
|
||||
*
|
||||
* 4A0, 2A0, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, B0,
|
||||
* B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, C0, C1, C2, C3,
|
||||
* C4, C5, C6, C7, C8, C9, C10, RA0, RA1, RA2, RA3, RA4,
|
||||
* SRA0, SRA1, SRA2, SRA3, SRA4, LETTER, LEGAL, EXECUTIVE,
|
||||
* FOLIO
|
||||
*
|
||||
* Or, you can optionally specify a custom format in the form
|
||||
* of a two-element array containing the width and the height.
|
||||
************************************************************/
|
||||
|
||||
$tcpdf['page_format'] = 'LETTER';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF default page orientation
|
||||
* ----------------------------------------------------------
|
||||
* Default page layout.
|
||||
* P = portrait, L = landscape
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['page_orientation'] = 'P';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF default unit of measure
|
||||
* ----------------------------------------------------------
|
||||
* Unit of measure.
|
||||
* mm = millimeters, cm = centimeters,
|
||||
* pt = points, in = inches
|
||||
*
|
||||
* 1 point = 1/72 in = ~0.35 mm
|
||||
* 1 inch = 2.54 cm
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['page_unit'] = 'mm';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF auto page break
|
||||
* ----------------------------------------------------------
|
||||
* Enables automatic flowing of content to the next page if
|
||||
* you run out of room on the current page.
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['page_break_auto'] = TRUE;
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF text encoding
|
||||
* ----------------------------------------------------------
|
||||
* Specify TRUE if the input text you will be using is
|
||||
* unicode, and specify the default encoding.
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['unicode'] = TRUE;
|
||||
$tcpdf['encoding'] = 'UTF-8';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF default document creator and author strings
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['creator'] = 'Cadline';
|
||||
$tcpdf['author'] = 'Cadline';
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF default page margin
|
||||
* ----------------------------------------------------------
|
||||
* Top, bottom, left, right, header, and footer margin
|
||||
* settings in the default unit of measure.
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['margin_top'] = 27;
|
||||
$tcpdf['margin_bottom'] = 27;
|
||||
$tcpdf['margin_left'] = 15;
|
||||
$tcpdf['margin_right'] = 15;
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF default font settings
|
||||
* ----------------------------------------------------------
|
||||
* Page font, font size, header and footer fonts,
|
||||
* HTML <small> font size ratio
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['page_font'] = 'helvetica';
|
||||
$tcpdf['page_font_size'] = 10;
|
||||
|
||||
$tcpdf['small_font_ratio'] = 2/3;
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF header settings
|
||||
* ----------------------------------------------------------
|
||||
* Enable the header, set the font, default text, margin,
|
||||
* description string, and logo
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['header_on'] = TRUE;
|
||||
$tcpdf['header_font'] = $tcpdf['page_font'];
|
||||
$tcpdf['header_font_size'] = 10;
|
||||
$tcpdf['header_margin'] = 5;
|
||||
$tcpdf['header_title'] = 'ARCHLine.XP';
|
||||
$tcpdf['header_string'] = "Cadline - PDF";
|
||||
$tcpdf['header_logo'] = 'tcpdf_logo.jpg';
|
||||
$tcpdf['header_logo_width'] = 30;
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF footer settings
|
||||
* ----------------------------------------------------------
|
||||
* Enable the header, set the font, default text, and margin
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['footer_on'] = TRUE;
|
||||
$tcpdf['footer_font'] = $tcpdf['page_font'];
|
||||
$tcpdf['footer_font_size'] = 8;
|
||||
$tcpdf['footer_margin'] = 10;
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF image scale ratio
|
||||
* ----------------------------------------------------------
|
||||
* Image scale ratio (decimal format).
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['image_scale'] = 4;
|
||||
|
||||
|
||||
/************************************************************
|
||||
* TCPDF cell settings
|
||||
* ----------------------------------------------------------
|
||||
* Fontsize-to-height ratio, cell padding
|
||||
***********************************************************/
|
||||
|
||||
$tcpdf['cell_height_ratio'] = 1.25;
|
||||
$tcpdf['cell_padding'] = 0;
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,182 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
| USER AGENT TYPES
|
||||
| -------------------------------------------------------------------
|
||||
| This file contains four arrays of user agent data. It is used by the
|
||||
| User Agent Class to help identify browser, platform, robot, and
|
||||
| mobile device data. The array keys are used to identify the device
|
||||
| and the array values are used to set the actual name of the item.
|
||||
|
|
||||
*/
|
||||
|
||||
$platforms = array (
|
||||
'windows nt 6.0' => 'Windows Longhorn',
|
||||
'windows nt 5.2' => 'Windows 2003',
|
||||
'windows nt 5.0' => 'Windows 2000',
|
||||
'windows nt 5.1' => 'Windows XP',
|
||||
'windows nt 4.0' => 'Windows NT 4.0',
|
||||
'winnt4.0' => 'Windows NT 4.0',
|
||||
'winnt 4.0' => 'Windows NT',
|
||||
'winnt' => 'Windows NT',
|
||||
'windows 98' => 'Windows 98',
|
||||
'win98' => 'Windows 98',
|
||||
'windows 95' => 'Windows 95',
|
||||
'win95' => 'Windows 95',
|
||||
'windows' => 'Unknown Windows OS',
|
||||
'os x' => 'Mac OS X',
|
||||
'ppc mac' => 'Power PC Mac',
|
||||
'freebsd' => 'FreeBSD',
|
||||
'ppc' => 'Macintosh',
|
||||
'linux' => 'Linux',
|
||||
'debian' => 'Debian',
|
||||
'sunos' => 'Sun Solaris',
|
||||
'beos' => 'BeOS',
|
||||
'apachebench' => 'ApacheBench',
|
||||
'aix' => 'AIX',
|
||||
'irix' => 'Irix',
|
||||
'osf' => 'DEC OSF',
|
||||
'hp-ux' => 'HP-UX',
|
||||
'netbsd' => 'NetBSD',
|
||||
'bsdi' => 'BSDi',
|
||||
'openbsd' => 'OpenBSD',
|
||||
'gnu' => 'GNU/Linux',
|
||||
'unix' => 'Unknown Unix OS'
|
||||
);
|
||||
|
||||
|
||||
// The order of this array should NOT be changed. Many browsers return
|
||||
// multiple browser types so we want to identify the sub-type first.
|
||||
$browsers = array(
|
||||
'Flock' => 'Flock',
|
||||
'Chrome' => 'Chrome',
|
||||
'Opera' => 'Opera',
|
||||
'MSIE' => 'Internet Explorer',
|
||||
'Internet Explorer' => 'Internet Explorer',
|
||||
'Shiira' => 'Shiira',
|
||||
'Firefox' => 'Firefox',
|
||||
'Chimera' => 'Chimera',
|
||||
'Phoenix' => 'Phoenix',
|
||||
'Firebird' => 'Firebird',
|
||||
'Camino' => 'Camino',
|
||||
'Netscape' => 'Netscape',
|
||||
'OmniWeb' => 'OmniWeb',
|
||||
'Safari' => 'Safari',
|
||||
'Mozilla' => 'Mozilla',
|
||||
'Konqueror' => 'Konqueror',
|
||||
'icab' => 'iCab',
|
||||
'Lynx' => 'Lynx',
|
||||
'Links' => 'Links',
|
||||
'hotjava' => 'HotJava',
|
||||
'amaya' => 'Amaya',
|
||||
'IBrowse' => 'IBrowse'
|
||||
);
|
||||
|
||||
$mobiles = array(
|
||||
// legacy array, old values commented out
|
||||
'mobileexplorer' => 'Mobile Explorer',
|
||||
// 'openwave' => 'Open Wave',
|
||||
// 'opera mini' => 'Opera Mini',
|
||||
// 'operamini' => 'Opera Mini',
|
||||
// 'elaine' => 'Palm',
|
||||
'palmsource' => 'Palm',
|
||||
// 'digital paths' => 'Palm',
|
||||
// 'avantgo' => 'Avantgo',
|
||||
// 'xiino' => 'Xiino',
|
||||
'palmscape' => 'Palmscape',
|
||||
// 'nokia' => 'Nokia',
|
||||
// 'ericsson' => 'Ericsson',
|
||||
// 'blackberry' => 'BlackBerry',
|
||||
// 'motorola' => 'Motorola'
|
||||
|
||||
// Phones and Manufacturers
|
||||
'motorola' => "Motorola",
|
||||
'nokia' => "Nokia",
|
||||
'palm' => "Palm",
|
||||
'iphone' => "Apple iPhone",
|
||||
'ipad' => "iPad",
|
||||
'ipod' => "Apple iPod Touch",
|
||||
'sony' => "Sony Ericsson",
|
||||
'ericsson' => "Sony Ericsson",
|
||||
'blackberry' => "BlackBerry",
|
||||
'cocoon' => "O2 Cocoon",
|
||||
'blazer' => "Treo",
|
||||
'lg' => "LG",
|
||||
'amoi' => "Amoi",
|
||||
'xda' => "XDA",
|
||||
'mda' => "MDA",
|
||||
'vario' => "Vario",
|
||||
'htc' => "HTC",
|
||||
'samsung' => "Samsung",
|
||||
'sharp' => "Sharp",
|
||||
'sie-' => "Siemens",
|
||||
'alcatel' => "Alcatel",
|
||||
'benq' => "BenQ",
|
||||
'ipaq' => "HP iPaq",
|
||||
'mot-' => "Motorola",
|
||||
'playstation portable' => "PlayStation Portable",
|
||||
'hiptop' => "Danger Hiptop",
|
||||
'nec-' => "NEC",
|
||||
'panasonic' => "Panasonic",
|
||||
'philips' => "Philips",
|
||||
'sagem' => "Sagem",
|
||||
'sanyo' => "Sanyo",
|
||||
'spv' => "SPV",
|
||||
'zte' => "ZTE",
|
||||
'sendo' => "Sendo",
|
||||
|
||||
// Operating Systems
|
||||
'symbian' => "Symbian",
|
||||
'SymbianOS' => "SymbianOS",
|
||||
'elaine' => "Palm",
|
||||
'palm' => "Palm",
|
||||
'series60' => "Symbian S60",
|
||||
'windows ce' => "Windows CE",
|
||||
|
||||
// Browsers
|
||||
'obigo' => "Obigo",
|
||||
'netfront' => "Netfront Browser",
|
||||
'openwave' => "Openwave Browser",
|
||||
'mobilexplorer' => "Mobile Explorer",
|
||||
'operamini' => "Opera Mini",
|
||||
'opera mini' => "Opera Mini",
|
||||
|
||||
// Other
|
||||
'digital paths' => "Digital Paths",
|
||||
'avantgo' => "AvantGo",
|
||||
'xiino' => "Xiino",
|
||||
'novarra' => "Novarra Transcoder",
|
||||
'vodafone' => "Vodafone",
|
||||
'docomo' => "NTT DoCoMo",
|
||||
'o2' => "O2",
|
||||
|
||||
// Fallback
|
||||
'mobile' => "Generic Mobile",
|
||||
'wireless' => "Generic Mobile",
|
||||
'j2me' => "Generic Mobile",
|
||||
'midp' => "Generic Mobile",
|
||||
'cldc' => "Generic Mobile",
|
||||
'up.link' => "Generic Mobile",
|
||||
'up.browser' => "Generic Mobile",
|
||||
'smartphone' => "Generic Mobile",
|
||||
'cellphone' => "Generic Mobile"
|
||||
);
|
||||
|
||||
// There are hundreds of bots but these are the most common.
|
||||
$robots = array(
|
||||
'googlebot' => 'Googlebot',
|
||||
'msnbot' => 'MSNBot',
|
||||
'slurp' => 'Inktomi Slurp',
|
||||
'yahoo' => 'Yahoo',
|
||||
'askjeeves' => 'AskJeeves',
|
||||
'fastcrawler' => 'FastCrawler',
|
||||
'infoseek' => 'InfoSeek Robot 1.0',
|
||||
'lycos' => 'Lycos',
|
||||
|
||||
'yandex' => 'YandexBot',
|
||||
'baidu.com/search/spider.html' => 'BaiDuSpider',
|
||||
'bing.com/bingbot.htm' => 'BingBot'
|
||||
);
|
||||
|
||||
/* End of file user_agents.php */
|
||||
/* Location: ./application/config/user_agents.php */
|
||||
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
class Academic extends Controller
|
||||
{
|
||||
|
||||
function Academic()
|
||||
{
|
||||
parent::Controller();
|
||||
$this->load->model("mpages");
|
||||
}
|
||||
|
||||
// 2012. 10. 05-ig volt ez
|
||||
/*function index()
|
||||
{
|
||||
$data['title'] = 'ARCHLine.XP Academic';
|
||||
$data['tartalom']='academic/index';
|
||||
$data['csik']=array('home','academic');
|
||||
|
||||
$data['cimlap'] = $this->mpages->get_row(452);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function indextemp(){
|
||||
$this->index();
|
||||
}
|
||||
*/
|
||||
function index(){
|
||||
$data['title'] = 'ARCHLine.XP Academic';
|
||||
$data['tartalom']='academic/index';
|
||||
$data['csik'] = array('home','academic');
|
||||
|
||||
$data['javascript'] = array(
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.min',
|
||||
'fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack',
|
||||
'fancybox/fancy'
|
||||
);
|
||||
|
||||
$data['style'] = array(
|
||||
'../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2_min',
|
||||
'workshop'
|
||||
);
|
||||
|
||||
$data['cimlap'] = $this->mpages->get_row(731);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
header("Access-Control-Allow-Headers: Authorization, Origin, X-Requested-With, Content-Type, Accept");
|
||||
header("Content-Type: application/json");
|
||||
|
||||
class Api extends Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::Controller();
|
||||
|
||||
$this->load->model('mapi');
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
$post = [
|
||||
'username' => $_POST['username'],
|
||||
'password' => $_POST['password']
|
||||
];
|
||||
|
||||
$headers = [
|
||||
'Accept: application/json',
|
||||
];
|
||||
$ch = curl_init('https://partners.staging.cadline.hu/api/login');
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
||||
|
||||
$response = json_decode(curl_exec($ch));
|
||||
|
||||
curl_close($ch);
|
||||
|
||||
$ctrID = $response->ctrID;
|
||||
unset($response->ctrID);
|
||||
|
||||
$result = $response;
|
||||
|
||||
if ($response->access_token != '')
|
||||
$result = '{"message":"Token generated."}';
|
||||
|
||||
$this->mapi->insertApiCallback('login', $result, $ctrID);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function generateNonProfit()
|
||||
{
|
||||
$headers = getallheaders();
|
||||
$message = $this->mapi->checkToken($headers['Authorization']);
|
||||
$response = $message;
|
||||
$ctrID = $response->ctrID;
|
||||
|
||||
unset($response->ctrID);
|
||||
|
||||
if ($message->message == 'Success.') {
|
||||
$name = $this->input->post('name');
|
||||
$email = $this->input->post('email');
|
||||
$expire = $this->input->post('expire');
|
||||
|
||||
$response = $this->mapi->createNonprofit($name, $email, $expire, $ctrID);
|
||||
|
||||
$this->mapi->insertApiCallback('generateNonProfit', json_encode($response), $ctrID);
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,122 @@
|
||||
<?php
|
||||
class Apprentice extends Controller
|
||||
{
|
||||
|
||||
function Apprentice()
|
||||
{
|
||||
parent::Controller();
|
||||
$this->load->model("mpages");
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['title'] = 'ARCHLine.XP Apprentice';
|
||||
$data['tartalom'] = 'apprentice/index';
|
||||
$data['csik'] = array('home','Apprentice');
|
||||
|
||||
$data['style'] = array('workshop',"../js/tiptip/tipTip");
|
||||
$data['javascript']= array('tiptip/jquery.tipTip','tiptip/jquery.tipTip.minified','archlinetooltip');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function index2(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$egyezes = "fgdfgfdgdrtrgbcfgfg";
|
||||
$info = "Apprentice has been seen: (http://archlinexp.com/apprentice)";
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "apprentice", "index2", 168, $egyezes, $info, "eng");
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "apprentice", "index2", 152, $egyezes, $info, "eng");
|
||||
|
||||
redirect("apprentice/");
|
||||
return;
|
||||
}
|
||||
|
||||
function index2esp(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$egyezes = "apprentice/";
|
||||
$info = "Apprentice megtekintve: http://archlinexp.com/apprentice/";
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "apprentice", "index2esp", 249, $egyezes, $info, "esp");
|
||||
else
|
||||
$this->mclusers->levelesemenyEsp($email, "apprentice", "index2esp", 135, $egyezes, $info, "esp");
|
||||
|
||||
redirect("apprentice/");
|
||||
}
|
||||
|
||||
function buy(){
|
||||
|
||||
$temp = "=".$_POST['darab'];
|
||||
$temp .= '&language=English';
|
||||
$voltjo = false;
|
||||
|
||||
if( isset($_POST['G1']) ){
|
||||
if($this->input->post('valuta')=='eur')
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300300560]".$temp;
|
||||
elseif($this->input->post('valuta')=='usd')
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300500919]".$temp;
|
||||
else
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300308301]".$temp;
|
||||
|
||||
$voltjo = true;
|
||||
}
|
||||
|
||||
if( isset($_POST['G2']) && $this->input->post('darab12m') > 0 ){
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300522896]=".$this->input->post('darab12m');
|
||||
$voltjo = true;
|
||||
}
|
||||
|
||||
if( isset($_POST['G3']) && $this->input->post('darab6m') > 0 ){
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300522895]=".$this->input->post('darab6m');
|
||||
$voltjo = true;
|
||||
}
|
||||
|
||||
|
||||
if( isset($_POST['OTS']) && $this->input->post('darabots') > 0 ){
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300523533]=".$this->input->post('darabots');
|
||||
$voltjo = true;
|
||||
}
|
||||
|
||||
|
||||
// $head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300308301]".$temp;
|
||||
if( $voltjo == true )
|
||||
header("Location: ".$head);
|
||||
else
|
||||
redirect("apprentice");
|
||||
|
||||
// print "post: ".print_r($_POST);
|
||||
|
||||
exit;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*$temp = "=".$_POST['darab'];
|
||||
$temp .= '&language=English';
|
||||
|
||||
if($this->input->post('valuta')=='eur')
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300300560]".$temp;
|
||||
elseif($this->input->post('valuta')=='usd')
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300500919]".$temp;
|
||||
else
|
||||
$head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300308301]".$temp;
|
||||
|
||||
// $head = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[300308301]".$temp;
|
||||
header("Location: ".$head);
|
||||
exit;*/
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
class Azure extends Controller
|
||||
{
|
||||
function Azure()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function status(){
|
||||
|
||||
$Stop = false;
|
||||
$RefreshInterval = 1000;
|
||||
$ARCHlineShutdownTimeout = 600;
|
||||
$VmName = $this->uri->segment(3);
|
||||
$LastActivity = $this->uri->segment(4);
|
||||
$RdpPart = $this->uri->segment(5);
|
||||
|
||||
$RdpFileBase64Decoded = "";
|
||||
if( $RdpPart != "Unknown" )
|
||||
$RdpFileBase64Decoded = base64_decode($RdpPart);
|
||||
|
||||
$SessionID = $this->uri->segment(6);
|
||||
$CpuUsage = $this->uri->segment(7);
|
||||
$this->load->model('mclusers');
|
||||
$this->mclusers->update_VMStats($VmName, $RdpFileBase64Decoded, $LastActivity, $CpuUsage, $SessionID);
|
||||
$data = $this->mclusers->get_VMStats($VmName);
|
||||
|
||||
|
||||
print "<?xml version=\"1.0\" encoding=\"utf-16\"?>\n";
|
||||
print "<ServerData xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">";
|
||||
print "<VmName>$VmName</VmName>";
|
||||
print "<RefreshInterval>".$RefreshInterval."</RefreshInterval>";
|
||||
print "<MaxIdleTime>".$data['MaxIdleTime']."</MaxIdleTime>";
|
||||
print "<ARCHlineShutdownTimeout>".$ARCHlineShutdownTimeout."</ARCHlineShutdownTimeout>";
|
||||
print "<MaxUsingTime>".$data['MaxUsingTime']."</MaxUsingTime>";
|
||||
if( $Stop )
|
||||
print "<Stop>true</Stop>";
|
||||
else
|
||||
print "<Stop>false</Stop>";
|
||||
print "<SubscriptionName>".$data['SubscriptionName']."</SubscriptionName>";
|
||||
print "<StorageAccountName>".$data['StorageAccountName']."</StorageAccountName>";
|
||||
print "<ProgramID>".$data['UserName']."</ProgramID>";
|
||||
print "<SessionID>".$data['SessionID']."</SessionID>";
|
||||
print "<RoleSize>".$data['RoleSize']."</RoleSize>";
|
||||
print "</ServerData>";
|
||||
}
|
||||
function status_test(){
|
||||
$stop = $this->uri->segment(3);
|
||||
print "<?xml version=\"1.0\" encoding=\"utf-16\"?>\n";
|
||||
print "<ServerData xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">";
|
||||
print "<RefreshInterval>1000</RefreshInterval>";
|
||||
print "<MaxIdleTime>30</MaxIdleTime>";
|
||||
print "<Stop>".$stop."</Stop>";
|
||||
print "<SubscriptionName>12 - Month Plan</SubscriptionName>";
|
||||
print "<StorageAccountName>cadlinevirtualmachines</StorageAccountName>";
|
||||
print "</ServerData>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
class Belepo extends Controller
|
||||
{
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['tartalom'] = 'belepo/index';
|
||||
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
class Blog extends Controller
|
||||
{
|
||||
|
||||
function Blog()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['title'] = 'ARCHLine.XP Blogok';
|
||||
$data['tartalom']='blog/index';
|
||||
$data['csik']=array('home','blog');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,250 @@
|
||||
<?php
|
||||
class Buy extends Controller
|
||||
{
|
||||
function Buy()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['lang']=$this->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);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,937 @@
|
||||
<?php
|
||||
|
||||
define('SHOWROOM_SEARCH', true);
|
||||
/* Az ARCHLine-ból hívódik a link */
|
||||
class Collection2 extends Controller
|
||||
{
|
||||
var $collectionlangs = array('eng','hun','ita','ger');
|
||||
var $defaultparam = array('style'=>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,'<br />',$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,'<br />',$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 "<select name=\"kategoria\" id=\"kategoria\" onchange=\"katvaltas2(this.value)\" style=\"width: 255px;\">";
|
||||
print "<option value=\"999\">-- ".lang('collec_valasszon')." --</option>";
|
||||
foreach($kategoriak as $kategoria){
|
||||
print "<option value=\"".$kategoria->c_id."\">";
|
||||
print $kategoria->nev_hun." | ".$kategoria->nev_eng;
|
||||
print "</option>";
|
||||
}
|
||||
print "<option value=\"999999\">-- ".lang('collec_ujkategoria')." --</option>";
|
||||
print "</select>";
|
||||
}
|
||||
|
||||
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"),'<br />',$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,'<br />',$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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,86 @@
|
||||
<?php
|
||||
/* Nyilvános link */
|
||||
include('application/controllers/collection2.php');
|
||||
|
||||
class Collection2012 extends Collection2
|
||||
{
|
||||
function Collection2012()
|
||||
{
|
||||
parent::Collection2();
|
||||
}
|
||||
|
||||
function index(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: /showroom");
|
||||
exit;
|
||||
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::index($data);
|
||||
}
|
||||
|
||||
function brandgroup(){
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::brandgroup($data);
|
||||
}
|
||||
|
||||
function manufacturer(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
$ujoldal = str_replace("/collection2012/","/showroom/",$_SERVER['SCRIPT_URL']);
|
||||
Header("Location: ".$ujoldal);
|
||||
exit;
|
||||
|
||||
if( $_SERVER['REMOTE_ADDR']==CADLINEIP || UJSHOWROOM )
|
||||
$data['style'] = array('style_new','showroomweb_min');
|
||||
else
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::manufacturer($data);
|
||||
}
|
||||
|
||||
function category(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
$ujoldal = str_replace("/collection2012/","/showroom/",$_SERVER['SCRIPT_URL']);
|
||||
Header("Location: ".$ujoldal);
|
||||
exit;
|
||||
|
||||
|
||||
if( $_SERVER['REMOTE_ADDR']==CADLINEIP || UJSHOWROOM )
|
||||
$data['style'] = array('style_new','showroomweb_min');
|
||||
else
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::category($data);
|
||||
}
|
||||
|
||||
function details(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
$ujoldal = str_replace("/collection2012/","/showroom/",$_SERVER['SCRIPT_URL']);
|
||||
Header("Location: ".$ujoldal);
|
||||
exit;
|
||||
|
||||
|
||||
if( $_SERVER['REMOTE_ADDR']==CADLINEIP || UJSHOWROOM )
|
||||
$data['style'] = array('style_new','showroomweb_min');
|
||||
else
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::details($data);
|
||||
}
|
||||
|
||||
function search(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
$ujoldal = str_replace("/collection2012/","/showroom/",$_SERVER['SCRIPT_URL']);
|
||||
Header("Location: ".$ujoldal);
|
||||
exit;
|
||||
|
||||
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::search($data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,78 @@
|
||||
<?php
|
||||
class Compatibility extends Controller{
|
||||
|
||||
function Compatibility(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
|
||||
/*$tmp = $this->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";
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,297 @@
|
||||
<?php
|
||||
class Contact extends Controller
|
||||
{
|
||||
function Contact(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Kapcsolatfelvétel, CadLine Kft.' : 'ARCHLine.XP - Contact Us, CadLine Ltd.';
|
||||
$data['tartalom'] = 'contact/index';
|
||||
$data['javascript'] = array('regformcheck');
|
||||
$data['csik'] = array('home','contact');
|
||||
$data['mobilink'] = "/mobile/contact";
|
||||
$data['tema'] = $this->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) != "<p> </p>") ){
|
||||
$mail_data = array(
|
||||
'name' => $strName1.' '.$strName2,
|
||||
'company' => $strCompany,
|
||||
'address' => $ctrName." ".$strCity." ".$strStreet." ".$strZip,
|
||||
'phone' => $strTel,
|
||||
'email' => $strEMail,
|
||||
'subject' => $subject,
|
||||
'message' => $message
|
||||
);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->message($this->load->view('mail/contact', $mail_data, true));
|
||||
|
||||
if( hun() ){
|
||||
$lang = "hun";
|
||||
$this->email->from('info@cadline.hu', 'CadLine Weboldal');
|
||||
$this->email->subject('Kapcsolatfelvétel - '.$subject);
|
||||
$esemid = 282;
|
||||
$this->email->send('info@cadline.hu', 'smtp');
|
||||
//$this->email->send('eszter@cadline.hu', 'smtp');
|
||||
if( $subject=="ARCHLine ID kérés" ){
|
||||
$this->email->send('jozsa.timea@cadline.hu', 'smtp');
|
||||
$esemid = 41;
|
||||
}
|
||||
}
|
||||
else{
|
||||
$lang = "eng";
|
||||
$this->email->from('info@archlinexp.com', 'CadLine Website');
|
||||
$this->email->subject('Contact us - '.$subject);
|
||||
$this->email->send("info@archlinexp.com", 'smtp');
|
||||
//$this->email->send('eszter@cadline.hu', 'smtp');
|
||||
$esemid = 281;
|
||||
if( $subject=="Request ARCHLine ID" ){
|
||||
$this->email->send('kitti.toth@archlinexp.com', 'smtp');
|
||||
$esemid = 152;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Esemeny felvetele
|
||||
$this->load->model('mclusers');
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($strEMail,$lang);
|
||||
|
||||
// ha nem volt vagy nem egyertelmu, akkor felvenni
|
||||
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']);
|
||||
|
||||
$tomb['nCtrID'] = array_search(strtolower($ctrName), $countries);
|
||||
|
||||
$tomb['strName'] = $strName1.' '.$strName2;
|
||||
$tomb['strCompany'] = $strCompany;
|
||||
$tomb['strTel'] = $strTel;
|
||||
$tomb['strEMail'] = $strEMail;
|
||||
$tomb['strCity'] = $strCity;
|
||||
$tomb['strStreet'] = $strStreet;
|
||||
$tomb['strZip'] = $strZip;
|
||||
$tomb['nUserProf'] = $nUserProf;
|
||||
|
||||
$tomb2['email'] = $strEMail;
|
||||
|
||||
if( $lang == "hun" ){
|
||||
$nUserID = $this->mclusers->addUserHun($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailHun($tomb2);
|
||||
}else{
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
}
|
||||
else
|
||||
$this->mclusers->userUpdateIfEmpty($nUserID);
|
||||
|
||||
$infotext = "({$subject}) ";
|
||||
$infotext .= '"'.preg_replace("/<.+>/Usi", "", $message).'"';
|
||||
|
||||
if( $nUserID && hun() ){
|
||||
$this->mclusers->addEvent($nUserID, $esemid, $infotext);
|
||||
}elseif( $nUserID && !hun() ){
|
||||
$this->mclusers->addEvent($nUserID, $esemid, $infotext,'eng');
|
||||
}
|
||||
|
||||
|
||||
|
||||
$record->osztaly = "contact";
|
||||
$record->fv = "submit";
|
||||
$record->hiba = "Új levél: ".$message.",\n".$name.",\n".$strEMail;
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Kapcsolatfelvétel' : 'ARCHLine.XP - Contact Us';
|
||||
$data['tartalom'] = 'forum/kiir';
|
||||
$data['csik']=array('home','contact');
|
||||
|
||||
$data['info'] = "<div style='text-align: center; font-size: 1.3em;'>".lang('contact_elkuldve')."</div>";
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}else{
|
||||
$record->osztaly = "contact";
|
||||
$record->fv = "submit";
|
||||
$record->hiba = "Hibás email vagy üres vagy auto levél: ".$strEMail.",\n".$message.print_r($_POST,true);
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
redirect('contact');
|
||||
}
|
||||
}
|
||||
|
||||
function partners(){
|
||||
$uri3 = $this->uri->segment(3);
|
||||
if(!$uri3){
|
||||
$data['tartalom2'] = 'contact/representatives';
|
||||
$data['title'] = 'ARCHLine.XP - Contact Us, CadLine Ltd.';
|
||||
}
|
||||
elseif($uri3=="tutors"){
|
||||
$data['tartalom2'] = 'contact/tutors';
|
||||
$data['title'] = 'ARCHLine.XP Tutors - Contact Us';
|
||||
}
|
||||
else{
|
||||
$data['tartalom2'] = 'contact/contactus';
|
||||
$data['title'] = 'ARCHLine.XP - Contact Us, CadLine Ltd.';
|
||||
}
|
||||
|
||||
/* új angol oldal */
|
||||
$data['tartalom'] = 'contact/new';
|
||||
$data['csik'] = array('home','contact');
|
||||
$data['style'] = array('workshop_min');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
//add brand to showroom
|
||||
function addbrandsubmit(){
|
||||
$oldclass = $this->uri->segment(3);
|
||||
|
||||
foreach($_POST as $k=>$v)
|
||||
$$k = $v;
|
||||
|
||||
if($url){
|
||||
$record->osztaly = "contact";
|
||||
$record->fv = "addbrandsubmit";
|
||||
$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( $email && !$url ){
|
||||
$mail_data = array(
|
||||
'name' => $name,
|
||||
'job' => $job,
|
||||
'company' => $company,
|
||||
'email' => $email,
|
||||
'phone' => $phone,
|
||||
'comment' => $comment
|
||||
);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->message($this->load->view('mail/addbrandsubmit', $mail_data, true));
|
||||
|
||||
if( hun() ){
|
||||
$lang = "hun";
|
||||
$this->email->from('info@cadline.hu', 'CadLine Weboldal');
|
||||
$this->email->subject('ARCHLine.XP Bemutatóterem');
|
||||
$esemid = 20;
|
||||
$this->email->send('info@cadline.hu', 'smtp');
|
||||
//$this->email->send('eszter@cadline.hu', 'smtp');
|
||||
}
|
||||
else{
|
||||
$lang = "eng";
|
||||
$this->email->from('info@archlinexp.com', 'CadLine Website');
|
||||
$this->email->subject('ARCHLine.XP Showroom');
|
||||
$this->email->send("info@archlinexp.com", 'smtp');
|
||||
//$this->email->send('eszter@cadline.hu', 'smtp');
|
||||
$esemid = 138;
|
||||
}
|
||||
|
||||
// $this->email->send("sztikee@gmail.com", 'smtp');
|
||||
|
||||
// Esemeny felvetele
|
||||
$this->load->model('mclusers');
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,$lang);
|
||||
|
||||
// ha nem volt vagy nem egyertelmu, akkor felvenni
|
||||
if( !$nUserID ){
|
||||
$tomb['strName'] = $name;
|
||||
$tomb['strCompany'] = $company;
|
||||
$tomb['strTel'] = $tomb['strTel'] = $phone;
|
||||
$tomb['strEMail'] = $email;
|
||||
$tomb['strCity'] = $address;
|
||||
|
||||
$tomb2['email'] = $email;
|
||||
|
||||
if( $lang == "hun" ){
|
||||
$nUserID = $this->mclusers->addUserHun($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailHun($tomb2);
|
||||
}else{
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
}
|
||||
|
||||
$infotext = "(Új márka a bemutatóterembe) ";
|
||||
$infotext .= '"'.$comment.'"';
|
||||
|
||||
if( $nUserID && hun() ){
|
||||
$this->mclusers->addEvent($nUserID, $esemid, $infotext);
|
||||
}elseif( $nUserID && !hun() ){
|
||||
$this->mclusers->addEvent($nUserID, $esemid, $infotext,'eng');
|
||||
}
|
||||
|
||||
|
||||
|
||||
$record->osztaly = "contact";
|
||||
$record->fv = "addbrandsubmit";
|
||||
$record->hiba = "Új levél: ".$comment.",\n".$name.",\n".$email;
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Kapcsolatfelvétel' : 'ARCHLine.XP - Contact Us';
|
||||
$data['tartalom'] = 'forum/kiir';
|
||||
|
||||
if($oldclass=="collection2"){
|
||||
$data['info'] = "<div style='text-align: center; font-size: 1.3em;'>";
|
||||
$data['info'] .= lang('contact_elkuldve');
|
||||
$data['info'] .= "<br><br><a href='/collection2/types'>Back</a>";
|
||||
$data['info'] .= "</div>";
|
||||
|
||||
$this->load->view('site_upload',$data);
|
||||
return;
|
||||
}
|
||||
|
||||
$data['info'] = "<div style='text-align: center; font-size: 1.3em;'>".lang('contact_elkuldve')."</div>";
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}else{
|
||||
$record->osztaly = "contact";
|
||||
$record->fv = "submit";
|
||||
$record->hiba = "Hibás email vagy üres vagy auto levél: ".$email.",\n".$message.print_r($_POST,true);
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
redirect('contact');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,246 @@
|
||||
<?php
|
||||
class Courses extends Controller{
|
||||
function __construct(){
|
||||
parent::Controller();
|
||||
$this->load->model('mevents');
|
||||
//loading library for current date display
|
||||
$this->load->library('dateclass');
|
||||
}
|
||||
|
||||
function index(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archline.hu/interior/workshop/nappali");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$main_events = $this->mevents->getMainEvents($this->muser->user['lang'], true);
|
||||
|
||||
if(!$main_events){
|
||||
redirect('courses/no_main_event');
|
||||
}
|
||||
|
||||
$data['lang'] = $this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'Kurzusok - ARCHLine.XP CAD Software' : 'Courses - ARCHLine.XP CAD Software';
|
||||
$data['tartalom'] = 'courses/index';
|
||||
$data['javascript'] = array('jquery_ui');
|
||||
$data['style'] = array('jquery.ui');
|
||||
$data['csik'] = array('home', 'courses');
|
||||
$data['error'] = false;
|
||||
|
||||
foreach($main_events as $key => $main_event){
|
||||
$results = $this->mevents->getEventDatesByDay($main_event->event_main_id, true);
|
||||
$main_events[$key]->events = $results['events'];
|
||||
$main_events[$key]->times = $results['times'];
|
||||
}
|
||||
|
||||
$data['main_events'] = $main_events;
|
||||
|
||||
$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'] = $this->input->post('event_main_id');
|
||||
|
||||
if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
|
||||
$data['error'] = implode('<br />', $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() ? 'Bemutatók - 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('Fõoldal', 'Bemutatók');
|
||||
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('<br />', $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);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,396 @@
|
||||
<?php
|
||||
class Cron extends Controller
|
||||
{
|
||||
|
||||
function Cron(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
print "index";
|
||||
}
|
||||
|
||||
// minden hajnal 01:30-kor - trial letöltőknek automatikus e-mail 20 nappal a letöltés után
|
||||
function downloademail(){
|
||||
$this->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."<br><br>";
|
||||
|
||||
$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 "<br><br><br><br>angol sql: ".$sql."<br><br>";
|
||||
|
||||
$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 "<hr>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."<br><br>";
|
||||
$message .= "<a href='https://crm.cadline.hu/hu/users/show/".$row->nUserID."'>";
|
||||
$message .= "https://crm.cadline.hu/hu/users/show/".$row->nUserID;
|
||||
$message .= "</a>";
|
||||
|
||||
$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 .= "<br /><br />";
|
||||
}
|
||||
}
|
||||
|
||||
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 "<br>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.<br />
|
||||
<br />
|
||||
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 .= "<br>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 .= "<tr>";
|
||||
$htmlkulcsok .= "<td>".$obj->kulcs."</td>";
|
||||
$htmlkulcsok .= "<td>".$orszag->ctrName."</td>";
|
||||
$htmlkulcsok .= "<td>".$user."</td>";
|
||||
$htmlkulcsok .= "</tr>";
|
||||
}*/
|
||||
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. <b>If its OK, ask to release from CadLine (after that user can register again and can use for more 60 days!)</b> 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 <b>If its OK, ask to release from CadLine (after that user can register again and can use for more 60 days!)</b> 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 = "<table>\n";
|
||||
$htmlkulcsok .= "<tr>\n";
|
||||
$htmlkulcsok .= "\t<th>Hardlock No</th>\n";
|
||||
$htmlkulcsok .= "\t<th>Serial No</th>\n";
|
||||
$htmlkulcsok .= "\t<th>Country</th>\n";
|
||||
$htmlkulcsok .= "\t<th>User name</th>\n";
|
||||
$htmlkulcsok .= "\t<th>error message</th>\n";
|
||||
//$htmlkulcsok .= "\t<th>hibaüzenet</th>\n";
|
||||
$htmlkulcsok .= "\t<th>How should you support ?</th>\n";
|
||||
$htmlkulcsok .= "</tr>\n";
|
||||
foreach($kulcsok as $kulcs){
|
||||
$htmlkulcsok .= "<tr>\n";
|
||||
$htmlkulcsok .= "\t<td>{$kulcs['kulcs']}</td>\n";
|
||||
$htmlkulcsok .= "\t<td>{$kulcs['serial']}</td>\n";
|
||||
$htmlkulcsok .= "\t<td>{$kulcs['ctrName']}</td>\n";
|
||||
$htmlkulcsok .= "\t<td>{$kulcs['user']}</td>\n";
|
||||
$htmlkulcsok .= "\t<td>{$kulcs['hibaeng']}</td>\n";
|
||||
//$htmlkulcsok .= "\t<td>{$kulcs['hibahun']}</td>\n";
|
||||
$htmlkulcsok .= "\t<td>{$kulcs['support']}</td>\n";
|
||||
$htmlkulcsok .= "</tr>\n";
|
||||
}
|
||||
$htmlkulcsok .= "</table>";
|
||||
|
||||
$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:<br />
|
||||
<br />
|
||||
Dear xxxxxxx,<br /><br />
|
||||
According to our system report please find the errors from yesterday below.
|
||||
";
|
||||
//$message .= $kulcslista;
|
||||
$message .= $htmlkulcsok;
|
||||
$message .= "<br /><br />Best Regards,<br /><br />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');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,249 @@
|
||||
<?php
|
||||
class Drawingbyhand extends Controller
|
||||
{
|
||||
|
||||
function Drawingbyhand()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.com/services/sketch");
|
||||
|
||||
|
||||
$this->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 = "<br>";
|
||||
|
||||
$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)."<br> ";
|
||||
else
|
||||
$kep .= $i.". kép feltöltési hiba: ".$name."_".$_FILES[$asd]['name']."<br> ";
|
||||
}else{
|
||||
if(hun())
|
||||
$kep .= "nincs ".$i.". kép"."<br> ";
|
||||
else
|
||||
$kep .= "no ".$i.". image<br />";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$message = preg_replace("/<.+>/Usi", "", $message);
|
||||
// $message .= "<br><br><br><strong>Képek:</strong><br><br>".$kep;
|
||||
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,$nyelv);
|
||||
|
||||
if($nUserID > 0){
|
||||
if(hun())
|
||||
$this->mclusers->addEvent($nUserID, 121, '"'.$message.'"<br>'.$kep);
|
||||
else
|
||||
$this->mclusers->addEvent($nUserID, 150, '"'.$message.'"<br>'.$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.'"<br>'.$kep);
|
||||
}else{
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
$this->mclusers->addEvent($nUserID, 150, '"'.$message.'"<br>'.$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')."<br /><br />",
|
||||
'vege' => "<br />".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'] = "<div style='text-align: center; font-size: 1.3em;'>".lang('contact_elkuldve')."<br />".lang('kt_submit')."</div>";
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function galeria(){
|
||||
$this->load->model('mgallery');
|
||||
|
||||
$honap = $this->uri->segment(3);
|
||||
|
||||
$data['galeriak'] = $this->db->query("SELECT * FROM `cadline2`.`gallerys` WHERE terulet='kezzel' AND deleted = 0 AND mappa = '".$honap."' ORDER BY sorszam")->result();
|
||||
|
||||
$data['javascript'] = array(
|
||||
'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'] = 'ARCHLine.XP Interior - "Still drawing by hand?" gallery';
|
||||
$data['tartalom']='kezzeltervez/galeria';
|
||||
$data['csik']=array('home');
|
||||
$this->load->view('site_new',$data);
|
||||
}
|
||||
|
||||
function galeria2(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$honap = $this->uri->segment(3);
|
||||
|
||||
if( $honap == "9" )
|
||||
redirect("palyazat/gallery/".$honap."/".$email);
|
||||
|
||||
$egyezes = "drawingbyhand/galeria/".$honap;
|
||||
$info = "sketch by hand gallery viewed: (http://archlinexp.com/drawingbyhand/galeria/".$honap.")";
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "drawingbyhand", "galeria2", 173, $egyezes, $info, "eng");
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "drawingbyhand", "galeria2", 154, $egyezes, $info, "eng");
|
||||
|
||||
redirect("drawingbyhand/galeria/".$honap);
|
||||
|
||||
}
|
||||
|
||||
function galeria2esp(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$honap = $this->uri->segment(3);
|
||||
|
||||
$egyezes = "drawingbyhand/galeria/".$honap;
|
||||
$info = "Kézzel tervez galéria megtekintve: (http://archlinexp.com/drawingbyhand/galeria/".$honap.")";
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "drawingbyhand", "galeria2", 256, $egyezes, $info, "esp");
|
||||
else
|
||||
$this->mclusers->levelesemenyEsp($email, "drawingbyhand", "galeria2esp", 134, $egyezes, $info, "esp");
|
||||
|
||||
redirect("drawingbyhand/galeria/".$honap);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function hasonlitoId( $a, $b ){
|
||||
if ( $a->gal_id == $b->gal_id )
|
||||
return 0;
|
||||
if ( $a->gal_id < $b->gal_id )
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
class Flashreel extends Controller
|
||||
{
|
||||
function Flashreel()
|
||||
{
|
||||
parent::Controller();
|
||||
$this->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."<br />";
|
||||
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";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,245 @@
|
||||
<?php
|
||||
class Free extends Controller
|
||||
{
|
||||
function Free()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.com/interior/download");
|
||||
exit;
|
||||
|
||||
$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(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);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
class Gallery extends Controller
|
||||
{
|
||||
function Gallery()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Látványtervek' : 'ARCHLine.XP Showcase';
|
||||
$data['tartalom']='gallery/index';
|
||||
$data['javascript'] = array('interior_menu','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');
|
||||
|
||||
$this->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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,110 @@
|
||||
<?php
|
||||
class Getfile extends Controller
|
||||
{
|
||||
function Getfile()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
redirect('');
|
||||
}
|
||||
|
||||
function fajl(){
|
||||
//print base64_encode("downloads/hun/Hun_XP_2010.exe"),"<br>"; //ZG93bmxvYWRzL2h1bi9IdW5fWFBfMjAxMC5leGU=
|
||||
|
||||
//print base64_encode("downloads/hun/putty.exe")."<br>";
|
||||
|
||||
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';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,15 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<title>403 Forbidden</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body bgcolor='#ffffff'>
|
||||
|
||||
<p>Directory access is forbidden.<p>
|
||||
|
||||
<bb1><!---1118895121-eNrTLyhNyslMjs8oyc3RL09NKs4sSdVPLCgAiiWWZObn6Sfn55UU5efkpBYV62fmpaRW6IGU2traGhqZmBubGJiYmwEAiqgYdQ==--><bb2></body>
|
||||
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,231 @@
|
||||
<?php
|
||||
class Kezzeltervez extends Controller
|
||||
{
|
||||
|
||||
function Kezzeltervez()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archline.hu/services/sketch");
|
||||
|
||||
|
||||
|
||||
|
||||
$this->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')." tervek feltöltése";
|
||||
$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 = "kezzeltervez/index";
|
||||
$info = "Kézzel tervez, tervek beküldési oldala megtekintve: archline.hu/kezzeltervez/index";
|
||||
|
||||
$this->mclusers->levelesemeny($email, "kezzeltervez", "index2", 136, $egyezes, $info, "hun");
|
||||
|
||||
redirect("kezzeltervez");
|
||||
}
|
||||
|
||||
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/'.$nyelv.'/';
|
||||
$config['allowed_types'] = 'gif|jpg|png|bmp|tif';
|
||||
|
||||
$kep = "<br>";
|
||||
|
||||
$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)."<br> ";
|
||||
else
|
||||
$kep .= $i.". kép feltöltési hiba: ".$name."_".$_FILES[$asd]['name']."<br> ";
|
||||
}else{
|
||||
if(hun())
|
||||
$kep .= "nincs ".$i.". kép"."<br> ";
|
||||
else
|
||||
$kep .= "no ".$i.". image<br />";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$message = preg_replace("/<.+>/Usi", "", $message);
|
||||
// $message .= "<br><br><br><strong>Képek:</strong><br><br>".$kep;
|
||||
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,$nyelv);
|
||||
|
||||
if($nUserID > 0){
|
||||
if(hun())
|
||||
$this->mclusers->addEvent($nUserID, 121, '"'.$message.'"<br>'.$kep);
|
||||
else
|
||||
$this->mclusers->addEvent($nUserID, 150, '"'.$message.'"<br>'.$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.'"<br>'.$kep);
|
||||
}else{
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
$this->mclusers->addEvent($nUserID, 150, '"'.$message.'"<br>'.$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')."<br /><br />",
|
||||
'vege' => "<br />".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'] = "<div style='text-align: center; font-size: 1.3em;'>".lang('contact_elkuldve')."<br />".lang('kt_submit')."</div>";
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function galeria(){
|
||||
$this->load->model('mgallery');
|
||||
|
||||
$honap = $this->uri->segment(3);
|
||||
|
||||
// $data['galeriak'] = $this->mgallery->get_all('hun','kezzel');
|
||||
// usort( $data['galeriak'], "hasonlitoId" );
|
||||
|
||||
$data['galeriak'] = $this->db->query("SELECT * FROM `cadline2`.`gallerys` WHERE terulet='kezzel' AND deleted = 0 AND mappa = '".$honap."' ORDER BY sorszam")->result();
|
||||
|
||||
$data['javascript'] = array(
|
||||
'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'] = 'ARCHLine.XP - Még mindig kézzel tervez pályázat galéria';
|
||||
$data['tartalom']='kezzeltervez/galeria';
|
||||
$data['csik']=array('home');
|
||||
$this->load->view('site_new',$data);
|
||||
}
|
||||
|
||||
function galeria2(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$honap = $this->uri->segment(3);
|
||||
|
||||
$egyezes = "kezzeltervez/galeria/".$honap;
|
||||
$info = "Kézzel tervez galéria megtekintve: (http://archline.hu/kezzeltervez/galeria/".$honap.")";
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "kezzeltervez", "galeria2", 68, $egyezes, $info, "hun");
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "kezzeltervez", "galeria2", 130, $egyezes, $info, "hun");
|
||||
|
||||
// atiranyitas a palyazatra
|
||||
redirect("kezzeltervez/galeria/".$honap);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function hasonlitoId( $a, $b ){
|
||||
if ( $a->gal_id == $b->gal_id )
|
||||
return 0;
|
||||
if ( $a->gal_id < $b->gal_id )
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
class Lang extends Controller
|
||||
{
|
||||
function Lang()
|
||||
{
|
||||
parent::Controller();
|
||||
|
||||
redirect('');
|
||||
}
|
||||
|
||||
function hun()
|
||||
{
|
||||
redirect('');
|
||||
}
|
||||
function eng()
|
||||
{
|
||||
redirect('');
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
class le extends Controller
|
||||
{
|
||||
function le()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
redirect('');
|
||||
}
|
||||
function letolt2010(){
|
||||
header("Location: http://archlinexp.com/public/downloads/hun/Hun_XP_2010.exe");
|
||||
}
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,139 @@
|
||||
<?php
|
||||
class Monthpicture extends Controller
|
||||
{
|
||||
|
||||
function Monthpicture()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
$this->kep();
|
||||
}
|
||||
|
||||
function kep(){
|
||||
$data['tema'] = "Hónap képe";
|
||||
|
||||
if(hun())
|
||||
$data['page'] = $this->mpages->get_row(594);
|
||||
else
|
||||
$data['page'] = $this->mpages->get_row(623);
|
||||
|
||||
$data['title'] = 'ARCHLine.XP - Picture of the month, send pictures';
|
||||
$data['tartalom']='palyazat/kep';
|
||||
$data['csik']=array('home','palyazat');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function gallery(){
|
||||
// ha magyar
|
||||
if(hun()){
|
||||
$link = "http://www.archline.hu/palyazat/gallery/".$this->uri->segment(3);
|
||||
if( $this->uri->segment(4)!="" )
|
||||
$link .= "/".$this->uri->segment(4);
|
||||
Header("Location: ".$link);
|
||||
exit;
|
||||
}
|
||||
|
||||
// ha van e-mail cím
|
||||
$email = $this->uri->segment(4);
|
||||
if( $email && !is_numeric($email) ){
|
||||
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$gal_honap = $this->uri->segment(3);
|
||||
|
||||
// email atalakitasa
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
|
||||
$egyezes = "monthpicture/gallery/".$gal_honap;
|
||||
$info = "Gallery viewed: http://archlinexp.com/monthpicture/gallery/".$gal_honap;
|
||||
$hibainfo = "Eng, hónap képe: ".$gal_honap;
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "monthpicture", "gallery2", 185, $egyezes, $info, "eng", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "monthpicture", "gallery2", 153, $egyezes, $info, "eng", $hibainfo);
|
||||
|
||||
redirect("monthpicture/gallery/".$gal_honap);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$this->load->model('mgallery');
|
||||
|
||||
$data['tema'] = "Hónap képe";
|
||||
|
||||
$data['page'] = $this->mpages->get_row(594);
|
||||
|
||||
$honap = $this->uri->segment(3);
|
||||
if( !is_numeric($honap) ){
|
||||
$data['galeriak'] = $this->mgallery->get_all('hun','honapkepe');
|
||||
|
||||
//redirect('monthpicture/gallery/'.(date('m',time())-1+36));
|
||||
redirect('monthpicture/gallery/'.(date('m',time())-1+48));
|
||||
}else{
|
||||
$data['galeria'] = $this->mgallery->get_rowHonapSorszam($honap, 'hun');
|
||||
//if( date('m',time()) <= ($honap-36) && date('j',time()) <= 26 ) /*if( date('m',time()) <= $honap )*/
|
||||
//{
|
||||
// redirect('monthpicture/gallery/'.(date('m',time())-1+35));
|
||||
//}
|
||||
if( date('m',time()) <= ($honap-48) && date('j',time()) <= 26 ) /*if( date('m',time()) <= $honap )*/
|
||||
{
|
||||
redirect('monthpicture/gallery/'.(date('m',time())-1+47));
|
||||
}
|
||||
}
|
||||
|
||||
// amíg nincs feltölve, nem lehet megnézni
|
||||
if(!$data['galeria']){
|
||||
//redirect('palyazat/gallery/'.(date('m',time())-1+35));
|
||||
redirect('palyazat/gallery/'.(date('m',time())-1+47));
|
||||
}
|
||||
|
||||
$honapok = lang('honapok');
|
||||
|
||||
|
||||
$data['javascript'] = array(
|
||||
'fancybox/jquery-1.3.2.min',
|
||||
'fancybox/jquery.easing.1.3',
|
||||
'fancybox/jquery.fancybox-1.2.1.pack',
|
||||
'fancybox/fancy',
|
||||
'lnkbuilding-eng'
|
||||
);
|
||||
$data['style'] = array('fancybox_gal');
|
||||
|
||||
//$kivhonap = (($this->uri->segment(3)-1)%24+1);
|
||||
$kivhonap = (($honap-1)%12+1);
|
||||
$ev = 2011 + (int)(($honap-0.1)/12);
|
||||
|
||||
$data['title'] = 'ARCHLine.XP Interior - "Picture of the month", '.$honapok[$kivhonap]." ".$ev;
|
||||
$data['tartalom']='palyazat/gallery';
|
||||
$data['csik']=array('home','palyazat');
|
||||
$this->load->view('site_new',$data);
|
||||
}
|
||||
|
||||
function gallery2esp(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$gal_honap = $this->uri->segment(3);
|
||||
|
||||
// email atalakitasa
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
|
||||
$egyezes = "monthpicture/gallery/".$gal_honap;
|
||||
$info = "Galéria megtekintve: http://archlinexp.com/monthpicture/gallery/".$gal_honap;
|
||||
$hibainfo = "Spanyol, hónap képe: ".$gal_honap;
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "monthpicture", "gallery2esp", 254, $egyezes, $info, "esp", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemenyEsp($email, "monthpicture", "gallery2esp", 133, $egyezes, $info, "esp", $hibainfo);
|
||||
|
||||
redirect("monthpicture/gallery/".$gal_honap);
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,178 @@
|
||||
<?php
|
||||
class Multimedia extends Controller
|
||||
{
|
||||
function Multimedia()
|
||||
{
|
||||
parent::Controller();
|
||||
$this->load->model('mmedia');
|
||||
|
||||
define("BENTIIPGALERIAHOZ",'78.92.184.211');
|
||||
define("RENDSZERGALERIAHOZ",'inuxdfsdf');
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['csik']=array('home','multimedia');
|
||||
$data['tartalom']='media/index';
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Multimédia' : 'ARCHLine.XP Multimedia';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function images()
|
||||
{
|
||||
$this->load->model('mgallery');
|
||||
|
||||
$data['lang'] = $this->muser->user['lang'];
|
||||
$data['csik'] = array('home','multimedia','images');
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Építészet galériája' : 'ARCHLine.XP Gallery of the Architect';
|
||||
$data['tartalom']='media/images';
|
||||
$data['mobilink']= "/mobile/galleryarchitect";
|
||||
|
||||
$nyelv = hun() ? "hun" : "eng";
|
||||
$data['galeriak'] = $this->mgallery->get_all($nyelv,'architect');
|
||||
|
||||
$this->load->view('site_new',$data);
|
||||
}
|
||||
|
||||
function videos()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['csik']=array('home','multimedia','videos');
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Multimédia - Videók' : 'ARCHLine.XP Multimedia - Videos';
|
||||
$data['tartalom']='media/videos';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function play()
|
||||
{
|
||||
$data['file'] = $this->uri->segment(3);
|
||||
|
||||
$x = $this->uri->segment(4);
|
||||
$y = $this->uri->segment(5);
|
||||
|
||||
if(!$x) {$x = 800;}
|
||||
if(!$y) {$y = 600;}
|
||||
|
||||
|
||||
$data['x'] = $x;
|
||||
$data['y'] = $y;
|
||||
$this->load->view('media/play',$data);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function gallery()
|
||||
{
|
||||
$this->load->model('mgallery');
|
||||
$folder = $this->uri->segment(3);
|
||||
if($folder && $this->mgallery->checkFolder($folder))
|
||||
{
|
||||
//create thumbs if they are missing
|
||||
$this->mgallery->prepImages($folder);
|
||||
|
||||
$data['tartalom'] = 'media/showimg';
|
||||
$data['javascript'] = array(
|
||||
'temp',
|
||||
'fancybox/jquery-1.3.2.min',
|
||||
'fancybox/jquery.easing.1.3',
|
||||
'fancybox/jquery.fancybox-1.2.1.pack',
|
||||
'fancybox/fancy'
|
||||
);
|
||||
|
||||
$data['style'] = array('fancybox');
|
||||
|
||||
//set the folder's name
|
||||
$data['folder'] = $folder;
|
||||
|
||||
//load images from the folder
|
||||
$data['images'] = $this->mgallery->getImages($folder);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect('multimedia');
|
||||
}
|
||||
}
|
||||
|
||||
function show_images()
|
||||
{
|
||||
$galeria = $this->uri->segment(3);
|
||||
if(!$galeria)
|
||||
{
|
||||
redirect('multimedia/images');
|
||||
}
|
||||
|
||||
$kepek = $this->mmedia->prep_img_dir($galeria);
|
||||
if(!$kepek ||count($kepek)==0)
|
||||
{
|
||||
show_error('Nincs ilyen galéria');
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['kepek']=$kepek;
|
||||
$data['galeria']=$galeria;
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
|
||||
$data['fullpath']='/'.$this->mmedia->img_dir.$galeria.'/';
|
||||
|
||||
$data['csik']=array('home','multimedia','images');
|
||||
|
||||
$data['tartalom']='media/show_images';
|
||||
|
||||
$data['javascript'] = array('lightbox');
|
||||
|
||||
$data['title']='ARCHline.XP CAD Software - Image Gallery ' . substr($galeria, 7, 1);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function imagegallery(){
|
||||
$p = $this->uri->segment(3);
|
||||
// print "p: ".$p;
|
||||
$p = base64_decode($p);
|
||||
// print " , p: ".$p;
|
||||
|
||||
$utvonal = "";
|
||||
|
||||
if( $p )
|
||||
$utvonal = $p;
|
||||
else
|
||||
$utvonal = 'public/img/services/gallery/';
|
||||
|
||||
$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;
|
||||
|
||||
$this->load->view('other/gallery2012',$data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,157 @@
|
||||
<?php
|
||||
class News extends Controller
|
||||
{
|
||||
function News()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
//redirect('');
|
||||
|
||||
hun() ? $data['csik']=array('Főoldal','Hírek') : $data['csik']=array('home','news') ;
|
||||
hun() ? $data['title'] = 'ARCHLine.XP Hírek' : $data['title'] = 'ARCHLine.XP News';
|
||||
$data['tartalom']='news/index_3';
|
||||
/*kezdet*/
|
||||
$this->load->model('mevents');
|
||||
$hirek_lista = array();
|
||||
$hirek_news = $this->mnews->get_latest($this->muser->user['lang'],true,'fresh');
|
||||
foreach($hirek_news as $hir){
|
||||
$hir2 = '';
|
||||
|
||||
$datum = $hir->news_y . '-' . $hir->news_m . '-' . $hir->news_d;
|
||||
$hir2->datum = date('D, d M Y H:i:s +0200', strtotime($datum));
|
||||
$hir2->title = $hir->news_title;
|
||||
$hir2->short = $hir->news_short;
|
||||
if(hun())
|
||||
$hir2->url = "http://www.archline.hu/news/show/" . $hir->news_id;
|
||||
elseif(eng())
|
||||
$hir2->url = "http://www.archlinexp.com/news/show/" . $hir->news_id;
|
||||
array_push($hirek_lista, $hir2);
|
||||
|
||||
}
|
||||
$esemenyek = $this->mnews->get_latest($this->muser->user['lang'],true,'fresh');
|
||||
foreach($esemenyek as $hir){
|
||||
$hir2 = '';
|
||||
$hir2->datum = date('D, d M Y H:i:s +0200', $hir->datum);
|
||||
$hir2->title = $hir->title;
|
||||
$hir2->short = substr($hir->short,0,128) . "...";
|
||||
/*$hir2->url = "http://www.archlinexp.com/page/show/" . $hir->page;*/
|
||||
if(hun())
|
||||
$hir2->url = "http://www.archline.hu/page/show/" . $hir->news_id;
|
||||
elseif(eng())
|
||||
$hir2->url = "http://www.archlinexp.com/page/show/" . $hir->news_id;
|
||||
array_push($hirek_lista, $hir2);
|
||||
}
|
||||
|
||||
|
||||
usort( $hirek_lista, "hasonlito" );
|
||||
$data['hirek_lista'] = $hirek_lista;
|
||||
/*vége*/
|
||||
/*$this->load->view('site',$data);*/
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function show()
|
||||
{
|
||||
$news_id = $this->uri->segment(3);
|
||||
if(!$news_id || !is_numeric($news_id))
|
||||
{
|
||||
$news_azon = mysql_real_escape_string($news_id);
|
||||
$row = $this->db->where('url',$news_azon)->get('news');
|
||||
if( $row->num_rows()==1 ){
|
||||
$news = $row->row();
|
||||
}else{
|
||||
redirect('');
|
||||
}
|
||||
}
|
||||
else{
|
||||
$news = $this->mnews->get_row($news_id);
|
||||
}
|
||||
|
||||
if(!$news)
|
||||
{
|
||||
redirect('');
|
||||
}
|
||||
|
||||
if( $news_id == 92 ){
|
||||
redirect('workshop/birmingham');
|
||||
}
|
||||
|
||||
if($news->news_short!="")
|
||||
$metadesc = $news->news_short;
|
||||
else
|
||||
$metadesc = trim(str_replace("\n"," ",substr(($str=wordwrap(strip_tags($news->news_text),140,'$$')),0,strpos($str,'$$'))." ..."));//," \t\n\r\0\x0B\x00..\x1F");
|
||||
|
||||
$data['news']=$news;
|
||||
$data['mobilink'] = "/mobile/news/".$news->news_id;
|
||||
$data['meta']['keyw'] = !hun() ? 'ARCHLine.XP, Interior, Design, CAD, Architect, Architectural' : 'ARCHLine.XP, Interior, Tervezés, CAD, Építészet, Belsőépítész';
|
||||
$data['meta']['keyw'] .= ', '.$news->news_title;
|
||||
$data['meta']['desc'] = $metadesc;
|
||||
$data['javascript'] = hun() ? array("lnkbuilding-hun") : array("lnkbuilding-eng");
|
||||
$data['csik'] = array('home','news',$news->news_title);
|
||||
$data['title'] = 'ARCHLine.XP - '.$news->news_title;
|
||||
$data['tartalom'] = 'news/show';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function show2(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$hir_id = $this->uri->segment(3);
|
||||
|
||||
if(is_numeric($hir_id))
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`news` WHERE news_id = ".$hir_id)->row();
|
||||
else
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`news` WHERE url = '".$hir_id."'")->row();
|
||||
|
||||
// email atalakitasa
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
|
||||
$egyezes = "news/show/".$hir_id;
|
||||
if(hun())
|
||||
$info = "Hír megtekintve: ".$level->news_title." (http://archline.hu/news/show/".$hir_id.")";
|
||||
else
|
||||
$info = "Has been seen: ".$level->news_title." (http://archlinexp.com/news/show/".$hir_id.")";
|
||||
$hibainfo = $level->url;
|
||||
|
||||
if(hun()){
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "news", "show2", 64, $egyezes, $info, "hun", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "news", "show2", 126, $egyezes, $info, "hun", $hibainfo);
|
||||
}
|
||||
else{
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "news", "show2", 182, $egyezes, $info, "eng", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "news", "show2", 178, $egyezes, $info, "eng", $hibainfo);
|
||||
}
|
||||
|
||||
|
||||
$user = $this->phpsession->get('user');
|
||||
$user['voltmobiloldal'] = true;
|
||||
$this->phpsession->save('user',$user);
|
||||
$mobil = $user['mobil'];
|
||||
|
||||
// átírányítás a hírre
|
||||
if($mobil===true)
|
||||
redirect("mobile/news/".$level->news_id);
|
||||
else
|
||||
redirect("news/show/".$hir_id);
|
||||
return;
|
||||
}
|
||||
|
||||
function hasonlito( $a, $b ){
|
||||
if ( strtotime($a->datum) == strtotime($b->datum) )
|
||||
return 0;
|
||||
if ( strtotime($a->datum) > strtotime($b->datum) )
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,311 @@
|
||||
<?php
|
||||
class Newsletter extends Controller
|
||||
{
|
||||
function Newsletter()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
|
||||
function show(){
|
||||
/*$this->load->library('user_agent');
|
||||
// gugli látta-e
|
||||
if($this->agent->is_robot()){
|
||||
$agent = "robot, ".$this->agent->robot();
|
||||
|
||||
$info = "nyelv: ".$this->muser->user['lang'];
|
||||
$info .= "\ndomain: ".$_SERVER['SERVER_NAME'];
|
||||
$info .= "\nagent valtozo: ".$agent;
|
||||
$info .= "\ntenyleges: ".$this->agent->agent_string();
|
||||
$info .= "\nhírlevél id: ".$this->uri->segment(3);
|
||||
$info .= "\nelőző oldal: ".$_SERVER['HTTP_REFERER'];
|
||||
|
||||
$record->osztaly = "newsletter";
|
||||
$record->fv = "show";
|
||||
$record->hiba = $info;
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
}*/
|
||||
|
||||
|
||||
$hl_id = $this->uri->segment(3);
|
||||
|
||||
if( !$hl_id ){
|
||||
$hl_id = hun() ? $this->muser->lastnewsletter("hun") : $this->muser->lastnewsletter("eng");
|
||||
}
|
||||
|
||||
if($hl_id == "milora-anyagok"){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: /newsletter/show/anyagmintak");
|
||||
}
|
||||
|
||||
if(hun()) $lang = "hun";
|
||||
else $lang = "eng";
|
||||
|
||||
if(is_numeric($hl_id))
|
||||
$data['level'] = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE nl_id = ".$hl_id)->row();
|
||||
else
|
||||
$data['level'] = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE url = '".$hl_id."'")->row();
|
||||
|
||||
$data['levelek'] = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE lang = '".$lang."' AND deleted = 0 ORDER BY nl_id DESC")->result();
|
||||
|
||||
if( !$data['level'] ){
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
}
|
||||
|
||||
|
||||
$data['javascript'] = array();
|
||||
|
||||
if( is_dir($data['level']->video) || is_dir($data['level']->link) ){
|
||||
$data['javascript'] = array(
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.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_min'
|
||||
);
|
||||
}elseif( $hl_id=='modelling-furniture-design' ){
|
||||
$data['javascript'] = array('fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('fancybox2');
|
||||
}
|
||||
|
||||
$metadesc = trim(str_replace(array("\n",'"'),array(" ",''),substr(($str=wordwrap(strip_tags($data['level']->text),140,'$$')),0,strpos($str,'$$'))." ..."));
|
||||
|
||||
hun() ? $data['title'] = 'ARCHLine.XP Hírlevelek' : $data['title'] = 'ARCHLine.XP Newsletter';
|
||||
$data['title'] .= " - ".$data['level']->title;
|
||||
$data['meta']['desc'] = $metadesc;
|
||||
$data['mobilink'] = "/mobile/newsletter/".$hl_id;
|
||||
$data['tartalom'] = '/newsletter/index';
|
||||
$data['page'] = $lap;
|
||||
$data['javascript'][] = hun() ? "lnkbuilding-hun" : "lnkbuilding-eng";
|
||||
//$data['javascript'][] = "lnkbuilding-eng";
|
||||
|
||||
$this->load->view('site_new',$data);
|
||||
|
||||
}
|
||||
|
||||
function show2(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$hl_id = $this->uri->segment(3);
|
||||
|
||||
if(is_numeric($hl_id))
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE nl_id = ".$hl_id)->row();
|
||||
else
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE url = '".$hl_id."'")->row();
|
||||
|
||||
// email atalakitasa
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
|
||||
$egyezes = "newsletter/show/".$hl_id;
|
||||
if(hun())
|
||||
$info = "Hírlevél megtekintve: ".$level->title." (http://archline.hu/newsletter/show/".$hl_id.")";
|
||||
else
|
||||
$info = "Has been seen: ".$level->title." (http://archlinexp.com/newsletter/show/".$hl_id.")";
|
||||
$hibainfo = $level->url;
|
||||
|
||||
if(hun()){
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 64, $egyezes, $info, "hun", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 126, $egyezes, $info, "hun", $hibainfo);
|
||||
}
|
||||
else{
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 183, $egyezes, $info, "eng", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 147, $egyezes, $info, "eng", $hibainfo);
|
||||
}
|
||||
|
||||
|
||||
$user = $this->phpsession->get('user');
|
||||
$user['voltmobiloldal'] = true;
|
||||
$this->phpsession->save('user',$user);
|
||||
$mobil = $user['mobil'];
|
||||
|
||||
// átírányítás a hírlevélre
|
||||
if($mobil===true)
|
||||
redirect("mobile/newsletter/".$level->nl_id);
|
||||
else
|
||||
redirect("newsletter/show/".$hl_id);
|
||||
return;
|
||||
}
|
||||
|
||||
function show2esp(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$hl_id = $this->uri->segment(3);
|
||||
|
||||
if(is_numeric($hl_id))
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE nl_id = ".$hl_id)->row();
|
||||
else
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE url = '".$hl_id."'")->row();
|
||||
|
||||
// email atalakitasa
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
|
||||
$egyezes = "newsletter/show/".$hl_id;
|
||||
$info = "Hírlevél megtekintve: ".$level->title." (http://archlinexp.com/newsletter/show/".$hl_id.")";
|
||||
$hibainfo = $level->url;
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2esp", 253, $egyezes, $info, "esp", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemenyEsp($email, "newsletter", "show2esp", 132, $egyezes, $info, "esp", $hibainfo);
|
||||
|
||||
redirect("newsletter/show/".$hl_id);
|
||||
}
|
||||
|
||||
function show2cz(){
|
||||
$hl_id = $this->uri->segment(3);
|
||||
|
||||
if(is_numeric($hl_id))
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE nl_id = ".$hl_id)->row();
|
||||
else
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`newsletter` WHERE url = '".$hl_id."'")->row();
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$info = "Newsletter: ".$level->title." (http://archlinexp.com/newsletter/show/".$hl_id.")";
|
||||
|
||||
$volte = $this->db->query(" SELECT * FROM cz_newsletter WHERE email = '{$email}' AND info = '{$info}'")->result();
|
||||
|
||||
if( count($volte) == 0 ){
|
||||
// mentes
|
||||
$czuser["email"] = $email;
|
||||
$czuser["info"] = $info;
|
||||
$czuser["date"] = date('Y-m-d, H:i:s',time());
|
||||
$this->db->insert('cz_newsletter',$czuser);
|
||||
}else{
|
||||
$record->osztaly = "newsletter";
|
||||
$record->fv = "show2cz";
|
||||
$record->hiba = "Dupla kattintás: ".$email."\n".$hl_id;
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
}
|
||||
|
||||
|
||||
redirect("newsletter/show/".$hl_id);
|
||||
}
|
||||
|
||||
function subscribe()
|
||||
{
|
||||
$data['email'] = $this->input->post('email');
|
||||
$data['nev'] = $this->input->post('nev');
|
||||
$data['tel'] = $this->input->post('tel');
|
||||
$data['mailcontent'] = 'newsletter/mail_sub';
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject('Hirlevel jelentkezes');
|
||||
$this->email->message($this->load->view('mailb',$data,true));
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
|
||||
$this->load->view('site',array('tartalom'=>'newsletter/ok_sub','csik'=>array('Hírlevél')));
|
||||
}
|
||||
|
||||
function unsubscribe()
|
||||
{
|
||||
$data['email'] = $this->input->post('email');
|
||||
|
||||
if(!$data['email'])
|
||||
redirect('page/show/27');
|
||||
|
||||
$data['nev'] = $this->input->post('nev');
|
||||
$data['tel'] = $this->input->post('tel');
|
||||
$data['mailcontent'] = 'newsletter/mail_unsub';
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
|
||||
|
||||
$this->email->subject('Hirlevel leiratkozas');
|
||||
|
||||
$this->email->message($this->load->view('mail',$data,true));
|
||||
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
|
||||
$this->load->view('site',array('tartalom'=>'newsletter/ok_unsub','csik'=>array('Hírlevél')));
|
||||
}
|
||||
|
||||
function signup(){
|
||||
$name = $this->input->post('name');
|
||||
$email = $this->input->post('email');
|
||||
$url = $this->input->post('url');
|
||||
|
||||
if( !$email || $url ){
|
||||
print "Robot? ";
|
||||
|
||||
$record->osztaly = "newsletter";
|
||||
$record->fv = "signup";
|
||||
$record->hiba = "Robot? Új email:";
|
||||
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);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$lang = hun() ? "hun" : "eng";
|
||||
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,$lang);
|
||||
if( !$nUserID ){
|
||||
$tomb['strName'] = $name;
|
||||
$tomb['strEMail'] = $email;
|
||||
|
||||
$tomb2['email'] = $email;
|
||||
|
||||
if( $lang == "hun" ){
|
||||
$nUserID = $this->mclusers->addUserHun($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailHun($tomb2);
|
||||
}else{
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( $nUserID && hun() ){
|
||||
$this->mclusers->addEvent($nUserID, 38, '');
|
||||
}elseif( $nUserID && !hun() ){
|
||||
$this->mclusers->addEvent($nUserID, 150, '','eng');
|
||||
}
|
||||
|
||||
|
||||
|
||||
$record->osztaly = "newsletter";
|
||||
$record->fv = "signup";
|
||||
$record->hiba = "Új feliratkozo: ".print_r($_POST,true)." ".$lang;
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Sikeres feliratkozás' : 'ARCHLine.XP - Sign Up';
|
||||
$data['tartalom'] = 'forum/kiir';
|
||||
$data['csik']=array('home');
|
||||
|
||||
$data['info'] = "<div style='text-align: center; font-size: 1.3em;'>".lang('nl_submitok')."</div>";
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,170 @@
|
||||
<?php
|
||||
class Page extends Controller
|
||||
{
|
||||
function Page()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
redirect('');
|
||||
}
|
||||
|
||||
function kapcsolat()
|
||||
{
|
||||
redirect('page/show/27');
|
||||
}
|
||||
|
||||
function show()
|
||||
{
|
||||
$betoltlap = "site";
|
||||
|
||||
$notitle = $this->uri->segment(4);
|
||||
if($notitle){
|
||||
$data['notitle']=true;
|
||||
}else{
|
||||
$data['notitle']=false;
|
||||
}
|
||||
|
||||
$page_id = $this->uri->rsegment(3);
|
||||
// hibas korlevel link javitasara
|
||||
if( $page_id != "635" && substr($page_id,0,3) == "635" ){
|
||||
$this->load->model('mclusers');
|
||||
$email = str_replace("_",".",substr($page_id,3));
|
||||
$page_id = 635;
|
||||
|
||||
|
||||
$egyezes = "/page/show/635";
|
||||
$info = "Akció oldal megtekintve: archline.hu/page/show/635";
|
||||
$hibainfo = "Akció";
|
||||
|
||||
$this->mclusers->levelesemeny($email, "events", "click", 138, $egyezes, $info, "hun", $hibainfo);
|
||||
|
||||
redirect("page/show/635");
|
||||
|
||||
$data['tartalom']='page/show';
|
||||
$data['csik']=array('home', $page->page_title);
|
||||
|
||||
$data['page']=$page;
|
||||
|
||||
$data['meta']['keyw'] .= ', '.$page->page_title;
|
||||
$data['title']='ARCHLine.XP ' . $page->page_title;
|
||||
|
||||
// $this->load->view($betoltlap,$data);
|
||||
}
|
||||
if(!$page_id || !is_numeric($page_id))
|
||||
{
|
||||
$page = $this->db->query("SELECT * FROM `cadline2`.`pages` WHERE page_url = '".$page_id."'")->result();
|
||||
if( count($page) != 1 )
|
||||
redirect('page');
|
||||
|
||||
$page = $page[0];
|
||||
$data['tartalom']='page/show';
|
||||
$data['csik']=array('home', $page->page_title);
|
||||
|
||||
switch($this->uri->segment(3)){
|
||||
case "partnerek":
|
||||
$data['style'] = array('style_2011');
|
||||
$data['notitle'] = true;
|
||||
$betoltlap = "site_new";
|
||||
break;
|
||||
}
|
||||
|
||||
$data['page']=$page;
|
||||
|
||||
$data['meta']['keyw'] = !hun() ? 'ARCHLine.XP, ARCHLine.XP 2011, Interior, Design, CAD, Architect, Architectural, Program, Software' : 'ARCHLine.XP, ARCHLine.XP 2011, Interior, Terv, Tervezés, CAD, Építész, Építészet, Belsőépítész, lakberendezés, program, szoftver';
|
||||
$data['meta']['keyw'] .= ', '.$page->page_title;
|
||||
$data['title']='ARCHLine.XP ' . $page->page_title;
|
||||
|
||||
$this->load->view($betoltlap,$data);
|
||||
}
|
||||
else
|
||||
{
|
||||
$page=$this->mpages->get_row($page_id);
|
||||
if(!$page)
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['tartalom']='page/show';
|
||||
$data['csik']=array('home', $page->page_title);
|
||||
|
||||
switch($this->uri->segment(3))
|
||||
{
|
||||
case 278:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
|
||||
case 279:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
|
||||
case 437:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
|
||||
case 436:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
case 92:
|
||||
case 556:
|
||||
case 818:
|
||||
$data['javascript'] = array('fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('fancybox2');
|
||||
break;
|
||||
case 590:
|
||||
redirect('webrender');
|
||||
break;
|
||||
case 625:
|
||||
$data['style'] = array('style_2011');
|
||||
$data['notitle'] = true;
|
||||
$betoltlap = "site_new";
|
||||
break;
|
||||
case 703:
|
||||
include('application/helpers/video.php');
|
||||
$videok1 = $this->db->query("SELECT * FROM videos WHERE csoport='OktatoiVizsgaFelkeszito_01' AND sorszam > 0 ORDER BY sorszam")->result();
|
||||
$csoport1 = $this->db->query("SELECT * FROM videogroups WHERE azon='OktatoiVizsgaFelkeszito_01'")->row();
|
||||
$videohtml1 = video_strcsere('OktatoiVizsgaFelkeszito_01',$csoport1,$videok1);
|
||||
|
||||
$videok2 = $this->db->query("SELECT * FROM videos WHERE csoport='OktatoiVizsgaFelkeszito_02' AND sorszam > 0 ORDER BY sorszam")->result();
|
||||
$csoport2 = $this->db->query("SELECT * FROM videogroups WHERE azon='OktatoiVizsgaFelkeszito_02'")->row();
|
||||
$videohtml2 = video_strcsere('OktatoiVizsgaFelkeszito_02',$csoport2,$videok2);
|
||||
|
||||
$videok3 = $this->db->query("SELECT * FROM videos WHERE csoport='OktatoiVizsgaFelkeszito_03' AND sorszam > 0 ORDER BY sorszam")->result();
|
||||
$csoport3 = $this->db->query("SELECT * FROM videogroups WHERE azon='OktatoiVizsgaFelkeszito_03'")->row();
|
||||
$videohtml3 = video_strcsere('OktatoiVizsgaFelkeszito_02',$csoport3,$videok3);
|
||||
|
||||
$page->page_body = str_replace('#OktatoiVizsgaFelkeszito_01#',$videohtml1,$page->page_body);
|
||||
$page->page_body = str_replace('#OktatoiVizsgaFelkeszito_02#',$videohtml2,$page->page_body);
|
||||
$page->page_body = str_replace('#OktatoiVizsgaFelkeszito_03#',$videohtml3,$page->page_body);
|
||||
|
||||
$data['style'] = array( 'jquery.jscrollpane' );
|
||||
$data['javascript'] = array(
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.min',
|
||||
'video'
|
||||
);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if($page_id==433){
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: /interior/lakberendezo_iskolak");
|
||||
exit;
|
||||
}
|
||||
|
||||
$data['page']=$page;
|
||||
|
||||
$data['meta']['keyw'] = !hun() ? 'ARCHLine.XP, ARCHLine.XP 2009, Interior, Design, CAD, Architect, Architectural' : 'ARCHLine.XP, ARCHLine.XP 2011, Interior, Terv, Tervezés, CAD, Építész, Építészet, Belsőépítész';
|
||||
$data['meta']['keyw'] .= ', '.$page->page_title;
|
||||
$data['title']='ARCHLine.XP ' . $page->page_title;
|
||||
|
||||
$this->load->view($betoltlap,$data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,85 @@
|
||||
<?php
|
||||
class Pagesimple extends Controller
|
||||
{
|
||||
function Pagesimple()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
redirect('');
|
||||
}
|
||||
|
||||
function kapcsolat()
|
||||
{
|
||||
redirect('page/show/27');
|
||||
}
|
||||
|
||||
function show()
|
||||
{
|
||||
$notitle = $this->uri->segment(4);
|
||||
if($notitle)
|
||||
{
|
||||
$data['notitle']=true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['notitle']=false;
|
||||
}
|
||||
|
||||
$page_id = $this->uri->rsegment(3);
|
||||
if(!$page_id || !is_numeric($page_id))
|
||||
{
|
||||
redirect('page');
|
||||
}
|
||||
else
|
||||
{
|
||||
$page=$this->mpages->get_row($page_id);
|
||||
if(!$page)
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['tartalom']='page/show';
|
||||
$data['csik']=array('home', $page->page_title);
|
||||
|
||||
switch($this->uri->segment(3))
|
||||
{
|
||||
case 278:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
|
||||
case 279:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
|
||||
case 437:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
|
||||
case 436:
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway');
|
||||
break;
|
||||
case 556:
|
||||
$data['javascript'] = array('fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('fancybox2');
|
||||
break;
|
||||
case 590:
|
||||
redirect('webrender');
|
||||
break;
|
||||
}
|
||||
|
||||
$data['page']=$page;
|
||||
|
||||
$data['meta']['keyw'] = !hun() ? 'ARCHLine.XP, ARCHLine.XP 2009, Interior, Design, CAD, Architect, Architectural' : 'ARCHLine.XP, ARCHLine.XP 2009, Interior, Terv, Tervezés, CAD, Építész, Építészet, Belsőépítész';
|
||||
$data['meta']['keyw'] .= ', '.$page->page_title;
|
||||
$data['title']='ARCHline.XP ' . $page->page_title;
|
||||
|
||||
$this->load->view('site_simple',$data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,575 @@
|
||||
<?php
|
||||
class Partners extends Controller
|
||||
{
|
||||
var $access = array(
|
||||
'36' => 'archxp2009',
|
||||
'39' => 'ita456789x',
|
||||
'43' => 'ger123456y',
|
||||
'491' => 'ger2020x',
|
||||
'492' => 'ger2020y',
|
||||
'493' => 'ger2020z',
|
||||
'494' => 'ger2020w',
|
||||
'49' => 'gercad123x',
|
||||
'41' => 'ger123456y',
|
||||
'30' => 'grcad23456g',
|
||||
'42' => 'cz9876543',
|
||||
'34' => 'espcad5679e',
|
||||
'38' => 'crcad2009',
|
||||
'52' => 'mexcad2009',
|
||||
'82' => 'korcad123',
|
||||
'48' => 'polcad456789x',
|
||||
'81' => 'jap2009',
|
||||
'40' => 'rocad2009',
|
||||
'94' => 'ita456789x94',
|
||||
'84' => 'viecad2019',
|
||||
'61' => 'aucad123456x',
|
||||
'33' => '3RUqyUkz7QrVuAXGB3RdpEZvjL44py',
|
||||
'37' => 'test2019',
|
||||
'371' => 'test2019',
|
||||
'88' => 'tw56789',
|
||||
'71' => '3dlotus',
|
||||
'60' => 'acad2021',
|
||||
'86' => 'disti345',
|
||||
'51' => 'iber567',
|
||||
'11' => 'us2020',
|
||||
'55' => 'tCAD_2021',
|
||||
'490' => 'test2020',
|
||||
'48x' => 'polcad2021x',
|
||||
'65' => '5HyRF!x8',
|
||||
'90' => 'spex2022',
|
||||
'44' => 'seeit_2022',
|
||||
'431' => 'Ger567!zx',
|
||||
'495' => 'Breeze754_lkj',
|
||||
'Anonym' => 'Test_2022'
|
||||
);
|
||||
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
header('location: https://partners.staging.cadline.hu/');
|
||||
|
||||
if (!$this->_check_access() && $this->uri->segment(2) != 'login')
|
||||
redirect('partners/login');
|
||||
|
||||
if ($this->_check_access() && $this->uri->segment(2) == 'login')
|
||||
redirect('partners');
|
||||
|
||||
$username = $this->phpsession->get('access_id');
|
||||
$partner = $this->db->query("SELECT ctrID FROM cl_hlusers.partner_authenticate WHERE username = '{$username}'")->row();
|
||||
|
||||
$this->access_id = $partner->ctrID;
|
||||
|
||||
if ($this->phpsession->get('access_id') == '431') {
|
||||
redirect('/resourcemanager/index');
|
||||
}
|
||||
|
||||
$this->load->library('PasswordHash');
|
||||
$this->load->model('mpartners');
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
$password = $this->input->post('pass');
|
||||
$username = $this->input->post('user');
|
||||
|
||||
$user = $this->db->query("SELECT username, password FROM cl_hlusers.partner_authenticate WHERE username = '{$username}'")->row();
|
||||
$phpass = new PasswordHash(10, true);
|
||||
$ok = $phpass->CheckPassword($password, $user->password);
|
||||
|
||||
if ($ok) {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', $username);
|
||||
|
||||
redirect('partners');
|
||||
}
|
||||
|
||||
$data['noindex'] = true;
|
||||
$data['csik'] = array('home', 'Bugtracker Login');
|
||||
$data['tartalom'] = 'partners/login';
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
function logout()
|
||||
{
|
||||
$this->phpsession->clear('bugtracker_access');
|
||||
$this->phpsession->clear('access_id');
|
||||
|
||||
redirect('/partners/login');
|
||||
}
|
||||
|
||||
|
||||
function index()
|
||||
{
|
||||
|
||||
|
||||
|
||||
$data['csik'] = array('home', 'Partners');
|
||||
$data['tartalom'] = 'partners/index';
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
function bugtracker()
|
||||
{
|
||||
$this->bugdb = $this->load->database('bugtracker', true);
|
||||
|
||||
$project = $this->input->post('project');
|
||||
$id = $this->input->post('id');
|
||||
|
||||
$projects = $this->bugdb->select('id, name')->order_by('name', 'asc')->get('mantis_project_table')->result();
|
||||
$data['dropdown'] = $this->_project_dropdown_array($projects);
|
||||
|
||||
|
||||
if (!$id) {
|
||||
if (!$project || $project == 0) {
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table', 'mantis_bug_table.id=mantis_bug_text_table.id')->orderby('mantis_bug_table.id', 'desc')->limit(1000)->get();
|
||||
} else {
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table', 'mantis_bug_table.id=mantis_bug_text_table.id')->where('project_id', $project)->orderby('mantis_bug_table.id', 'desc')->limit(100)->get();
|
||||
}
|
||||
|
||||
|
||||
if ($sorok->num_rows() != 0) {
|
||||
$data['sorok'] = $sorok->result();
|
||||
} else {
|
||||
$data['sorok'] = false;
|
||||
}
|
||||
} else {
|
||||
if (is_numeric($id)) {
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table', 'mantis_bug_table.id=mantis_bug_text_table.id')->where('mantis_bug_table.id', $id)->get();
|
||||
|
||||
if ($sorok->num_rows() != 1) {
|
||||
show_error('Bug not found. Bug ID was: ' . $id);
|
||||
} else {
|
||||
$data['sorok'] = $sorok->result();
|
||||
}
|
||||
} else {
|
||||
|
||||
$id = mysql_real_escape_string($id);
|
||||
|
||||
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table', 'mantis_bug_table.id=mantis_bug_text_table.id')->where("mantis_bug_table.summary LIKE '%$id%'")->order_by('mantis_bug_table.id', 'desc')->get();
|
||||
|
||||
if ($sorok->num_rows() == 0) {
|
||||
$data['sorok'] = false;
|
||||
} else {
|
||||
$data['sorok'] = $sorok->result();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$data['id'] = $id;
|
||||
$data['project'] = $project;
|
||||
$data['csik'] = array('home', 'partners', 'Bugtracker');
|
||||
$data['tartalom'] = 'partners/filter';
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
|
||||
function keys()
|
||||
{
|
||||
if (UJUGYFELKEZELO === true)
|
||||
$this->keydb = $this->load->database('ujugyfelkezelo', true);
|
||||
else
|
||||
$this->keydb = $this->load->database('clusers', true);
|
||||
$search = $this->input->post('search');
|
||||
|
||||
$empty = $this->input->post('empty');
|
||||
$disabled = $this->input->post('disabled');
|
||||
|
||||
$from = $this->input->post('from');
|
||||
$to = $this->input->post('to');
|
||||
|
||||
if ((!isset($from) || $from == '') && !$this->phpsession->get('from')) {
|
||||
$from = 0;
|
||||
$this->phpsession->save('from', 0);
|
||||
} elseif (isset($from) && $from != '') {
|
||||
$this->phpsession->save('from', $from);
|
||||
} elseif (!$from && $this->phpsession->get('from')) {
|
||||
$from = $this->phpsession->get('from');
|
||||
}
|
||||
|
||||
if ((!isset($to) || $to == '') && !$this->phpsession->get('to')) {
|
||||
$to = 999999;
|
||||
$this->phpsession->save('to', 999999);
|
||||
} elseif (isset($to) && $to != '') {
|
||||
$this->phpsession->save('to', $to);
|
||||
} elseif (!$to && $this->phpsession->get('to')) {
|
||||
$to = $this->phpsession->get('to');
|
||||
}
|
||||
|
||||
$limit = $this->input->post('limit');
|
||||
$page = $this->uri->segment(3);
|
||||
$pages = -1;
|
||||
|
||||
if (!$limit && !$this->phpsession->get('limit')) {
|
||||
$this->phpsession->save('limit', 10);
|
||||
$limit = 10;
|
||||
} elseif ($limit == 0 && !$this->phpsession->get('limit')) {
|
||||
$this->phpsession->save('limit', 10);
|
||||
$limit = 10;
|
||||
} elseif (!$limit && $this->phpsession->get('limit')) {
|
||||
$limit = $this->phpsession->get('limit');
|
||||
} else {
|
||||
$this->phpsession->save('limit', $limit);
|
||||
}
|
||||
|
||||
if (!$page)
|
||||
$page = 1;
|
||||
|
||||
$min = $page == 1 ? 0 : ($page - 1) * $limit;
|
||||
$data['max'] = $page == 1 ? $limit : $page * $limit;
|
||||
$data['min'] = $min + 1;
|
||||
|
||||
$hidden = array(-1);
|
||||
|
||||
// megszunt 2018-01-25
|
||||
/*
|
||||
$tmp=$this->keydb->from('hardlock')->where("hlDealer IN ('MAIER','STOCKINGER')")->limit(99999)->get();
|
||||
if($tmp->num_rows()>0) { foreach ($tmp->result() as $k=>$row) { $hidden[]=$row->hlNum; } }
|
||||
|
||||
$tmp=$this->keydb->from('h_programs')->where("prDealer IN ('MAIER','STOCKINGER')")->limit(99999)->get();
|
||||
if($tmp->num_rows()>0) { foreach ($tmp->result() as $k=>$row) { $hidden[]=$row->prHlNum; } }
|
||||
|
||||
$hidden=array_unique($hidden);
|
||||
*/
|
||||
|
||||
$x_hlNums = array('490210', '490211', '490212', '490213', '490214', '490221', '490233');
|
||||
$x_hlNums = implode(", ", $x_hlNums);
|
||||
|
||||
if (!$search) {
|
||||
if ($empty) {
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlNum in ({$x_hlNums})")->where('hlStat', 0)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
else
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 0)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
} else
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 0)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result_limit = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlNum in ({$x_hlNums})")->where('hlStat', 0)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
else
|
||||
$result_limit = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 0)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
} else
|
||||
$result_limit = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 0)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
} elseif ($disabled) {
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlNum in ({$x_hlNums})")->where('hlStat', 2)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
else
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 2)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
} else
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 2)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result_limit = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlNum in ({$x_hlNums})")->where('hlStat', 2)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
else
|
||||
$result_limit = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 2)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
} else
|
||||
$result_limit = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlCtrID ='" . $this->access_id . "'")->where('hlStat', 2)->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
} else {
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlNum in ({$x_hlNums})")->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
else
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlCtrID ='" . $this->access_id . "'")->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
} else
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlNum', 'desc')->where("hlCtrID ='" . $this->access_id . "'")->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit(99999)->get();
|
||||
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result_limit = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlNum in ({$x_hlNums})")->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
else
|
||||
$result_limit = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlCtrID ='" . $this->access_id . "'")->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
} else
|
||||
$result_limit = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlNum', 'asc')->where("hlCtrID ='" . $this->access_id . "'")->where("hlNum >= '" . $from . "' AND hlNum <= '" . $to . "'")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->limit($limit, $min)->get();
|
||||
}
|
||||
|
||||
|
||||
if ($result->num_rows() == 0) {
|
||||
$data['sorok'] = false;
|
||||
} else {
|
||||
if ($result->num_rows() % $limit > 0)
|
||||
$pages = ($result->num_rows() + ($limit - ($result->num_rows() % $limit))) / $limit;
|
||||
else
|
||||
$pages = $result->num_rows() / $limit;
|
||||
|
||||
if ($result->num_rows() <= $limit) $pages = -1;
|
||||
|
||||
$data['sorok'] = $result_limit->result();
|
||||
$data['found'] = $result->num_rows();
|
||||
}
|
||||
} else {
|
||||
if (($search)) {
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlTime', 'desc')->where("hlNum like '%$search%'")->where("hlNum in ({$x_hlNums})")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->get();
|
||||
else
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlTime', 'desc')->where("hlNum like '%$search%'")->where('hlCtrID', $this->access_id)->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->get();
|
||||
} else
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlTime', 'desc')->where("hlNum like '%$search%'")->where('hlCtrID', $this->access_id)->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->get();
|
||||
|
||||
if ($result->num_rows() == 0) {
|
||||
$data['sorok'] = false;
|
||||
} else {
|
||||
$data['sorok'] = $result->result();
|
||||
$data['found'] = $result->num_rows();
|
||||
}
|
||||
} else {
|
||||
if (UJUGYFELKEZELO === true) {
|
||||
if ($this->access_id == '490')
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlTime', 'desc')->where("hlNum in ({$x_hlNums}) and ( strCompany like '%$search%' or strName like '%$search%' or hlUser like '%$search%')")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->get();
|
||||
else
|
||||
$result = $this->keydb->from('hardlock')->join('users', 'hardlock.hlUser=users.nUserID', 'left')->orderby('hlTime', 'desc')->where("hlCtrID=" . $this->access_id . " and ( strCompany like '%$search%' or strName like '%$search%' or hlUser like '%$search%')")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->get();
|
||||
} else
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->orderby('hlTime', 'desc')->where("hlCtrID=" . $this->access_id . " and ( strCompany like '%$search%' or strName like '%$search%' or hlUser like '%$search%')")->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->get();
|
||||
|
||||
if ($result->num_rows() == 0) {
|
||||
$data['sorok'] = false;
|
||||
} else {
|
||||
$data['sorok'] = $result->result();
|
||||
$data['found'] = $result->num_rows();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($data['found'])) $data['max'] > $data['found'] ? $data['max'] = $data['found'] : $data['max'];
|
||||
|
||||
$data['tartalom'] = 'partners/keyfilter';
|
||||
$data['csik'] = array('home', 'partners', 'Keys');
|
||||
$data['limit'] = $this->phpsession->get('limit');
|
||||
$data['page'] = $page;
|
||||
$data['pages'] = $pages;
|
||||
$data['from'] = $from;
|
||||
$data['to'] = $to;
|
||||
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
function key()
|
||||
{
|
||||
if (UJUGYFELKEZELO === true)
|
||||
$this->keydb = $this->load->database('ujugyfelkezelo', true);
|
||||
else
|
||||
$this->keydb = $this->load->database('clusers', true);
|
||||
$data['access_id'] = $this->phpsession->get('access_id');
|
||||
|
||||
$hidden = array(-1);
|
||||
|
||||
// megszunt 2018-01-25
|
||||
/*
|
||||
$tmp=$this->keydb->from('hardlock')->where("hlDealer IN ('MAIER','STOCKINGER')")->limit(99999)->get();
|
||||
if($tmp->num_rows()>0) { foreach ($tmp->result() as $k=>$row) { $hidden[]=$row->hlNum; } }
|
||||
|
||||
$tmp=$this->keydb->from('h_programs')->where("prDealer IN ('MAIER','STOCKINGER')")->limit(99999)->get();
|
||||
if($tmp->num_rows()>0) { foreach ($tmp->result() as $k=>$row) { $hidden[]=$row->prHlNum; } }
|
||||
|
||||
$hidden=array_unique($hidden);
|
||||
*/
|
||||
$key_id = $this->uri->segment(3);
|
||||
if (!$key_id) {
|
||||
redirect('partners/keys');
|
||||
} else {
|
||||
if (UJUGYFELKEZELO === true)
|
||||
$key = $this->keydb->where('hlNum', $key_id)->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->join('users', 'hardlock.hlUser=users.nUserID', 'left')->get('hardlock');
|
||||
else
|
||||
$key = $this->keydb->where('hlNum', $key_id)->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->join('cl_users', 'cl_fo_hardlock.hlUser=cl_users.nUserID', 'left')->get('cl_fo_hardlock');
|
||||
if ($key->num_rows() == 0) {
|
||||
show_404();
|
||||
} else {
|
||||
$key = $key->row();
|
||||
}
|
||||
|
||||
if ($key->hlCtrID != substr($this->access_id, 0, 2) && !$this->mpartners->isAdmin()) {
|
||||
show_error("Access denied to key no. " . $key_id);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
if (UJUGYFELKEZELO === true)
|
||||
$programs = $this->keydb->where('prHlNum', $key_id)->join('p_types', 'h_programs.prTypeID=p_types.typeCode')->join('p_versions', 'h_programs.prVerID=p_versions.verID', 'left')->order_by("prID")->get('h_programs');
|
||||
else
|
||||
$programs = $this->keydb->where('prHlNum', $key_id)->join('cl_fo_types', 'cl_fo_programs.prTypeID=cl_fo_types.typeCode')->join('cl_fo_versions', 'cl_fo_programs.prVerID=cl_fo_versions.verID', 'left')->order_by("prID")->get('cl_fo_programs');
|
||||
|
||||
if ($programs->num_rows() == 0) {
|
||||
$programs = false;
|
||||
$lastprID = false;
|
||||
} else {
|
||||
$lastprID = $programs->row_array($programs->num_rows() - 1);
|
||||
$programs = $programs->result();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
if ($lastprID) {
|
||||
$modules = array();
|
||||
$programs2 = $this->keydb->where('prHlNum', $key_id)->get('h_programs')->result();
|
||||
|
||||
foreach ($programs2 as $program) {
|
||||
$prmodules = $this->keydb->where('mdPrID', $program->prID)->get('p_modules')->result();
|
||||
$modules = array_merge($prmodules, $modules);
|
||||
}
|
||||
|
||||
//print_r($modules->result());
|
||||
//print $this->keydb->last_query();
|
||||
} else {
|
||||
$modules = false;
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
if (UJUGYFELKEZELO === true)
|
||||
$history = $this->keydb->where('hiHlNum', $key_id)->join('h_events', 'h_events.evid=h_history.hiTypeID', 'left')->get('h_history');
|
||||
else
|
||||
$history = $this->keydb->where('hiHlNum', $key_id)->join('cl_fo_events', 'cl_fo_events.evid=cl_fo_history.hiTypeID', 'left')->get('cl_fo_history');
|
||||
if ($history->num_rows() == 0) {
|
||||
$history = false;
|
||||
} else {
|
||||
$history = $history->result();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
$softwareKeyArray = array(95, 99);
|
||||
|
||||
$data['csik'] = array('home', 'partners', 'keys');
|
||||
$data['tartalom'] = 'partners/key';
|
||||
$data['key'] = $key;
|
||||
$data['programs'] = $programs;
|
||||
$data['modules'] = $modules;
|
||||
$data['history'] = $history;
|
||||
$data['isSoftwareKey'] = (in_array(substr($key_id, 0, 2), $softwareKeyArray)) || ($programs[0]->prTypeID == '4');
|
||||
|
||||
$this->load->view('site_key', $data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function _check_access()
|
||||
{
|
||||
if ($this->phpsession->get('bugtracker_access')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function _project_dropdown_array($projects)
|
||||
{
|
||||
$tomb[0] = 'Please Choose a Project';
|
||||
|
||||
foreach ($projects as $p) {
|
||||
$tomb[$p->id] = $p->name;
|
||||
}
|
||||
|
||||
return $tomb;
|
||||
}
|
||||
|
||||
function changeKeyUser()
|
||||
{
|
||||
$name = $this->input->post('user_name');
|
||||
$email = $this->input->post('user_email');
|
||||
$hlNum = $this->input->post('hlNum');
|
||||
$nUserID = $this->input->post('nUserID');
|
||||
$isFloating = (int)$this->input->post('isFloating') ? (int)$this->input->post('isFloating') : 0;
|
||||
|
||||
$this->keydb = $this->load->database('ujugyfelkezelo', true);
|
||||
$hidden = array(-1);
|
||||
|
||||
$key = $this->keydb->where('hlNum', $hlNum)->where("hardlock.hlNum NOT IN (" . implode(",", $hidden) . ")")->join('users', 'hardlock.hlUser=users.nUserID', 'left')->get('hardlock')->row();
|
||||
if ($key->hlCtrID != substr($this->access_id, 0, 2) && !$this->mpartners->isAdmin()) {
|
||||
redirect('partners/key/' . $hlNum);
|
||||
return;
|
||||
}
|
||||
|
||||
$newNuserID = '';
|
||||
$needUserUpdate = false;
|
||||
|
||||
$u_email = $this->db->query("SELECT nUserID FROM cl_hlusers.u_emails WHERE email = '{$email}'")->row();
|
||||
if (!empty($u_email) && $email != '') {
|
||||
$newNuserID = $u_email->nUserID;
|
||||
$needUserUpdate = true;
|
||||
} else {
|
||||
if ($email != '') {
|
||||
$jml_user = $this->db->query("SELECT nUserID FROM www_archline_hu.jml_users WHERE email = '{$email}' OR username = '{$email}'")->row();
|
||||
|
||||
if (!empty($jml_user))
|
||||
$newNuserID = $jml_user->nUserID;
|
||||
else
|
||||
$newNuserID = $this->mpartners->insertUser($name, $email, $this->access_id);
|
||||
|
||||
$needUserUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($needUserUpdate) {
|
||||
$updateQuery = "UPDATE cl_hlusers.hardlock
|
||||
SET hlUser = '{$newNuserID}', isFloating = {$isFloating}
|
||||
WHERE hlNum = '{$hlNum}'";
|
||||
} else {
|
||||
$updateQuery = "UPDATE cl_hlusers.hardlock
|
||||
SET isFloating = {$isFloating}
|
||||
WHERE hlNum = '{$hlNum}'";
|
||||
}
|
||||
|
||||
$this->db->query($updateQuery);
|
||||
|
||||
if ($newNuserID != $nUserID) {
|
||||
$info = "Régi Profil: <a href='https://crm.cadline.hu/en/users/show/{$nUserID}' target='_blank'>{$nUserID}</a> <br/>
|
||||
Új Profil: <a href='https://crm.cadline.hu/en/users/show/{$newNuserID}' target='_blank'>{$newNuserID}</a>";
|
||||
|
||||
$history = new stdClass();
|
||||
$history->hiHlNum = $hlNum;
|
||||
$history->hiDate = date('Y-m-d');
|
||||
$history->hiManID = 36;
|
||||
$history->hiTypeID = 28;
|
||||
$history->hiTime = date('Y-m-d H:i:s');
|
||||
$history->hiInfo = $info;
|
||||
|
||||
$this->db->insert("cl_hlusers.h_history", $history);
|
||||
}
|
||||
|
||||
if ($isFloating != $key->isFloating) {
|
||||
$infoFloating = $isFloating == 0 ? 'Weborder: Floating kikapcsolva' : 'Weborder: Floating bekapcsolva';
|
||||
$flType = $isFloating == 0 ? 30 : 29;
|
||||
|
||||
$historyFl = new stdClass();
|
||||
$historyFl->hiHlNum = $hlNum;
|
||||
$historyFl->hiDate = date('Y-m-d');
|
||||
$historyFl->hiManID = 36;
|
||||
$historyFl->hiTypeID = $flType;
|
||||
$historyFl->hiTime = date('Y-m-d H:i:s');
|
||||
$historyFl->hiInfo = $infoFloating;
|
||||
|
||||
$this->db->insert("cl_hlusers.h_history", $historyFl);
|
||||
}
|
||||
|
||||
$to = 'office@cadline.hu';
|
||||
$subject = 'Profil Módositás - ' . $this->access_id;
|
||||
$headers = "Content-Type: text/html; charset=utf-8\r\n";
|
||||
|
||||
$message = "A <b>{$hlNum}<b> kulcs módosításra került: <br/><br/>";
|
||||
$message .= "Régi Profil: <a href='https://crm.cadline.hu/en/users/show/{$nUserID}' target='_blank'>{$nUserID}</a> <br/>";
|
||||
$message .= "Új Profil: <a href='https://crm.cadline.hu/en/users/show/{$newNuserID}' target='_blank'>{$newNuserID}</a>";
|
||||
|
||||
if (substr($this->access_id, 0, 2) != 37)
|
||||
mail($to, $subject, $message, $headers);
|
||||
|
||||
redirect('partners/key/' . $hlNum);
|
||||
return;
|
||||
}
|
||||
|
||||
function documentation()
|
||||
{
|
||||
$data = array();
|
||||
|
||||
if ($this->access_id != '37' && $this->access_id != '36')
|
||||
show_404();
|
||||
else
|
||||
$this->load->view('partners/documentation.php', $data);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,423 @@
|
||||
<?php
|
||||
class Partners extends Controller
|
||||
{
|
||||
var $access = array(
|
||||
'36'=>'archxp2009',
|
||||
'39'=>'ita456789x',
|
||||
'43'=>'ger123456y',
|
||||
'49'=>'ger123456y',
|
||||
'41'=>'ger123456y',
|
||||
'30'=>'grcad23456g',
|
||||
'42'=>'cz9876543',
|
||||
'34'=>'espcad5679e',
|
||||
'38'=>'crcad2009',
|
||||
'52'=>'mexcad2009',
|
||||
'82'=>'korcad123',
|
||||
'48'=>'polcad456789x',
|
||||
'81'=>'jap2009',
|
||||
'40'=>'rocad2009',
|
||||
|
||||
);
|
||||
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
if(!$this->_check_access() && $this->uri->segment(2)!='login')
|
||||
{
|
||||
redirect('partners/login');
|
||||
}
|
||||
|
||||
$this->access_id = $this->phpsession->get('access_id');
|
||||
|
||||
$this->load->model('mpartners');
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
$pass = $this->input->post('pass');
|
||||
$user = $this->input->post('user');
|
||||
|
||||
if($pass)
|
||||
{
|
||||
if(array_key_exists($user,$this->access) && $this->access[$user]==$pass)
|
||||
{
|
||||
$this->phpsession->save('bugtracker_access',true);
|
||||
$this->phpsession->save('access_id',$user);
|
||||
|
||||
redirect('partners');
|
||||
}
|
||||
}
|
||||
|
||||
$data['csik'] = array('home','Bugtracker Login');
|
||||
$data['tartalom'] = 'partners/login';
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function logout()
|
||||
{
|
||||
$this->phpsession->clear('bugtracker_access');
|
||||
$this->phpsession->clear('access_id');
|
||||
|
||||
redirect('support');
|
||||
}
|
||||
|
||||
|
||||
function index()
|
||||
{
|
||||
|
||||
|
||||
|
||||
$data['csik']=array('home','Partners');
|
||||
$data['tartalom'] = 'partners/index';
|
||||
$this->load->view('site',$data);
|
||||
|
||||
|
||||
}
|
||||
|
||||
function bugtracker()
|
||||
{
|
||||
$this->bugdb = $this->load->database('bugtracker',true);
|
||||
|
||||
$project = $this->input->post('project');
|
||||
$id = $this->input->post('id');
|
||||
|
||||
$projects = $this->bugdb->select('id, name')->order_by('name','asc')->get('mantis_project_table')->result();
|
||||
$data['dropdown'] = $this->_project_dropdown_array($projects);
|
||||
|
||||
|
||||
if(!$id)
|
||||
{
|
||||
if(!$project || $project == 0)
|
||||
{
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table','mantis_bug_table.id=mantis_bug_text_table.id')->orderby('mantis_bug_table.id','desc')->limit(1000)->get();
|
||||
}
|
||||
else
|
||||
{
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table','mantis_bug_table.id=mantis_bug_text_table.id')->where('project_id',$project)->orderby('mantis_bug_table.id','desc')->limit(100)->get();
|
||||
}
|
||||
|
||||
|
||||
if($sorok->num_rows()!=0)
|
||||
{
|
||||
$data['sorok'] = $sorok->result();
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['sorok'] = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(is_numeric($id))
|
||||
{
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table','mantis_bug_table.id=mantis_bug_text_table.id')->where('mantis_bug_table.id',$id)->get();
|
||||
|
||||
if($sorok->num_rows()!=1)
|
||||
{
|
||||
show_error('Bug not found. Bug ID was: '.$id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['sorok'] = $sorok->result();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$id = mysql_real_escape_string($id);
|
||||
|
||||
|
||||
$sorok = $this->bugdb->from('mantis_bug_table')->join('mantis_bug_text_table','mantis_bug_table.id=mantis_bug_text_table.id')->where("mantis_bug_table.summary LIKE '%$id%'")->order_by('mantis_bug_table.id','desc')->get();
|
||||
|
||||
if($sorok->num_rows()==0)
|
||||
{
|
||||
$data['sorok'] = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['sorok'] = $sorok->result();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$data['id'] = $id;
|
||||
$data['project'] = $project;
|
||||
$data['csik']=array('home','partners','Bugtracker');
|
||||
$data['tartalom'] = 'partners/filter';
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
function keys()
|
||||
{
|
||||
$this->keydb = $this->load->database('hardlock',true);
|
||||
$search = $this->input->post('search');
|
||||
|
||||
$empty = $this->input->post('empty');
|
||||
$disabled = $this->input->post('disabled');
|
||||
|
||||
$from = $this->input->post('from');
|
||||
$to = $this->input->post('to');
|
||||
|
||||
if((!isset($from) || $from=='') && !$this->phpsession->get('from'))
|
||||
{
|
||||
$from = 0;
|
||||
$this->phpsession->save('from',0);
|
||||
}
|
||||
elseif(isset($from) && $from!='')
|
||||
{
|
||||
$this->phpsession->save('from',$from);
|
||||
}
|
||||
elseif(!$from && $this->phpsession->get('from'))
|
||||
{
|
||||
$from = $this->phpsession->get('from');
|
||||
}
|
||||
|
||||
if((!isset($to) || $to=='') && !$this->phpsession->get('to'))
|
||||
{
|
||||
$to = 999999;
|
||||
$this->phpsession->save('to',999999);
|
||||
}
|
||||
elseif(isset($to) && $to!='')
|
||||
{
|
||||
$this->phpsession->save('to',$to);
|
||||
}
|
||||
elseif(!$to && $this->phpsession->get('to'))
|
||||
{
|
||||
$to = $this->phpsession->get('to');
|
||||
}
|
||||
|
||||
$limit = $this->input->post('limit');
|
||||
$page = $this->uri->segment(3);
|
||||
$pages = -1;
|
||||
|
||||
if(!$limit && !$this->phpsession->get('limit'))
|
||||
{
|
||||
$this->phpsession->save('limit',10);
|
||||
$limit = 10;
|
||||
}
|
||||
elseif($limit==0 && !$this->phpsession->get('limit'))
|
||||
{
|
||||
$this->phpsession->save('limit',10);
|
||||
$limit = 10;
|
||||
}
|
||||
elseif(!$limit && $this->phpsession->get('limit'))
|
||||
{
|
||||
$limit = $this->phpsession->get('limit');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->phpsession->save('limit',$limit);
|
||||
}
|
||||
|
||||
if(!$page)
|
||||
$page = 1;
|
||||
|
||||
$min = $page==1 ? 0 : ($page - 1) * $limit;
|
||||
$data['max'] = $page==1 ? $limit : $page * $limit;
|
||||
$data['min'] = $min + 1;
|
||||
|
||||
if(!$search)
|
||||
{
|
||||
if($empty)
|
||||
{
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlNum','desc')->where("hlCtrID ='".$this->access_id."'")->where('hlStat',0)->where("hlNum >= '".$from."' AND hlNum <= '".$to."'")->limit(99999)->get();
|
||||
|
||||
$result_limit = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlNum','desc')->where("hlCtrID ='".$this->access_id."'")->where('hlStat',0)->where("hlNum >= '".$from."' AND hlNum <= '".$to."'")->limit($limit,$min)->get();
|
||||
|
||||
}
|
||||
elseif($disabled)
|
||||
{
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlNum','desc')->where("hlCtrID ='".$this->access_id."'")->where('hlStat',2)->where("hlNum >= '".$from."' AND hlNum <= '".$to."'")->limit(99999)->get();
|
||||
|
||||
$result_limit = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlNum','desc')->where("hlCtrID ='".$this->access_id."'")->where('hlStat',2)->where("hlNum >= '".$from."' AND hlNum <= '".$to."'")->limit($limit,$min)->get();
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlNum','desc')->where("hlCtrID ='".$this->access_id."'")->where("hlNum >= '".$from."' AND hlNum <= '".$to."'")->limit(99999)->get();
|
||||
|
||||
$result_limit = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlNum','desc')->where("hlCtrID ='".$this->access_id."'")->where("hlNum >= '".$from."' AND hlNum <= '".$to."'")->limit($limit,$min)->get();
|
||||
}
|
||||
|
||||
|
||||
if($result->num_rows()==0)
|
||||
{
|
||||
$data['sorok'] = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
if($result->num_rows() % $limit>0)
|
||||
$pages = ($result->num_rows() + ($limit - ($result->num_rows() % $limit))) / $limit;
|
||||
else
|
||||
$pages = $result->num_rows() / $limit;
|
||||
|
||||
if($result->num_rows()<=$limit)
|
||||
$pages = -1;
|
||||
|
||||
$data['sorok'] = $result_limit->result();
|
||||
$data['found'] = $result->num_rows();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(($search))
|
||||
{
|
||||
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlTime','desc')->where("hlNum like '%$search%'")->where('hlCtrID',$this->access_id)->get();
|
||||
|
||||
if($result->num_rows()==0)
|
||||
{
|
||||
$data['sorok'] = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['sorok'] = $result->result();
|
||||
$data['found'] = $result->num_rows();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$result = $this->keydb->from('cl_fo_hardlock')->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->orderby('hlTime','desc')->where("hlCtrID=".$this->access_id." and ( strCompany like '%$search%' or strName like '%$search%' or hlUser like '%$search%')")->get();
|
||||
|
||||
if($result->num_rows()==0)
|
||||
{
|
||||
$data['sorok'] = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['sorok'] = $result->result();
|
||||
$data['found'] = $result->num_rows();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($data['found']))
|
||||
$data['max'] > $data['found'] ? $data['max'] = $data['found'] : $data['max'] ;
|
||||
|
||||
$data['tartalom']='partners/keyfilter';
|
||||
$data['csik'] = array('home','partners','Keys');
|
||||
$data['limit'] = $this->phpsession->get('limit');
|
||||
$data['page'] = $page;
|
||||
$data['pages'] = $pages;
|
||||
$data['from'] = $from;
|
||||
$data['to'] = $to;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function key()
|
||||
{
|
||||
$this->keydb = $this->load->database('hardlock',true);
|
||||
|
||||
$key_id = $this->uri->segment(3);
|
||||
if(!$key_id)
|
||||
{
|
||||
redirect('partners/keys');
|
||||
}
|
||||
else
|
||||
{
|
||||
$key = $this->keydb->where('hlNum',$key_id)->join('cl_users','cl_fo_hardlock.hlUser=cl_users.nUserID','left')->get('cl_fo_hardlock');
|
||||
if($key->num_rows()==0)
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
else
|
||||
{
|
||||
$key = $key->row();
|
||||
}
|
||||
|
||||
if($key->hlCtrID!=$this->access_id)
|
||||
{
|
||||
show_error("Access denied to key no. ".$key_id);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
$programs = $this->keydb->where('prHlNum',$key_id)->join('cl_fo_types','cl_fo_programs.prTypeID=cl_fo_types.typeCode')->join('cl_fo_versions','cl_fo_programs.prVerID=cl_fo_versions.verID','left')->get('cl_fo_programs');
|
||||
|
||||
if($programs->num_rows()==0)
|
||||
{
|
||||
$programs = false;
|
||||
$lastprID = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$lastprID = $programs->row_array($programs->num_rows()-1);
|
||||
$programs = $programs->result();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
if($lastprID)
|
||||
{
|
||||
$modules = $this->keydb->where('mdPrHlNum',$key_id)->get('cl_fo_modules');
|
||||
}
|
||||
else
|
||||
{
|
||||
$modules = false;
|
||||
}
|
||||
|
||||
if(!$modules || $modules->num_rows()==0)
|
||||
{
|
||||
$modules = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$modules = $modules->result();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
$history = $this->keydb->where('hiHlNum',$key_id)->join('cl_fo_events','cl_fo_events.evid=cl_fo_history.hiTypeID','left')->get('cl_fo_history');
|
||||
if($history->num_rows()==0)
|
||||
{
|
||||
$history = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$history = $history->result();
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
|
||||
$data['csik']=array('home','partners','keys');
|
||||
$data['tartalom'] = 'partners/key';
|
||||
$data['key'] = $key;
|
||||
$data['programs'] = $programs;
|
||||
$data['modules'] = $modules;
|
||||
$data['history'] = $history;
|
||||
|
||||
$this->load->view('site_key', $data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function _check_access()
|
||||
{
|
||||
if($this->phpsession->get('bugtracker_access'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function _project_dropdown_array($projects)
|
||||
{
|
||||
$tomb[0] = 'Please Choose a Project';
|
||||
|
||||
foreach($projects as $p)
|
||||
{
|
||||
$tomb[$p->id] = $p->name;
|
||||
}
|
||||
|
||||
return $tomb;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,454 @@
|
||||
<?php
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/public/order/dompdf/autoload.inc.php';
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/public/order/phpmailer/PHPMailerAutoload.php';
|
||||
|
||||
use Dompdf\Dompdf;
|
||||
|
||||
class Pay extends Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->load->library('session');
|
||||
$this->load->model('mpay');
|
||||
$this->load->library('Product');
|
||||
|
||||
if (
|
||||
$_SESSION['user_id'] == '' && $this->uri->segment(2) != 'login'
|
||||
&& $this->uri->segment(2) != 'orderFromBarion'
|
||||
&& $this->uri->segment(2) != 'createPassword'
|
||||
) {
|
||||
$_SESSION['prod_id'] = $this->uri->segment(3);
|
||||
redirect('pay/login');
|
||||
}
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
if ($this->uri->segment(2) != 'index')
|
||||
redirect('pay/index');
|
||||
|
||||
if ($this->uri->segment(3) == '' || !is_numeric($this->uri->segment(3))) {
|
||||
$this->load->view('pay/404.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$afa_key = "27";
|
||||
$product_id = $this->uri->segment(3);
|
||||
$payData = array();
|
||||
$payData['product'] = $this->mpay->getProduct($product_id);
|
||||
|
||||
if ($payData['product']->kategoria == 'credit') {
|
||||
header('Location: https://www.archline.hu/vasarlas');
|
||||
die();
|
||||
}
|
||||
|
||||
if (empty($payData['product'])) {
|
||||
$this->load->view('pay/404.php');
|
||||
return;
|
||||
}
|
||||
|
||||
if ($payData['product']->type == 76)
|
||||
$payData['logo'] = 'https://pay.archline.hu/assets/img/livelogo.png';
|
||||
else
|
||||
$payData['logo'] = 'https://pay.archline.hu/assets/img/logo_web.png';
|
||||
|
||||
$license = $this->mpay->getLicenseAgreement($payData['product']->kategoria)->content;
|
||||
$license = str_replace('{DATE}', date('Y.m.d'), $license);
|
||||
|
||||
$payData['currentVer'] = $this->mpay->getSelectedVersion($payData['product']->o_type, $payData['product']->kategoria, $payData['product']->id);
|
||||
$payData['error'] = $this->session->flashdata('error');
|
||||
$payData['license'] = $license;
|
||||
$payData['policy'] = $this->mpay->getPrivacyPolicy();
|
||||
$payData['crmUser'] = $payData['product']->kategoria == 'upgrade' ? array() : $this->mpay->getCRMprofile($_SESSION['user_id']);
|
||||
$payData['countries'] = $this->mpay->getCountries();
|
||||
$payData['readOnly'] = $payData['product']->kategoria == 'upgrade';
|
||||
$payData['service'] = $this->mpay->getServiceAgreement($payData['product']->id)->content;
|
||||
$payData['inst'] = Product::getInstalment($payData['product']->id, $payData['product']->seq, $payData['product']->o_type, $payData['product']->ackio_date);
|
||||
$payData['needCoupon'] = (($payData['product']->kategoria == 'perp' || $payData['product']->kategoria == 'live') && $payData['product']->cont_id == 0) || ($payData['product']->kategoria == 'upgrade' && $payData['product']->seq == 2) ? true : false;
|
||||
$payData['afa'] = $afa_key / 100;
|
||||
$payData['vat'] = $payData['product']->price * $payData['afa'];
|
||||
$payData['brut'] = $payData['product']->price * ($payData['afa'] + 1);
|
||||
|
||||
$this->load->view('pay/index.php', $payData);
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
if ($_SESSION['user_id'] != '')
|
||||
redirect('pay');
|
||||
|
||||
$username = $this->input->post('username');
|
||||
$password = $this->input->post('password');
|
||||
|
||||
$payData = array();
|
||||
|
||||
if ($_POST['login-btn']) {
|
||||
$user = $this->mpay->login($username, $password);
|
||||
|
||||
if (!$user) {
|
||||
$payData['error'] = 'Hibás felhasználónév vagy jelszó!';
|
||||
} else {
|
||||
$_SESSION['user_id'] = $user->nUserID;
|
||||
redirect('pay/index/' . $_SESSION['prod_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$this->load->view('pay/login.php', $payData);
|
||||
}
|
||||
|
||||
function createPassword()
|
||||
{
|
||||
$serial = $orderNum = '';
|
||||
|
||||
$user = new stdClass();
|
||||
$user->userID = $_POST['userID'];
|
||||
$user->product_id = $_POST['product_id'];
|
||||
$user->notes = $_POST['notes'];
|
||||
$orderNum = $_POST['order_num'];
|
||||
|
||||
$product = $this->mpay->getProduct($user->product_id);
|
||||
|
||||
$afa_key = "27";
|
||||
$afa = $afa_key / 100;
|
||||
$brut_amount_item = $product->price * ($afa + 1);
|
||||
$price = $brut_amount_item;
|
||||
|
||||
$eventID = $this->mpay->getEventID($product->cont_id, $product->kategoria);
|
||||
|
||||
$this->mpay->generatePassword($user->userID, $user->product_id, $serial, $price, $user->notes, $orderNum, $product);
|
||||
$this->mpay->createUserHistory($user->userID, $product->cont_id, $product->kategoria, $product->price, $eventID, '', $product->o_type);
|
||||
$this->mpay->updateUserStatus($user->userID, 11);
|
||||
$this->mpay->updateOrder($orderNum, $serial);
|
||||
}
|
||||
|
||||
function orderFromBarion()
|
||||
{
|
||||
$serial = $price = $orderNum = '';
|
||||
$couponPrice = isset($_POST['couponPrice']) && $_POST['couponPrice'] != '' && $_POST['couponPrice'] > 0 ? $_POST['couponPrice'] : 0;
|
||||
|
||||
$user = new stdClass();
|
||||
$user->name = $_POST['name'];
|
||||
$user->email = $_POST['email'];
|
||||
$user->tax_number = $_POST['tax_number'];
|
||||
$user->postcode = $_POST['postcode'];
|
||||
$user->city = $_POST['city'];
|
||||
$user->address = $_POST['address'];
|
||||
$user->notes = $_POST['notes'];
|
||||
$user->currency_code = $_POST['currency_code'];
|
||||
$user->product_id = $_POST['product_id'];
|
||||
$user->userID = $_POST['userID'];
|
||||
|
||||
$product = $this->mpay->getProduct($user->product_id);
|
||||
|
||||
$afa_key = "27";
|
||||
$afa = $afa_key / 100;
|
||||
$brut_amount_item = $product->price * ($afa + 1);
|
||||
$price = $brut_amount_item;
|
||||
|
||||
$license = $this->mpay->getLicenseAgreement($product->kategoria);
|
||||
$curr_ver = $this->mpay->getCurrentVersion($product->kategoria, '8', $user->product_id);
|
||||
$orderNum = $this->mpay->getOrderNumber(36);
|
||||
|
||||
$this->mpay->createOrder($product->termek, $orderNum, $user->name, $user->email, 36, $serial, $price, $user->notes);
|
||||
$this->mpay->updateBilling($user, $user->userID);
|
||||
$this->mpay->uploadTermsAndConditionsPDF($curr_ver->year, $user->userID, $license->id, $product->cont_id);
|
||||
$this->mpay->createUserHistory($user->userID, $product->cont_id, $product->kategoria, $product->price, 78, '(Barion)', $product->o_type, $couponPrice);
|
||||
|
||||
echo $orderNum;
|
||||
}
|
||||
|
||||
function order()
|
||||
{
|
||||
$this->load->helper('email');
|
||||
|
||||
$serial = $price = $orderNum = '';
|
||||
$coupon = $this->input->post('coupon');
|
||||
|
||||
$user = new stdClass();
|
||||
$user->name = $this->input->post('name');
|
||||
$user->email = $this->input->post('email');
|
||||
$user->tax_number = $this->input->post('tax_number');
|
||||
$user->postcode = $this->input->post('postcode');
|
||||
$user->city = $this->input->post('city');
|
||||
$user->address = $this->input->post('address');
|
||||
$user->notes = $this->input->post('notes');
|
||||
$user->currency_code = $this->input->post('currency_code');
|
||||
$user->product_id = $this->input->post('product_id');
|
||||
$user->userID = $this->input->post('userID');
|
||||
$user->inputSerial = $this->input->post('serial');
|
||||
|
||||
if ($user->name == '') {
|
||||
$this->session->set_flashdata('error', 'Érvénytelen mező: Név');
|
||||
redirect('pay/index/' . $user->product_id);
|
||||
}
|
||||
|
||||
if ($user->email == '') {
|
||||
$this->session->set_flashdata('error', 'Érvénytelen mező: Email cím');
|
||||
redirect('pay/index/' . $user->product_id);
|
||||
}
|
||||
|
||||
if (!is_numeric($user->postcode) || strlen($user->postcode) != 4) {
|
||||
$this->session->set_flashdata('error', 'Érvénytelen mező: Irányítószám');
|
||||
redirect('pay/index/' . $user->product_id);
|
||||
}
|
||||
|
||||
if ($user->city == '') {
|
||||
$this->session->set_flashdata('error', 'Érvénytelen mező: Város');
|
||||
redirect('pay/index/' . $user->product_id);
|
||||
}
|
||||
|
||||
if ($user->address == '') {
|
||||
$this->session->set_flashdata('error', 'Érvénytelen mező: Utca, házszám');
|
||||
redirect('pay/index/' . $user->product_id);
|
||||
}
|
||||
|
||||
$product = $this->mpay->getProduct($user->product_id);
|
||||
$netto = $product->price;
|
||||
$inst = $user->product_id == 1823 ? 3 : Product::$instalments; // Torolni
|
||||
|
||||
if ($this->input->post('instalments') == 'true')
|
||||
$netto = $product->price / $inst;
|
||||
|
||||
// Torolni
|
||||
if ($user->product_id == 1823 && $this->input->post('instalments') == 'true')
|
||||
$netto = 49000;
|
||||
|
||||
$couponPrice = 0;
|
||||
|
||||
if (isset($coupon) && $coupon != '' && $this->input->post('instalments') != 'true') {
|
||||
$couponCode = $this->mpay->getCoupon($coupon, $product->id);
|
||||
|
||||
if ($couponCode['error'] == true) {
|
||||
$this->session->set_flashdata('error', $couponCode['error_message']);
|
||||
redirect('pay/index/' . $user->product_id);
|
||||
}
|
||||
|
||||
$netto = $netto - $couponCode['coupon_price'];
|
||||
$couponPrice = (int)$couponCode['coupon_price'];
|
||||
}
|
||||
|
||||
$afa_key = "27";
|
||||
$afa = $afa_key / 100;
|
||||
$brut_amount_item = $netto * ($afa + 1);
|
||||
$price = $brut_amount_item;
|
||||
|
||||
$license = $this->mpay->getLicenseAgreement($product->kategoria);
|
||||
$curr_ver = $this->mpay->getCurrentVersion($product->kategoria, '8', $user->product_id);
|
||||
$orderNum = $this->mpay->getOrderNumber(36);
|
||||
|
||||
$this->mpay->createOrder($product->termek, $orderNum, $user->name, $user->email, 36, $serial, $price, $user->notes);
|
||||
$this->mpay->updateBilling($user, $user->userID);
|
||||
$this->mpay->updateUserStatus($user->userID, 10);
|
||||
$this->mpay->sendEmail($user, $orderNum, $product, $this->input->post('instalments'), $couponPrice);
|
||||
|
||||
if ($product->seq != 2) {
|
||||
$this->mpay->uploadTermsAndConditionsPDF($curr_ver->year, $user->userID, $license->id, $product->cont_id);
|
||||
$this->mpay->sendCustomEmail($user->email, $product->termek, $product->cont_id);
|
||||
}
|
||||
|
||||
$this->mpay->createUserHistory($user->userID, $product->cont_id, $product->kategoria, $product->price, 78, '', $product->o_type, $couponPrice);
|
||||
|
||||
if ($couponPrice > 0) {
|
||||
$this->mpay->changeCoupon($coupon, $user->userID);
|
||||
}
|
||||
|
||||
redirect('pay/success');
|
||||
}
|
||||
|
||||
function sendMaintenanceEmail()
|
||||
{
|
||||
try {
|
||||
$product = $this->mpay->getProduct($_POST['product_id']);
|
||||
$license = $this->mpay->getMaintenanceAgreement($product->o_type, $_POST['product_id']);
|
||||
$curr_ver = $this->mpay->getCurrentVersion($product->kategoria, 8, $_POST['product_id']);
|
||||
/*$maintPrice = (int)Product::getMaintenancePrice();
|
||||
$updatePrice = (int)$product->price - $maintPrice;*/
|
||||
|
||||
$license = str_replace('{NAME}', $_POST['name'], $license);
|
||||
$license = str_replace('{ADDRESS}', $_POST['postcode'] . ' ' . $_POST['city'] . ', ' . $_POST['address'], $license);
|
||||
$license = str_replace('{TAX_NUMBER}', $_POST['tax_number'], $license);
|
||||
$license = str_replace('{EMAIL}', $_POST['email'], $license);
|
||||
$license = str_replace('{HLNUM}', substr($_POST['serial'], 0, 6), $license);
|
||||
$license = str_replace('{DATE}', date('Y.m.d'), $license);
|
||||
$license = str_replace('{CONTACT}', $_POST['contact'], $license);
|
||||
$license = str_replace('{PHONE}', $_POST['telephone'], $license);
|
||||
/*$license = str_replace('{MAINTENANCE_PRICE}', '<b>' . number_format($maintPrice, 0, ',', '.') . '</b>', $license);
|
||||
$license = str_replace('{UPDATE_PRICE}', '<b>' . number_format($updatePrice, 0, ',', '.') . '</b>', $license);*/
|
||||
|
||||
$pdf = new DOMPDF();
|
||||
$pdf->loadHtml($license, 'UTF-8');
|
||||
$pdf->render();
|
||||
$output = $pdf->output();
|
||||
|
||||
$unwanted_array = array(
|
||||
'Á' => 'A',
|
||||
'É' => 'E',
|
||||
'Í' => 'I',
|
||||
'Ó' => 'O',
|
||||
'Ö' => 'O',
|
||||
'Ő' => 'O',
|
||||
'Ú' => 'U',
|
||||
'Ü' => 'U',
|
||||
'Ű' => 'U',
|
||||
'á' => 'a',
|
||||
'é' => 'e',
|
||||
'í' => 'i',
|
||||
'ó' => 'o',
|
||||
'ö' => 'o',
|
||||
'ő' => 'o',
|
||||
'ú' => 'u',
|
||||
'ü' => 'u',
|
||||
'ű' => 'u'
|
||||
);
|
||||
|
||||
$name = strtr($_POST['name'], $unwanted_array);
|
||||
$name = str_replace(' ', '_', $name);
|
||||
$file_name = $name . '_Karbantartasi_Szerzodes_' . $curr_ver->year . '.pdf';
|
||||
|
||||
$put = file_put_contents($file_name, $output);
|
||||
|
||||
$message = '{';
|
||||
$message .= '"product_id":"' . $_POST['product_id'] . '",';
|
||||
$message .= '"name":"' . $_POST['name'] . '",';
|
||||
$message .= '"address":"' . $_POST['postcode'] . ' ' . $_POST['city'] . ', ' . $_POST['address'] . '",';
|
||||
$message .= '"tax_number":"' . $_POST['tax_number'] . '",';
|
||||
$message .= '"email":"' . $_POST['email'] . '",';
|
||||
$message .= '"serial":"' . $_POST['serial'] . '",';
|
||||
$message .= '"contact":"' . $_POST['contact'] . '",';
|
||||
$message .= '"phone":"' . $_POST['telephone'] . '",';
|
||||
$message .= '"file_put_contents":"' . $put . '",';
|
||||
$message .= '"file_name":"' . $file_name . '",';
|
||||
$message .= '"email_send":"false"';
|
||||
$message .= '}';
|
||||
|
||||
$debug = array(
|
||||
'data' => $message,
|
||||
'insert_date' => date('Y-m-d H:i:s'),
|
||||
'session_id' => 'Karbantartasi_szerzodes'
|
||||
);
|
||||
|
||||
$this->db->insert('cl_hlusers.debug_table', $debug);
|
||||
$debugID = $this->db->insert_id();
|
||||
|
||||
$cc = $_POST['email'] == 'nagy.mate960814@gmail.com' ? 'mate.nagy@cadline.hu' : 'office@cadline.hu';
|
||||
|
||||
$mail = new PHPMailer;
|
||||
$mail->IsSMTP();
|
||||
$mail->Host = 'localhost';
|
||||
$mail->CharSet = 'UTF-8';
|
||||
$mail->SMTPAuth = true;
|
||||
$mail->Username = 'www.smtp@cadline.hu';
|
||||
$mail->Password = 'Chieng0t';
|
||||
$mail->WordWrap = 50;
|
||||
$mail->From = 'info@cadline.hu';
|
||||
$mail->FromName = 'www.archline.hu';
|
||||
$mail->AddAddress($_POST['email'], $_POST['name']);
|
||||
$mail->addCC($cc);
|
||||
$mail->addBCC('mate.nagy@cadline.hu');
|
||||
$mail->IsHTML(true);
|
||||
$mail->AddAttachment($file_name);
|
||||
$mail->Subject = 'Megújuló Karbantartási szerződés';
|
||||
$mail->Body = 'Kedves Vásárlónk! <br><br>
|
||||
|
||||
Köszönjük a megrendelésed. Az elektronikus számlát elküldtük. <br>
|
||||
Csatoltan küldjük a <b></b>SZOFTVER SZOLGÁLTATÁSI SZERZŐDÉS – MEGÚJULÓ KARBANTARTÁSI Szerződést.</b> <br><br>
|
||||
|
||||
Kérjük aláírva küldd vissza. <br>
|
||||
<b>A szerződés hatályba lépésének feltétele az aláírt szerződés visszaküldése email-ben az <a href="mailto:office@cadline.hu">office@cadline.hu</a> címre</b> (vagy postai úton történő érkeztetése), <b>és napja az első esedékes díj megfizetésének dátuma.</b>
|
||||
<br>
|
||||
A számla összegének beérkezése és az aláírt szerződés visszaküldése után elkészül a sorozatszámod és küldjük a szoftver telepítési útmutatót.
|
||||
<br><br>
|
||||
|
||||
<b>Termék: </b>' . $product->termek . '
|
||||
<br><br>
|
||||
|
||||
A karbantartási szerződés lemondására a Felhasználói fiókban az Adatlapon, a Licencadatoknál van lehetőség a szerződés feltételeinek megfelelően.
|
||||
<br><br>
|
||||
|
||||
Üdvözlettel <br><br>
|
||||
|
||||
<b>CadLine Kft</b> <br>
|
||||
1037 Budapest, <br>
|
||||
Montevideo utca 3/B';
|
||||
|
||||
$send = $mail->Send();
|
||||
|
||||
$message = '{';
|
||||
$message .= '"product_id":"' . $_POST['product_id'] . '",';
|
||||
$message .= '"name":"' . $_POST['name'] . '",';
|
||||
$message .= '"address":"' . $_POST['postcode'] . ' ' . $_POST['city'] . ', ' . $_POST['address'] . '",';
|
||||
$message .= '"tax_number":"' . $_POST['tax_number'] . '",';
|
||||
$message .= '"email":"' . $_POST['email'] . '",';
|
||||
$message .= '"serial":"' . $_POST['serial'] . '",';
|
||||
$message .= '"contact":"' . $_POST['contact'] . '",';
|
||||
$message .= '"phone":"' . $_POST['telephone'] . '",';
|
||||
$message .= '"file_put_contents":"' . $put . '",';
|
||||
$message .= '"file_name":"' . $file_name . '",';
|
||||
$message .= '"email_send":"' . $send . '"';
|
||||
$message .= '}';
|
||||
|
||||
$query = "UPDATE cl_hlusers.debug_table d
|
||||
SET d.data = '{$message}'
|
||||
WHERE debug_id = {$debugID}";
|
||||
$this->db->query($query);
|
||||
} catch (\Exception $e) {
|
||||
$message = '{';
|
||||
$message .= '"product_id":"' . $_POST['product_id'] . '",';
|
||||
$message .= '"name":"' . $_POST['name'] . '",';
|
||||
$message .= '"address":"' . $_POST['postcode'] . ' ' . $_POST['city'] . ', ' . $_POST['address'] . '",';
|
||||
$message .= '"tax_number":"' . $_POST['tax_number'] . '",';
|
||||
$message .= '"email":"' . $_POST['email'] . '",';
|
||||
$message .= '"serial":"' . $_POST['serial'] . '",';
|
||||
$message .= '"contact":"' . $_POST['contact'] . '",';
|
||||
$message .= '"phone":"' . $_POST['telephone'] . '",';
|
||||
$message .= '"email_send":"false",';
|
||||
$message .= '"error":"' . $e->getMessage() . '"';
|
||||
$message .= '}';
|
||||
|
||||
$debug = array(
|
||||
'data' => $message,
|
||||
'insert_date' => date('Y-m-d H:i:s'),
|
||||
'session_id' => 'Karbantartasi_szerzodes'
|
||||
);
|
||||
|
||||
$this->db->insert('cl_hlusers.debug_table', $debug);
|
||||
}
|
||||
}
|
||||
|
||||
function getBillingInformation()
|
||||
{
|
||||
$serial = $_POST['serial'];
|
||||
|
||||
$crmUser = $this->mpay->getBillingInformation($serial);
|
||||
|
||||
echo json_encode($crmUser);
|
||||
}
|
||||
|
||||
function checkPassword()
|
||||
{
|
||||
|
||||
$product = $this->mpay->getProduct($_POST['product_id']);
|
||||
|
||||
$currentVersion = $this->mpay->getCurrentVersion($product->kategoria, $product->type, $_POST['product_id']);
|
||||
$checkPassword = $this->mpay->checkPassword($_POST['serial'], $product->type, $product->o_type, $currentVersion->verPassword8and9);
|
||||
|
||||
echo json_encode($checkPassword);
|
||||
}
|
||||
|
||||
function success()
|
||||
{
|
||||
$this->load->view('pay/success.php');
|
||||
}
|
||||
|
||||
function checkCoupon()
|
||||
{
|
||||
$coupon = $_POST['coupon'];
|
||||
$prodId = $_POST['productId'];
|
||||
|
||||
$couponCode = $this->mpay->getCoupon($coupon, $prodId);
|
||||
|
||||
echo json_encode($couponCode);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,255 @@
|
||||
<?php
|
||||
class Photo extends Controller
|
||||
{
|
||||
function Photo()
|
||||
{
|
||||
parent::Controller();
|
||||
// define("BENTIIPGALERIAHOZ",'78.92.184.211');
|
||||
// define("RENDSZERGALERIAHOZ",'inux');
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$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(516);
|
||||
else
|
||||
$data['cimlap'] = $this->mpages->get_row(503);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Photo-Edition - leírás' : 'ARCHLine.XP Photo-Edition - description';
|
||||
/*$data['tartalom']='photo/download';*/
|
||||
$data['tartalom']='photo/index';
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway', 'comparison', 'interior_menu', 'downloads_int');
|
||||
$data['csik']=array('home','products');
|
||||
$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(519);
|
||||
else
|
||||
$data['cimlap'] = $this->mpages->get_row(510);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Photo-Edition - Vásárlás' : 'ARCHLine.XP Photo-Edition - Purchase';
|
||||
$data['tartalom'] = 'photo/buy';
|
||||
$data['javascript'] = array('interior_menu');
|
||||
$data['csik']=array('home','buy');
|
||||
|
||||
|
||||
$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(631);
|
||||
else
|
||||
$data['cimlap'] = $this->mpages->get_row(632);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Photo-Edition - Letöltés' : 'ARCHLine.XP Photo-Edition - Download';
|
||||
$data['tartalom']='photo/downloadv2';
|
||||
$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';
|
||||
if(hun())
|
||||
$data['csik']=array('főoldal','interior','támogatás');
|
||||
else
|
||||
$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(517);
|
||||
else
|
||||
$data['cimlap'] = $this->mpages->get_row(513);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Photo-Edition - 10 ok a vásárlásra' : 'ARCHLine.XP Photo-Edition - 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 Photo-Edition Letöltés - Sikeres' : 'ARCHLine.XP Photo Edition Download - Successful';
|
||||
$data['tartalom']='photo/sentint';
|
||||
if(hun())
|
||||
$data['csik']=array('főoldal','letöltések');
|
||||
else
|
||||
$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);
|
||||
}
|
||||
|
||||
function gallery()
|
||||
{
|
||||
$this->load->model('mgallery');
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['csik']=array('home','gallery');
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Photo galériája' : 'ARCHLine.XP Gallery of the Photo-Edition';
|
||||
$data['javascript'] = array('interior_menu');
|
||||
$data['tartalom'] = 'photo/gallery';
|
||||
|
||||
// if( $_SERVER['REMOTE_ADDR'] == BENTIIPGALERIAHOZ && strstr($_SERVER['HTTP_USER_AGENT'],RENDSZERGALERIAHOZ) ){
|
||||
if(hun())
|
||||
$nyelv = "hun";
|
||||
else
|
||||
$nyelv = "eng";
|
||||
$data['galeriak'] = $this->mgallery->get_all($nyelv,'photo');
|
||||
$this->load->view('site_new',$data);
|
||||
// }
|
||||
// else
|
||||
// $this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,818 @@
|
||||
<?php
|
||||
class Photo_index extends Controller
|
||||
{
|
||||
function Photo_index()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$this->load->model('minterview');
|
||||
|
||||
if(hun()){
|
||||
$data['page'] = $page=$this->mpages->get_row(516);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['page'] = $page=$this->mpages->get_row(503);
|
||||
}
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Photo Edition program' : 'ARCHLine.XP Photo Edition Software';
|
||||
$data['tartalom'] = 'photo/index';
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway', 'interior_menu', 'interior_banner');
|
||||
|
||||
$data['csik']=array('home','products');
|
||||
|
||||
$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 videos()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Interior Belsõépítész program - Videók' : 'ARCHLine.XP Interior Design Software - Videos';
|
||||
$data['tartalom'] = 'interior/videos';
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway', 'interior_menu', 'show_slide', 'tooltip', 'interior_banner');
|
||||
|
||||
if(hun()){
|
||||
$data['cimlap'] = $this->mpages->get_row(475);
|
||||
} else {
|
||||
$data['cimlap'] = $this->mpages->get_row(476);
|
||||
}
|
||||
|
||||
$data['csik']=array('home','videos');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function tutorials()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Interior Belsõépítész program - Oktatóvideók' : 'ARCHLine.XP Interior Design Software - Tutorials';
|
||||
$data['tartalom'] = 'interior/tutorials';
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway', 'interior_menu', 'show_slide', 'tooltip', '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()
|
||||
{
|
||||
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 drivers()
|
||||
{
|
||||
$this->load->model('mdownloads');
|
||||
$this->load->model('mctr');
|
||||
|
||||
$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']='interior/list2';
|
||||
$data['csik']=array('home','interior','drivers');
|
||||
$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 gallery()
|
||||
{
|
||||
$this->load->model('mgallery');
|
||||
|
||||
if(!$this->uri->segment(3))
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['csik']=array('home','gallery');
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Interior Multimédia' : 'ARCHLine.XP Interior Multimedia';
|
||||
$data['javascript'] = array('interior_menu');
|
||||
$data['tartalom'] = 'interior/gallery';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
else
|
||||
{
|
||||
$folder = $this->uri->segment(3);
|
||||
if($folder && $this->mgallery->checkFolder($folder))
|
||||
{
|
||||
//create thumbs if they are missing
|
||||
$this->mgallery->prepImages($folder);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Interior Belsõépítész program - Galéria' : 'ARCHLine.XP Interior Design Software - Gallery';
|
||||
|
||||
$data['tartalom'] = 'interior/gallery';
|
||||
$data['javascript'] = array(
|
||||
'interior_menu',
|
||||
'fancybox/jquery-1.3.2.min',
|
||||
'fancybox/jquery.easing.1.3',
|
||||
'fancybox/jquery.fancybox-1.2.1.pack',
|
||||
'fancybox/fancy'
|
||||
);
|
||||
|
||||
$data['style'] = array('fancybox');
|
||||
|
||||
//set the folder's name
|
||||
$data['folder'] = $folder;
|
||||
|
||||
//load images from the folder
|
||||
$data['images'] = $this->mgallery->getImages($folder);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
else
|
||||
{
|
||||
redirect('interior');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function events()
|
||||
{
|
||||
$this->load->model('mevents');
|
||||
|
||||
$data['counties'] = array(
|
||||
-1 => '-- válasszon --',
|
||||
'Bács-Kiskun' => 'Bács-Kiskun',
|
||||
'Baranya' => 'Baranya',
|
||||
'Békés' => 'Békés',
|
||||
'Borsod-Abaúj-Zemplén' => 'Borsod-Abaúj-Zemplén',
|
||||
'Budapest' => 'Budapest',
|
||||
'Csongrád' => 'Csongrád',
|
||||
'Fejér' => 'Fejér',
|
||||
'Gyõr-Moson-Sopron' => 'Gyõr-Moson-Sopron',
|
||||
'Hajdú-Bihar' => 'Hajdú-Bihar',
|
||||
'Heves' => 'Heves',
|
||||
'Jász-Nagykun-Szolnok' => 'Jász-Nagykun-Szolnok',
|
||||
'Komárom-Esztergom' => 'Komárom-Esztergom',
|
||||
'Nógrád' => 'Nógrád',
|
||||
'Pest' => 'Pest',
|
||||
'Somogy' => 'Somogy',
|
||||
'Szabolcs-Szatmár-Bereg' => 'Szabolcs-Szatmár-Bereg',
|
||||
'Tolna' => 'Tolna',
|
||||
'Vas' => 'Vas',
|
||||
'Veszprém' => 'Veszprém',
|
||||
'Zala' => 'Zala'
|
||||
);
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Bemutatók' : 'ARCHLine.XP CAD Software - Events';
|
||||
$data['tartalom']='interior/events';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
if(hun())
|
||||
$data['javascript'] = array('events');
|
||||
|
||||
$data['events'] = $this->mevents->get_latest('30',$this->muser->user['lang']);
|
||||
|
||||
$data['aktiv']=2;
|
||||
|
||||
$data['faqs'] = $this->mevents->get_latest('faq_date');
|
||||
|
||||
$error = false;
|
||||
|
||||
if($this->input->post('do')!=false)
|
||||
{
|
||||
if(hun())
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','kamsz','county','fax','email','comment','cim');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev' && $a!='kamsz' && $a!='county')
|
||||
{
|
||||
$error = "Minden vastaggal jelölt mezõt ki kell tölteni ($a hiányzik)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hibás azonosító: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($tomb['kamsz']!='' && $tomb['county']==-1)
|
||||
{
|
||||
$error = "A kamarai névjegyzéki számhoz meg kell adnia a megyét is.";
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hiábás esemény azonosító';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$arr = array('event_id','nev','pron','cegnev','cim','tel','fax','email','comment','other');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a=='tel' && $a =='nev' && $a=='cegnev')
|
||||
{
|
||||
$error = "You have to fill all form fields marked with bold text ($a is missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($a=='event_id' && !is_numeric($tomb[$a]))
|
||||
{
|
||||
$error = 'Invalid id: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!is_numeric($tomb['event_id']))
|
||||
{
|
||||
$error = 'You have not selected an event, please select one!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($tomb['event_id']);
|
||||
}
|
||||
|
||||
|
||||
$egyebcad = array('AutoCAD','VectorWorks','ArchiCAD','JWCAD','ARCHITREND','GoogleSketchup','DRACAD','SuperSoft','???');
|
||||
|
||||
$valasztott = array();
|
||||
|
||||
foreach($egyebcad as $key => $cad)
|
||||
{
|
||||
$no = $key+1;
|
||||
$keres = 'cb'.$no;
|
||||
|
||||
if($this->input->post($keres)=='on')
|
||||
{
|
||||
$valasztott[]=$cad;
|
||||
}
|
||||
}
|
||||
|
||||
if(count($valasztott)==0)
|
||||
{
|
||||
$tomb['egyebcad']=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['egyebcad']=$valasztott;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','fax','email','comment','cim');
|
||||
$names = array('event_id' => 'event id', 'nev' => 'name', 'cegnev' => 'company name', 'varos' => 'city', 'irsz' => 'zip code', 'tel' => 'phone number', 'fax' => 'fax number', 'email' => 'e-mail', 'comment' => 'comment', 'cim' => 'address');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev')
|
||||
{
|
||||
$error = "Fill out every bold field ({$names[$a]} missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'You have to specify an event!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(!$error)
|
||||
{
|
||||
$this->load->library('email');
|
||||
$this->load->helper('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
|
||||
//Kintre:
|
||||
$this->email->clear();
|
||||
$mailnek['mailcontent'] = 'support/eventmail_ki';
|
||||
|
||||
$mailnek['esemeny']=$tomb['esemeny'];
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
$bem = $this->mevents->get_row($e[0]);
|
||||
$mailnek['datum'] = $bem->event_ev.'-'.$bem->event_ho.'-'.$bem->event_nap;
|
||||
$mailnek['datum'] = $e[1];
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Regisztracio bemutatora');
|
||||
$this->email->message($this->load->view('mail',$mailnek,true));
|
||||
$this->email->send($tomb['email'],'smtp');
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Event SignUp Notification');
|
||||
$this->email->message($this->load->view('support/eventmail',$tomb,true));
|
||||
$this->email->send('living-cg@leaf.ocn.ne.jp','smtp');
|
||||
}
|
||||
|
||||
elseif(eng()){
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$mailnek=$tomb;
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@archlinexp.com','smtp');
|
||||
|
||||
//Kintre
|
||||
/*
|
||||
$this->email->clear();
|
||||
$mailnek['mailcontent'] = 'support/eventmail_ki';
|
||||
|
||||
$bem = $this->mevents->get_row($e[0]);
|
||||
$mailnek['datum'] = $bem->event_ev.'-'.$bem->event_ho.'-'.$bem->event_nap;
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Registration for free traning session at BIDA');
|
||||
$this->email->message($this->load->view('mail_eng',$mailnek,true));
|
||||
//$this->email->send($tomb['email'],'smtp');
|
||||
*/
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@archlinexp.com','smtp');
|
||||
}
|
||||
|
||||
redirect('interior/eventok');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$data['error']=$error;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function eventok()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['javascript'] = array('interior_menu');
|
||||
$data['tartalom']='interior/eventok';
|
||||
$data['csik']=array('home','support');
|
||||
$data['aktiv']=2;
|
||||
|
||||
$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 interview()
|
||||
{
|
||||
$id = $this->uri->segment(3);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Interior Belsõépítész program - Interjúk' : 'ARCHLine.XP Interior Design Software - Interviews';
|
||||
|
||||
if($id)
|
||||
{
|
||||
$data['interview'] = $this->load->view('interview/' . $id, null, true);
|
||||
$data['tartalom'] = 'interview/index';
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway', 'interview', 'interior_menu', 'interview/loader');
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['cimlap'] = $this->mpages->get_row(368);
|
||||
$data['tartalom'] = 'interior/interview';
|
||||
$data['javascript'] = array('jquery.color', 'interview', 'interior_menu');
|
||||
}
|
||||
|
||||
$data['style'] = array('interview');
|
||||
$data['csik']=array('home','interview');
|
||||
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
function sentint()
|
||||
{
|
||||
$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 ticket()
|
||||
{
|
||||
$do = $this->input->post('do');
|
||||
|
||||
if($do && $do=='ticket')
|
||||
{
|
||||
$fajlnev = "ticket_a.txt";
|
||||
$fa = fopen( $fajlnev, "r" ) or die("$fajlnev nem nyitható meg");
|
||||
$db = fgets( $fa, 1024);
|
||||
fclose($fa);
|
||||
|
||||
if($db > 0){
|
||||
|
||||
$fajlnev = "ticket_a.txt";
|
||||
chmod($fajlnev, 0777);
|
||||
$fa = fopen( $fajlnev, "w" ) or die("$fajlnev nem nyitható meg");
|
||||
fwrite ( $fa, ($db-1));
|
||||
fclose( $fa );
|
||||
|
||||
$name = $this->input->post('name');
|
||||
$address = $this->input->post('address');
|
||||
$city = $this->input->post('city');
|
||||
$zip = $this->input->post('zip');
|
||||
$email = $this->input->post('email');
|
||||
|
||||
if(!$name || !$address || !$city || !$zip || !$email || $name=='' || $address=='' || $city=='' || $zip=='' || $email=='')
|
||||
redirect('interior/ticket');
|
||||
|
||||
$mail_vars['event'] = "Awards Preview Evening Invitation ";
|
||||
$mail_vars['name'] = $name;
|
||||
$mail_vars['address'] = $address;
|
||||
$mail_vars['city'] = $city;
|
||||
$mail_vars['zip'] = $zip;
|
||||
$mail_vars['email'] = $email;
|
||||
$mail_vars['jegydb'] = $db-1;
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->clear();
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject('ARCHLine.XP Kedvezmenyes Belepo');
|
||||
$this->email->message($this->load->view('mail/interior_ticket', $mail_vars, true));
|
||||
|
||||
//$this->email->send('margo.flaisz@cadline.hu', 'smtp');
|
||||
$this->email->send('rita.vasifodor@archlinexp.com', 'smtp');
|
||||
//$this->email->send('sztikee@gmail.com', 'smtp');
|
||||
|
||||
|
||||
$this->email->clear();
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject('ARCHLine.XP Kedvezmenyes Belepo');
|
||||
$this->email->message($this->load->view('mail/interior_ticket', $mail_vars, true));
|
||||
$this->email->send('info@cadline.hu', 'smtp');
|
||||
//$this->email->send('sztikee@gmail.com', 'smtp');
|
||||
|
||||
|
||||
$data['tartalom'] = 'interior/ticket_sent';
|
||||
}else{
|
||||
print "Nincs tobb jegy";
|
||||
$data['tartalom'] = 'interior/ticket_sent_0';
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->load->view('site', $data);
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['tartalom'] = 'interior/ticket';
|
||||
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
}
|
||||
|
||||
function ticketcomp()
|
||||
{
|
||||
$do = $this->input->post('do');
|
||||
|
||||
if($do && $do=='ticket')
|
||||
{
|
||||
$fajlnev = "ticket_c.txt";
|
||||
$fa = fopen( $fajlnev, "r" ) or die("$fajlnev nem nyitható meg");
|
||||
$db = fgets( $fa, 1024);
|
||||
fclose($fa);
|
||||
|
||||
if($db > 0){
|
||||
|
||||
$fajlnev = "ticket_c.txt";
|
||||
chmod($fajlnev, 0777);
|
||||
$fa = fopen( $fajlnev, "w" ) or die("$fajlnev nem nyitható meg");
|
||||
fwrite ( $fa, ($db-1));
|
||||
fclose( $fa );
|
||||
|
||||
$name = $this->input->post('name');
|
||||
$address = $this->input->post('address');
|
||||
$city = $this->input->post('city');
|
||||
$zip = $this->input->post('zip');
|
||||
$email = $this->input->post('email');
|
||||
|
||||
if(!$name || !$address || !$city || !$zip || !$email || $name=='' || $address=='' || $city=='' || $zip=='' || $email=='')
|
||||
redirect('interior/ticketcomp');
|
||||
|
||||
$mail_vars['event'] = "Complimentary Ticket ";
|
||||
$mail_vars['name'] = $name;
|
||||
$mail_vars['address'] = $address;
|
||||
$mail_vars['city'] = $city;
|
||||
$mail_vars['zip'] = $zip;
|
||||
$mail_vars['email'] = $email;
|
||||
$mail_vars['jegydb'] = ($db-1);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->clear();
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject('ARCHLine.XP Kedvezmenyes Belepo');
|
||||
$this->email->message($this->load->view('mail/interior_ticket', $mail_vars, true));
|
||||
|
||||
//$this->email->send('margo.flaisz@cadline.hu', 'smtp');
|
||||
$this->email->send('rita.vasifodor@archlinexp.com', 'smtp');
|
||||
//$this->email->send('sztikee@gmail.com', 'smtp');
|
||||
|
||||
|
||||
$this->email->clear();
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject('ARCHLine.XP Kedvezmenyes Belepo');
|
||||
$this->email->message($this->load->view('mail/interior_ticket', $mail_vars, true));
|
||||
$this->email->send('info@cadline.hu', 'smtp');
|
||||
//$this->email->send('sztikee@gmail.com', 'smtp');
|
||||
|
||||
|
||||
$data['tartalom'] = 'interior/ticket_sent';
|
||||
}else{
|
||||
//print "Nincs tobb jegy";
|
||||
$data['tartalom'] = 'interior/ticket_sent_0';
|
||||
}
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['tartalom'] = 'interior/ticketcomp';
|
||||
|
||||
$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);
|
||||
}
|
||||
|
||||
function academic(){
|
||||
$data['title'] = 'ARCHLine.XP Academic';
|
||||
$data['tartalom']='academic/index';
|
||||
$data['csik']=array('home','academic');
|
||||
|
||||
/*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(452);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
// 2010 nov. 13-a elotti interior fooldal
|
||||
function old(){
|
||||
$this->load->model('minterview');
|
||||
|
||||
if(eng()){
|
||||
$data['page'] = $page=$this->mpages->get_row(474);
|
||||
}
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Interior Belsõépítész program' : 'ARCHLine.XP Interior Design Software';
|
||||
$data['tartalom'] = 'interior/index_old';
|
||||
$data['javascript'] = array('intkit/JavaScriptFlashGateway', 'interior_menu', 'interior_banner');
|
||||
|
||||
$data['csik']=array('home','products');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,821 @@
|
||||
<?php
|
||||
class Presentation extends Controller
|
||||
{
|
||||
function Presentation(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
$this->online();
|
||||
}
|
||||
|
||||
function online(){
|
||||
$data['title'] = 'ARCHLine.XP Online Presentation';
|
||||
$data['tartalom'] = 'presentation/online';
|
||||
$data['javascript'] = array('regformcheck');
|
||||
$data['csik'] = array('home','Presentation');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function submit(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
foreach( $_POST as $k=>$v )
|
||||
$$k = $v;
|
||||
|
||||
if( !$strEMail || $url ){
|
||||
$record->osztaly = "Presentation";
|
||||
$record->fv = "submit";
|
||||
$record->hiba = "Nincs e-mail: ".$strEMail."\nvagy van url: ".$url."\n".print_r($_POST,true);
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($strEMail,'eng');
|
||||
|
||||
if( !$nUserID ){
|
||||
// user beszúrás
|
||||
$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']);
|
||||
|
||||
$tomb->strName = $strName1.' '.$strName2;
|
||||
$tomb->strCompany = $strCompany;
|
||||
$tomb->strTel = $strTel;
|
||||
$tomb->strEMail = $strEMail;
|
||||
$tomb->strCity = $strCity;
|
||||
$tomb->strStreet = $strStreet;
|
||||
$tomb->strZip = $strZip;
|
||||
$tomb->nUserProf = $nUserProf;
|
||||
|
||||
$tomb->nUserType = 0;
|
||||
|
||||
$tomb->nCtrID = array_search(strtolower($ctrName), $countries);
|
||||
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
|
||||
|
||||
// email beszúrás
|
||||
$tomb2->email = $strEMail;
|
||||
$tomb2->nUserID = $nUserID;
|
||||
$tomb2->default = "1";
|
||||
$tomb2->active = "1";
|
||||
$tomb2->deleted = "0";
|
||||
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
|
||||
}
|
||||
|
||||
$info = "Phone: ".$strTel.", ";
|
||||
|
||||
if( $time != "" )
|
||||
$info .= "\n Preferred times: ".$time.", ";
|
||||
|
||||
if( $days != "" && $days != array() ){
|
||||
$info .= "\n Preferred days: ";
|
||||
foreach( $days as $v ){
|
||||
$info .= $v.", ";
|
||||
}
|
||||
}
|
||||
|
||||
if( $softwares != "" && $softwares != array() ){
|
||||
$info .= " Software used: ";
|
||||
foreach( $softwares as $v ){
|
||||
$info .= $v.", ";
|
||||
}
|
||||
}
|
||||
|
||||
if( $interested != "" && $interested != array() ){
|
||||
$info .= " Interested in: ";
|
||||
foreach( $interested as $v ){
|
||||
$info .= $v.", ";
|
||||
}
|
||||
}
|
||||
|
||||
if( $purchase != "" ){
|
||||
$info .= "\n I intend to purchase a CAD: ".$purchase.", ";
|
||||
}
|
||||
|
||||
if( $addnotes != "" && $addnotes != "Include any additional notes" ){
|
||||
$info .= "\nAdditional notes: ".$addnotes;
|
||||
}
|
||||
|
||||
$this->mclusers->addEvent($nUserID, "133", $info, 'eng');
|
||||
|
||||
$page = $this->mpages->get_row(642);
|
||||
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
|
||||
$this->email->subject("ARCHLine.XP Online Presentation");
|
||||
$this->email->message("New Request: ".$strName1.' '.$strName2.", ".$strTel.", ".$strEMail."<br><br>".$info);
|
||||
|
||||
$this->email->send('kitti.toth@cadline.hu', 'smtp');
|
||||
|
||||
$this->email->clear();
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'Cadline Website');
|
||||
$this->email->subject('Request: Online Presentation');
|
||||
$this->email->message($page->page_body);
|
||||
|
||||
$this->email->send($strEMail, 'smtp');
|
||||
|
||||
if( !$this->input->post('mobile') )
|
||||
redirect('page/show/480');
|
||||
else
|
||||
redirect('mobile/page/480');
|
||||
|
||||
}
|
||||
|
||||
function webinar(){
|
||||
$this->load->model('mevents');
|
||||
$this->load->library('dateclass');
|
||||
|
||||
if($this->muser->user['lang'] == "hun")
|
||||
$lang = 1;
|
||||
else
|
||||
$lang = 2;
|
||||
|
||||
$main_events = $this->mevents->getWorkshop($lang, true);
|
||||
|
||||
$urlveg = $this->uri->segment(3);
|
||||
|
||||
$data['event'] = $this->db->query("SELECT * FROM events_new_main WHERE urlname = '".$urlveg."' AND language_id = ".$lang)->row();
|
||||
|
||||
if( $data['event'] ){
|
||||
$data['dates'] = $this->db->query("SELECT * FROM events_new WHERE event_main_id = '".$data['event']->event_main_id."' AND start_ts > ".time()." AND (online IS NULL OR online = '0') AND active = 1 AND deleted = 0 ORDER BY start_ts")->result();
|
||||
$data['datesonline'] = $this->db->query("SELECT * FROM events_new WHERE event_main_id = '".$data['event']->event_main_id."' AND start_ts > ".time()." AND online = '1' AND active = 1 AND deleted = 0 ORDER BY start_ts")->result();
|
||||
|
||||
$results = $this->mevents->getEventDatesByDay($data['event']->event_main_id, true);
|
||||
$resultsonline = $this->mevents->getEventDatesByDay($data['event']->event_main_id, true, true);
|
||||
$data['dates']->events = $results['events'];
|
||||
$data['dates']->times = $results['times'];
|
||||
$data['datesonline']->events = $resultsonline['events'];
|
||||
$data['datesonline']->times = $resultsonline['times'];
|
||||
foreach($data['dates'] as $date){
|
||||
$date->times->able_to_reg = $this->mevents->checkEventLimit($date->event_id);
|
||||
}
|
||||
foreach($data['datesonline'] as $date){
|
||||
$date->times->able_to_reg = $this->mevents->checkEventLimit($date->event_id);
|
||||
}
|
||||
|
||||
$data['altalanos'] = false;
|
||||
|
||||
if( $this->uri->segment(4) == "register" ){
|
||||
$this->phpsession->save('wshiba'," ");
|
||||
}
|
||||
|
||||
if(in_array($urlveg,$kezdo))
|
||||
$data['arkat'] = 'event_arkezdo';
|
||||
else
|
||||
$data['arkat'] = 'event_arhalado';
|
||||
|
||||
} // Ha nem workshop tema
|
||||
else{
|
||||
$data['event'] = $this->db->query("SELECT * FROM pages WHERE page_url = '".$urlveg."' AND page_lang = '".$this->muser->user['lang']."'")->row();
|
||||
|
||||
$data['altalanos'] = true;
|
||||
}
|
||||
|
||||
$data['akt'] = $urlveg;
|
||||
|
||||
$data['tartalom'] = 'presentation/webinar';
|
||||
|
||||
$cimfolyt = $data['event']->name;
|
||||
if( strstr($_SERVER[ 'REQUEST_URI'], "/hu/") )
|
||||
$cimfolyt = str_replace(array("(1-es szint)","(2-es szint)","(3-as szint)"),array("","",""),$data['event']->name);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Interior Workshop - '.$cimfolyt : 'ARCHLine.XP Interior - '.$data['event']->name;
|
||||
$data['javascript'] = array('jquery_ui','fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('jquery.ui','fancybox2','workshop');
|
||||
// $data['csik'] = array('home', 'courses');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function submitwebinar(){
|
||||
$this->load->model('mclusers');
|
||||
$this->load->model('mevents');
|
||||
|
||||
foreach( $_POST as $k=>$v )
|
||||
$$k = $v;
|
||||
|
||||
if( !$email || $url ){
|
||||
$record->osztaly = "Presentation";
|
||||
$record->fv = "submitwebinar";
|
||||
$record->hiba = "Nincs e-mail: ".$email."\nvagy van url: ".$url."\n".print_r($_POST,true);
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
return;
|
||||
}
|
||||
|
||||
$info = "Phone: ".$tel.", ";
|
||||
|
||||
if( $softwares != "" && $softwares != array() ){
|
||||
$info .= " Software used: ";
|
||||
foreach( $softwares as $v ){
|
||||
$info .= $v.", ";
|
||||
}
|
||||
}
|
||||
|
||||
if( $purchase != "" ){
|
||||
$info .= "\n I intend to purchase a CAD: ".$purchase.", ";
|
||||
}
|
||||
|
||||
|
||||
if( $comment != "" ){
|
||||
$info .= "\nComment: ".mysql_real_escape_string($comment);
|
||||
}
|
||||
|
||||
if(hun())
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,'hun');
|
||||
else
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,'eng');
|
||||
|
||||
if( !$nUserID ){
|
||||
// user beszúrás
|
||||
$tomb->strName = $nev;
|
||||
$tomb->strTel = $tel;
|
||||
$tomb->strMobil = $tel;
|
||||
$tomb->strEMail = $email;
|
||||
$tomb->strZip = $irsz;
|
||||
$tomb->strCity = $varos;
|
||||
$tomb->strStreet = $cim;
|
||||
$tomb->nUserType = 0;
|
||||
$tomb->nCtrID = 0;
|
||||
$tomb->strCompany = $cegnev;
|
||||
$tomb->strInfo = "";
|
||||
|
||||
if(hun())
|
||||
$nUserID = $this->mclusers->addUserHun($tomb);
|
||||
else
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
|
||||
|
||||
// email beszúrás
|
||||
$tomb2->email = $email;
|
||||
$tomb2->nUserID = $nUserID;
|
||||
$tomb2->default = "1";
|
||||
$tomb2->active = "1";
|
||||
$tomb2->deleted = "0";
|
||||
|
||||
if(hun())
|
||||
$this->mclusers->addUserEmailHun($tomb2);
|
||||
else
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
|
||||
}
|
||||
|
||||
$main_event_details = $this->mevents->getMainEventDetails($event_main_id);
|
||||
|
||||
// ha nincs időpont
|
||||
if(!$event_id){
|
||||
header("Location: ".$_SERVER['HTTP_REFERER']);
|
||||
|
||||
}// ha időpontot kér
|
||||
elseif($event_id=="online"){
|
||||
$info .= "Request an appointment ";
|
||||
|
||||
$info .= "Webinar kérés".", subject: ".$main_event_details->name;
|
||||
// $this->mclusers->levelesemeny($email, "presentation", "submitwebinar", 172, "adf89dfdDEd", $info, "eng", $info);
|
||||
|
||||
$lap = $this->mpages->get_row($main_event_details->reg_success_mail_page);
|
||||
$lap->page_body = str_ireplace('#reg_name#', $nev, $lap->page_body);
|
||||
$data['cimlap'] = $lap;
|
||||
|
||||
}// ha egy kiírt időpontra jelentkezik
|
||||
else{
|
||||
|
||||
$post['event_main_id'] = $event_main_id;
|
||||
$post['event_id'] = $event_id;
|
||||
$post['nev'] = $nev;
|
||||
$post['cegnev'] = $cegnev;
|
||||
$post['irsz'] = $irsz;
|
||||
$post['varos'] = $varos;
|
||||
$post['cim'] = $cim;
|
||||
$post['tel'] = $tel;
|
||||
$post['comment'] = $comment;
|
||||
$post['email'] = $email;
|
||||
|
||||
$result = $this->mevents->EventRegistration($post);
|
||||
$datum = date('Y-m-d', time());
|
||||
|
||||
if($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);
|
||||
}else{
|
||||
$event_details = $this->mevents->getEventDetailsByID($event_id);
|
||||
$start = date('Y-m-d H:i',$event_details->start_ts);
|
||||
$end = date('Y-m-d H:i',$event_details->end_ts);
|
||||
|
||||
$lap = $this->mpages->get_row($main_event_details->reg_success_page);
|
||||
$lap->page_body = str_ireplace('#reg_name#', $nev, $lap->page_body);
|
||||
$data['cimlap'] = $lap;
|
||||
|
||||
$datum = date('F d, Y \&\n\b\s\p\;\&\n\b\s\p\;H:i a',$event_details->start_ts)." - ".date('H:i a',$event_details->end_ts)." GMT";
|
||||
$page = $this->mpages->get_row($main_event_details->reg_success_mail_page);
|
||||
$page->page_body = str_ireplace('#webinarcim#', $main_event_details->name, $page->page_body);
|
||||
$page->page_body = str_ireplace('#datum#', $datum, $page->page_body);
|
||||
|
||||
$info .= $main_event_details->name;
|
||||
$datum = date('Y-m-d', $event_details->start_ts);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(hun()){
|
||||
$query = "INSERT INTO `clusers`.`cl_history` VALUES (NULL, ".$nUserID.", 0, '".$datum."', 'web', '".$info."', 0)";
|
||||
$this->db->query($query);
|
||||
}
|
||||
else{
|
||||
$this->mclusers->addEvent($nUserID, 172, $info, 'eng', $datum);
|
||||
}
|
||||
|
||||
if(!$page) $page = $this->mpages->get_row(642);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
|
||||
$this->email->subject("ARCHLine.XP Webinar");
|
||||
$this->email->message("New Request: ".$nev.", ".$tel.", ".$email."<br><br>".$info);
|
||||
|
||||
$this->email->send('kitti.toth@cadline.hu', 'smtp');
|
||||
// $this->email->send('sztikee@gmail.com', 'smtp');
|
||||
|
||||
$this->email->clear();
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
|
||||
$this->email->subject('ARCHLine.XP Webinar');
|
||||
$this->email->message($page->page_body);
|
||||
|
||||
$this->email->send($email, 'smtp');
|
||||
|
||||
$data['tartalom'] = 'events/registration_success';
|
||||
|
||||
$this->load->view('site', $data);
|
||||
|
||||
//redirect('page/show/480');
|
||||
}
|
||||
|
||||
|
||||
function kbb(){
|
||||
$this->load->model('mevents');
|
||||
$this->load->library('dateclass');
|
||||
|
||||
$data['lang'] = $this->muser->user['lang'];
|
||||
$data['javascript'] = array('jquery_ui');
|
||||
$data['style'] = array('jquery.ui');
|
||||
$data['error'] = false;
|
||||
$data['title'] = 'ARCHLine.XP presentations at KBB London 2013';
|
||||
$data['tartalom']='presentation/kbb';
|
||||
|
||||
$results = $this->mevents->getEventDatesByDay(60, true);
|
||||
// print_r($results);
|
||||
|
||||
$events2 = array();
|
||||
$eventsxxx = $this->mevents->getEventsByMainEventID(60, 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);
|
||||
|
||||
$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('construma2012');
|
||||
$post['event_main_id'] = 60;
|
||||
|
||||
if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
|
||||
$data['error'] = implode('<br />', $error);
|
||||
} else {
|
||||
//insert registration into the database
|
||||
$result = $this->mevents->EventRegistration($post);
|
||||
|
||||
//collecting main event details
|
||||
$main_event_details = $this->mevents->getMainEventDetails(60);
|
||||
|
||||
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' => $main_event_details
|
||||
);
|
||||
|
||||
//send an email to cadline
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'Cadline Website');
|
||||
$this->email->subject('ARCHLine.XP Presentation 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);
|
||||
$page->page_body = str_ireplace('#reg_name#',$post['nev'],$page->page_body);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'ARCHLine.XP');
|
||||
$this->email->subject('ARCHLine.XP Presentation Registration');
|
||||
$this->email->message($page->page_body);
|
||||
|
||||
$this->email->send($post['email'], 'smtp');
|
||||
|
||||
// kek konyv esemeny
|
||||
$this->load->model('mclusers');
|
||||
$email = $post['email'];
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,'eng');
|
||||
|
||||
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->addUserEng($tomb);
|
||||
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$tomb2['email'] = $post['email'];
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
|
||||
|
||||
$tomb3['nUserID'] = $nUserID;
|
||||
$tomb3['nTopicID'] = 113;
|
||||
$tomb3['dateEvent'] = date('Y-m-d', $event_details->start_ts);
|
||||
$tomb3['strPlace'] = "web";
|
||||
$tomb3['strInfo'] = "KBB presentation, ".$event_details->name." ".$idopontkimenolevelbe;
|
||||
$tomb3['nManagerID'] = 0;
|
||||
$this->db->insert('clusers_eng.cl_history',$tomb3);
|
||||
|
||||
//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 birmingham(){
|
||||
$this->load->model('mevents');
|
||||
$this->load->library('dateclass');
|
||||
|
||||
$data['lang'] = $this->muser->user['lang'];
|
||||
$data['javascript'] = array('jquery_ui');
|
||||
$data['style'] = array('jquery.ui');
|
||||
$data['error'] = false;
|
||||
$data['title'] = 'ARCHLine.XP presentations at Ineriors UK 2014';
|
||||
$data['tartalom']='presentation/birmingham';
|
||||
|
||||
$data['mainevent'] = $this->db->query("SELECT * FROM events_new_main WHERE event_main_id=64")->row();
|
||||
|
||||
$results = $this->mevents->getEventDatesByDay(64, true);
|
||||
|
||||
$events2 = array();
|
||||
$eventsxxx = $this->mevents->getEventsByMainEventID(64, 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;
|
||||
}
|
||||
|
||||
$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('construma2012');
|
||||
$post['event_main_id'] = 62;
|
||||
|
||||
if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
|
||||
$data['error'] = implode('<br />', $error);
|
||||
} else {
|
||||
//insert registration into the database
|
||||
$result = $this->mevents->EventRegistration($post);
|
||||
|
||||
//collecting main event details
|
||||
$main_event_details = $this->mevents->getMainEventDetails(62);
|
||||
|
||||
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' => $main_event_details
|
||||
);
|
||||
|
||||
//send an email to cadline
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'Cadline Website');
|
||||
$this->email->subject('ARCHLine.XP Presentation 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);
|
||||
$page->page_body = str_ireplace('#reg_name#',$post['nev'],$page->page_body);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'ARCHLine.XP');
|
||||
$this->email->subject('ARCHLine.XP Presentation Registration');
|
||||
$this->email->message($page->page_body);
|
||||
|
||||
$this->email->send($post['email'], 'smtp');
|
||||
|
||||
// kek konyv esemeny
|
||||
$this->load->model('mclusers');
|
||||
$email = $post['email'];
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,'eng');
|
||||
|
||||
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->addUserEng($tomb);
|
||||
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$tomb2['email'] = $post['email'];
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
|
||||
$eseminfo = "Birmingham presentation, ".$event_details->name.", ".$post['comment'];
|
||||
$esemdatum = date('Y-m-d', $event_details->start_ts);
|
||||
$this->mclusers->addEvent($nUserID, 134, $eseminfo, 'eng', $esemdatum);
|
||||
|
||||
|
||||
//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 decorex(){
|
||||
$this->load->model('mevents');
|
||||
$this->load->library('dateclass');
|
||||
|
||||
$data['lang'] = $this->muser->user['lang'];
|
||||
$data['javascript'] = array('jquery_ui');
|
||||
$data['style'] = array('jquery.ui');
|
||||
$data['error'] = false;
|
||||
$data['title'] = 'ARCHLine.XP presentations at Decorex 2013';
|
||||
$data['tartalom']='presentation/decorex';
|
||||
|
||||
$results = $this->mevents->getEventDatesByDay(62, true);
|
||||
// print_r($results);
|
||||
|
||||
$events2 = array();
|
||||
$eventsxxx = $this->mevents->getEventsByMainEventID(62, 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);
|
||||
|
||||
$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('construma2012');
|
||||
$post['event_main_id'] = 62;
|
||||
|
||||
if($error = $this->mevents->eventFormCheck($post, $this->muser->user['lang'])){
|
||||
$data['error'] = implode('<br />', $error);
|
||||
} else {
|
||||
//insert registration into the database
|
||||
$result = $this->mevents->EventRegistration($post);
|
||||
|
||||
//collecting main event details
|
||||
$main_event_details = $this->mevents->getMainEventDetails(62);
|
||||
|
||||
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' => $main_event_details
|
||||
);
|
||||
|
||||
//send an email to cadline
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'Cadline Website');
|
||||
$this->email->subject('ARCHLine.XP Presentation 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);
|
||||
$page->page_body = str_ireplace('#reg_name#',$post['nev'],$page->page_body);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'ARCHLine.XP');
|
||||
$this->email->subject('ARCHLine.XP Presentation Registration');
|
||||
$this->email->message($page->page_body);
|
||||
|
||||
$this->email->send($post['email'], 'smtp');
|
||||
|
||||
// kek konyv esemeny
|
||||
$this->load->model('mclusers');
|
||||
$email = $post['email'];
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,'eng');
|
||||
|
||||
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->addUserEng($tomb);
|
||||
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$tomb2['email'] = $post['email'];
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
|
||||
$eseminfo = "Decorex presentation, ".$event_details->name.", ".$post['comment'];
|
||||
$esemdatum = date('Y-m-d', $event_details->start_ts);
|
||||
$this->mclusers->addEvent($nUserID, 134, $eseminfo, 'eng', $esemdatum);
|
||||
|
||||
|
||||
//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 decorex2(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$egyezes = "presentation/decorex";
|
||||
$info = "Decorex regisztráció megtekintve: archlinexp.com/presentation/decorex";
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "presentation", "decorex2", 172, $egyezes, $info, "eng");
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "presentation", "decorex2", 155, $egyezes, $info, "eng");
|
||||
|
||||
redirect("presentation/decorex");
|
||||
}
|
||||
|
||||
// online-short-course
|
||||
function shortcourse(){
|
||||
$data['page'] = $this->mpages->get_row(732);
|
||||
$data['title'] = 'ARCHLine.XP Short Course';
|
||||
$data['tartalom'] = 'page/show';
|
||||
$data['csik']=array('home','Short course');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
/* 2012-es ujdonsagok: leiras + bemutatora jelentkezes */
|
||||
function mindegymi(){
|
||||
$data['mobilink'] = "/mobile/newfeatures";
|
||||
|
||||
$data['tartalom'] = 'interior/ujdonsagok';
|
||||
|
||||
$data['title'] ='ARCHLine.XP 2012 Újdonságok és bemutatók';
|
||||
$data['javascript'] = array('jquery_ui','fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('jquery.ui','fancybox2');
|
||||
$data['csik'] = array('home','2012 Újdonságok');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
class Product extends Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->load->library('session');
|
||||
$this->load->library('PaypalExpress');
|
||||
$this->load->model('mproduct');
|
||||
|
||||
if ($_SESSION['user_id'] == '' && $this->uri->segment(2) != 'login') {
|
||||
//$_SESSION['prod_id'] = $this->uri->segment(3);
|
||||
//redirect('product/login');
|
||||
}
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
if ($this->uri->segment(2) != 'index')
|
||||
redirect('product/index');
|
||||
|
||||
/*if ($this->uri->segment(3) == '' || !is_numeric($this->uri->segment(3))) {
|
||||
$this->load->view('product/404.php');
|
||||
return;
|
||||
}*/
|
||||
|
||||
$product_id = $this->uri->segment(3);
|
||||
$payData = array();
|
||||
$payData['product'] = $this->mproduct->getProduct(687);
|
||||
|
||||
/*if (empty($payData['product'])) {
|
||||
$this->load->view('product/404.php');
|
||||
return;
|
||||
}*/
|
||||
|
||||
$this->load->view('product/index.php', $payData);
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
if ($_SESSION['user_id'] != '')
|
||||
redirect('product');
|
||||
|
||||
$username = $this->input->post('username');
|
||||
$password = $this->input->post('password');
|
||||
|
||||
$payData = array();
|
||||
|
||||
if ($_POST['login-btn']) {
|
||||
$user = $this->mpay->login($username, $password);
|
||||
|
||||
if (!$user) {
|
||||
$payData['error'] = 'Wrong username or password';
|
||||
} else {
|
||||
$_SESSION['user_id'] = $user->nUserID;
|
||||
redirect('product/index/' . $_SESSION['prod_id']);
|
||||
}
|
||||
}
|
||||
|
||||
$this->load->view('product/login.php', $payData);
|
||||
}
|
||||
|
||||
function success()
|
||||
{
|
||||
$this->load->view('pay/success.php');
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,285 @@
|
||||
<?php
|
||||
class Products extends Controller
|
||||
{
|
||||
function Products()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Építészeti tervezőprogram' : 'ARCHLine.XP Architect software';
|
||||
$data['tartalom']='products/index';
|
||||
$data['csik']=array('home','products');
|
||||
$data['mobilink'] = "/mobile/architect";
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$this->uj();
|
||||
return;
|
||||
|
||||
$data['cimlap']=$this->mpages->get_row(7);
|
||||
$data['javascript'] = array('comparison');
|
||||
}
|
||||
elseif(eng())
|
||||
{
|
||||
$data['cimlap']=$this->mpages->get_row(68);
|
||||
// $data['javascript'] = array('comparison');
|
||||
$data['javascript'] = array('jquery.corner');
|
||||
$data['tartalom'] = 'products/buy2';
|
||||
}
|
||||
elseif(be())
|
||||
{
|
||||
$data['cimlap']=$this->mpages->get_row(310);
|
||||
}
|
||||
elseif(cr())
|
||||
{
|
||||
$data['cimlap']=$this->mpages->get_row(217);
|
||||
}
|
||||
elseif(gr())
|
||||
{
|
||||
$data['cimlap']=$this->mpages->get_row(172);
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$data['cimlap']=$this->mpages->get_row(116);
|
||||
}
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function uj(){
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Építészeti tervezőprogram' : 'ARCHLine.XP Architect software';
|
||||
$data['tartalom']='interior/buy2';
|
||||
$data['javascript'] = array('jquery.corner');
|
||||
$data['csik']=array('home','products');
|
||||
$data['mobilink'] = "/mobile/architect";
|
||||
$data['cimlap']=$this->mpages->get_row(762);
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function modules()
|
||||
{
|
||||
$data['tartalom']='products/modules';
|
||||
$data['csik']=array('home','products', 'modules');
|
||||
|
||||
$id = $this->uri->rsegment(3); //$this->uri->segment(3)
|
||||
if(!is_numeric($id))
|
||||
{
|
||||
redirect("products");
|
||||
}
|
||||
|
||||
$data['cimlap']=$this->mpages->get_row($id);
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Modulok' : 'ARCHLine.XP Modules';
|
||||
|
||||
$data['meta']['desc'] = 'ARCHLine.XP - '.$data['cimlap']->page_title.": ".trim(str_replace("\n"," ",substr(($str=wordwrap(strip_tags($data['cimlap']->page_body),80,'$$')),0,strpos($str,'$$'))." ..."));
|
||||
$data['meta']['keyw'] = ', 11111, '.$data['cimlap']->page_title;
|
||||
$data['title'] .= ' - '.$data['cimlap']->page_title;
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
function japanxp()
|
||||
{
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','ARCHLine.XP 2008');
|
||||
|
||||
|
||||
$data['cimlap']=$this->mpages->get_row(142);
|
||||
|
||||
$data['aktiv']=8;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function japanxppro()
|
||||
{
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','ARCHLine.XP 2008 Professional');
|
||||
|
||||
|
||||
$data['cimlap']=$this->mpages->get_row(136);
|
||||
|
||||
$data['aktiv']=9;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function lt()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Verziók - LT' : 'ARCHLine.XP Versions - LT';
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','ARCHLine.XP 2008 LT');
|
||||
|
||||
if(hun())
|
||||
$data['cimlap']=$this->mpages->get_row(268);
|
||||
elseif(be())
|
||||
$data['cimlap']=$this->mpages->get_row(351);
|
||||
else
|
||||
$data['cimlap']=$this->mpages->get_row(266);
|
||||
|
||||
$data['aktiv']=9;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function professional()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Verziók - Professional' : 'ARCHLine.XP Versions - Professional';
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','professional');
|
||||
|
||||
if(hun())
|
||||
$data['cimlap']=$this->mpages->get_row(31);
|
||||
elseif(eng())
|
||||
$data['cimlap']=$this->mpages->get_row(86);
|
||||
elseif(be())
|
||||
$data['cimlap']=$this->mpages->get_row(312);
|
||||
elseif(cr())
|
||||
$data['cimlap']=$this->mpages->get_row(219);
|
||||
elseif(gr())
|
||||
$data['cimlap']=$this->mpages->get_row(174);
|
||||
elseif(jap())
|
||||
$data['cimlap']=$this->mpages->get_row(118);
|
||||
|
||||
$data['aktiv']=2;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function studio()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Építészet Verziók - Studio' : 'ARCHLine.XP Architect Versions - Studio';
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','studio');
|
||||
|
||||
if(hun())
|
||||
$data['cimlap']=$this->mpages->get_row(30);
|
||||
elseif(eng())
|
||||
$data['cimlap']=$this->mpages->get_row(94);
|
||||
elseif(be())
|
||||
$data['cimlap']=$this->mpages->get_row(336);
|
||||
elseif(cr())
|
||||
$data['cimlap']=$this->mpages->get_row(243);
|
||||
elseif(gr())
|
||||
$data['cimlap']=$this->mpages->get_row(198);
|
||||
elseif(jap())
|
||||
$data['cimlap']=$this->mpages->get_row(142);
|
||||
|
||||
$data['aktiv']=3;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function buy()
|
||||
{
|
||||
// Új építészet árlista
|
||||
|
||||
if( !hun() ){
|
||||
$data['cimlap'] = $this->mpages->get_row(722);
|
||||
$data['title'] = 'ARCHLine.XP Architect Software - Purchase';
|
||||
$data['tartalom'] = 'products/buy2';
|
||||
$data['javascript'] = array('jquery.corner');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Vásárlás' : 'ARCHLine.XP Purchase';
|
||||
$data['tartalom']='products/buy';
|
||||
$data['csik']=array('home','products','buy');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function base()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Építészet verziók - Base' : 'ARCHLine.XP Architect versions - Base';
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','base');
|
||||
|
||||
if(hun())
|
||||
$data['cimlap']=$this->mpages->get_row(29);
|
||||
elseif(eng())
|
||||
$data['cimlap']=$this->mpages->get_row(95);
|
||||
elseif(be())
|
||||
$data['cimlap']=$this->mpages->get_row(337);
|
||||
elseif(cr())
|
||||
$data['cimlap']=$this->mpages->get_row(244);
|
||||
elseif(gr())
|
||||
$data['cimlap']=$this->mpages->get_row(199);
|
||||
elseif(jap())
|
||||
$data['cimlap']=$this->mpages->get_row(261);
|
||||
|
||||
$data['aktiv']=4;
|
||||
|
||||
if(jap())
|
||||
{
|
||||
$data['aktiv']=3;
|
||||
}
|
||||
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function scada()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Verziók - Scada' : 'ARCHLine.XP Versions - Scada';
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','Scada');
|
||||
|
||||
$data['cimlap']=$this->mpages->get_row(212);
|
||||
|
||||
$data['aktiv']=4;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function standard()
|
||||
{
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Építészet verziók - Standard' : 'ARCHLine.XP Architect versions - Standard';
|
||||
$data['tartalom']='products/versions';
|
||||
$data['csik']=array('home','products','standard');
|
||||
|
||||
if(hun())
|
||||
$data['cimlap']=$this->mpages->get_row(32);
|
||||
elseif(eng())
|
||||
$data['cimlap']=$this->mpages->get_row(93);
|
||||
elseif(be())
|
||||
$data['cimlap']=$this->mpages->get_row(330);
|
||||
elseif(cr())
|
||||
$data['cimlap']=$this->mpages->get_row(237);
|
||||
elseif(jap())
|
||||
$data['cimlap']=$this->mpages->get_row(93);
|
||||
elseif(gr())
|
||||
$data['cimlap']=$this->mpages->get_row(192);
|
||||
|
||||
$data['aktiv']=5;
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function reasons()
|
||||
{
|
||||
if(hun())
|
||||
$data['cimlap'] = $this->mpages->get_row(59);
|
||||
else
|
||||
$data['cimlap'] = $this->mpages->get_row(96);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Építészet - 10 ok a vásárlásra' : 'ARCHLine.XP Architect - 10 reasons to buy';
|
||||
$data['tartalom'] = '/interior/reasons';
|
||||
$data['javascript'] = array('interior_menu');
|
||||
$data['csik']=array('home','10ok');
|
||||
if( $_SERVER['REMOTE_ADDR'] == "46.107.193.123" )
|
||||
$this->load->view('site_2012',$data);
|
||||
else
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function interior_2009(){
|
||||
if( $this->uri->segment(3) == "comparison" )
|
||||
redirect('interior/comparison');
|
||||
elseif( $this->uri->segment(3) == "videos" )
|
||||
redirect('multimedia/videos/support');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,856 @@
|
||||
$(document).ready(function() {
|
||||
const programStarts = [];
|
||||
const templateData = [];
|
||||
var chartData = [];
|
||||
var prevIndex = -1;
|
||||
var ctx = $('#myChart');
|
||||
|
||||
$('[data-tooltip="tooltip"]').tooltip({
|
||||
trigger: 'hover'
|
||||
});
|
||||
|
||||
$('.selectpicker').datepicker({
|
||||
format: 'dd/mm/yyyy'
|
||||
}).on('changeDate', function(e) {
|
||||
let id = $("#temp_select").val();
|
||||
|
||||
if (programStarts.length > 0)
|
||||
programStarts.length = 0;
|
||||
|
||||
if (chartData.length > 0)
|
||||
chartData.length = 0;
|
||||
|
||||
let chart = Chart.getChart(ctx);
|
||||
if (chart !== undefined) {
|
||||
chart.destroy();
|
||||
showChart(id);
|
||||
}
|
||||
|
||||
if ($('#statistics').is(':visible'))
|
||||
$('#statistics').hide();
|
||||
|
||||
if ($('.table-div').is(':visible')) {
|
||||
$('.table-div').hide();
|
||||
$('#data-body').html('');
|
||||
}
|
||||
});
|
||||
|
||||
$('#startDate').datepicker('update', new Date('2020-01-01'));
|
||||
$('#endDate').datepicker('update', new Date());
|
||||
|
||||
$('[data-tooltip="tooltip"]').on('click', function() {
|
||||
$(this).tooltip('hide');
|
||||
});
|
||||
|
||||
$("#temp_select").change(function() {
|
||||
if (programStarts.length > 0)
|
||||
programStarts.length = 0;
|
||||
|
||||
if ($('.table-div').is(':visible')) {
|
||||
$('.table-div').hide();
|
||||
$('#data-body').html('');
|
||||
}
|
||||
|
||||
if ($(this).val() !== '') {
|
||||
$('#edit_template').show();
|
||||
$('#delete_template').show();
|
||||
|
||||
let chart = Chart.getChart(ctx);
|
||||
if (chart !== undefined)
|
||||
chart.destroy();
|
||||
|
||||
showChart($(this).val());
|
||||
} else {
|
||||
$('#edit_template').hide();
|
||||
$('#delete_template').hide();
|
||||
|
||||
chartData.length = 0;
|
||||
let chart = Chart.getChart(ctx);
|
||||
|
||||
if (chart !== undefined)
|
||||
chart.destroy();
|
||||
|
||||
if ($('#statistics').is(':visible'))
|
||||
$('#statistics').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#new_template").click(function() {
|
||||
$('.error').each(function() {
|
||||
$(this).parent().html('');
|
||||
});
|
||||
|
||||
$(".modal-title").html("New template");
|
||||
$("#template_name").val("");
|
||||
|
||||
if ($("#temp_select").val() != '') {
|
||||
getTemplate($("#temp_select").val(), false, true);
|
||||
} else {
|
||||
$("#program_version").selectpicker("val", "");
|
||||
$("#program_type").selectpicker("val", "");
|
||||
$("#product").selectpicker("val", "");
|
||||
$("#country_code").selectpicker("val", "");
|
||||
$("#interval").selectpicker("val", "");
|
||||
$("#chart_type").selectpicker("val", "bar");
|
||||
}
|
||||
});
|
||||
|
||||
$("#edit_template").click(function() {
|
||||
$('.error').each(function() {
|
||||
$(this).parent().html('');
|
||||
});
|
||||
|
||||
$(".modal-title").html("Edit template");
|
||||
|
||||
let id = $("#temp_select").val();
|
||||
getTemplate(id, true, false);
|
||||
});
|
||||
|
||||
$("#delete_template").click(function() {
|
||||
if (confirm("Are you sure want to delete this template?") == true) {
|
||||
let id = $("#temp_select").val();
|
||||
deleteTemplate(id);
|
||||
}
|
||||
});
|
||||
|
||||
$("#product").change(function() {
|
||||
if ($(this).val() == 2) {
|
||||
$("#type-div").hide();
|
||||
$("#ctr-div").hide();
|
||||
} else {
|
||||
$("#type-div").show();
|
||||
$("#ctr-div").show();
|
||||
}
|
||||
});
|
||||
|
||||
$("#dist_select").change(function () {
|
||||
let chart = Chart.getChart(ctx);
|
||||
|
||||
if (chart !== undefined) {
|
||||
if (programStarts.length > 0)
|
||||
programStarts.length = 0;
|
||||
|
||||
chart.destroy();
|
||||
showChart($("#temp_select").val());
|
||||
$('.table-div').hide();
|
||||
$('#data-body').html('');
|
||||
}
|
||||
});
|
||||
|
||||
$('#edit-template-btn').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
if (validateForm('template-form')) {
|
||||
saveTemplate();
|
||||
|
||||
if ($('.table-div').is(':visible')) {
|
||||
$('.table-div').hide();
|
||||
$('#data-body').html('');
|
||||
}
|
||||
|
||||
$('#editTemplateModal').modal('hide');
|
||||
}
|
||||
});
|
||||
|
||||
$(".sorted").click(function() {
|
||||
let id = $(this).attr('id');
|
||||
|
||||
if ($(this).attr("data-order") == 'asc') {
|
||||
$(this).attr("data-order", 'desc');
|
||||
$(this).children().removeClass("fa-sort-amount-asc");
|
||||
$(this).children().addClass("fa-sort-amount-desc");
|
||||
} else {
|
||||
$(this).attr("data-order", 'asc');
|
||||
$(this).children().addClass("fa-sort-amount-asc");
|
||||
$(this).children().removeClass("fa-sort-amount-desc");
|
||||
}
|
||||
|
||||
$('.sorted').each(function() {
|
||||
if ($(this).attr('id') != id && $(this).attr("data-order") != 'asc') {
|
||||
$(this).attr("data-order", '');
|
||||
$(this).children().addClass("fa-sort-amount-desc");
|
||||
$(this).children().removeClass("fa-sort-amount-asc");
|
||||
}
|
||||
|
||||
if ($(this).attr('id') != id)
|
||||
$(this).children().hide();
|
||||
else
|
||||
$(this).children().show();
|
||||
});
|
||||
|
||||
let name = $(this).attr("id") + '-' + $(this).attr("data-order");
|
||||
sort(name);
|
||||
});
|
||||
|
||||
$("#appearance").change(function() {
|
||||
document.cookie = "appearance="+$(this).val()+"; expires=Fri, 31 Dec 9999 23:59:59 GMT";
|
||||
|
||||
let id = $("#temp_select").val();
|
||||
|
||||
populateSelect();
|
||||
|
||||
if (id !== '') {
|
||||
if ($('.table-div').is(':visible')) {
|
||||
$('.table-div').hide();
|
||||
$('#data-body').html('');
|
||||
}
|
||||
|
||||
let chart = Chart.getChart(ctx);
|
||||
if (chart !== undefined)
|
||||
chart.destroy();
|
||||
|
||||
showChart(id);
|
||||
}
|
||||
});
|
||||
|
||||
$.fn.serializeObject = function() {
|
||||
var o = {};
|
||||
var a = this.serializeArray();
|
||||
$.each(a, function() {
|
||||
if (o[this.name] !== undefined) {
|
||||
if (!o[this.name].push) {
|
||||
o[this.name] = [o[this.name]];
|
||||
}
|
||||
o[this.name].push(this.value || '');
|
||||
} else {
|
||||
o[this.name] = this.value || '';
|
||||
}
|
||||
});
|
||||
return o;
|
||||
};
|
||||
|
||||
function populateSelect() {
|
||||
let complex = getCookie('appearance') == 2;
|
||||
let option = '<option value="0">All time</option>';
|
||||
|
||||
if (!complex) {
|
||||
option += '<option value="1">Last week</option>';
|
||||
option += '<option value="2">Last 2 weeks</option>';
|
||||
option += '<option value="3">Last month</option>';
|
||||
option += '<option value="4">Last 2 months</option>';
|
||||
option += '<option value="5">Last 3 months</option>';
|
||||
option += '<option value="6">Last 6 months</option>';
|
||||
option += '<option value="7">Last year</option>';
|
||||
option += '<option value="8">Last 2 years</option>';
|
||||
} else {
|
||||
option += '<option value="1">Last week only</option>';
|
||||
option += '<option value="2">In the penultimate week</option>';
|
||||
option += '<option value="3">3 and 4 weeks ago only</option>';
|
||||
option += '<option value="4">In the penultimate month</option>';
|
||||
option += '<option value="5">3 month ago only</option>';
|
||||
option += '<option value="6">Between 4 and 6 months only</option>';
|
||||
option += '<option value="7">Between 7 and 12 months only</option>';
|
||||
option += '<option value="8">In the penultimate year</option>';
|
||||
}
|
||||
|
||||
option += '<option value="9">3 years ago</option>';
|
||||
|
||||
$('#interval')
|
||||
.find('option')
|
||||
.remove()
|
||||
.end()
|
||||
.append(option);
|
||||
|
||||
$('#interval').selectpicker('refresh');
|
||||
}
|
||||
|
||||
function getCookie(cname) {
|
||||
let name = cname + "=";
|
||||
let decodedCookie = decodeURIComponent(document.cookie);
|
||||
let ca = decodedCookie.split(';');
|
||||
for(let i = 0; i <ca.length; i++) {
|
||||
let c = ca[i];
|
||||
while (c.charAt(0) == ' ') {
|
||||
c = c.substring(1);
|
||||
}
|
||||
if (c.indexOf(name) == 0) {
|
||||
return c.substring(name.length, c.length);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
function getErrorMessage(element) {
|
||||
const errorArray = {
|
||||
"template_name": {
|
||||
"msg": "Please enter a name",
|
||||
"id": "name-error"
|
||||
},
|
||||
"product": {
|
||||
"msg": "Please select a product",
|
||||
"id": "product-error"
|
||||
},
|
||||
"interval": {
|
||||
"msg": "Please select an interval",
|
||||
"id": "interval-error"
|
||||
},
|
||||
"program_version": {
|
||||
"msg": "Please select a version",
|
||||
"id": "version-error"
|
||||
},
|
||||
"program_type": {
|
||||
"msg": "Please select a type",
|
||||
"id": "type-error"
|
||||
},
|
||||
"country_code": {
|
||||
"msg": "Please select a country code",
|
||||
"id": "country-code-error"
|
||||
}
|
||||
};
|
||||
|
||||
return errorArray[element];
|
||||
}
|
||||
|
||||
function getFormData(formid) {
|
||||
var form = document.getElementById(formid);
|
||||
let formdata = {};
|
||||
Array.from(form.querySelectorAll('input, select, textarea'))
|
||||
.filter(element => element.name)
|
||||
.forEach(element => {
|
||||
if (element.type === 'checkbox') {
|
||||
formdata[element.name] = element.checked;
|
||||
} else if (element.options) {
|
||||
var selected = [...element.selectedOptions].map(option => option.value);
|
||||
if (selected.length > 1) {
|
||||
formdata[element.name] = selected;
|
||||
} else {
|
||||
formdata[element.name] = element.value;
|
||||
}
|
||||
} else {
|
||||
formdata[element.name] = element.value;
|
||||
}
|
||||
});
|
||||
return formdata;
|
||||
}
|
||||
|
||||
function validateForm(form) {
|
||||
let formData = getFormData(form);
|
||||
let error = '';
|
||||
let valid = true;
|
||||
|
||||
for (const [key, value] of Object.entries(formData)) {
|
||||
if (key == 'template_id' || key == 'chart_type')
|
||||
continue;
|
||||
|
||||
if (formData.product == '2' && (key == 'product' || key == 'country_code' || key == 'program_type'))
|
||||
continue;
|
||||
|
||||
error = getErrorMessage(key);
|
||||
|
||||
if (value == '') {
|
||||
$('#' + error.id).html('<label class="error" for="error">' + error.msg + '</label>');
|
||||
|
||||
valid = false;
|
||||
} else {
|
||||
$('#' + error.id).html('');
|
||||
}
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
||||
function getLabels(interval) {
|
||||
let intervalNames = [];
|
||||
|
||||
for (let i = 1; i <= interval; i++) {
|
||||
const opt = i == 10 ? '3+ year ago' : $('#interval option[value="' + i + '"]').html();
|
||||
|
||||
intervalNames.push(opt);
|
||||
}
|
||||
return intervalNames;
|
||||
}
|
||||
|
||||
function getSelectedLabel(id) {
|
||||
return id == 10 ? '3+ year ago' : $('#interval option[value="' + id + '"]').html();
|
||||
}
|
||||
|
||||
function showChart(temp_id) {
|
||||
let distID = $("#dist_select").val() != undefined ? $("#dist_select").val() : '';
|
||||
let fromDate = dateFormat($('#startDate').datepicker('getDate'), 'yyyy-MM-dd');
|
||||
let endDate = dateFormat($('#endDate').datepicker('getDate'), 'yyyy-MM-dd');
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/trialusage/getProgramStarts",
|
||||
data: {
|
||||
tmpID: temp_id,
|
||||
distID: distID,
|
||||
fromDate: fromDate,
|
||||
endDate: endDate
|
||||
},
|
||||
success: function(data) {
|
||||
checkSession();
|
||||
|
||||
let response = JSON.parse(data);
|
||||
let allProgramStarts = response.programs.length;
|
||||
let complex = getCookie('appearance') == 2;
|
||||
|
||||
console.log(response.query);
|
||||
|
||||
chartData = new Array(parseInt(response.interval)).fill(0);
|
||||
|
||||
const intervalNames = getLabels(parseInt(response.interval));
|
||||
|
||||
$.each(response.programs, function(index, element) {
|
||||
if (programStarts[index] == undefined)
|
||||
programStarts[index] = {};
|
||||
|
||||
let workingHour = element.workingMinutes == null ? 0 : parseInt(element.workingMinutes) / 60;
|
||||
|
||||
programStarts[index]['usPwd'] = element.usPwd;
|
||||
programStarts[index]['startSum'] = element.startSum;
|
||||
programStarts[index]['lastUsage'] = element.lastUsage;
|
||||
programStarts[index]['trialUsage'] = element.trialUsage;
|
||||
programStarts[index]['workingHour'] = workingHour;
|
||||
|
||||
for (let i = 0; i < chartData.length; i++) {
|
||||
if (complex) {
|
||||
if (element.trialUsage - 1 == i)
|
||||
chartData[i] += 1;
|
||||
} else {
|
||||
if (element.trialUsage - 1 <= i)
|
||||
chartData[i] += 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
let myChart = new Chart(ctx, {
|
||||
type: response.chart,
|
||||
data: {
|
||||
labels: intervalNames,
|
||||
datasets: [{
|
||||
label: '',
|
||||
data: chartData,
|
||||
backgroundColor: [
|
||||
'#B22222',
|
||||
'#228B22',
|
||||
'#00BFFF',
|
||||
'#008B8B',
|
||||
'#2F4F4F',
|
||||
'#DAA520',
|
||||
'#778899',
|
||||
'#FFE4B5',
|
||||
'#9ACD32',
|
||||
'#E0FFFF'
|
||||
],
|
||||
hoverOffset: 4
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
onClick: function(evt, chartElement) {
|
||||
if (chartElement.length > 0 && (prevIndex != chartElement[0].index || !$('.table-div').is(':visible'))) {
|
||||
let usageID = chartElement[0].index + 1;
|
||||
const serials = [];
|
||||
|
||||
if ($('.table-div').is(':visible')) {
|
||||
$('.table-div').hide();
|
||||
$('#data-body').html('');
|
||||
}
|
||||
|
||||
$('#data-body').html('');
|
||||
|
||||
for (let i = 0; i < programStarts.length; i++) {
|
||||
const element = programStarts[i];
|
||||
|
||||
if (complex) {
|
||||
if (usageID == element.trialUsage) {
|
||||
if (serials[element.usPwd] == undefined)
|
||||
serials[element.usPwd] = {};
|
||||
|
||||
serials[element.usPwd]['lastUsage'] = element.lastUsage;
|
||||
serials[element.usPwd]['startSum'] = element.startSum;
|
||||
serials[element.usPwd]['workingHour'] = element.workingHour;
|
||||
}
|
||||
} else {
|
||||
if (usageID >= element.trialUsage) {
|
||||
if (serials[element.usPwd] == undefined)
|
||||
serials[element.usPwd] = {};
|
||||
|
||||
serials[element.usPwd]['lastUsage'] = element.lastUsage;
|
||||
serials[element.usPwd]['startSum'] = element.startSum;
|
||||
serials[element.usPwd]['workingHour'] = element.workingHour;
|
||||
}
|
||||
}
|
||||
}
|
||||
getUsers(serials);
|
||||
|
||||
prevIndex = chartElement[0].index;
|
||||
|
||||
let objLength = Object.keys(serials).length;
|
||||
|
||||
$('#table-label').html(getSelectedLabel(usageID) + ' ('+objLength+')');
|
||||
|
||||
templateData.length = 0;
|
||||
}
|
||||
},
|
||||
onHover: function(evt, chartElement) {
|
||||
evt.native.target.style.cursor = chartElement[0] ? 'pointer' : 'default';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('#program_starts').html(allProgramStarts);
|
||||
|
||||
if ($('#statistics').is(':hidden'))
|
||||
$('#statistics').show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function dateFormat(inputDate, format) {
|
||||
const date = new Date(inputDate);
|
||||
const day = date.getDate();
|
||||
const month = date.getMonth() + 1;
|
||||
const year = date.getFullYear();
|
||||
|
||||
format = format.replace("MM", month.toString().padStart(2, "0"));
|
||||
|
||||
if (format.indexOf("yyyy") > -1)
|
||||
format = format.replace("yyyy", year.toString());
|
||||
else if (format.indexOf("yy") > -1)
|
||||
format = format.replace("yy", year.toString().substr(2, 2));
|
||||
|
||||
format = format.replace("dd", day.toString().padStart(2, "0"));
|
||||
|
||||
return format;
|
||||
}
|
||||
|
||||
function saveTemplate() {
|
||||
let $form = $("#template-form");
|
||||
|
||||
let template = JSON.stringify({
|
||||
template: $form.serializeObject()
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/trialusage/saveTemplate",
|
||||
data: {
|
||||
data: template
|
||||
},
|
||||
success: function(data) {
|
||||
checkSession();
|
||||
|
||||
let response = JSON.parse(data);
|
||||
|
||||
if (response.newName && !response.addOption)
|
||||
$('#temp_select option[value="' + response.temp_id + '"]').html(response.newName)
|
||||
|
||||
if (response.addOption) {
|
||||
$('#temp_select').append(`<option value="${response.temp_id}">${response.newName}</option>`);
|
||||
$('#temp_select option[value="' + response.temp_id + '"]').attr('selected', true);
|
||||
$('#edit_template').show();
|
||||
$('#delete_template').show();
|
||||
}
|
||||
|
||||
let chart = Chart.getChart(ctx);
|
||||
if (chart !== undefined)
|
||||
chart.destroy();
|
||||
|
||||
showChart(response.temp_id);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function deleteTemplate(id) {
|
||||
$.ajax({
|
||||
url: "/trialusage/deleteTemplate",
|
||||
type: "POST",
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
success: function(response) {
|
||||
checkSession();
|
||||
|
||||
let data = JSON.parse(response);
|
||||
|
||||
$("#temp_select option[value='" + data.tmpID + "']").remove();
|
||||
$('#edit_template').hide();
|
||||
$('#delete_template').hide();
|
||||
|
||||
if ($('.table-div').is(':visible')) {
|
||||
$('.table-div').hide();
|
||||
$('#data-body').html('');
|
||||
}
|
||||
|
||||
let chart = Chart.getChart(ctx);
|
||||
if (chart !== undefined)
|
||||
chart.destroy();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getTemplate(id, needName, newTmp) {
|
||||
$.ajax({
|
||||
url: "/trialusage/getTemplate",
|
||||
type: "POST",
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
success: function(response) {
|
||||
checkSession();
|
||||
|
||||
let verArray = [];
|
||||
let typeArray = [];
|
||||
let ctrArray = [];
|
||||
|
||||
let data = JSON.parse(response);
|
||||
let template = data.template;
|
||||
|
||||
if (newTmp)
|
||||
$("#template_id").val("");
|
||||
else
|
||||
$("#template_id").val(data.tmp_id);
|
||||
|
||||
if (needName)
|
||||
$("#template_name").val(template.name);
|
||||
|
||||
if (template.product == 2) {
|
||||
$("#type-div").hide();
|
||||
$("#ctr-div").hide();
|
||||
} else {
|
||||
$("#type-div").show();
|
||||
$("#ctr-div").show();
|
||||
}
|
||||
|
||||
$(".selectpicker option").attr("selected", false);
|
||||
|
||||
if (template.versions) {
|
||||
$.each(template.versions, function(index, value) {
|
||||
verArray.push(value);
|
||||
});
|
||||
}
|
||||
|
||||
if (template.types) {
|
||||
$.each(template.types, function(index, value) {
|
||||
typeArray.push(value);
|
||||
});
|
||||
}
|
||||
|
||||
if (template.country_code) {
|
||||
$.each(template.country_code, function(index, value) {
|
||||
ctrArray.push(value);
|
||||
});
|
||||
}
|
||||
|
||||
if ($("#chart_type").length) {
|
||||
if (template.chart_type)
|
||||
$("#chart_type").selectpicker("val", template.chart_type);
|
||||
else
|
||||
$("#chart_type").selectpicker("val", "bar");
|
||||
}
|
||||
|
||||
$("#program_version").selectpicker("val", verArray);
|
||||
$("#program_type").selectpicker("val", typeArray);
|
||||
$("#product").selectpicker("val", template.product);
|
||||
$("#country_code").selectpicker("val", ctrArray);
|
||||
$("#interval").selectpicker("val", template.interval);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function SortByUserName(a, b) {
|
||||
let aName = a.userName;
|
||||
let bName = b.userName;
|
||||
return ((aName < bName) ? -1 : ((aName > bName) ? 1 : 0));
|
||||
}
|
||||
|
||||
function SortBySaleDate(a, b) {
|
||||
let date1 = new Date(a.sellDate);
|
||||
let date2 = new Date(b.sellDate);
|
||||
return ((date1.getTime() < date2.getTime()) ? -1 : ((date1.getTime() > date2.getTime()) ? 1 : 0));
|
||||
}
|
||||
|
||||
function SortByLastUse(a, b) {
|
||||
let date1 = new Date(a.lastUsage);
|
||||
let date2 = new Date(b.lastUsage);
|
||||
return ((date1.getTime() < date2.getTime()) ? -1 : ((date1.getTime() > date2.getTime()) ? 1 : 0));
|
||||
}
|
||||
|
||||
function SortByStarts(a, b) {
|
||||
return a.startSum - b.startSum;
|
||||
}
|
||||
|
||||
function SortByWt(a, b) {
|
||||
return a.workingHour - b.workingHour;
|
||||
}
|
||||
|
||||
function sort(name) {
|
||||
let dataBody = '';
|
||||
|
||||
switch (name) {
|
||||
case "name-asc":
|
||||
templateData.sort(SortByUserName);
|
||||
break;
|
||||
|
||||
case "name-desc":
|
||||
templateData.sort(SortByUserName).reverse();
|
||||
break;
|
||||
|
||||
case "sale_date-asc":
|
||||
templateData.sort(SortBySaleDate);
|
||||
break;
|
||||
|
||||
case "sale_date-desc":
|
||||
templateData.sort(SortBySaleDate).reverse();
|
||||
break;
|
||||
|
||||
case "last_use-asc":
|
||||
templateData.sort(SortByLastUse);
|
||||
break;
|
||||
|
||||
case "last_use-desc":
|
||||
templateData.sort(SortByLastUse).reverse();
|
||||
break;
|
||||
|
||||
case "starts-asc":
|
||||
templateData.sort(SortByStarts);
|
||||
break;
|
||||
|
||||
case "starts-desc":
|
||||
templateData.sort(SortByStarts).reverse();
|
||||
break;
|
||||
|
||||
case "wt-asc":
|
||||
templateData.sort(SortByWt);
|
||||
break;
|
||||
|
||||
case "wt-desc":
|
||||
templateData.sort(SortByWt).reverse();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (templateData.length > 0) {
|
||||
for (let i = 0; i < templateData.length; i++) {
|
||||
const element = templateData[i];
|
||||
let crm_url = $('#crm_url').val();
|
||||
let hlNum = element.serial.substr(0, 6);;
|
||||
|
||||
let workingHour = element.workingHour;
|
||||
|
||||
if (decimalCount(workingHour) > 2)
|
||||
workingHour = workingHour.toFixed(2);
|
||||
|
||||
dataBody += '<tr>';
|
||||
|
||||
if (element.userID && crm_url != '')
|
||||
dataBody += '<td><a href="'+crm_url+element.userID+'" target="_blank">' + element.customName + '</a></td>';
|
||||
else
|
||||
dataBody += '<td><a href="https://partners.archlinexp.com/partners/key/'+hlNum+'" target="_blank">' + element.customName + '</a></td>';
|
||||
|
||||
dataBody += '<td>' + element.sellDate + '</td>';
|
||||
dataBody += '<td>' + element.lastUsage + '</td>';
|
||||
dataBody += '<td>' + element.startSum + '</td>';
|
||||
dataBody += '<td>' + workingHour + '</td>';
|
||||
dataBody += '</tr>';
|
||||
}
|
||||
$('#data-body').html(dataBody);
|
||||
}
|
||||
}
|
||||
|
||||
const decimalCount = num => {
|
||||
const numStr = String(num);
|
||||
|
||||
if (numStr.includes('.'))
|
||||
return numStr.split('.')[1].length;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
function getUsers(serials) {
|
||||
let keys = Object.keys(serials);
|
||||
let jsonString = JSON.stringify(keys);
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/trialusage/getUsersFromPassword",
|
||||
data: {
|
||||
data: jsonString,
|
||||
tmpID: $("#temp_select").val()
|
||||
},
|
||||
success: function(data) {
|
||||
checkSession();
|
||||
|
||||
let dataBody = '';
|
||||
let response = JSON.parse(data);
|
||||
var needSort = false;
|
||||
|
||||
$.each(response.users, function(index, user) {
|
||||
let serialData = serials[user.prPass];
|
||||
let crm_url = $('#crm_url').val();
|
||||
let userID = user.nUserID != null ? user.nUserID : user.userID;
|
||||
let hlNum = user.prPass.substr(0, 6);
|
||||
let customName = '';
|
||||
|
||||
if (response.name_string) {
|
||||
customName = response.name_string.replace("%n", user.strName);
|
||||
customName = customName.replace("%k", hlNum);
|
||||
customName = customName.replace("%e", user.email);
|
||||
} else {
|
||||
customName = user.strName;
|
||||
}
|
||||
|
||||
let workingHour = serialData.workingHour;
|
||||
|
||||
if (decimalCount(workingHour) > 2)
|
||||
workingHour = workingHour.toFixed(2);
|
||||
|
||||
dataBody += '<tr>';
|
||||
|
||||
if (userID != null && crm_url != '')
|
||||
dataBody += '<td><a href="'+crm_url+userID+'" target="_blank">' + customName + '</a></td>';
|
||||
else
|
||||
dataBody += '<td><a href="https://partners.archlinexp.com/partners/key/'+hlNum+'" target="_blank">' + customName + '</a></td>';
|
||||
|
||||
dataBody += '<td>' + user.prSellDate + '</td>';
|
||||
dataBody += '<td>' + serialData.lastUsage + '</td>';
|
||||
dataBody += '<td>' + serialData.startSum + '</td>';
|
||||
dataBody += '<td>' + workingHour + '</td>';
|
||||
dataBody += '</tr>';
|
||||
|
||||
templateData[index] = {
|
||||
userName: user.strName,
|
||||
sellDate: user.prSellDate,
|
||||
lastUsage: serialData.lastUsage,
|
||||
startSum: serialData.startSum,
|
||||
workingHour: serialData.workingHour,
|
||||
userID: userID,
|
||||
serial:user.prPass,
|
||||
customName: customName
|
||||
};
|
||||
});
|
||||
|
||||
$('.sorted').each(function() {
|
||||
if ($(this).attr('data-order') != '') {
|
||||
let id = $(this).attr('id');
|
||||
let order = $(this).attr('data-order');
|
||||
sort(id + '-' + order);
|
||||
|
||||
needSort = true;
|
||||
}
|
||||
});
|
||||
|
||||
if (!needSort)
|
||||
$('#data-body').html(dataBody);
|
||||
|
||||
if ($('.table-div').is(':hidden'))
|
||||
$('.table-div').slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
function checkSession() {
|
||||
$.post("/resourcemanager/isSessionActive", {
|
||||
|
||||
}, function(data) {
|
||||
let response = JSON.parse(data);
|
||||
|
||||
if (!response.active) {
|
||||
alert('Your session is expired. Please login.');
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,804 @@
|
||||
<?php
|
||||
class Resourcemanager extends Controller
|
||||
{
|
||||
private $access;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
header('location: https://partners.staging.cadline.hu/');
|
||||
|
||||
$this->load->library('session');
|
||||
$this->load->model('mresourcemanager');
|
||||
$this->load->library('Pagination');
|
||||
$this->load->helper('language');
|
||||
$this->lang->load('site');
|
||||
$this->load->helper('cookie');
|
||||
|
||||
if (!isset($_SESSION['page_lang']))
|
||||
$_SESSION['page_lang'] = 'eng';
|
||||
|
||||
$this->access = $this->mresourcemanager->checkResourceManagerAccess();
|
||||
|
||||
if (!$this->access && $this->uri->segment(2) != 'login' && $this->uri->segment(2) != 'isSessionActive')
|
||||
redirect('resourcemanager/login');
|
||||
|
||||
if ($this->phpsession->get('access_id') == '' && isset($_COOKIE["access_id"]) && $this->uri->segment(2) != 'logout') {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', $_COOKIE["access_id"]);
|
||||
|
||||
$cookie = array(
|
||||
'name' => 'access_id',
|
||||
'value' => get_cookie('access_id'),
|
||||
'expire' => time() + (10 * 365 * 24 * 60 * 60),
|
||||
);
|
||||
set_cookie($cookie);
|
||||
}
|
||||
|
||||
if ($this->uri->segment(2) == '')
|
||||
redirect('resourcemanager/index');
|
||||
|
||||
$this->mresourcemanager->redirectInvalidUrl();
|
||||
$this->mresourcemanager->initialiseDb('resourcemanager');
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
if (!isset($_SESSION['page_number']) || !is_numeric($_SESSION['page_number']))
|
||||
$_SESSION['page_number'] = 10;
|
||||
|
||||
$_SESSION['partner_id'] = $this->mresourcemanager->getPartnerID($this->uri->segment(3));
|
||||
$partner_id = $this->mresourcemanager->getPartnerID($this->uri->segment(3));
|
||||
|
||||
$resData['user'] = $this->mresourcemanager->getSelectedPartner($partner_id);
|
||||
$resData['types'] = $this->mresourcemanager->getResourceTypes();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager/index.php', $resData, 'Home', false, 'index');
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
if ($this->phpsession->get('access_id') != '' && $this->access)
|
||||
redirect('resourcemanager/index');
|
||||
|
||||
$username = $this->input->post('username');
|
||||
$password = $this->input->post('password');
|
||||
|
||||
$loginData = array();
|
||||
|
||||
if ($_POST['login-btn']) {
|
||||
$user = $this->mresourcemanager->login($username, $password);
|
||||
|
||||
if (!$user) {
|
||||
$loginData['error'] = 'Wrong username or password!';
|
||||
$loginData['username'] = $username;
|
||||
} else {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', $user->username);
|
||||
|
||||
if ($this->mresourcemanager->isAdmin())
|
||||
redirect('resourcemanager/reference');
|
||||
else
|
||||
redirect('resourcemanager/index');
|
||||
}
|
||||
}
|
||||
|
||||
$this->load->view('resourcemanager/login.php', $loginData);
|
||||
}
|
||||
|
||||
function help()
|
||||
{
|
||||
$resData['help_text'] = $this->mresourcemanager->getHelpText();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager/help.php', $resData, 'Help', false, 'help');
|
||||
}
|
||||
|
||||
function adminHelp()
|
||||
{
|
||||
$resData['help_text'] = $this->mresourcemanager->getAdminHelpText();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager/admin/adminHelp.php', $resData, 'Admin Help', false);
|
||||
}
|
||||
|
||||
function import()
|
||||
{
|
||||
$resData['partners'] = $this->mresourcemanager->getPartners();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager/admin/import.php', $resData, 'Import Resources', false);
|
||||
}
|
||||
|
||||
function export()
|
||||
{
|
||||
$resData['partners'] = $this->mresourcemanager->getPartners();
|
||||
|
||||
if (isset($_POST['res_export'])) {
|
||||
$lang = $_POST['lang'];
|
||||
|
||||
$url = 'https://www.archline.hu/maintenance/pofiles/createPO.php';
|
||||
$url .= '?lang=' . $lang;
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
$zipURL = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
$resData['zipURL'] = $zipURL;
|
||||
}
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager/admin/export.php', $resData, 'Export Resources', false);
|
||||
}
|
||||
|
||||
function reference()
|
||||
{
|
||||
if (!isset($_SESSION['page_number']) || !is_numeric($_SESSION['page_number']))
|
||||
$_SESSION['page_number'] = 10;
|
||||
|
||||
$resData['types'] = $this->mresourcemanager->getResourceTypes();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager/admin/reference.php', $resData, 'Reference', false, 'reference');
|
||||
}
|
||||
|
||||
function newReference()
|
||||
{
|
||||
$resData['types'] = $this->mresourcemanager->getResourceTypes();
|
||||
$resData['years'] = $this->mresourcemanager->getYears();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager/admin/newReference.php', $resData, 'New Reference', false);
|
||||
}
|
||||
|
||||
function logout()
|
||||
{
|
||||
$this->phpsession->clear('bugtracker_access');
|
||||
$this->phpsession->clear('access_id');
|
||||
|
||||
redirect('resourcemanager/login');
|
||||
}
|
||||
|
||||
function addReference()
|
||||
{
|
||||
if ($this->mresourcemanager->isAdmin()) {
|
||||
$username = $_COOKIE["access_id"] != '' ? $_COOKIE["access_id"] : $this->phpsession->get('access_id');
|
||||
$response = $this->mresourcemanager->addReference($_POST, $username);
|
||||
} else {
|
||||
$response['inserted'] = false;
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function updateReference()
|
||||
{
|
||||
if ($this->mresourcemanager->isAdmin()) {
|
||||
$username = $_COOKIE["access_id"] != '' ? $_COOKIE["access_id"] : $this->phpsession->get('access_id');
|
||||
$response = $this->mresourcemanager->updateReference($_POST['resource_id'], $_POST['lang_text'], $_POST['hun_text'], $_POST['alt'], $username);
|
||||
} else {
|
||||
$response['updated'] = false;
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function deleteReference()
|
||||
{
|
||||
if ($this->mresourcemanager->isAdmin())
|
||||
$response = $this->mresourcemanager->deleteReference($_POST['resource_id'], $_POST['alt']);
|
||||
else
|
||||
$response['updated'] = false;
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function updateResource()
|
||||
{
|
||||
$username = $_COOKIE["access_id"] != '' ? $_COOKIE["access_id"] : $this->phpsession->get('access_id');
|
||||
|
||||
$response = $this->mresourcemanager->updateResource($_POST['partner_id'], $_POST['resource_id'], $_POST['lang_text'], $username, $_POST['alt']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function rejectResource()
|
||||
{
|
||||
if ($this->mresourcemanager->isAdmin())
|
||||
$response = $this->mresourcemanager->rejectResource($_POST['partner_id'], $_POST['resource_id']);
|
||||
else
|
||||
$response['updated'] = false;
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function importResource()
|
||||
{
|
||||
$lang = $_POST['lang'];
|
||||
$countfiles = count($_FILES['files']['name']);
|
||||
$response['notInserted'] = '';
|
||||
|
||||
for ($i = 0; $i < $countfiles; $i++) {
|
||||
$filename = $_FILES['files']['name'][$i];
|
||||
$file = $_FILES['files']['tmp_name'][$i];
|
||||
|
||||
if ($this->mresourcemanager->isTranslat($filename))
|
||||
$inserted = $this->mresourcemanager->insertTranslatToDatabase($filename, $file, $lang);
|
||||
elseif ($this->mresourcemanager->isResource($filename))
|
||||
$inserted = $this->mresourcemanager->insertResourceToDatabase($filename, $file, $lang);
|
||||
else
|
||||
$inserted = false;
|
||||
|
||||
if (!$inserted)
|
||||
$response['notInserted'][$i] = $filename;
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function correctResources()
|
||||
{
|
||||
$response['updated'] = $this->mresourcemanager->correctResources();
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getKey()
|
||||
{
|
||||
if ($this->mresourcemanager->isAdmin()) {
|
||||
$exceptions = json_decode($_POST['exceptions'], true);
|
||||
$typeID = $_POST['typeID'];
|
||||
$response = $this->mresourcemanager->getLastKey($exceptions, $typeID);
|
||||
} else {
|
||||
$response = array();
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function readData()
|
||||
{
|
||||
if ($this->phpsession->get('access_id') == '' && isset($_COOKIE["access_id"])) {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', $_COOKIE["access_id"]);
|
||||
}
|
||||
|
||||
$url = $_POST['curr_url'];
|
||||
$bestMatch = '';
|
||||
$exact_match = false;
|
||||
|
||||
$where = $this->mresourcemanager->search($_POST);
|
||||
|
||||
if (isset($_POST['search_name']) && $_POST['search_name'] != '') {
|
||||
$bestMatch = $_POST['search_name'];
|
||||
|
||||
if (isset($_POST['extended_search']) && $_POST['extended_search'] == 'on')
|
||||
$exact_match = true;
|
||||
}
|
||||
|
||||
$records = isset($_POST['page_number']) ? $_POST['page_number'] : $_SESSION['page_number'];
|
||||
$pageSegment = $_POST['page_segment'];
|
||||
$pagination = new Pagination($records, $pageSegment, $url);
|
||||
$partner_id = $_SESSION['partner_id'];
|
||||
|
||||
if (isset($_POST['ordered_column']) && isset($_POST['order'])) {
|
||||
$sorted_table = $_POST['ordered_column'];
|
||||
$sort = $_POST['order'];
|
||||
}
|
||||
|
||||
if ($sorted_table == '' || $sort == '') {
|
||||
$sorted_table = $_SESSION['column'];
|
||||
$sort = $_SESSION['sort'];
|
||||
}
|
||||
|
||||
$offset = $pagination->getOffset();
|
||||
$resource = $this->mresourcemanager->getResourceDatas($_SESSION['partner_id'], $_POST['types'], $offset, $records, $where, $bestMatch, $exact_match, false, $sort, $sorted_table);
|
||||
$total_records = $this->mresourcemanager->getTotalRecords($_SESSION['partner_id'], $where, true);
|
||||
$total = ceil($total_records / $records);
|
||||
$resDatas = $resource['datas'];
|
||||
|
||||
$_SESSION['page_number'] = $records;
|
||||
|
||||
$pagination->setTotal($total);
|
||||
$pagination->setButtons(empty($resDatas));
|
||||
|
||||
$table = '';
|
||||
$paging = '';
|
||||
$redirect = false;
|
||||
$isDisabled = true;
|
||||
|
||||
foreach ($resDatas as $res) {
|
||||
$gt_url = $this->mresourcemanager->getGoogleTranslateUrl($res->ref_id, $partner_id);
|
||||
$dpl_url = $this->mresourcemanager->getDeeplUrl($res->ref_id, $partner_id);
|
||||
$txt = $res->lang_text == null || $res->lang_text == '' ? $res->ref_text : $res->lang_text;
|
||||
$ref_txt = nl2br($res->ref_text);
|
||||
$warn_res = $this->mresourcemanager->get_errors_and_warnings($res->ref_text, $res->lang_text);
|
||||
$ref_length = strlen($res->ref_text);
|
||||
$res_length = mb_strlen($res->lang_text);
|
||||
$cuttedKey = mb_substr($res->key_id, 0, 20);
|
||||
$cuttedKey2 = mb_substr($res->key_id, 20, 40);
|
||||
$cuttedKey3 = mb_substr($res->key_id, 40, 60);
|
||||
|
||||
if ($res->to_translate == 1)
|
||||
$isDisabled = false;
|
||||
|
||||
$table .= '<tr class="mouse_over" id="' . $res->ref_id . '">';
|
||||
$table .= '<td class="col-md-2">';
|
||||
|
||||
$table .= $cuttedKey;
|
||||
$table .= '<br/>';
|
||||
$table .= $cuttedKey2;
|
||||
$table .= '<br/>';
|
||||
$table .= $cuttedKey3;
|
||||
|
||||
$table .= '<br/><br/>';
|
||||
|
||||
if (strlen($res->type_name) > 20) {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $res->type_id . '"><div class="tooltips info-tooltip">
|
||||
' . $this->mresourcemanager->cut_string($res->type_name, 20) . '
|
||||
<div class="tooltiptext" style="width: 200px; padding: 20px 0px 20px 20px">' . $res->type_name . '</div>
|
||||
</div></a>';
|
||||
} else {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $res->type_id . '">
|
||||
' . $this->mresourcemanager->cut_string($res->type_name, 20) . '
|
||||
</a>';
|
||||
}
|
||||
|
||||
if ($res->type_id > 3) {
|
||||
$table .= '<br/><br/>';
|
||||
|
||||
$table .= '<select id="alternative_' . $res->ref_id . '" class="form-control alt_select" onchange="changeAlt(' . $res->ref_id . ')" style="width: 150px;">';
|
||||
$table .= '<option value="ref">Alternatives</option>';
|
||||
|
||||
if ($res->defines != '') {
|
||||
$json = json_decode($res->defines);
|
||||
|
||||
$alternatives = array_filter($json->defines, function ($define) {
|
||||
return $define->lang == $this->mresourcemanager->getAltLang($_SESSION['partner_id']);
|
||||
});
|
||||
|
||||
if (!empty($alternatives)) {
|
||||
foreach ($alternatives as $alternative) {
|
||||
$table .= '<option value="' . $alternative->ext_key . '">' . $alternative->ext_key . '</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//$table .= '<option value="add_alt">Add new alternative</option>';
|
||||
$table .= '</select>';
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-4">
|
||||
<div class="col-md-1 counter">
|
||||
<div id="ref_res_counter_' . $res->ref_id . '">' . $ref_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<p style="width: 115%;" id="ref_' . $res->ref_id . '">' . $ref_txt . '</p>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: 10px !important;">';
|
||||
|
||||
if ($res->comment != '') {
|
||||
$table .= '<div class="tooltips info-tooltip">
|
||||
<img class="context-img" alt="" src="/public/img/resourcemanager/context_filled.png" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">' . $res->comment . '</div>
|
||||
</div>';
|
||||
} else {
|
||||
$table .= '<div class="tooltips info-tooltip">';
|
||||
|
||||
if ($res->context == 0) {
|
||||
$table .= '<input class="context-img" alt="" id="img_' . $res->ref_id . '" type="image" onclick="showModal(' . $res->ref_id . ')" src="/public/img/resourcemanager/context.png" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">Click here to provide an optional context - an explanation about when and where on the interface this specific resource will appear. - Context must be written in English.</div>';
|
||||
} else {
|
||||
$table .= '<img class="context-img" alt="" src="/public/img/resourcemanager/context_request_filled_qm.png" />';
|
||||
|
||||
$table .= '<div class="tooltiptext" style="padding: 10px 10px 10px 10px">';
|
||||
$table .= 'This resource already has a context requested.';
|
||||
|
||||
if ($res->question != '') {
|
||||
$table .= '<br/><br/>';
|
||||
$table .= 'Question: <br/>';
|
||||
$table .= '<b>' . $res->question . '</b>';
|
||||
}
|
||||
|
||||
$table .= '</div>';
|
||||
}
|
||||
|
||||
$table .= '</div>';
|
||||
}
|
||||
|
||||
$table .= '</div>';
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td>';
|
||||
$table .= '<a href="' . $gt_url . '" title="Google Translate" target="_blank">';
|
||||
$table .= '<img alt="" id="ggl_translate" class="logo" src="/public/img/resourcemanager/1024px-Google_Translate_logo.svg_.webp" />';
|
||||
$table .= '</a>';
|
||||
|
||||
if (array_key_exists($partner_id, $this->mresourcemanager->deepl_aliases)) {
|
||||
$table .= '<a href="' . $dpl_url . '" title="DeepL Translate" target="_blank">';
|
||||
$table .= '<img alt="" class="logo right" src="/public/img/resourcemanager/DeepL_Logo_2018.png" />';
|
||||
$table .= '</a>';
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td><img alt="" class="logo swap-icon" title="Use reference as translation" src="/public/img/resourcemanager/2560px-Arrow_east.svg.png" onclick="changeText(' . $res->ref_id . ')" /></td>';
|
||||
|
||||
$table .= '<td class="col-md-5">
|
||||
<div class="col-md-1 counter" style="margin-left: -15px;">
|
||||
<div id="res_counter_' . $res->res_id . '">' . $res_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea style="width: 315px;" data-id="' . $res->ref_id . '" oninput="checkCharacters(' . $res->res_id . ', 1)" id="txt_' . $res->res_id . '" class="form-control dinamic-txt" cols="50" rows="3">' . $txt . '</textarea>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: 15px;">';
|
||||
|
||||
if ($warn_res['error'] != '') {
|
||||
$table .= '<div id="error_tooltip_' . $res->ref_id . '" class="tooltips error-tooltip">
|
||||
<i class="fa fa-times-circle" style="color: #D9534F;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['error'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
if ($warn_res['warning'] != '') {
|
||||
$table .= '<div id="warning_tooltip_' . $res->ref_id . '" class="tooltips warning-tooltip">
|
||||
<i class="fa fa-exclamation-triangle" style="color: orange;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['warning'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
$table .= '</div>';
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-1">';
|
||||
|
||||
if ($res->to_translate == 1)
|
||||
$table .= '<button id="save_' . $res->res_id . '" class="btn btn-info save-btn save-ref-btn custom-btn" onclick="save(' . $res->res_id . ')">Save</button>';
|
||||
else
|
||||
$table .= '<button id="save_' . $res->res_id . '" disabled class="btn grey-btn save-btn save-ref-btn custom-btn" onclick="save(' . $res->res_id . ')">Save</button>';
|
||||
|
||||
$table .= '<button id="undo_' . $res->ref_id . '" disabled class="btn grey-btn reset-btn custom-btn" onclick="resetText(' . $res->ref_id . ')"><i class="fa fa-undo"></i></button>';
|
||||
|
||||
if ($this->mresourcemanager->isAdmin()) {
|
||||
if ($res->lang_text !== '' && $res->lang_text !== null) {
|
||||
if ($res->to_translate == 0) {
|
||||
$approved = $res->approved == 0 ? 'disabled' : '';
|
||||
$table .= '<button onclick="reject(' . $res->res_id . ', ' . $res->ref_id . ')" id="reject_' . $res->ref_id . '" class="btn btn-danger reject-btn custom-btn" ' . $approved . '>Reject</button>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
$table .= '</tr>';
|
||||
}
|
||||
|
||||
if (empty($resDatas)) {
|
||||
$table .= '<tr><td colspan="6" style="text-align: center;"><h4>No Result Found</h4></td></tr>';
|
||||
$redirect = true;
|
||||
} else {
|
||||
$disabled = $pagination->pageno <= 1 ? 'disabled' : '';
|
||||
$disabled2 = $pagination->pageno >= $pagination->total ? 'disabled' : '';
|
||||
$total = 'Total pages: ' . $pagination->total;
|
||||
$total .= '<br/> Total records: ' . $total_records;
|
||||
|
||||
$paging .= '<li><a href="' . $pagination->first_btn . '">First</a></li>';
|
||||
$paging .= '<li class="' . $disabled . '"> <a href="' . $pagination->back_btn . '">Prev</a></li>';
|
||||
|
||||
for ($i = $pagination->prev_page; $i <= $pagination->next_page; $i++) {
|
||||
$active = $i == $pagination->pageno ? 'active' : '';
|
||||
$paging .= '<li class="' . $active . '"><a href="' . $pagination->pageURL . '/' . $i . '">' . $i . '</a></li>';
|
||||
}
|
||||
|
||||
$paging .= '<li class="' . $disabled2 . '"><a href="' . $pagination->next_btn . '">Next</a></li>';
|
||||
$paging .= '<li><a href="' . $pagination->total_btn . '">Last</a></li>';
|
||||
}
|
||||
|
||||
$response['isDisabled'] = $isDisabled;
|
||||
$response['table'] = $table;
|
||||
$response['pagination'] = $paging;
|
||||
$response['total'] = $total;
|
||||
$response['redirect'] = $redirect;
|
||||
//$response['query'] = $resource['query'];
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function readRefData()
|
||||
{
|
||||
if ($this->mresourcemanager->isAdmin()) {
|
||||
$url = $_POST['curr_url'];
|
||||
$bestMatch = '';
|
||||
$exact_match = false;
|
||||
|
||||
$where = $this->mresourcemanager->search($_POST);
|
||||
|
||||
if (isset($_POST['search_name']) && $_POST['search_name'] != '') {
|
||||
$bestMatch = $_POST['search_name'];
|
||||
|
||||
if (isset($_POST['extended_search']) && $_POST['extended_search'] == 'on')
|
||||
$exact_match = true;
|
||||
}
|
||||
|
||||
$records = isset($_POST['page_number']) ? $_POST['page_number'] : $_SESSION['page_number'];
|
||||
$pageSegment = $_POST['page_segment'];
|
||||
$pagination = new Pagination($records, $pageSegment, $url);
|
||||
|
||||
if (isset($_POST['ordered_column']) && isset($_POST['order'])) {
|
||||
$sorted_table = $_POST['ordered_column'];
|
||||
$sort = $_POST['order'];
|
||||
}
|
||||
|
||||
if ($sorted_table == '' || $sort == '') {
|
||||
$sorted_table = $_SESSION['column'];
|
||||
$sort = $_SESSION['sort'];
|
||||
}
|
||||
|
||||
$offset = $pagination->getOffset();
|
||||
$resource = $this->mresourcemanager->getResourceDatas(36, $_POST['types'], $offset, $records, $where, $bestMatch, $exact_match, true, $sort, $sorted_table);
|
||||
$total_records = $this->mresourcemanager->getTotalRecords(36, $where, true);
|
||||
$total = ceil($total_records / $records);
|
||||
$refDatas = $resource['datas'];
|
||||
|
||||
$_SESSION['page_number'] = $records;
|
||||
|
||||
$pagination->setTotal($total);
|
||||
$pagination->setButtons(empty($resDatas));
|
||||
|
||||
$table = '';
|
||||
$paging = '';
|
||||
$total = '';
|
||||
$redirect = false;
|
||||
$isDisabled = true;
|
||||
|
||||
foreach ($refDatas as $ref) {
|
||||
$ref_key = "'" . $ref->key_id . "'";
|
||||
$gt_url = $this->mresourcemanager->getGoogleTranslateUrl($ref->ref_id, 36);
|
||||
$dpl_url = $this->mresourcemanager->getDeeplUrl($ref->ref_id, 36);
|
||||
$warn_res = $this->mresourcemanager->get_errors_and_warnings($ref->ref_text, $ref->lang_text);
|
||||
$ref_length = strlen($ref->ref_text);
|
||||
$res_length = mb_strlen($ref->lang_text);
|
||||
$cuttedKey = substr($ref->key_id, 0, 21);
|
||||
$cuttedKey2 = substr($ref->key_id, 21, 31);
|
||||
$cuttedKey3 = substr($ref->key_id, 31, 60);
|
||||
|
||||
if ($ref->to_translate == 1)
|
||||
$isDisabled = false;
|
||||
|
||||
$table .= '<tr id="' . $ref->ref_id . '" class="data-row">';
|
||||
$table .= '<td class="col-md-1">';
|
||||
$table .= '<button class="btn btn-danger delete-ref-btn" onclick="deleteRef(' . $ref->ref_id . ', ' . $ref_key . ')"><i class="fa fa-trash"></i></button>';
|
||||
$table .= '</td>';
|
||||
$table .= '<td class="col-md-1">';
|
||||
$table .= $cuttedKey;
|
||||
|
||||
if ($cuttedKey2 != '')
|
||||
$table .= '<div style="width: 10px !important;">' . $cuttedKey2 . '</div>';
|
||||
|
||||
if ($cuttedKey3 != '')
|
||||
$table .= '<div style="width: 10px !important;">' . $cuttedKey3 . '</div>';
|
||||
|
||||
$table .= '<br/><br/>';
|
||||
|
||||
if (strlen($ref->type_name) > 20) {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $ref->type_id . '"><div class="tooltips info-tooltip">
|
||||
' . $this->mresourcemanager->cut_string($ref->type_name, 20) . '
|
||||
<div class="tooltiptext" style="width: 200px; padding: 20px 0px 20px 20px">' . $ref->type_name . '</div>
|
||||
</div></a>';
|
||||
} else {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $ref->type_id . '">
|
||||
' . $this->mresourcemanager->cut_string($ref->type_name, 20) . '
|
||||
</a>';
|
||||
}
|
||||
|
||||
if ($ref->type_id > 3) {
|
||||
$table .= '<br/><br/>';
|
||||
|
||||
$table .= '<select id="alternative_' . $ref->ref_id . '" class="form-control alt_select" onchange="changeAlt(' . $ref->ref_id . ')" style="margin-left: -40px; width: 150px;">';
|
||||
$table .= '<option value="ref">Alternatives</option>';
|
||||
|
||||
if ($ref->defines != '') {
|
||||
$json = json_decode($ref->defines);
|
||||
|
||||
$alternatives = array_filter($json->defines, function ($define) {
|
||||
return $define->lang == 'hun';
|
||||
});
|
||||
|
||||
if (!empty($alternatives)) {
|
||||
foreach ($alternatives as $alternative) {
|
||||
$table .= '<option value="' . $alternative->ext_key . '">' . $alternative->ext_key . '</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$table .= '<option value="add_alt">Add new alternative</option>';
|
||||
$table .= '</select>';
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
$table .= '<td class="col-md-5">
|
||||
<div class="col-md-1 counter">
|
||||
<div id="ref_counter_' . $ref->ref_id . '">' . $ref_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="highlights"></div>
|
||||
<input type="hidden" id="txt_ref_val_' . $ref->ref_id . '" value="' . $ref->ref_text . '" />
|
||||
<textarea oninput="checkCharacters(' . $ref->ref_id . ', 0)" id="txt_ref_' . $ref->ref_id . '" class="form-control dinamic-txt ref-text-area" cols="50" rows="3">' . $ref->ref_text . '</textarea>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: -20px !important;">';
|
||||
if ($ref->comment != '') {
|
||||
$table .= '<div class="tooltips info-tooltip">
|
||||
<input class="context-img" alt="" id="img_' . $ref->ref_id . '" type="image" onclick="showModal(' . $ref->ref_id . ')" src="/public/img/resourcemanager/context_filled.png" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">Click here to provide an optional context - an explanation about when and where on the interface this specific resource will appear. - Context must be written in English.</div>
|
||||
</div>';
|
||||
} else {
|
||||
if ($ref->context == 0)
|
||||
$img = 'context.png';
|
||||
else
|
||||
$img = 'context_request_filled_qm.png';
|
||||
|
||||
$table .= '<div class="tooltips info-tooltip">
|
||||
<input class="context-img" alt="" id="img_' . $ref->ref_id . '" type="image" onclick="showModal(' . $ref->ref_id . ')" src="/public/img/resourcemanager/' . $img . '" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">Click here to provide an optional context - an explanation about when and where on the interface this specific resource will appear. - Context must be written in English.</div>
|
||||
</div>';
|
||||
}
|
||||
$table .= '</div>';
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-1">';
|
||||
$table .= '<a id="ggl_translate_' . $ref->ref_id . '" href="' . $gt_url . '" title="Google Translate" target="_blank">';
|
||||
$table .= '<img alt="" id="ggl_translate" class="logo" src="/public/img/resourcemanager/1024px-Google_Translate_logo.svg_.webp" />';
|
||||
$table .= '</a> ';
|
||||
$table .= '<a id="dpl_translate_' . $ref->ref_id . '" href="' . $dpl_url . '" title="DeepL Translate" target="_blank">';
|
||||
$table .= '<img alt="" class="logo" src="/public/img/resourcemanager/DeepL_Logo_2018.png" />';
|
||||
$table .= '</a>';
|
||||
$table .= '<td class="col-md-4">
|
||||
<div class="col-md-1 counter" style="margin-left: -10px">
|
||||
<div id="res_counter_' . $ref->ref_id . '">' . $res_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="hidden" id="txt_val_' . $ref->ref_id . '" value="' . $ref->ref_text . '" />
|
||||
<textarea oninput="checkCharacters(' . $ref->ref_id . ', 1)" id="txt_' . $ref->ref_id . '" class="form-control dinamic-txt">' . $ref->lang_text . '</textarea>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: -20px !important;">';
|
||||
|
||||
if ($warn_res['error'] != '') {
|
||||
$table .= '<div id="error_tooltip_' . $ref->ref_id . '" class="tooltips error-tooltip">
|
||||
<i class="fa fa-times-circle" style="color: #D9534F;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['error'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
if ($warn_res['warning'] != '') {
|
||||
$table .= '<div id="warning_tooltip_' . $ref->ref_id . '" class="tooltips warning-tooltip">
|
||||
<i class="fa fa-exclamation-triangle" style="color: orange;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['warning'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
$table .= '</div>';
|
||||
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-1">';
|
||||
|
||||
if ($ref->to_translate == 1)
|
||||
$table .= '<button id="save_' . $ref->ref_id . '" class="btn btn-info save-btn save-ref-btn custom-btn" onclick="saveRef(' . $ref->ref_id . ')">Save</button>';
|
||||
else
|
||||
$table .= '<button id="save_' . $ref->ref_id . '" disabled class="btn grey-btn save-btn save-ref-btn custom-btn" onclick="saveRef(' . $ref->ref_id . ')">Save</button>';
|
||||
|
||||
$table .= '<button id="undo_' . $ref->ref_id . '" disabled class="btn grey-btn reset-btn custom-btn" onclick="resetText(' . $ref->ref_id . ')"><i class="fa fa-undo"></i></button>';
|
||||
$table .= '</td>';
|
||||
$table .= '</tr>';
|
||||
}
|
||||
|
||||
if (empty($refDatas)) {
|
||||
$table .= '<tr><td colspan="6" style="text-align: center;"><h4>No Result Found</h4></td></tr>';
|
||||
$redirect = true;
|
||||
} else {
|
||||
$disabled = $pagination->pageno <= 1 ? 'disabled' : '';
|
||||
$disabled2 = $pagination->pageno >= $pagination->total ? 'disabled' : '';
|
||||
$total = 'Total pages: ' . $pagination->total;
|
||||
$total .= '<br/> Total records: ' . $total_records;
|
||||
|
||||
$paging .= '<li><a href="' . $pagination->first_btn . '">First</a></li>';
|
||||
$paging .= '<li class="' . $disabled . '"> <a href="' . $pagination->back_btn . '">Prev</a></li>';
|
||||
|
||||
for ($i = $pagination->prev_page; $i <= $pagination->next_page; $i++) {
|
||||
$active = $i == $pagination->pageno ? 'active' : '';
|
||||
$paging .= '<li class="' . $active . '"><a href="' . $pagination->pageURL . '/' . $i . '">' . $i . '</a></li>';
|
||||
}
|
||||
|
||||
$paging .= '<li class="' . $disabled2 . '"><a href="' . $pagination->next_btn . '">Next</a></li>';
|
||||
$paging .= '<li><a href="/resourcemanager/reference/' . $pagination->total . '">Last</a></li>';
|
||||
}
|
||||
|
||||
$response['isDisabled'] = $isDisabled;
|
||||
$response['table'] = $table;
|
||||
$response['pagination'] = $paging;
|
||||
$response['total'] = $total;
|
||||
$response['redirect'] = $redirect;
|
||||
} else {
|
||||
$response = array();
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getPartnerID()
|
||||
{
|
||||
$response['partnerID'] = $this->mresourcemanager->getPartnerID($_POST['partner_id']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getContextJson()
|
||||
{
|
||||
$response = $this->mresourcemanager->getContextDatas($_POST['ref_id']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function askForContext()
|
||||
{
|
||||
$response['asked'] = $this->mresourcemanager->askForContext($_POST['ref_id'], $_POST['partner_id'], $_POST['question']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function saveContext()
|
||||
{
|
||||
$response['saved'] = $this->mresourcemanager->saveContext($_POST['ref_id'], $_POST['comment']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function updateProfile()
|
||||
{
|
||||
$response['saved'] = $this->mresourcemanager->updateProfile($_POST['profile_name'], $_POST['profile_email'], $_POST['notification']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getErrorsAndWarnings()
|
||||
{
|
||||
$response = $this->mresourcemanager->get_errors_and_warnings($_POST['ref_text'], $_POST['lang_text']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getExistingHits()
|
||||
{
|
||||
$response = $this->mresourcemanager->getExistingHits($_POST['ref_text']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getAlternative()
|
||||
{
|
||||
$response = $this->mresourcemanager->getAlternative($_POST['alt_key'], $_POST['elem_id'], $_POST['partnerID']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function addAlternative()
|
||||
{
|
||||
$response = $this->mresourcemanager->addAlternative($_POST['id'], $_POST['key'], $_POST['txt']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function setSearchSessions()
|
||||
{
|
||||
$response = $this->mresourcemanager->setSearchSessions($_POST['ref_text']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function isSessionActive()
|
||||
{
|
||||
$response['active'] = $this->phpsession->get('access_id') != null;
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,502 @@
|
||||
<?php
|
||||
class Resourcemanager_live extends Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->load->library('session');
|
||||
$this->load->model('mresourcemanager');
|
||||
$this->load->library('Pagination');
|
||||
$this->load->helper('language');
|
||||
$this->lang->load('site');
|
||||
$this->load->helper('cookie');
|
||||
|
||||
if (!isset($_SESSION['page_lang']))
|
||||
$_SESSION['page_lang'] = 'eng';
|
||||
|
||||
if ($this->phpsession->get('access_id') == '' && isset($_COOKIE["access_id"]) && $this->uri->segment(2) != 'logout') {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', $_COOKIE["access_id"]);
|
||||
|
||||
$cookie = array(
|
||||
'name' => 'access_id',
|
||||
'value' => get_cookie('access_id'),
|
||||
'expire' => time() + (10 * 365 * 24 * 60 * 60),
|
||||
);
|
||||
set_cookie($cookie);
|
||||
}
|
||||
|
||||
if ($this->phpsession->get('access_id') == '' && $this->uri->segment(2) != 'login' && $this->uri->segment(2) != 'isSessionActive')
|
||||
redirect('resourcemanager_live/login');
|
||||
|
||||
if ($this->uri->segment(2) == '')
|
||||
redirect('resourcemanager_live/index');
|
||||
|
||||
$this->mresourcemanager->redirectInvalidUrl();
|
||||
$this->mresourcemanager->initialiseDb('resourcemanager_live');
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
if (!isset($_SESSION['page_number']) || !is_numeric($_SESSION['page_number']))
|
||||
$_SESSION['page_number'] = 10;
|
||||
|
||||
$_SESSION['partner_id'] = $this->mresourcemanager->getPartnerID($this->uri->segment(3));
|
||||
$partner_id = $this->mresourcemanager->getPartnerID($this->uri->segment(3));
|
||||
|
||||
$resData['user'] = $this->mresourcemanager->getSelectedPartner($partner_id);
|
||||
$resData['types'] = $this->mresourcemanager->getResourceTypes();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager_live/index.php', $resData, 'Home', true, 'index');
|
||||
}
|
||||
|
||||
function reference()
|
||||
{
|
||||
if (!isset($_SESSION['page_number']) || !is_numeric($_SESSION['page_number']))
|
||||
$_SESSION['page_number'] = 10;
|
||||
|
||||
$resData['types'] = $this->mresourcemanager->getResourceTypes();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager_live/admin/reference.php', $resData, 'Reference', true, 'reference');
|
||||
}
|
||||
|
||||
function help()
|
||||
{
|
||||
$resData['help_text'] = $this->mresourcemanager->getHelpText();
|
||||
|
||||
$this->mresourcemanager->loadTemplate('resourcemanager_live/help.php', $resData, 'Help', true, 'help');
|
||||
}
|
||||
|
||||
function readData()
|
||||
{
|
||||
if ($this->phpsession->get('access_id') == '' && isset($_COOKIE["access_id"])) {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', $_COOKIE["access_id"]);
|
||||
}
|
||||
|
||||
$url = $_POST['curr_url'];
|
||||
$bestMatch = '';
|
||||
$exact_match = false;
|
||||
|
||||
$where = $this->mresourcemanager->search($_POST);
|
||||
|
||||
if (isset($_POST['search_name']) && $_POST['search_name'] != '') {
|
||||
$bestMatch = $_POST['search_name'];
|
||||
|
||||
if (isset($_POST['extended_search']) && $_POST['extended_search'] == 'on')
|
||||
$exact_match = true;
|
||||
}
|
||||
|
||||
$records = isset($_POST['page_number']) ? $_POST['page_number'] : $_SESSION['page_number'];
|
||||
$pageSegment = $_POST['page_segment'];
|
||||
$pagination = new Pagination($records, $pageSegment, $url);
|
||||
$partner_id = $_SESSION['partner_id'];
|
||||
|
||||
if (isset($_POST['ordered_column']) && isset($_POST['order'])) {
|
||||
$sorted_table = $_POST['ordered_column'];
|
||||
$sort = $_POST['order'];
|
||||
}
|
||||
|
||||
if ($sorted_table == '' || $sort == '') {
|
||||
$sorted_table = $_SESSION['column'];
|
||||
$sort = $_SESSION['sort'];
|
||||
}
|
||||
|
||||
$offset = $pagination->getOffset();
|
||||
$resDatas = $this->mresourcemanager->getResourceDatas($_SESSION['partner_id'], $_POST['types'], $offset, $records, $where, $bestMatch, $exact_match, false, $sort, $sorted_table);
|
||||
$total = ceil($this->mresourcemanager->getTotalRecords($_SESSION['partner_id'], $where) / $records);
|
||||
|
||||
$_SESSION['page_number'] = $records;
|
||||
|
||||
$pagination->setTotal($total);
|
||||
$pagination->setButtons(empty($resDatas));
|
||||
|
||||
$table = '';
|
||||
$paging = '';
|
||||
$redirect = false;
|
||||
$isDisabled = true;
|
||||
|
||||
foreach ($resDatas as $res) {
|
||||
$gt_url = $this->mresourcemanager->getGoogleTranslateUrl($res->ref_id, $partner_id);
|
||||
$dpl_url = $this->mresourcemanager->getDeeplUrl($res->ref_id, $partner_id);
|
||||
$txt = $res->lang_text == null || $res->lang_text == '' ? $res->ref_text : $res->lang_text;
|
||||
$ref_txt = nl2br($res->ref_text);
|
||||
$warn_res = $this->mresourcemanager->get_errors_and_warnings($res->ref_text, $res->lang_text);
|
||||
$ref_length = strlen($res->ref_text);
|
||||
$res_length = mb_strlen($res->lang_text);
|
||||
$cuttedKey = mb_substr($res->key_id, 0, 20);
|
||||
$cuttedKey2 = mb_substr($res->key_id, 20, 40);
|
||||
$cuttedKey3 = mb_substr($res->key_id, 40, 60);
|
||||
|
||||
if ($res->to_translate == 1)
|
||||
$isDisabled = false;
|
||||
|
||||
$table .= '<tr class="mouse_over" id="' . $res->ref_id . '">';
|
||||
$table .= '<td class="col-md-2">';
|
||||
|
||||
$table .= $cuttedKey;
|
||||
$table .= '<br/>';
|
||||
$table .= $cuttedKey2;
|
||||
$table .= '<br/>';
|
||||
$table .= $cuttedKey3;
|
||||
|
||||
$table .= '<br/><br/>';
|
||||
|
||||
if (strlen($res->type_name) > 20) {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $res->type_id . '"><div class="tooltips info-tooltip">
|
||||
' . $this->mresourcemanager->cut_string($res->type_name, 20) . '
|
||||
<div class="tooltiptext" style="width: 200px; padding: 20px 0px 20px 20px">' . $res->type_name . '</div>
|
||||
</div></a>';
|
||||
} else {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $res->type_id . '">
|
||||
' . $this->mresourcemanager->cut_string($res->type_name, 20) . '
|
||||
</a>';
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-4">
|
||||
<div class="col-md-1 counter">
|
||||
<div id="ref_res_counter_' . $res->ref_id . '">' . $ref_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<p style="width: 115%;" id="ref_' . $res->ref_id . '">' . $ref_txt . '</p>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: 10px !important;">';
|
||||
|
||||
if ($res->comment != '') {
|
||||
$table .= '<div class="tooltips info-tooltip">
|
||||
<img class="context-img" alt="" src="/public/img/resourcemanager/context_filled.png" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">' . $res->comment . '</div>
|
||||
</div>';
|
||||
} else {
|
||||
$table .= '<div class="tooltips info-tooltip">';
|
||||
|
||||
if ($res->context == 0) {
|
||||
$table .= '<input class="context-img" alt="" id="img_' . $res->ref_id . '" type="image" onclick="showModal(' . $res->ref_id . ')" src="/public/img/resourcemanager/context.png" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">Click here to provide an optional context - an explanation about when and where on the interface this specific resource will appear. - Context must be written in English.</div>';
|
||||
} else {
|
||||
$table .= '<img class="context-img" alt="" src="/public/img/resourcemanager/context_request_filled_qm.png" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">This resource already has a context requested.</div>';
|
||||
}
|
||||
|
||||
$table .= '</div>';
|
||||
}
|
||||
|
||||
$table .= '</div>';
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td>';
|
||||
$table .= '<a href="' . $gt_url . '" title="Google Translate" target="_blank">';
|
||||
$table .= '<img alt="" id="ggl_translate" class="logo" src="/public/img/resourcemanager/1024px-Google_Translate_logo.svg_.webp" />';
|
||||
$table .= '</a>';
|
||||
|
||||
if (array_key_exists($partner_id, $this->mresourcemanager->deepl_aliases)) {
|
||||
$table .= '<a href="' . $dpl_url . '" title="DeepL Translate" target="_blank">';
|
||||
$table .= '<img alt="" class="logo right" src="/public/img/resourcemanager/DeepL_Logo_2018.png" />';
|
||||
$table .= '</a>';
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td><img alt="" class="logo swap-icon" title="Use reference as translation" src="/public/img/resourcemanager/2560px-Arrow_east.svg.png" onclick="changeText(' . $res->ref_id . ')" /></td>';
|
||||
|
||||
$table .= '<td class="col-md-5">
|
||||
<div class="col-md-1 counter" style="margin-left: -15px;">
|
||||
<div id="res_counter_' . $res->res_id . '">' . $res_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<textarea style="width: 315px;" oninput="checkCharacters(' . $res->res_id . ', 1)" id="txt_' . $res->res_id . '" class="form-control dinamic-txt" cols="50" rows="3">' . $txt . '</textarea>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: 15px;">';
|
||||
|
||||
if ($warn_res['error'] != '') {
|
||||
$table .= '<div id="error_tooltip_' . $res->ref_id . '" class="tooltips error-tooltip">
|
||||
<i class="fa fa-times-circle" style="color: #D9534F;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['error'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
if ($warn_res['warning'] != '') {
|
||||
$table .= '<div id="warning_tooltip_' . $res->ref_id . '" class="tooltips warning-tooltip">
|
||||
<i class="fa fa-exclamation-triangle" style="color: orange;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['warning'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
$table .= '</div>';
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-1">';
|
||||
|
||||
if ($res->to_translate == 1)
|
||||
$table .= '<button id="save_' . $res->res_id . '" class="btn btn-info save-btn save-ref-btn custom-btn" onclick="save(' . $res->res_id . ')">Save</button>';
|
||||
else
|
||||
$table .= '<button id="save_' . $res->res_id . '" disabled class="btn grey-btn save-btn save-ref-btn custom-btn" onclick="save(' . $res->res_id . ')">Save</button>';
|
||||
|
||||
$table .= '<button id="undo_' . $res->ref_id . '" disabled class="btn grey-btn reset-btn custom-btn" onclick="resetText(' . $res->ref_id . ')"><i class="fa fa-undo"></i></button>';
|
||||
|
||||
if ($this->mresourcemanager->isAdmin()) {
|
||||
if ($res->lang_text !== '' && $res->lang_text !== null) {
|
||||
if ($res->to_translate == 0) {
|
||||
$approved = $res->approved == 0 ? 'disabled' : '';
|
||||
$table .= '<button onclick="reject(' . $res->res_id . ', ' . $res->ref_id . ')" id="reject_' . $res->ref_id . '" class="btn btn-danger reject-btn custom-btn" ' . $approved . '>Reject</button>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
$table .= '</tr>';
|
||||
}
|
||||
|
||||
if (empty($resDatas)) {
|
||||
$table .= '<tr><td colspan="6" style="text-align: center;"><h4>No Result Found</h4></td></tr>';
|
||||
$redirect = true;
|
||||
} else {
|
||||
$disabled = $pagination->pageno <= 1 ? 'disabled' : '';
|
||||
$disabled2 = $pagination->pageno >= $pagination->total ? 'disabled' : '';
|
||||
$total = '<br/> Total pages: ' . $pagination->total;
|
||||
|
||||
$paging .= '<li><a href="' . $pagination->first_btn . '">First</a></li>';
|
||||
$paging .= '<li class="' . $disabled . '"> <a href="' . $pagination->back_btn . '">Prev</a></li>';
|
||||
|
||||
for ($i = $pagination->prev_page; $i <= $pagination->next_page; $i++) {
|
||||
$active = $i == $pagination->pageno ? 'active' : '';
|
||||
$paging .= '<li class="' . $active . '"><a href="' . $pagination->pageURL . '/' . $i . '">' . $i . '</a></li>';
|
||||
}
|
||||
|
||||
$paging .= '<li class="' . $disabled2 . '"><a href="' . $pagination->next_btn . '">Next</a></li>';
|
||||
$paging .= '<li><a href="' . $pagination->total_btn . '">Last</a></li>';
|
||||
}
|
||||
|
||||
$response['isDisabled'] = $isDisabled;
|
||||
$response['table'] = $table;
|
||||
$response['pagination'] = $paging;
|
||||
$response['total'] = $total;
|
||||
$response['redirect'] = $redirect;
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function readRefData()
|
||||
{
|
||||
if ($this->mresourcemanager->isAdmin()) {
|
||||
$url = $_POST['curr_url'];
|
||||
$bestMatch = '';
|
||||
$exact_match = false;
|
||||
|
||||
$where = $this->mresourcemanager->search($_POST);
|
||||
|
||||
if (isset($_POST['search_name']) && $_POST['search_name'] != '') {
|
||||
$bestMatch = $_POST['search_name'];
|
||||
|
||||
if (isset($_POST['extended_search']) && $_POST['extended_search'] == 'on')
|
||||
$exact_match = true;
|
||||
}
|
||||
|
||||
$records = isset($_POST['page_number']) ? $_POST['page_number'] : $_SESSION['page_number'];
|
||||
$pageSegment = $_POST['page_segment'];
|
||||
$pagination = new Pagination($records, $pageSegment, $url);
|
||||
|
||||
if (isset($_POST['ordered_column']) && isset($_POST['order'])) {
|
||||
$sorted_table = $_POST['ordered_column'];
|
||||
$sort = $_POST['order'];
|
||||
}
|
||||
|
||||
if ($sorted_table == '' || $sort == '') {
|
||||
$sorted_table = $_SESSION['column'];
|
||||
$sort = $_SESSION['sort'];
|
||||
}
|
||||
|
||||
$offset = $pagination->getOffset();
|
||||
$refDatas = $this->mresourcemanager->getResourceDatas(36, $_POST['types'], $offset, $records, $where, $bestMatch, $exact_match, true, $sort, $sorted_table);
|
||||
$total = ceil($this->mresourcemanager->getTotalRecords(36, $where, true) / $records);
|
||||
|
||||
$_SESSION['page_number'] = $records;
|
||||
|
||||
$pagination->setTotal($total);
|
||||
$pagination->setButtons(empty($resDatas));
|
||||
|
||||
$table = '';
|
||||
$paging = '';
|
||||
$total = '';
|
||||
$redirect = false;
|
||||
$isDisabled = true;
|
||||
|
||||
foreach ($refDatas as $ref) {
|
||||
$ref_key = "'" . $ref->key_id . "'";
|
||||
$gt_url = $this->mresourcemanager->getGoogleTranslateUrl($ref->ref_id, 36);
|
||||
$dpl_url = $this->mresourcemanager->getDeeplUrl($ref->ref_id, 36);
|
||||
$warn_res = $this->mresourcemanager->get_errors_and_warnings($ref->ref_text, $ref->lang_text);
|
||||
$ref_length = strlen($ref->ref_text);
|
||||
$res_length = mb_strlen($ref->lang_text);
|
||||
$cuttedKey = substr($ref->key_id, 0, 21);
|
||||
$cuttedKey2 = substr($ref->key_id, 21, 31);
|
||||
$cuttedKey3 = substr($ref->key_id, 31, 60);
|
||||
|
||||
if ($ref->to_translate == 1)
|
||||
$isDisabled = false;
|
||||
|
||||
$table .= '<tr id="' . $ref->ref_id . '" class="data-row">';
|
||||
$table .= '<td class="col-md-1">';
|
||||
$table .= '<button class="btn btn-danger delete-ref-btn" onclick="deleteRef(' . $ref->ref_id . ', ' . $ref_key . ')"><i class="fa fa-trash"></i></button>';
|
||||
$table .= '</td>';
|
||||
$table .= '<td class="col-md-1">';
|
||||
$table .= $cuttedKey;
|
||||
|
||||
if ($cuttedKey2 != '')
|
||||
$table .= '<div style="width: 10px !important;">' . $cuttedKey2 . '</div>';
|
||||
|
||||
if ($cuttedKey3 != '')
|
||||
$table .= '<div style="width: 10px !important;">' . $cuttedKey3 . '</div>';
|
||||
|
||||
$table .= '<br/><br/>';
|
||||
|
||||
if (strlen($ref->type_name) > 20) {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $ref->type_id . '"><div class="tooltips info-tooltip">
|
||||
' . $this->mresourcemanager->cut_string($ref->type_name, 20) . '
|
||||
<div class="tooltiptext" style="width: 200px; padding: 20px 0px 20px 20px">' . $ref->type_name . '</div>
|
||||
</div></a>';
|
||||
} else {
|
||||
$table .= '<a class="type-tooltip" data-id="' . $ref->type_id . '">
|
||||
' . $this->mresourcemanager->cut_string($ref->type_name, 20) . '
|
||||
</a>';
|
||||
}
|
||||
|
||||
if ($ref->type_id > 3) {
|
||||
$table .= '<br/><br/>';
|
||||
|
||||
$table .= '<select id="alternative_' . $ref->ref_id . '" class="form-control alt_select" onchange="changeAlt(' . $ref->ref_id . ')" style="margin-left: -40px; width: 150px;">';
|
||||
$table .= '<option value="ref">Alternatives</option>';
|
||||
|
||||
if ($ref->defines != '') {
|
||||
$json = json_decode($ref->defines);
|
||||
|
||||
$alternatives = array_filter($json->defines, function ($define) {
|
||||
return $define->lang == 'hun';
|
||||
});
|
||||
|
||||
if (!empty($alternatives)) {
|
||||
foreach ($alternatives as $alternative) {
|
||||
$table .= '<option value="' . $alternative->ext_key . '">' . $alternative->ext_key . '</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$table .= '<option value="add_alt">Add new alternative</option>';
|
||||
$table .= '</select>';
|
||||
}
|
||||
|
||||
$table .= '</td>';
|
||||
$table .= '<td class="col-md-5">
|
||||
<div class="col-md-1 counter">
|
||||
<div id="ref_counter_' . $ref->ref_id . '">' . $ref_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="highlights"></div>
|
||||
<input type="hidden" id="txt_ref_val_' . $ref->ref_id . '" value="' . $ref->ref_text . '" />
|
||||
<textarea oninput="checkCharacters(' . $ref->ref_id . ', 0)" id="txt_ref_' . $ref->ref_id . '" class="form-control dinamic-txt" cols="50" rows="3">' . $ref->ref_text . '</textarea>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: -20px !important;">';
|
||||
if ($ref->comment != '') {
|
||||
$table .= '<div class="tooltips info-tooltip">
|
||||
<input class="context-img" alt="" id="img_' . $ref->ref_id . '" type="image" onclick="showModal(' . $ref->ref_id . ')" src="/public/img/resourcemanager/context_filled.png" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">Click here to provide an optional context - an explanation about when and where on the interface this specific resource will appear. - Context must be written in English.</div>
|
||||
</div>';
|
||||
} else {
|
||||
if ($ref->context == 0)
|
||||
$img = 'context.png';
|
||||
else
|
||||
$img = 'context_request_filled_qm.png';
|
||||
|
||||
$table .= '<div class="tooltips info-tooltip">
|
||||
<input class="context-img" alt="" id="img_' . $ref->ref_id . '" type="image" onclick="showModal(' . $ref->ref_id . ')" src="/public/img/resourcemanager/' . $img . '" />
|
||||
<div class="tooltiptext" style="padding: 10px 10px 10px 10px">Click here to provide an optional context - an explanation about when and where on the interface this specific resource will appear. - Context must be written in English.</div>
|
||||
</div>';
|
||||
}
|
||||
$table .= '</div>';
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-1">';
|
||||
$table .= '<a href="' . $gt_url . '" title="Google Translate" target="_blank">';
|
||||
$table .= '<img alt="" id="ggl_translate" class="logo" src="/public/img/resourcemanager/1024px-Google_Translate_logo.svg_.webp" />';
|
||||
$table .= '</a> ';
|
||||
$table .= '<a href="' . $dpl_url . '" title="DeepL Translate" target="_blank">';
|
||||
$table .= '<img alt="" class="logo" src="/public/img/resourcemanager/DeepL_Logo_2018.png" />';
|
||||
$table .= '</a>';
|
||||
$table .= '<td class="col-md-4">
|
||||
<div class="col-md-1 counter" style="margin-left: -10px">
|
||||
<div id="res_counter_' . $ref->ref_id . '">' . $res_length . '</div>
|
||||
</div>
|
||||
<div class="col-md-10">
|
||||
<input type="hidden" id="txt_val_' . $ref->ref_id . '" value="' . $ref->ref_text . '" />
|
||||
<textarea oninput="checkCharacters(' . $ref->ref_id . ', 1)" id="txt_' . $ref->ref_id . '" class="form-control dinamic-txt">' . $ref->lang_text . '</textarea>
|
||||
</div>';
|
||||
|
||||
$table .= '<div class="col-md-1" style="margin-left: -20px !important;">';
|
||||
|
||||
if ($warn_res['error'] != '') {
|
||||
$table .= '<div id="error_tooltip_' . $ref->ref_id . '" class="tooltips error-tooltip">
|
||||
<i class="fa fa-times-circle" style="color: #D9534F;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['error'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
if ($warn_res['warning'] != '') {
|
||||
$table .= '<div id="warning_tooltip_' . $ref->ref_id . '" class="tooltips warning-tooltip">
|
||||
<i class="fa fa-exclamation-triangle" style="color: orange;"></i>
|
||||
<div class="tooltiptext"><ul>' . $warn_res['warning'] . '</ul></div>
|
||||
</div>';
|
||||
}
|
||||
$table .= '</div>';
|
||||
|
||||
$table .= '</td>';
|
||||
|
||||
$table .= '<td class="col-md-1">';
|
||||
|
||||
if ($ref->to_translate == 1)
|
||||
$table .= '<button id="save_' . $ref->ref_id . '" class="btn btn-info save-btn save-ref-btn custom-btn" onclick="saveRef(' . $ref->ref_id . ')">Save</button>';
|
||||
else
|
||||
$table .= '<button id="save_' . $ref->ref_id . '" disabled class="btn grey-btn save-btn save-ref-btn custom-btn" onclick="saveRef(' . $ref->ref_id . ')">Save</button>';
|
||||
|
||||
$table .= '<button id="undo_' . $ref->ref_id . '" disabled class="btn grey-btn reset-btn custom-btn" onclick="resetText(' . $ref->ref_id . ')"><i class="fa fa-undo"></i></button>';
|
||||
$table .= '</td>';
|
||||
$table .= '</tr>';
|
||||
}
|
||||
|
||||
if (empty($refDatas)) {
|
||||
$table .= '<tr><td colspan="6" style="text-align: center;"><h4>No Result Found</h4></td></tr>';
|
||||
$redirect = true;
|
||||
} else {
|
||||
$disabled = $pagination->pageno <= 1 ? 'disabled' : '';
|
||||
$disabled2 = $pagination->pageno >= $pagination->total ? 'disabled' : '';
|
||||
$total = '<br/> Total pages: ' . $pagination->total;
|
||||
|
||||
$paging .= '<li><a href="' . $pagination->first_btn . '">First</a></li>';
|
||||
$paging .= '<li class="' . $disabled . '"> <a href="' . $pagination->back_btn . '">Prev</a></li>';
|
||||
|
||||
for ($i = $pagination->prev_page; $i <= $pagination->next_page; $i++) {
|
||||
$active = $i == $pagination->pageno ? 'active' : '';
|
||||
$paging .= '<li class="' . $active . '"><a href="' . $pagination->pageURL . '/' . $i . '">' . $i . '</a></li>';
|
||||
}
|
||||
|
||||
$paging .= '<li class="' . $disabled2 . '"><a href="' . $pagination->next_btn . '">Next</a></li>';
|
||||
$paging .= '<li><a href="/resourcemanager/reference/' . $pagination->total . '">Last</a></li>';
|
||||
}
|
||||
|
||||
$response['isDisabled'] = $isDisabled;
|
||||
$response['table'] = $table;
|
||||
$response['pagination'] = $paging;
|
||||
$response['total'] = $total;
|
||||
$response['redirect'] = $redirect;
|
||||
$response['asd'] = $_SESSION['query_test'];
|
||||
} else {
|
||||
$response = array();
|
||||
}
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
class rss extends Controller
|
||||
{
|
||||
function rss()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['title'] = 'ARCHLine.XP RSS Feed';
|
||||
$data['tartalom'] = 'rss/index';
|
||||
|
||||
$this->load->model('mevents');
|
||||
|
||||
$hirek_lista = array();
|
||||
//$hirek_lista = $this->mnews->get_all($this->muser->user['lang'], true, 'fresh');
|
||||
$hirek_news = $this->mnews->get_latest(7,$this->muser->user['lang'], true, 'fresh');
|
||||
foreach($hirek_news as $hir){
|
||||
$hir2 = '';
|
||||
|
||||
$datum = $hir->news_y . '-' . $hir->news_m . '-' . $hir->news_d;
|
||||
$hir2->datum = date('D, d M Y H:i:s +0200', strtotime($datum));
|
||||
$hir2->title = $hir->news_title;
|
||||
if( $hir->news_short != "" )
|
||||
$hir2->short = $hir->news_short;
|
||||
else
|
||||
$hir2->short = substr(strip_tags($hir->news_text),0,123);
|
||||
if(hun())
|
||||
$hir2->url = "http://www.archline.hu/news/show/" . $hir->news_id;
|
||||
elseif(eng())
|
||||
$hir2->url = "http://www.archlinexp.com/news/show/" . $hir->news_id;
|
||||
array_push($hirek_lista, $hir2);
|
||||
}
|
||||
|
||||
$esemenyek = $this->mevents->get_rss($this->muser->user['lang']);
|
||||
foreach($esemenyek as $hir){
|
||||
$hir2 = '';
|
||||
$hir2->datum = date('D, d M Y H:i:s +0200', $hir->datum);
|
||||
$hir2->title = $hir->title;
|
||||
$hir2->short = substr($hir->short,0,127) . "...";
|
||||
/*$hir2->url = "http://www.archlinexp.com/page/show/" . $hir->page;*/
|
||||
if( $hir2->title == "Újdonságok 2012" )
|
||||
$hir2->url = "http://www.archline.hu/ujdonsagok-2012";
|
||||
elseif(hun())
|
||||
$hir2->url = "http://www.archline.hu/page/show/" . $hir->page;
|
||||
elseif(eng())
|
||||
$hir2->url = "http://www.archlinexp.com/page/show/" . $hir->page;
|
||||
array_push($hirek_lista, $hir2);
|
||||
}
|
||||
|
||||
// $hirek_lista = array_merge($hirek_news, $esemenyek);
|
||||
|
||||
usort( $hirek_lista, "hasonlito" );
|
||||
|
||||
$data['hirek_lista'] = $hirek_lista;
|
||||
|
||||
$this->load->view('site_rss',$data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function hasonlito( $a, $b ){
|
||||
if ( strtotime($a->datum) == strtotime($b->datum) )
|
||||
return 0;
|
||||
if ( strtotime($a->datum) > strtotime($b->datum) )
|
||||
return -1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
class Search extends Controller{
|
||||
|
||||
function Search(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Keresés' : 'ARCHLine.XP Search';
|
||||
$data['tartalom']='search/index';
|
||||
$data['csik']=array('home');
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function submit(){
|
||||
$input = ($_POST['kereses']);
|
||||
$input = preg_replace('/ /', '+', $input);
|
||||
redirect('search/index/'.$input);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,871 @@
|
||||
<?php
|
||||
|
||||
define( 'AFA_HUN', 0.27);
|
||||
|
||||
class Services extends Controller
|
||||
{
|
||||
function Services(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
//$this->virtuallyfurnish();
|
||||
redirect('services/virtuallyfurnish');
|
||||
}
|
||||
|
||||
function virtuallyfurnish(){
|
||||
|
||||
$harmadik = $this->uri->segment(3);
|
||||
if( $harmadik == "pricing" ){
|
||||
$this->pricing("vf");
|
||||
return;
|
||||
}elseif( $harmadik == "upload" ){
|
||||
$this->upload("vf");
|
||||
return;
|
||||
}
|
||||
if( is_numeric($harmadik) ){
|
||||
if( $harmadik > 0 && $harmadik <= 4 ){
|
||||
$this->order("vf", $harmadik);
|
||||
return;
|
||||
}
|
||||
else{
|
||||
print "?";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(!hun()){
|
||||
// új oldalra
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.eu/packages/virtual-photo-staging");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data['szolg_cim'] = "Virtually Furnish";
|
||||
$data['infok'] = $this->mpages->get_row(651);
|
||||
$data['infix'] = "vf";
|
||||
|
||||
$data['virtuallyfurnish'] = true;
|
||||
|
||||
$data['meta']['desc'] = strip_tags(lang('services_vf_h3'));
|
||||
|
||||
$data['tartalom'] = 'services/index';
|
||||
|
||||
$data['title'] = hun() ? 'Virtual staging szolgáltatás - CadLine Kft.' : 'Virtual Staging service - CadLine Network';
|
||||
$data['javascript'] = array('jquery.corner','fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack','jquery.mousewheel.min');
|
||||
$data['style'] = array('workshop','../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2');
|
||||
$data['csik'] = array('home', 'services','virtuallyfurnish');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function rendering(){
|
||||
|
||||
|
||||
$harmadik = $this->uri->segment(3);
|
||||
if( $harmadik == "pricing" ){
|
||||
$this->pricing("re");
|
||||
return;
|
||||
}elseif( $harmadik == "upload" ){
|
||||
$this->upload("re");
|
||||
return;
|
||||
}
|
||||
if( is_numeric($harmadik) ){
|
||||
if( $harmadik > 0 && $harmadik <= 5 ){
|
||||
$this->order("re", $harmadik);
|
||||
return;
|
||||
}
|
||||
else{
|
||||
print "?";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if(!hun()){
|
||||
// új oldalra
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.eu/packages/photorealistic-rendering");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
$data['szolg_cim'] = "Rendering";
|
||||
$data['infok'] = $this->mpages->get_row(652);
|
||||
$data['infix'] = "re";
|
||||
|
||||
$data['rendering'] = true;
|
||||
|
||||
$data['meta']['desc'] = end(explode('<br />',lang('services_re_h3')));
|
||||
|
||||
$data['tartalom'] = 'services/index';
|
||||
|
||||
$data['title'] = hun() ? 'CadLine Kft. Szolgáltatások - '.lang('services_re') : lang('services_re').' - CadLine Services';
|
||||
$data['javascript'] = array('jquery.corner','fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack','jquery.mousewheel.min');
|
||||
$data['style'] = array('workshop','../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2');
|
||||
$data['csik'] = array('home', 'services', 'servrendering');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function sketch(){
|
||||
|
||||
$harmadik = $this->uri->segment(3);
|
||||
if( $harmadik == "pricing" ){
|
||||
$this->pricing("sk");
|
||||
return;
|
||||
}elseif( $harmadik == "upload" ){
|
||||
$this->upload("sk");
|
||||
return;
|
||||
}
|
||||
if( is_numeric($harmadik) ){
|
||||
if( $harmadik > 0 && $harmadik <= 6 ){
|
||||
$this->order("sk", $harmadik);
|
||||
return;
|
||||
}
|
||||
else{
|
||||
print "?";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!hun()){
|
||||
// új oldalra
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.eu/packages/3d-interior-modeling");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
$data['szolg_cim'] = "Convert sketch into 3D model";
|
||||
$data['infok'] = $this->mpages->get_row(653);
|
||||
$data['infix'] = "sk";
|
||||
|
||||
$data['sketch'] = true;
|
||||
|
||||
$data['meta']['desc'] = strip_tags(lang('services_sk_h3'));
|
||||
|
||||
$data['tartalom'] = 'services/index';
|
||||
|
||||
$data['title'] = hun() ? '3D modell készítése - CadLine Kft. Szolgáltatások' : 'Convert sketch into 3D model - CadLine Services';
|
||||
$data['javascript'] = array('jquery.corner','fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack','jquery.mousewheel.min');
|
||||
$data['style'] = array('workshop','../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2');
|
||||
$data['csik'] = array('home', 'services', 'servsketch');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function animation(){
|
||||
$harmadik = $this->uri->segment(3);
|
||||
if( $harmadik == "pricing" ){
|
||||
$this->pricing("an");
|
||||
return;
|
||||
}elseif( $harmadik == "upload" ){
|
||||
$this->upload("an");
|
||||
return;
|
||||
}
|
||||
if( is_numeric($harmadik) ){
|
||||
if( $harmadik > 0 && $harmadik <= 5 ){
|
||||
$this->order("an", $harmadik);
|
||||
return;
|
||||
}
|
||||
else{
|
||||
print "?";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$data['szolg_cim'] = "Animation";
|
||||
$data['infok'] = $this->mpages->get_row(652);
|
||||
$data['infix'] = "an";
|
||||
|
||||
$data['rendering'] = true;
|
||||
|
||||
$data['meta']['desc'] = lang('services_an');
|
||||
|
||||
$data['tartalom'] = 'services/index';
|
||||
|
||||
$data['title'] = hun() ? 'CadLine Kft. Szolgáltatások - '.lang('services_an') : 'CadLine Services - '.lang('services_an');
|
||||
$data['javascript'] = array('jquery.corner');
|
||||
$data['style'] = array('workshop');
|
||||
$data['csik'] = array('home', 'services', 'servrendering');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function pricing($service = ""){
|
||||
if( $service == "" )
|
||||
redirect('services');
|
||||
|
||||
$data['infix'] = $service;
|
||||
|
||||
switch($service){
|
||||
case "vf":
|
||||
|
||||
if(!hun()){
|
||||
// új oldalra
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.eu/packages/virtual-photo-staging/details");
|
||||
exit;
|
||||
}
|
||||
|
||||
$data['urlservice'] = 'virtuallyfurnish';
|
||||
$data['service'] = 'virtuallyfurnish';
|
||||
break;
|
||||
case "re":
|
||||
|
||||
if(!hun()){
|
||||
// új oldalra
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.eu/packages/photorealistic-rendering/details");
|
||||
exit;
|
||||
}
|
||||
|
||||
$data['urlservice'] = 'servrendering';
|
||||
$data['service'] = 'rendering';
|
||||
break;
|
||||
case "sk":
|
||||
if(!hun()){
|
||||
// új oldalra
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.eu/packages/3d-interior-modeling/details");
|
||||
exit;
|
||||
}
|
||||
|
||||
$data['urlservice'] = 'servsketch';
|
||||
$data['service'] = 'sketch';
|
||||
break;
|
||||
case "an":
|
||||
$data['urlservice'] = 'servanimation';
|
||||
$data['service'] = 'animation';
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$data['mobilink'] = "/mobile/services/".$data['service'];
|
||||
$data['tartalom'] = 'services/pricing';
|
||||
|
||||
$data['title'] = hun() ? 'CadLine Kft. - '.lang('services_'.$service).', Árak' : 'CadLine Network Ltd. - '.lang('services_'.$service).', Pricing';
|
||||
$data['javascript'] = array('jquery_ui');
|
||||
$data['style'] = array('workshop');
|
||||
$data['csik'] = array('home', 'services', $data['urlservice'], $service.'pricing');
|
||||
|
||||
if( $service == "an" ){
|
||||
$data['javascript'][] = 'fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack';
|
||||
$data['javascript'][] = 'fancybox-1.3.4/fancybox/jquery.easing-1.3.pack';
|
||||
$data['javascript'][] = 'fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack';
|
||||
|
||||
$data['style'][] = '../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4';
|
||||
}
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function ordersubmit(){
|
||||
$service = $this->input->post('service');
|
||||
if( isset($_POST['darab1']) )
|
||||
$darab = 1;
|
||||
if( isset($_POST['darab2']) )
|
||||
$darab = 2;
|
||||
if( isset($_POST['darab3']) )
|
||||
$darab = 3;
|
||||
|
||||
if( $this->input->post('twoday') == "on" )
|
||||
$darab += 3;
|
||||
|
||||
|
||||
switch($service){
|
||||
case "vf":
|
||||
switch($darab){
|
||||
case 1:
|
||||
$termekkod = 300499462;
|
||||
break;
|
||||
case 2: /* ez at lett irva az elso +50%-osara */
|
||||
$termekkod = 300499466;
|
||||
break;
|
||||
case 3:
|
||||
$termekkod = 300499467;
|
||||
break;
|
||||
case 4: /* 1. +50%-kal */
|
||||
$termekkod = 300499466;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "re":
|
||||
switch($darab){
|
||||
case 1:
|
||||
$termekkod = 300499468;
|
||||
break;
|
||||
case 2:
|
||||
$termekkod = 300499469;
|
||||
break;
|
||||
case 3: /* ez at lett irva az elso +50%-osara */
|
||||
$termekkod = 300499470;
|
||||
break;
|
||||
case 4: /* 1. +50%-kal */
|
||||
$termekkod = 300499470;
|
||||
break;
|
||||
case 5: /* 2. +50%-kal */
|
||||
$termekkod = 300505801;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "sk":
|
||||
switch($darab){
|
||||
case 1:
|
||||
$termekkod = 300505796;
|
||||
break;
|
||||
case 2:
|
||||
$termekkod = 300505802;
|
||||
break;
|
||||
case 3:
|
||||
$termekkod = 300505804;
|
||||
break;
|
||||
case 4: /* 1. +50%-kal */
|
||||
$termekkod = 300505800;
|
||||
break;
|
||||
case 5: /* 2. +50%-kal */
|
||||
$termekkod = 300505803;
|
||||
break;
|
||||
case 6: /* 3. +50%-kal */
|
||||
$termekkod = 300505805;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "an":
|
||||
switch($darab){
|
||||
case 1:
|
||||
$termekkod = 300525589;
|
||||
break;
|
||||
case 2:
|
||||
$termekkod = 300499469;
|
||||
break;
|
||||
case 3: /* ez at lett irva az elso +50%-osara */
|
||||
$termekkod = 300499470;
|
||||
break;
|
||||
case 4: /* 1. +50%-kal */
|
||||
$termekkod = 300525591;
|
||||
break;
|
||||
case 5: /* 2. +50%-kal */
|
||||
$termekkod = 300505801;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if( !$termekkod )
|
||||
redirect('services');
|
||||
|
||||
$link = "https://secure.shareit.com/shareit/checkout.html?PRODUCT[";
|
||||
$link .= $termekkod;
|
||||
$link .= "]=1&DELIVERY[";
|
||||
$link .= $termekkod;
|
||||
$link .= "]=EML&stylefrom=300457611&js=-1";
|
||||
|
||||
|
||||
header("Location: ".$link);
|
||||
}
|
||||
|
||||
// magyar megrendeles
|
||||
function order(){
|
||||
$service = $this->input->post('service');
|
||||
if( isset($_POST['darab1']) )
|
||||
$darab = 1;
|
||||
if( isset($_POST['darab2']) )
|
||||
$darab = 2;
|
||||
if( isset($_POST['darab3']) )
|
||||
$darab = 3;
|
||||
|
||||
if( $this->input->post('twoday') == "on" )
|
||||
$darab += 3;
|
||||
|
||||
|
||||
switch($service){
|
||||
case "vf": $data['urlservice'] = 'virtuallyfurnish';
|
||||
break;
|
||||
case "re": $data['urlservice'] = 'servrendering';
|
||||
break;
|
||||
case "sk": $data['urlservice'] = 'servsketch';
|
||||
break;
|
||||
}
|
||||
|
||||
$alapar = $darab%3;
|
||||
if( $alapar == 0 )
|
||||
$alapar = 3;
|
||||
|
||||
$data['szolg_cim'] = $lang['services_'.$infix];
|
||||
$data['csomag'] = strip_tags(lang('services_'.$service.'_rend'.$alapar),"<sup>");
|
||||
$data['ar'] = $darab;
|
||||
$data['alapar'] = lang('services_'.$service.'_price'.$alapar);
|
||||
preg_match_all('/[0-9]+/', $data['alapar'], $matches);
|
||||
$data['tenyleges'] = implode("",$matches[0]);
|
||||
$data['infok'] = $this->mpages->get_row(653);
|
||||
$data['infix'] = $service;
|
||||
|
||||
$data['tartalom'] = 'services/order';
|
||||
|
||||
$data['title'] = 'Megrendelés: '.$lang['services_'.$infix].' CadLine Kft. Szolgáltatások';
|
||||
$data['csik'] = array('home', 'services', $data['urlservice']);
|
||||
$data['style'] = array('workshop');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function upload($service = ""){
|
||||
if( $service == "" )
|
||||
redirect('services');
|
||||
|
||||
$data['infix'] = $service;
|
||||
|
||||
switch($service){
|
||||
case "vf": $data['urlservice'] = 'virtuallyfurnish';
|
||||
break;
|
||||
case "re": $data['urlservice'] = 'servrendering';
|
||||
break;
|
||||
case "sk": $data['urlservice'] = 'servsketch';
|
||||
break;
|
||||
}
|
||||
|
||||
$data['azonosito'] = $this->getazon();
|
||||
$data['tartalom'] = 'services/upload';
|
||||
|
||||
$data['title'] = hun() ? 'CadLine Kft. Szolgáltatások' : 'CadLine Network Ltd. Upload';
|
||||
$data['javascript'] = array('../uploadify-v2.1.4/jquery-1.4.2.min','../uploadify-v2.1.4/swfobject','../uploadify-v2.1.4/jquery.uploadify.v2.1.4.min');
|
||||
$data['style'] = array('workshop');
|
||||
$data['csik'] = array('home', 'services', $data['urlservice'], $service.'order');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function submitvf(){
|
||||
if(!hun()){
|
||||
$this->submit("vf");
|
||||
return;
|
||||
}
|
||||
|
||||
// magyaroknak e-mail + esemeny
|
||||
$this->submithun("vf");
|
||||
}
|
||||
|
||||
function submitre(){
|
||||
if(!hun()){
|
||||
$this->submit("re");
|
||||
return;
|
||||
}
|
||||
|
||||
// magyaroknak e-mail + esemeny
|
||||
$this->submithun("re");
|
||||
}
|
||||
|
||||
function submitsk(){
|
||||
if(!hun()){
|
||||
$this->submit("sk");
|
||||
return;
|
||||
}
|
||||
|
||||
// magyaroknak e-mail + esemeny
|
||||
$this->submithun("sk");
|
||||
}
|
||||
|
||||
function submitan(){
|
||||
if(!hun()){
|
||||
$this->submit("an");
|
||||
return;
|
||||
}
|
||||
|
||||
// magyaroknak e-mail + esemeny
|
||||
$this->submithun("an");
|
||||
}
|
||||
|
||||
function submit($service = ""){
|
||||
if($service == "")
|
||||
redirect("services");
|
||||
|
||||
$this->load->model('mclusers');
|
||||
|
||||
foreach( $_POST as $k=>$v )
|
||||
$$k = $v;
|
||||
|
||||
if( !$email || $url ){
|
||||
$record->osztaly = "Services";
|
||||
$record->fv = "submit".$service;
|
||||
$record->hiba = "Nincs e-mail: ".$email."\nvagy van url: ".$url."\n".print_r($_POST,true);
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
$this->upload($service); // ??
|
||||
return;
|
||||
}
|
||||
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,'eng');
|
||||
|
||||
if( !$nUserID ){
|
||||
// user beszúrás
|
||||
$tomb->strName = $name;
|
||||
$tomb->strTel = $tel;
|
||||
$tomb->strMobil = $tel;
|
||||
$tomb->strEMail = $email;
|
||||
$tomb->strCity = $city;
|
||||
$tomb->strZip = $zip;
|
||||
$tomb->strStreet = $street;
|
||||
$tomb->nUserType = 0;
|
||||
$tomb->nCtrID = 0;
|
||||
$tomb->strCompany = $company;
|
||||
$tomb->strInfo = "";
|
||||
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
|
||||
|
||||
// email beszúrás
|
||||
$tomb2->email = $email;
|
||||
$tomb2->nUserID = $nUserID;
|
||||
$tomb2->default = "1";
|
||||
$tomb2->active = "1";
|
||||
$tomb2->deleted = "0";
|
||||
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
|
||||
$fajlok = "";
|
||||
$mappa = "/var/www/hosting/cadline.hu/www/public/img/services/uploads/{$service}/{$azonosito}/";
|
||||
$fajlokmind = scandir($mappa);
|
||||
foreach($fajlokmind as $fajl){
|
||||
if( substr($fajl,0,7) == $azonosito2 ){
|
||||
$fajlok .= $fajl.", ";
|
||||
}else{
|
||||
// print "<br />nem egyezik ".substr($fajl,0,12)." es ".$azonosito2;
|
||||
}
|
||||
}
|
||||
|
||||
switch($service){
|
||||
case 'vf':
|
||||
$info = "Services, Virtually Furnish";
|
||||
$topicID = 167;
|
||||
$emailpage = 655;
|
||||
break;
|
||||
case 're':
|
||||
$info = "Services, Rendering";
|
||||
$topicID = 168;
|
||||
$emailpage = 672;
|
||||
break;
|
||||
case 'sk':
|
||||
$info = "Services, Digital Decoration";
|
||||
$topicID = 169;
|
||||
$emailpage = 673;
|
||||
break;
|
||||
case 'an':
|
||||
$info = "Services, Animation";
|
||||
$topicID = 168; // ??
|
||||
$emailpage = 672; // ??
|
||||
break;
|
||||
}
|
||||
|
||||
// azonosito es fajlok az infoba
|
||||
$fajlok = trim(trim($fajlok," "),",");
|
||||
$info .= ", fajlok helye a cadline.hu szerveren: /public/img/services/uploads/{$service}/{$azonosito}/{$azonosito2}, feltoltott fajlok: ".$fajlok;
|
||||
if($comment)
|
||||
$info .= ", Comment: ".$comment;
|
||||
$this->mclusers->addEvent($nUserID, $topicID, $info, 'eng');
|
||||
|
||||
|
||||
$page = $this->mpages->get_row($emailpage);
|
||||
$emailinfo = str_ireplace('#name#', $name, $page->page_body);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'ARCHLineXP.com');
|
||||
$this->email->subject("CadLine Network Ltd. - Service");
|
||||
$this->email->message("New Request:<br>Name: ".$name."<br>Company: ".$company."<br>Tel: ".$tel."<br>E-mail: ".$email."<br>Zip: ".$zip."<br>City: ".$city."<br>Street: ".$street."<br><br>Comment: ".$comment."<br><br>".$info);
|
||||
|
||||
$this->email->send('info@archlinexp.com', 'smtp');
|
||||
// $this->email->send('sztikee@gmail.com', 'smtp');
|
||||
|
||||
$this->email->clear();
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@archlinexp.com', 'Cadline Website');
|
||||
$this->email->subject('CadLine Network Ltd. Service');
|
||||
$this->email->message($emailinfo);
|
||||
|
||||
$this->email->send($email, 'smtp');
|
||||
|
||||
|
||||
// redirect('services/info');
|
||||
|
||||
// ertesito nekem
|
||||
$record->osztaly = "Services";
|
||||
$record->fv = "submit".$service;
|
||||
$record->hiba = "Adatok: ".print_r($_POST,true)."\nfajlok: {$fajlok}";
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
$page = $this->mpages->get_row(654);
|
||||
$data['title'] = 'CadLine Services, Thank You for upload!';
|
||||
$data['tartalom'] = '/services/submit';
|
||||
$data['info'] = $page->page_body;
|
||||
$data['csik'] = array('home', 'services');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
// megrendelés submit
|
||||
function submithun($service = ""){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
foreach($_POST as $k=>$v)
|
||||
$$k = $v;
|
||||
|
||||
// ellenőrzések
|
||||
$hiba = "";
|
||||
|
||||
if( !$name )
|
||||
$hiba .= "Hiányzó név!<br />";
|
||||
|
||||
if( !$tel )
|
||||
$hiba .= "Hiányzó telefonszám!<br />";
|
||||
|
||||
if( !$email )
|
||||
$hiba .= "Hiányzó e-mail cím!<br />";
|
||||
|
||||
if( !$zip )
|
||||
$hiba .= "Hiányzó irányítószám!<br />";
|
||||
|
||||
if( !$city )
|
||||
$hiba .= "Hiányzó város!<br />";
|
||||
|
||||
if( !$street )
|
||||
$hiba .= "Hiányzó utca!<br />";
|
||||
|
||||
if( !in_array($service,array("vf","re","sk")) )
|
||||
$redirect = "services";
|
||||
|
||||
if( !is_numeric($darab) || $darab <1 || $darab>6 )
|
||||
$redirect = "services";
|
||||
|
||||
if( $redirect || $hiba ){
|
||||
$record->osztaly = "services";
|
||||
$record->fv = "submithun";
|
||||
$record->hiba = "Hibás megrnedelés: \n".print_r($_POST,true);
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
}
|
||||
|
||||
if( $redirect != "" )
|
||||
redirect($redirect);
|
||||
|
||||
if( $hiba != "" ){
|
||||
$_SESSION['szolg_hiba'] = $hiba;
|
||||
header("Location: ".$_SERVER['HTTP_REFERER']);
|
||||
}
|
||||
// end ellenőrzések
|
||||
|
||||
$dbalap = $darab%3;
|
||||
if( $dbalap == 0 )
|
||||
$dbalap = 3;
|
||||
|
||||
$emailar = lang('services_'.$service.'_price'.$dbalap)." + Áfa";
|
||||
$veglegesnetto = $tenyleges;
|
||||
if( $darab > 3 ){
|
||||
$veglegesnetto *= 1.5;
|
||||
$emailar .= " + ".lang('services_prices_50fee')." = ".$veglegesnetto." Ft + Áfa";
|
||||
}
|
||||
$rendelessorszam = $this->db->query("SELECT value FROM settings WHERE id=33")->row();
|
||||
$rendelessorszam = $rendelessorszam->value;
|
||||
$this->db->update('settings',array('value'=>($rendelessorszam+1)),"id=33");
|
||||
|
||||
$eseminfo = lang('services_'.$service)." megrendelés: ";
|
||||
$eseminfo .= "\nNév: ".$name;
|
||||
$eseminfo .= "\nCég: ".$company;
|
||||
$eseminfo .= "\nTelefon: ".$tel;
|
||||
$eseminfo .= "\nÜzenet: ".$comment;
|
||||
$eseminfo .= "\nCsomag: ".strip_tags(lang('services_'.$service.'_rend'.$dbalap));
|
||||
$eseminfo .= "\nÁr: ".$emailar." , bruttó: ".($veglegesnetto*(1+AFA_HUN));
|
||||
|
||||
switch($service){
|
||||
case 'vf':
|
||||
$topicID = 145;
|
||||
break;
|
||||
case 're':
|
||||
$topicID = 144;
|
||||
break;
|
||||
case 'sk':
|
||||
$topicID = 143;
|
||||
break;
|
||||
}
|
||||
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,'hun');
|
||||
if( !$nUserID ){
|
||||
// user beszúrás
|
||||
$tomb->strName = $name;
|
||||
$tomb->strTel = $tel;
|
||||
$tomb->strMobil = $tel;
|
||||
$tomb->strEMail = $email;
|
||||
$tomb->strCity = $city;
|
||||
$tomb->strZip = $zip;
|
||||
$tomb->strStreet = $street;
|
||||
$tomb->nUserType = 0;
|
||||
$tomb->nCtrID = 36;
|
||||
$tomb->strCompany = $company;
|
||||
$tomb->strInfo = "";
|
||||
|
||||
$nUserID = $this->mclusers->addUserHun($tomb);
|
||||
|
||||
|
||||
// email beszúrás
|
||||
$tomb2->email = $email;
|
||||
$tomb2->nUserID = $nUserID;
|
||||
$tomb2->default = "1";
|
||||
$tomb2->active = "1";
|
||||
$tomb2->deleted = "0";
|
||||
|
||||
$this->mclusers->addUserEmailHun($tomb2);
|
||||
}
|
||||
|
||||
$this->mclusers->addEvent($nUserID, $topicID, mysql_real_escape_string($eseminfo), 'hun');
|
||||
|
||||
|
||||
// kimenő levél szövege
|
||||
|
||||
$page = $this->mpages->get_row(676);
|
||||
$emailinfo = str_ireplace('#nev#', $name, $page->page_body);
|
||||
$emailinfo = str_ireplace('#szolgaltatas#', lang('services_'.$service), $emailinfo);
|
||||
$emailinfo = str_ireplace('#rendeles#', strip_tags(lang('services_'.$service.'_rend'.$dbalap),"<sup>"), $emailinfo);
|
||||
$emailinfo = str_ireplace('#ar#', $emailar, $emailinfo);
|
||||
$emailinfo = str_ireplace('#brutto#', ($veglegesnetto*(1+AFA_HUN)), $emailinfo);
|
||||
$emailinfo = str_ireplace('#sorszam#', $rendelessorszam, $emailinfo);
|
||||
|
||||
$emailinfo = str_ireplace('#email#', $email, $emailinfo);
|
||||
$emailinfo = str_ireplace('#tel#', $tel, $emailinfo);
|
||||
$emailinfo = str_ireplace('#zip#', $zip, $emailinfo);
|
||||
$emailinfo = str_ireplace('#varos#', $city, $emailinfo);
|
||||
$emailinfo = str_ireplace('#utca#', $street, $emailinfo);
|
||||
$emailinfo = str_ireplace('#ceg#', $company, $emailinfo);
|
||||
$emailinfo = str_ireplace('#uzenet#', $comment, $emailinfo);
|
||||
// számlázás
|
||||
if( $kuloncim != "on" ){
|
||||
$sz_name = $name; $sz_zip = $zip; $sz_city = $city; $sz_street = $street;
|
||||
}
|
||||
$emailinfo = str_ireplace('#sz_nev#', $sz_name, $emailinfo);
|
||||
$emailinfo = str_ireplace('#sz_zip#', $sz_zip, $emailinfo);
|
||||
$emailinfo = str_ireplace('#sz_varos#', $sz_city, $emailinfo);
|
||||
$emailinfo = str_ireplace('#sz_utca#', $sz_street, $emailinfo);
|
||||
|
||||
|
||||
// e-mail nekünk
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->from('info@cadline.hu', 'ARCHLine.hu');
|
||||
$this->email->subject("Megrendelés: ".lang('services_'.$service));
|
||||
$this->email->message("Új megrendelés, ".lang('services_'.$service).":<br><br>".$emailinfo);
|
||||
|
||||
$this->email->send('info@cadline.hu', 'smtp');
|
||||
// $this->email->send('sztikee@gmail.com', 'smtp');
|
||||
|
||||
$this->email->clear();
|
||||
|
||||
|
||||
|
||||
// e-mail neki
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Website');
|
||||
$this->email->subject('Megrendelés: '.lang('services_'.$service));
|
||||
$this->email->message($emailinfo);
|
||||
|
||||
$this->email->send($email, 'smtp');
|
||||
|
||||
|
||||
// megjelenő oldal
|
||||
|
||||
$page = $this->mpages->get_row(677);
|
||||
$data['title'] = 'CadLine szolgáltatás, megrendelés rögzítve!';
|
||||
$data['tartalom'] = '/services/ordersubmit';
|
||||
$data['info'] = $page->page_body;
|
||||
$data['csik'] = array('home', 'services');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function uploadswf(){
|
||||
// felhasznalo azonositas (IP-bol)
|
||||
$azonosito = end( explode( "/", $_REQUEST['folder'] ) );
|
||||
if( !empty($_FILES) && $azonosito == $this->getazon() ){
|
||||
if( $this->uri->segment(3) == "vf" || $this->uri->segment(3) == "re" || $this->uri->segment(3) == "sk" )
|
||||
$almappa = $this->uri->segment(3)."/";
|
||||
|
||||
// aktualis feltoltes azonositas
|
||||
if( isset($_SESSION['servicespw']) && $_SESSION['servicespw'] != "" )
|
||||
$pass = $_SESSION['servicespw'];
|
||||
else{
|
||||
$chars = "abcdefghijkmnopqrstuvwxyzABCDEFGHIJKMNOPQRSTUVWXYZ0123456789";
|
||||
$pass = '' ;
|
||||
for($i=0; $i<7; $i++){
|
||||
$num = rand() % strlen($chars);
|
||||
$pass = $pass . $chars[$num];
|
||||
}
|
||||
$_SESSION['servicespw'] = $pass;
|
||||
}
|
||||
|
||||
|
||||
$fajlnev = $pass."_".$_FILES['Filedata']['name'];
|
||||
$tempFile = $_FILES['Filedata']['tmp_name'];
|
||||
$targetPath = "public/img/services/uploads/".$almappa.$azonosito."/";
|
||||
if( !is_dir($targetPath) )
|
||||
mkdir(str_replace('//','/',$targetPath), 0777, true);
|
||||
else
|
||||
chmod(str_replace('//','/',$targetPath), 0777);
|
||||
$targetFile = str_replace('//','/',$targetPath) . $fajlnev;
|
||||
|
||||
if(file_exists($targetFile))
|
||||
$targetFile = str_replace('//','/',$targetPath) .substr($fajlnev,0,-4)."_". rand(100,500).substr($fajlnev,-4);
|
||||
|
||||
move_uploaded_file($tempFile,$targetFile);
|
||||
echo $pass;
|
||||
|
||||
}else{
|
||||
echo "ERROR";
|
||||
}
|
||||
}
|
||||
|
||||
// fajl feltolteshez kapcsolodo azonositas
|
||||
function getazon(){
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
// $bongeszo = substr($_SERVER['HTTP_USER_AGENT'],-15);
|
||||
$pw = "WEdsds456";
|
||||
|
||||
return(substr(md5($ip.$pw),0,12));
|
||||
//return $ip." , ".$bongeszo." , ".$pw;
|
||||
}
|
||||
|
||||
function gallery(){
|
||||
$data['kepek'] = scandir('public/img/services/gallery/');
|
||||
|
||||
$data['utvonal'] = 'public/img/services/gallery/';
|
||||
$data['tartalom'] = 'other/gallery';
|
||||
|
||||
$data['javascript'] = array('choco-slider/jquery.chocoslider.min');
|
||||
$data['style'] = array('../js/choco-slider/chocoslider');
|
||||
|
||||
$this->load->view('site_new',$data);
|
||||
}
|
||||
|
||||
function videogallery(){
|
||||
$data['tartalom'] = 'services/videogallery';
|
||||
|
||||
$data['javascript'] = array(
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.min'
|
||||
);
|
||||
$data['style'] = array('jquery.jscrollpane');
|
||||
|
||||
$data['csik'] = array('home', 'services', 'servidgal');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,152 @@
|
||||
<?php
|
||||
class Settings extends Controller
|
||||
{
|
||||
function Settings()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function lang()
|
||||
{
|
||||
$lang = $this->uri->segment(3);
|
||||
|
||||
if($lang == 'hun')
|
||||
{
|
||||
$this->muser->user['lang']='hun';
|
||||
}
|
||||
elseif($lang == 'jap')
|
||||
{
|
||||
$this->muser->user['lang']='jap';
|
||||
}
|
||||
elseif($lang == 'gr')
|
||||
{
|
||||
$this->muser->user['lang']='gr';
|
||||
}
|
||||
elseif($lang == 'cr')
|
||||
{
|
||||
$this->muser->user['lang']='cr';
|
||||
}
|
||||
elseif($lang == 'be')
|
||||
{
|
||||
$this->muser->user['lang']='be';
|
||||
}
|
||||
elseif($lang == 'pol')
|
||||
{
|
||||
$this->muser->user['lang']='pol';
|
||||
}
|
||||
elseif($lang == 'esp')
|
||||
{
|
||||
$this->muser->user['lang']='esp';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->muser->user['lang']='eng';
|
||||
}
|
||||
|
||||
unset($this->muser->user['admin']);
|
||||
unset($this->muser->user['admin_lang']);
|
||||
|
||||
$this->phpsession->save('user',$this->muser->user);
|
||||
redirect('');
|
||||
|
||||
/*
|
||||
$data['betolt']='';
|
||||
$this->load->view('redirect/index',$data);
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
function lang2(){
|
||||
$lang = $this->uri->segment(3);
|
||||
|
||||
if($lang == 'hun')
|
||||
{
|
||||
$this->muser->user['lang']='hun';
|
||||
}
|
||||
elseif($lang == 'jap')
|
||||
{
|
||||
$this->muser->user['lang']='jap';
|
||||
}
|
||||
elseif($lang == 'gr')
|
||||
{
|
||||
$this->muser->user['lang']='gr';
|
||||
}
|
||||
elseif($lang == 'cr')
|
||||
{
|
||||
$this->muser->user['lang']='cr';
|
||||
}
|
||||
elseif($lang == 'be')
|
||||
{
|
||||
$this->muser->user['lang']='be';
|
||||
}
|
||||
elseif($lang == 'pol')
|
||||
{
|
||||
$this->muser->user['lang']='pol';
|
||||
}
|
||||
elseif($lang == 'esp')
|
||||
{
|
||||
$this->muser->user['lang']='esp';
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->muser->user['lang']='eng';
|
||||
}
|
||||
|
||||
unset($this->muser->user['admin']);
|
||||
unset($this->muser->user['admin_lang']);
|
||||
|
||||
$this->phpsession->save('user',$this->muser->user);
|
||||
redirect('interior/download');
|
||||
|
||||
}
|
||||
|
||||
function langChange()
|
||||
{
|
||||
$data['csik']=array('home');
|
||||
$data['tartalom']='langchange';
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function bugtracker_trigger()
|
||||
{
|
||||
$dir = "/home/cadline/bugtracker/";
|
||||
|
||||
file_exists($dir."dump.sql") ? @unlink($dir."dump.sql") : "" ;
|
||||
|
||||
exec("bunzip2 ".$dir."dump.sql.bz2");
|
||||
exec("mysql --user=cadline bugtracker < ".$dir."dump.sql");
|
||||
|
||||
file_exists($dir."dump.sql") ? @unlink($dir."dump.sql") : "";
|
||||
file_exists($dir."dump.sql.bz2") ? @unlink($dir."dump.sql.bz2") : "";
|
||||
|
||||
file_exists($dir."keydump.sql") ? @unlink($dir."keydump.sql") : "";
|
||||
|
||||
exec("bunzip2 ".$dir."keydump.sql.bz2");
|
||||
exec("mysql --user=cadline hardlock < ".$dir."keydump.sql");
|
||||
|
||||
file_exists($dir."keydump.sql") ? @unlink($dir."keydump.sql") : "";
|
||||
file_exists($dir."keydump.sql.bz2") ? @unlink($dir."keydump.sql.bz2") : "";
|
||||
|
||||
echo date("Y.m.d. h:i").' updated';
|
||||
}
|
||||
|
||||
function buy_lt()
|
||||
{
|
||||
$this->load->helper('file');
|
||||
|
||||
$count = read_file("lt_counter.txt");
|
||||
|
||||
if(!$count)
|
||||
{
|
||||
$count = 0;
|
||||
}
|
||||
|
||||
write_file("lt_counter.txt",++$count);
|
||||
|
||||
redirect('buy');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,295 @@
|
||||
<?php
|
||||
/* Nyilvános link */
|
||||
include('application/controllers/collection2.php');
|
||||
|
||||
class Showroom extends Collection2
|
||||
{
|
||||
var $pw = "dfDF34mkZ6";
|
||||
var $ervenydesseg = 3600;
|
||||
var $kepek_utvonal = "public/img/collection/users/";
|
||||
var $nagykepneve = '1__big.jpg';
|
||||
var $kiskepneve = '1__small.jpg';
|
||||
var $kozepkepneve= '1__300.jpg';
|
||||
var $nagynagykepneve= '1__1024.jpg';
|
||||
|
||||
function Showroom()
|
||||
{
|
||||
parent::Collection2();
|
||||
}
|
||||
|
||||
function index(){
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::index($data);
|
||||
}
|
||||
|
||||
function brandgroup(){
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::brandgroup($data);
|
||||
}
|
||||
|
||||
function manufacturer(){
|
||||
|
||||
$data['style'] = array('style_new','showroomweb_min');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::manufacturer($data);
|
||||
}
|
||||
|
||||
function category(){
|
||||
$data['style'] = array('style_new','showroomweb_min');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::category($data);
|
||||
}
|
||||
|
||||
function details(){
|
||||
$data['style'] = array('style_new','showroomweb_min');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::details($data);
|
||||
}
|
||||
|
||||
function search(){
|
||||
$data['style'] = array('style_new','showroomweb_min');
|
||||
$data['tartalom'] = 'site';
|
||||
parent::search($data);
|
||||
}
|
||||
|
||||
// felhasználó public projektjeinek listája
|
||||
function user(){
|
||||
$uid = $this->uri->segment(3);
|
||||
$kepekutvonal = $this->kepek_utvonal.$uid."/";
|
||||
if( !is_numeric($uid) || !is_dir($kepekutvonal) ){
|
||||
redirect("showroom");
|
||||
}
|
||||
|
||||
$project = $this->uri->segment(4);
|
||||
if( $project != "" && is_dir($kepekutvonal.$project) ){
|
||||
$this->userproject($uid, $project);
|
||||
return;
|
||||
}
|
||||
|
||||
// azok a projektek melyekben van nyilvanos elem
|
||||
$projektek = $this->db->query("SELECT cp_id FROM collection_user WHERE userid={$uid} AND deleted=0 and shared=1 GROUP BY cp_id")->result();
|
||||
$id_list = "";
|
||||
foreach($projektek as $p){
|
||||
$id_list .= $p->cp_id.",";
|
||||
}
|
||||
$id_list = substr($id_list,0,-1);
|
||||
|
||||
$kategoriak = $this->db->query("SELECT userid, mappa project, nev FROM collection_projects WHERE userid={$uid} AND deleted=0 and cp_id IN ({$id_list}) ORDER BY nev ASC")->result();
|
||||
|
||||
$data['kategoriak'] = $kategoriak;
|
||||
|
||||
$data['userproject'] = true;
|
||||
$data['style'] = array('style_new','collection2web');
|
||||
$data['tartalom'] = 'collection2/category';
|
||||
|
||||
$this->load->view("site",$data);
|
||||
}
|
||||
|
||||
// felhasználó kiválasztott projekt elemeinek megjelenítése
|
||||
function userproject($uid,$project){
|
||||
$kepekutvonal = $this->kepek_utvonal.$uid."/".$project."/";
|
||||
$elemek = $this->db->query("SELECT * FROM `collection_user` WHERE userid={$uid} AND project='".$project."' AND shared=1 AND deleted=0 ")->result();
|
||||
|
||||
$kiskepek = array();
|
||||
foreach($elemek as $elem){
|
||||
// csak azok amikhez van nagy is
|
||||
if( file_exists($kepekutvonal.$elem->cu_id."/".$this->kiskepneve) && file_exists($kepekutvonal.$elem->cu_id."/".$this->nagykepneve) ){
|
||||
$ujelem = new stdClass();
|
||||
$ujelem->kep = $kepekutvonal.$elem->cu_id."/".$this->kiskepneve;
|
||||
$ujelem->o_id = $elem->cu_id;
|
||||
$kiskepek[] = $ujelem;
|
||||
}
|
||||
}
|
||||
$project2 = $this->db->query("SELECT mappa FROM `collection_projects` WHERE userid={$uid} AND cp_id='".$elemek[0]->cp_id."' AND deleted=0 ")->row();
|
||||
|
||||
$mit = array("\r\n", "\n", "\r");
|
||||
$adatok = $elemek[0];
|
||||
$adatok->title_hun = $adatok->title_eng = $adatok->title;
|
||||
$adatok->leiras = str_replace($mit,'<br />', $adatok->desc);
|
||||
$adatok->o_id = $adatok->cu_id;
|
||||
$adatok->mappa = $project2->mappa;
|
||||
|
||||
$fajlok = scandir($this->kepek_utvonal.$uid.'/'.$project.'/'.$adatok->cu_id.'/');
|
||||
unset($fajlok[array_search($this->nagykepneve, $fajlok)]);
|
||||
unset($fajlok[array_search($this->kiskepneve, $fajlok)]);
|
||||
unset($fajlok[array_search($this->kozepkepneve, $fajlok)]);
|
||||
unset($fajlok[array_search($this->nagynagykepneve, $fajlok)]);
|
||||
|
||||
$data['nagykepfix'] = $kepekutvonal.$elemek[0]->cu_id."/".$this->nagykepneve;
|
||||
$data['adatok'] = $adatok;
|
||||
$data['kepek'] = $kiskepek;
|
||||
$data['fajlok'] = $fajlok;
|
||||
$data['sorszam'] = 0;
|
||||
$data['kovetkezo'] = $kiskepek[1]->o_id;
|
||||
$data['elozo'] = "";
|
||||
$data['vurl'] = "/showroom/detailssimpleuser/";
|
||||
|
||||
$data['login'] = $this->_getlogineduser();
|
||||
$data['userid'] = $uid;
|
||||
|
||||
$data['javascript'] = array('fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack','fancybox-1.3.4/fancylive');
|
||||
$data['style'] = array('style_new','collection2web','../js/Smooth-Div-Scroll/css/smoothDivScroll','../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2');
|
||||
|
||||
$data['tartalom'] = 'collection2/details';
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function detailssimpleuser(){
|
||||
if( !$this->uri->segment(3) || !is_numeric($this->uri->segment(3)) ){
|
||||
print "Az egyszeru reszletek: hibas parameter";
|
||||
return;
|
||||
}
|
||||
|
||||
$cuid = $this->uri->segment(3);
|
||||
$adatok = $this->db->where('cu_id',$cuid)->where('shared', 1)->where('deleted', 0)->get('collection_user')->row();
|
||||
$fajl = $this->kepek_utvonal.$adatok->userid."/".$adatok->project."/".$adatok->cu_id."/".$adatok->file;
|
||||
|
||||
$kovi = $this->db->where('userid',$adatok->userid)->where('project',$adatok->project)->where('cu_id > '.$cuid)->where('shared', 1)->where('deleted', 0)->orderby('cu_id ASC')->limit('1')->get('collection_user')->row();
|
||||
$elozo = $this->db->where('userid',$adatok->userid)->where('project',$adatok->project)->where('cu_id < '.$cuid)->where('shared', 1)->where('deleted', 0)->orderby('cu_id ASC')->limit('1')->get('collection_user')->row();
|
||||
$sorszam = $this->db->where('userid',$adatok->userid)->where('project',$adatok->project)->where('cu_id < '.$cuid)->where('shared', 1)->where('deleted', 0)->orderby('cu_id ASC')->get('collection_user')->num_rows();
|
||||
|
||||
$project2 = $this->db->query("SELECT mappa FROM `collection_projects` WHERE userid=".$adatok->userid." AND cp_id='".$adatok->cp_id."' AND deleted=0 ")->row();
|
||||
|
||||
$adatok->title_hun = $adatok->title_eng = $adatok->title;
|
||||
$mit = array("\r\n", "\n", "\r");
|
||||
$adatok->leiras = str_replace($mit,'<br />', $adatok->desc);
|
||||
$adatok->mappa = $project2->mappa;
|
||||
|
||||
$fajlok = scandir($this->kepek_utvonal.$adatok->userid.'/'.$adatok->project.'/'.$adatok->cu_id.'/');
|
||||
unset($fajlok[array_search($this->nagykepneve, $fajlok)]);
|
||||
unset($fajlok[array_search($this->kiskepneve, $fajlok)]);
|
||||
unset($fajlok[array_search($this->kozepkepneve, $fajlok)]);
|
||||
unset($fajlok[array_search($this->nagynagykepneve, $fajlok)]);
|
||||
|
||||
$data['adatok'] = $adatok;
|
||||
$data['fajlok'] = $fajlok;
|
||||
$data['sorszam'] = $sorszam;
|
||||
$data['nagykepfix']= $this->kepek_utvonal.$adatok->userid."/".$adatok->project."/".$adatok->cu_id."/".$this->nagykepneve;
|
||||
$data['kovetkezo'] = $kovi->cu_id;
|
||||
$data['elozo'] = $elozo->cu_id;
|
||||
|
||||
$data['login'] = $this->_getlogineduser();
|
||||
$data['userid'] = $adatok->userid;
|
||||
|
||||
$this->load->view('collection2/detailssimple',$data);
|
||||
}
|
||||
|
||||
function edit(){
|
||||
$cuid = $this->uri->segment(3);
|
||||
if( !$cuid || !is_numeric($cuid) )
|
||||
redirect('showroom');
|
||||
|
||||
$login = $this->_getlogineduser();
|
||||
if( !$login || !is_numeric($login->user_id) )
|
||||
redirect('collection/login');
|
||||
|
||||
$adatok = $this->db->where('cu_id',$cuid)->where('userid',$login->user_id)->where('deleted', 0)->get('collection_user')->row();
|
||||
|
||||
$fajlokhelye = $this->kepek_utvonal.$adatok->userid;
|
||||
$data['meret'] = str_replace("\t".$fajlokhelye,"",exec('du -sh '.$fajlokhelye));
|
||||
$data['adatok'] = $adatok;
|
||||
$data['projektek']= $this->db->where('userid',$login->user_id)->where('deleted', 0)->get('collection_projects')->result();
|
||||
$data['tartalom'] = 'collection2/edit';
|
||||
|
||||
$this->load->view('collection2/edit',$data);
|
||||
//$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function editdo(){
|
||||
$login = $this->_getlogineduser();
|
||||
$cuid = $this->input->post("cu_id");
|
||||
$uj['title'] = $this->input->post("title");
|
||||
$uj['desc'] = $this->input->post("desc");
|
||||
$uj['cp_id'] = $this->input->post("cp_id");
|
||||
$uj['shared'] = ($this->input->post("shared")=="on") ? 1 : 0;
|
||||
|
||||
// saját elem-e
|
||||
$query = $this->db->where('cu_id',$cuid)->where('userid',$login->user_id)->where('deleted', 0)->get('collection_user');
|
||||
if($query->num_rows() == 0){
|
||||
redirect('showroom');
|
||||
}
|
||||
include('application/helpers/sajatfeltolto.php');
|
||||
include('application/helpers/myimg_helper.php');
|
||||
|
||||
$adatok = $query->row();
|
||||
$projectdir = $this->db->query("SELECT mappa FROM collection_projects WHERE cp_id=".$uj['cp_id']." AND userid=".$adatok->userid." AND deleted=0")->row();
|
||||
$projectdir = $projectdir->mappa;
|
||||
|
||||
// projekt változtatás esetén áthelyezni a szerveren az új helyére
|
||||
if( $adatok->cp_id != $uj['cp_id'] ){
|
||||
$honnan = $this->kepek_utvonal.$adatok->userid."/".$projectdir."/".$cuid;
|
||||
$hova = $this->kepek_utvonal.$adatok->userid."/".$projectdir."/".$cuid."/";
|
||||
exec("mv {$honnan} {$hova}");
|
||||
}
|
||||
|
||||
// új nagy kép
|
||||
if( isset($_FILES['nagykep']) && $_FILES['nagykep']['error'] == 0 ){
|
||||
$helye = $this->kepek_utvonal.$adatok->userid."/".$projectdir."/".$cuid."/";
|
||||
$ujnagykep = $helye.$this->nagykepneve;
|
||||
exec("rm {$ujnagykep}");
|
||||
feltolt("nagykep",$helye,$this->nagykepneve,true);
|
||||
|
||||
// nagy kep atmeretezese, 0,3-as arány eltérésig kivágja a közepét, egyébként kiegészíti fehérrel
|
||||
$nagykeparany = (488/396);
|
||||
list($ow,$oh) = getimagesize($ujnagykep);
|
||||
$orignagykeparany = ($ow/$oh);
|
||||
$diff = abs($nagykeparany-$orignagykeparany);
|
||||
if( $diff < 0.3 ){
|
||||
kemeretezesvagassh($ujnagykep,$ujnagykep,488,396);
|
||||
}else{
|
||||
kemeretezesvagasshbg($ujnagykep,$ujnagykep,488,396);
|
||||
}
|
||||
|
||||
chmod($ujnagykep,0777);
|
||||
}
|
||||
|
||||
// új kis kép
|
||||
if( isset($_FILES['kiskep']) && $_FILES['kiskep']['error'] == 0 ){
|
||||
$helye = $this->kepek_utvonal.$adatok->userid."/".$projectdir."/".$cuid."/";
|
||||
$ujkiskep = $helye.$this->kiskepneve;
|
||||
exec("rm {$ujkiskep}");
|
||||
feltolt("kiskep",$helye,$this->kiskepneve,true);
|
||||
|
||||
// kis kep atmeretezese
|
||||
kemeretezesvagassh($ujkiskep,$ujkiskep,68,68);
|
||||
chmod($ujkiskep,0777);
|
||||
}
|
||||
|
||||
// mentés
|
||||
$this->db->update('collection_user',$uj,"cu_id={$cuid}");
|
||||
|
||||
redirect("showroom/user/".$login->user_id."/".$projectdir);
|
||||
}
|
||||
|
||||
private function _getlogineduser(){
|
||||
if( !isset($_COOKIE['azonosito'],$_COOKIE['sessid']) )
|
||||
return false;
|
||||
|
||||
$ell = md5($_COOKIE['azonosito'].$this->pw.$_COOKIE['sessid']);
|
||||
|
||||
if ( !empty($_COOKIE['hash']) && $_COOKIE['hash']== $ell ){
|
||||
setcookie("sessid",$_COOKIE['sessid'],time()+$this->ervenydesseg,"/");
|
||||
setcookie("azonosito", $_COOKIE['azonosito'] , time()+$this->ervenydesseg,"/");
|
||||
setcookie("hash",$_COOKIE['hash'] ,time()+$this->ervenydesseg,"/");
|
||||
|
||||
$lang = $this->muser->user['lang'];
|
||||
$query = "SELECT * FROM forum_user WHERE login = '".$_COOKIE['azonosito']."' AND nyelv='".$lang."' AND active=1 AND deleted=0";
|
||||
|
||||
$query = $this->db->query($query);
|
||||
|
||||
if($query->num_rows() == 0){
|
||||
return false;
|
||||
} else {
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,882 @@
|
||||
<?php
|
||||
|
||||
define('SHOWROOM_SEARCH', true);
|
||||
/* Az ARCHLine-ból hívódik a link */
|
||||
class Showroom2 extends Controller
|
||||
{
|
||||
var $collectionlangs = array('eng','hun','ita','ger');
|
||||
var $defaultparam = array('style'=>array('style_new','showroomweb_min'),'tartalom'=>'site');
|
||||
|
||||
function Showroom2()
|
||||
{
|
||||
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))){
|
||||
setcookie("sr_prversion",($this->uri->segment(4)+1984),time()+10000,"/");
|
||||
// 28 - 2012 -es verzió
|
||||
// 29 - 2013 -as verzió
|
||||
}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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$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();
|
||||
|
||||
$adatok->leiras = $leiras->desc;
|
||||
$adatok->leiras = str_replace($mit,'<br />',$adatok->leiras);
|
||||
$adatok->title = $leiras->title;
|
||||
|
||||
$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();
|
||||
|
||||
$adatok->leiras = $leiras->desc;
|
||||
$adatok->leiras = str_replace($mit,'<br />',$adatok->leiras);
|
||||
$adatok->title = $leiras->title;
|
||||
|
||||
$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($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($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 "<select name=\"kategoria\" id=\"kategoria\" onchange=\"katvaltas2(this.value)\" style=\"width: 255px;\">";
|
||||
print "<option value=\"999\">-- ".lang('collec_valasszon')." --</option>";
|
||||
foreach($kategoriak as $kategoria){
|
||||
print "<option value=\"".$kategoria->c_id."\">";
|
||||
print $kategoria->nev_hun." | ".$kategoria->nev_eng;
|
||||
print "</option>";
|
||||
}
|
||||
print "<option value=\"999999\">-- ".lang('collec_ujkategoria')." --</option>";
|
||||
print "</select>";
|
||||
}
|
||||
|
||||
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=array('style'=>array('style_new','showroomweb_min'),'tartalom'=>'site')){
|
||||
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)";
|
||||
$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
|
||||
}
|
||||
|
||||
$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)";
|
||||
$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"),'<br />',$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=""){
|
||||
$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";
|
||||
$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();
|
||||
|
||||
$adatok->leiras = $leiras->desc;
|
||||
$adatok->leiras = str_replace($mit,'<br />',$adatok->leiras);
|
||||
$adatok->title = $leiras->title;
|
||||
|
||||
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'] = '/showroom2/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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
class Sitemap extends Controller
|
||||
{
|
||||
var $base_url = '/home/cadline/public_html/website/application/';
|
||||
var $sites = array(
|
||||
'products' = array(
|
||||
'url' => 'products',
|
||||
'mod_contr' => exec("date '+%Y-%m-%d' -u -r ".$this->base_url."controllers/products.php"),
|
||||
'mod_view' => exec("date '+%Y-%m-%d' -u -r ".$this->base_url."view/products/index.php"),
|
||||
'change_freq' => 'monthly',
|
||||
'importance' => '1.0'
|
||||
);
|
||||
);
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::Controller();
|
||||
$this->load->helper(array('text','url'));
|
||||
$this->load->plugin('google_sitemap'); //Load Plugin
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$sitemap = new google_sitemap; //Create a new Sitemap Object
|
||||
|
||||
foreach($sites as $k => $s)
|
||||
{
|
||||
$item = new google_sitemap_item('http://www.archlinexp.com/'.$k, date("Y-m-d"), $s, '0.8' );
|
||||
$sitemap->add_item($item);
|
||||
}
|
||||
|
||||
$sitemap->build('/public/sitemap/sitemap.xml'); //Build it...
|
||||
|
||||
//Let's compress it to gz
|
||||
$data = implode("", file("/public/sitemap/sitemap.xml"));
|
||||
$gzdata = gzencode($data, 9);
|
||||
$fp = fopen("/public/sitemap/sitemap.xml.gz", "w");
|
||||
fwrite($fp, $gzdata);
|
||||
fclose($fp);
|
||||
|
||||
//Let's Ping google
|
||||
$this->_pingGoogleSitemaps('/public/sitemap/sitemap.xml.gz');
|
||||
}
|
||||
|
||||
function _pingGoogleSitemaps( $url_xml )
|
||||
{
|
||||
$status = 0;
|
||||
$google = 'www.google.com';
|
||||
if( $fp=@fsockopen($google, 80) )
|
||||
{
|
||||
$req = 'GET /webmasters/sitemaps/ping?sitemap=' .
|
||||
urlencode( $url_xml ) . " HTTP/1.1\r\n" .
|
||||
"Host: $google\r\n" .
|
||||
"User-Agent: Mozilla/5.0 (compatible; " .
|
||||
PHP_OS . ") PHP/" . PHP_VERSION . "\r\n" .
|
||||
"Connection: Close\r\n\r\n";
|
||||
fwrite( $fp, $req );
|
||||
while( !feof($fp) )
|
||||
{
|
||||
if( @preg_match('~^HTTP/\d\.\d (\d+)~i', fgets($fp, 128), $m) )
|
||||
{
|
||||
$status = intval( $m[1] );
|
||||
break;
|
||||
}
|
||||
}
|
||||
fclose( $fp );
|
||||
}
|
||||
return( $status );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,731 @@
|
||||
<?php
|
||||
class Support extends Controller
|
||||
{
|
||||
function Support()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Terméktámogatás' : 'ARCHLine.XP Support';
|
||||
$data['tartalom']='support/index';
|
||||
$data['javascript'] = array('prototype');
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
$data['cimlap'] = $this->mpages->get_row(295);
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function faq()
|
||||
{
|
||||
$this->load->model('mfaq');
|
||||
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Gy.I.K.' : 'ARCHLine.XP CAD Software - FAQ';
|
||||
$data['tartalom']='support/faq';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=3;
|
||||
|
||||
$data['faqs'] = $this->mfaq->get_faqs($this->muser->user['lang'],'faq_date');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function downloads()
|
||||
{
|
||||
$this->load->model('mdownloads');
|
||||
|
||||
if( !eng() )
|
||||
$data['heading']="Dokumentációk";//$this->mdownloads->get_heading('support');
|
||||
else
|
||||
$data['heading']='Documentation';
|
||||
$data['downloads']=$this->mdownloads->get_category('support',$this->muser->user['lang']);
|
||||
$data['aktiv']=6;
|
||||
|
||||
$data['support']=true;
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - segítség' : 'ARCHLine.XP CAD Software - Documentation';
|
||||
$data['tartalom']='downloads/list';
|
||||
$data['csik']=array('home','downloads','support');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function showarticle()
|
||||
{
|
||||
$article_url = $this->uri->segment(3);
|
||||
if(!$article_url)
|
||||
{
|
||||
show_error();
|
||||
}
|
||||
|
||||
$data['article_url'] = base64_decode($article_url);
|
||||
$data['csik'] = array('home','support');
|
||||
$data['tartalom'] = 'support/article';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function helpcontent()
|
||||
{
|
||||
$this->load->model('mhelp');
|
||||
$data['xml'] = $this->mhelp->render_nodes();
|
||||
$data['csik'] = array('home','support');
|
||||
$data['tartalom'] = 'support/helpcontent';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function keyword()
|
||||
{
|
||||
$needs_decode = true;
|
||||
|
||||
$this->load->model('mhelp');
|
||||
|
||||
$keyword = $this->uri->segment(3);
|
||||
if(!$keyword)
|
||||
{
|
||||
$keyword = $this->input->post('keyword');
|
||||
$needs_decode = false;
|
||||
if(!$keyword)
|
||||
{
|
||||
redirect('support');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
if($needs_decode)
|
||||
{
|
||||
$keyword = base64_decode($keyword);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data['keyword'] = $keyword;
|
||||
|
||||
$data['found'] = $this->mhelp->search($keyword);
|
||||
$data['csik'] = array('home','support');
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Tudásközpont - '.$keyword : 'ARCHLine.XP Knowledge Center - '.$keyword;
|
||||
$data['tartalom'] = 'support/index';
|
||||
$data['javascript'] = array('prototype');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function toc()
|
||||
{
|
||||
|
||||
$this->load->model('mhelp');
|
||||
|
||||
$data['toc'] = $this->mhelp->render_nodes();
|
||||
$data['csik'] = array('home','support');
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Tudásközpont' : 'ARCHLine.XP Knowledge Center';
|
||||
$data['tartalom'] = 'support/toc';
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function events()
|
||||
{
|
||||
$this->load->model('mevents');
|
||||
|
||||
$data['counties'] = array(
|
||||
-1 => '-- válasszon --',
|
||||
'Bács-Kiskun' => 'Bács-Kiskun',
|
||||
'Baranya' => 'Baranya',
|
||||
'Békés' => 'Békés',
|
||||
'Borsod-Abaúj-Zemplén' => 'Borsod-Abaúj-Zemplén',
|
||||
'Budapest' => 'Budapest',
|
||||
'Csongrád' => 'Csongrád',
|
||||
'Fejér' => 'Fejér',
|
||||
'Győr-Moson-Sopron' => 'Győr-Moson-Sopron',
|
||||
'Hajdú-Bihar' => 'Hajdú-Bihar',
|
||||
'Heves' => 'Heves',
|
||||
'Jász-Nagykun-Szolnok' => 'Jász-Nagykun-Szolnok',
|
||||
'Komárom-Esztergom' => 'Komárom-Esztergom',
|
||||
'Nógrád' => 'Nógrád',
|
||||
'Pest' => 'Pest',
|
||||
'Somogy' => 'Somogy',
|
||||
'Szabolcs-Szatmár-Bereg' => 'Szabolcs-Szatmár-Bereg',
|
||||
'Tolna' => 'Tolna',
|
||||
'Vas' => 'Vas',
|
||||
'Veszprém' => 'Veszprém',
|
||||
'Zala' => 'Zala'
|
||||
);
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Bemutatók' : 'ARCHLine.XP CAD Software - Events';
|
||||
$data['tartalom']='support/events';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
if(hun())
|
||||
$data['javascript'] = array('events');
|
||||
|
||||
$data['events'] = $this->mevents->get_latest('30',$this->muser->user['lang']);
|
||||
|
||||
$data['aktiv']=2;
|
||||
|
||||
$data['faqs'] = $this->mevents->get_latest('faq_date');
|
||||
|
||||
$error = false;
|
||||
|
||||
if($this->input->post('do')!=false)
|
||||
{
|
||||
$event_ids = $this->input->post('event_id');
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','kamsz','county','fax','email','comment','cim');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev' && $a!='kamsz' && $a!='county')
|
||||
{
|
||||
$error = "Minden vastaggal jelölt mezőt ki kell tölteni ($a hiányzik)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hibás azonosító: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($tomb['kamsz']!='' && $tomb['county']==-1)
|
||||
{
|
||||
$error = "A kamarai névjegyzéki számhoz meg kell adnia a megyét is.";
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hiábás esemény azonosító';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$arr = array('event_id','nev','pron','cegnev','cim','tel','fax','email','comment','other');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a=='tel' && $a =='nev' && $a=='cegnev')
|
||||
{
|
||||
$error = "You have to fill all form fields marked with bold text ($a is missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($a=='event_id' && !is_numeric($tomb[$a]))
|
||||
{
|
||||
$error = 'Invalid id: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!is_numeric($tomb['event_id']))
|
||||
{
|
||||
$error = 'You have not selected an event, please select one!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($tomb['event_id']);
|
||||
}
|
||||
|
||||
|
||||
$egyebcad = array('AutoCAD','VectorWorks','ArchiCAD','JWCAD','ARCHITREND','GoogleSketchup','DRACAD','SuperSoft','その他');
|
||||
|
||||
$valasztott = array();
|
||||
|
||||
foreach($egyebcad as $key => $cad)
|
||||
{
|
||||
$no = $key+1;
|
||||
$keres = 'cb'.$no;
|
||||
|
||||
if($this->input->post($keres)=='on')
|
||||
{
|
||||
$valasztott[]=$cad;
|
||||
}
|
||||
}
|
||||
|
||||
if(count($valasztott)==0)
|
||||
{
|
||||
$tomb['egyebcad']=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['egyebcad']=$valasztott;
|
||||
}
|
||||
}
|
||||
elseif(eng())
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','fax','email','comment','cim');
|
||||
$names = array('event_id' => 'event id', 'nev' => 'name', 'cegnev' => 'company name', 'varos' => 'city', 'irsz' => 'zip code', 'tel' => 'phone number', 'fax' => 'fax number', 'email' => 'e-mail', 'comment' => 'comment', 'cim' => 'address');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev')
|
||||
{
|
||||
$error = "Fill out every bold field ({$names[$a]} missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
/*$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}*/
|
||||
|
||||
/* ??? */
|
||||
foreach($event_ids as $akt){
|
||||
$event_id = explode('|',$akt);
|
||||
$event_id = $event_id[0];
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
$tomb['esemeny'] = array();
|
||||
$i = 0;
|
||||
foreach($event_ids as $akt){
|
||||
|
||||
$event_id = explode('|',$akt);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'You have to specify an event!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny'][$i++] = $this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','fax','email','comment','cim');
|
||||
$names = array('event_id' => 'event id', 'nev' => 'name', 'cegnev' => 'company name', 'varos' => 'city', 'irsz' => 'zip code', 'tel' => 'phone number', 'fax' => 'fax number', 'email' => 'e-mail', 'comment' => 'comment', 'cim' => 'address');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev')
|
||||
{
|
||||
$error = "Fill out every bold field ({$names[$a]} missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'You have to specify an event!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$error)
|
||||
{
|
||||
$this->load->library('email');
|
||||
$this->load->helper('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
$e[1] = htmlentities($e[1]);
|
||||
$e[1] = htmlentities($e[1]);
|
||||
|
||||
//$tomb['egyeb'] = $e[1];
|
||||
$tomb['egyeb'] = preg_replace("/&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;/",' _ ',$e[1]);
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
|
||||
//Kintre:
|
||||
$this->email->clear();
|
||||
$mailnek['mailcontent'] = 'support/eventmail_ki';
|
||||
|
||||
$mailnek['esemeny']=$tomb['esemeny'];
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
$e[1] = htmlentities($e[1]);
|
||||
$e[1] = htmlentities($e[1]);
|
||||
|
||||
$mailnek['datum'] = preg_replace("/&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;/",' ',$e[1]);
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Regisztracio bemutatora');
|
||||
$this->email->message($this->load->view('mail',$mailnek,true));
|
||||
$this->email->send($tomb['email'],'smtp');
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Event SignUp Notification');
|
||||
$this->email->message($this->load->view('support/eventmail',$tomb,true));
|
||||
$this->email->send('living-cg@leaf.ocn.ne.jp','smtp');
|
||||
}
|
||||
elseif(eng())
|
||||
{
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$i=0;
|
||||
//foreach($event_ids as $akt){
|
||||
//$e = explode('|',$akt);
|
||||
//plusz szokozok levetele
|
||||
//$e[1] = htmlentities($e[1]);
|
||||
//$e[1] = htmlentities($e[1]);
|
||||
$cim = $this->mevents->get_row($e[0]);
|
||||
$tomb['esemeny']=$cim;
|
||||
$tomb['egyeb'] = $e[1];
|
||||
//$tomb['egyeb'] .= " event id: " . $e[0];
|
||||
//$cim = $this->mevents->get_row($e[0]);
|
||||
//$tomb['egyeb'] .= " esemény címe: " . $cim->event_title;
|
||||
//$tomb['egyeb'] = preg_replace("/&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;/",' _ ',$e[1]);
|
||||
//$tomb['egyeb'][$i++] = $e[1];
|
||||
//}
|
||||
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@archlinexp.com','smtp');
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@archlinexp.com','smtp');
|
||||
}
|
||||
|
||||
|
||||
redirect('support/eventok');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
$data['error']=$error;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function eventok()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support/eventok';
|
||||
$data['csik']=array('home','support');
|
||||
$data['aktiv']=2;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function show_faq()
|
||||
{
|
||||
$this->load->model('mfaq');
|
||||
|
||||
$faq_id = $this->uri->segment(3);
|
||||
|
||||
if(!$faq_id || !is_numeric($faq_id))
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support/show_faq';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=3;
|
||||
|
||||
$data['faq'] = $this->mfaq->get_row($faq_id);
|
||||
$data['meta']['desc'] = trim(str_replace("\n"," ",substr(($str=wordwrap(strip_tags($data['faq']->faq_text),140,'$$')),0,strpos($str,'$$'))." ..."));
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function fileup()
|
||||
{
|
||||
$this->load->helper('email');
|
||||
|
||||
$uzenet = $this->input->post('uzenet');
|
||||
$email = $this->input->post('email');
|
||||
|
||||
if(!valid_email($email))
|
||||
{
|
||||
show_error("Érvénytelen E-Mail címet adott meg!");
|
||||
}
|
||||
|
||||
if(isset($_FILES['file']) || isset($_POST["tempFilenameField"]))
|
||||
{
|
||||
if($_FILES['file']['tmp_name'])
|
||||
{
|
||||
// VAN FILE CSATOLVA
|
||||
// FÁJLNÉV ELLENŐRZÉSE
|
||||
|
||||
$name = $_FILES['file']['name'];
|
||||
$tmp = $_FILES['file']['tmp_name'];
|
||||
|
||||
if(strstr($name,'~')!==false || strstr($name,'..')!==false || strstr($name,'/')!==false)
|
||||
{
|
||||
show_error("A fájlnév nem megengedett karaktereket tartalmaz: ".$name);
|
||||
}
|
||||
else
|
||||
{
|
||||
$put_dir = 'public/ugyfelupload/'.$email;
|
||||
|
||||
if(!is_dir($put_dir))
|
||||
{
|
||||
mkdir($put_dir);
|
||||
chmod($put_dir,0777);
|
||||
}
|
||||
|
||||
if(is_file($put_dir.'/'.$name))
|
||||
{
|
||||
$name = date('Y.m.d').'-'.$name.rand(0,100);
|
||||
}
|
||||
|
||||
|
||||
if(!move_uploaded_file($tmp,$put_dir.'/'.$name))
|
||||
{
|
||||
$file = 'hiba';
|
||||
}
|
||||
else
|
||||
{
|
||||
$file = $put_dir.'/'.$name;
|
||||
chmod($file,0777);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
//fájl java-val
|
||||
else if(isset($_POST["tempFilenameField"]))
|
||||
{
|
||||
// VAN FILE CSATOLVA
|
||||
// FÁJLNÉV ELLENŐRZÉSE
|
||||
|
||||
$name = $_POST["originalFilenameField"];
|
||||
$tmp = $_POST["tempFilenameField"];
|
||||
|
||||
if(strstr($name,'~')!==false || strstr($name,'..')!==false || strstr($name,'/')!==false)
|
||||
{
|
||||
show_error("A fájlnév nem megengedett karaktereket tartalmaz: ".$name);
|
||||
}
|
||||
else
|
||||
{
|
||||
$put_dir = 'public/ugyfelupload/'.$email;
|
||||
|
||||
if(!is_dir($put_dir))
|
||||
{
|
||||
mkdir($put_dir);
|
||||
chmod($put_dir,0777);
|
||||
}
|
||||
|
||||
if(is_file($put_dir.'/'.$name))
|
||||
{
|
||||
$name = date('Y.m.d').'-'.$name.rand(0,100);
|
||||
}
|
||||
|
||||
|
||||
if(!copy($tmp,$put_dir.'/'.$name))
|
||||
{
|
||||
$file = 'hiba';
|
||||
}
|
||||
else
|
||||
{
|
||||
$file = $put_dir.'/'.$name;
|
||||
chmod($file,0777);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
//NINCS FILE CSATOLVA
|
||||
$msg_file = false;
|
||||
}
|
||||
|
||||
$data['file'] = $file;
|
||||
$data['uzenet'] = $uzenet;
|
||||
$data['email'] = $email;
|
||||
$data['mailcontent'] = 'support/helpmail';
|
||||
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
|
||||
|
||||
$this->email->from('info@cadline.hu');
|
||||
$this->email->setReturnPath($email);
|
||||
|
||||
$this->email->subject('Segitsegkeres Weboldalon Keresztul');
|
||||
$this->email->message($this->load->view('mail',$data,true));
|
||||
|
||||
if(!$this->email->send('info@cadline.hu','smtp'))
|
||||
{
|
||||
show_error("Nem tudtuk elküldeni a kérését, kérjük próbálja meg újra, vagy lépjen kapcsolatba velünk telefonon keresztül.");
|
||||
}
|
||||
|
||||
$this->load->view('site',array('tartalom'=>'support/helpmailok','csik'=>'Üzenet elküldve'));
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
}
|
||||
|
||||
function links()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Linkek' : 'ARCHLine.XP CAD Software - Links';
|
||||
$data['tartalom']='support/links';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=2;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function simple()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support/help_simple';
|
||||
|
||||
$data['csik']=array('home','support');
|
||||
$data['javascript'] = array('prototype','onUploadFinished');
|
||||
|
||||
$data['aktiv']=4;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function help()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
if($this->uri->segment(3)=="simple"){
|
||||
$data['tartalom']='support/help_simple';
|
||||
}else if ($this->uri->segment(3)=="java"){
|
||||
$data['tartalom'] = 'support/help_java';
|
||||
}else{
|
||||
$data['tartalom']='support/help';
|
||||
}
|
||||
$data['csik']=array('home','support');
|
||||
$data['javascript'] = array('prototype','onUploadFinished');
|
||||
|
||||
$data['aktiv']=4;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,655 @@
|
||||
<?php
|
||||
class Support_interior extends Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Terméktámogatás' : 'ARCHLine.XP Support';
|
||||
$data['tartalom']='support_interior/index';
|
||||
$data['javascript'] = array('prototype');
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
$data['cimlap'] = $this->mpages->get_row(295);
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function faq()
|
||||
{
|
||||
$this->load->model('mfaq');
|
||||
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Gy.I.K.' : 'ARCHLine.XP CAD Software - FAQ';
|
||||
$data['tartalom']='support_interior/faq';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=3;
|
||||
|
||||
$data['faqs'] = $this->mfaq->get_faqs($this->muser->user['lang'],'faq_date');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function downloads()
|
||||
{
|
||||
$this->load->model('mdownloads');
|
||||
|
||||
$data['heading']=$this->mdownloads->get_heading('support');
|
||||
$data['downloads']=$this->mdownloads->get_category('support',$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']='support_interior/list';
|
||||
$data['csik']=array('home','downloads','support');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function showarticle()
|
||||
{
|
||||
$article_url = $this->uri->segment(3);
|
||||
if(!$article_url)
|
||||
{
|
||||
show_error();
|
||||
}
|
||||
|
||||
$data['article_url'] = base64_decode($article_url);
|
||||
$data['csik'] = array('home','support');
|
||||
$data['tartalom'] = 'support_interior/article';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function helpcontent()
|
||||
{
|
||||
$this->load->model('mhelp');
|
||||
$data['xml'] = $this->mhelp->render_nodes();
|
||||
$data['csik'] = array('home','support');
|
||||
$data['tartalom'] = 'support_interior/helpcontent';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function keyword()
|
||||
{
|
||||
$needs_decode = true;
|
||||
|
||||
$this->load->model('mhelp');
|
||||
|
||||
$keyword = $this->uri->segment(3);
|
||||
if(!$keyword)
|
||||
{
|
||||
$keyword = $this->input->post('keyword');
|
||||
$needs_decode = false;
|
||||
if(!$keyword)
|
||||
{
|
||||
redirect('support');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
if($needs_decode)
|
||||
{
|
||||
$keyword = base64_decode($keyword);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data['keyword'] = $keyword;
|
||||
|
||||
$data['found'] = $this->mhelp->search($keyword);
|
||||
$data['csik'] = array('home','support');
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Tudásközpont - '.$keyword : 'ARCHLine.XP Knowledge Center - '.$keyword;
|
||||
$data['tartalom'] = 'support_interior/index';
|
||||
$data['javascript'] = array('prototype');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function toc()
|
||||
{
|
||||
|
||||
$this->load->model('mhelp');
|
||||
|
||||
$data['toc'] = $this->mhelp->render_nodes();
|
||||
$data['csik'] = array('home','support');
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Tudásközpont' : 'ARCHLine.XP Knowledge Center';
|
||||
$data['tartalom'] = 'support_interior/toc';
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function events()
|
||||
{
|
||||
$this->load->model('mevents');
|
||||
|
||||
$data['counties'] = array(
|
||||
-1 => '-- válassz --',
|
||||
'Bács-Kiskun' => 'Bács-Kiskun',
|
||||
'Baranya' => 'Baranya',
|
||||
'Békés' => 'Békés',
|
||||
'Borsod-Abaúj-Zemplén' => 'Borsod-Abaúj-Zemplén',
|
||||
'Budapest' => 'Budapest',
|
||||
'Csongrád' => 'Csongrád',
|
||||
'Fejér' => 'Fejér',
|
||||
'Győr-Moson-Sopron' => 'Győr-Moson-Sopron',
|
||||
'Hajdú-Bihar' => 'Hajdú-Bihar',
|
||||
'Heves' => 'Heves',
|
||||
'Jász-Nagykun-Szolnok' => 'Jász-Nagykun-Szolnok',
|
||||
'Komárom-Esztergom' => 'Komárom-Esztergom',
|
||||
'Nógrád' => 'Nógrád',
|
||||
'Pest' => 'Pest',
|
||||
'Somogy' => 'Somogy',
|
||||
'Szabolcs-Szatmár-Bereg' => 'Szabolcs-Szatmár-Bereg',
|
||||
'Tolna' => 'Tolna',
|
||||
'Vas' => 'Vas',
|
||||
'Veszprém' => 'Veszprém',
|
||||
'Zala' => 'Zala'
|
||||
);
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Bemutatók' : 'ARCHLine.XP CAD Software - Events';
|
||||
$data['tartalom']='support_interior/events';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
if(hun())
|
||||
$data['javascript'] = array('events');
|
||||
|
||||
$data['events'] = $this->mevents->get_latest('30',$this->muser->user['lang']);
|
||||
|
||||
$data['aktiv']=2;
|
||||
|
||||
$data['faqs'] = $this->mevents->get_latest('faq_date');
|
||||
|
||||
$error = false;
|
||||
|
||||
if($this->input->post('do')!=false)
|
||||
{
|
||||
$event_ids = $this->input->post('event_id');
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','kamsz','county','fax','email','comment','cim');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev' && $a!='kamsz' && $a!='county')
|
||||
{
|
||||
$error = "Minden vastaggal jelölt mezőt ki kell tölteni ($a hiányzik)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hibás azonosító: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($tomb['kamsz']!='' && $tomb['county']==-1)
|
||||
{
|
||||
$error = "A kamarai névjegyzéki számhoz meg kell adnia a megyét is.";
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hiábás esemény azonosító';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$arr = array('event_id','nev','pron','cegnev','cim','tel','fax','email','comment','other');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a=='tel' && $a =='nev' && $a=='cegnev')
|
||||
{
|
||||
$error = "You have to fill all form fields marked with bold text ($a is missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($a=='event_id' && !is_numeric($tomb[$a]))
|
||||
{
|
||||
$error = 'Invalid id: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!is_numeric($tomb['event_id']))
|
||||
{
|
||||
$error = 'You have not selected an event, please select one!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($tomb['event_id']);
|
||||
}
|
||||
|
||||
|
||||
$egyebcad = array('AutoCAD','VectorWorks','ArchiCAD','JWCAD','ARCHITREND','GoogleSketchup','DRACAD','SuperSoft','その他');
|
||||
|
||||
$valasztott = array();
|
||||
|
||||
foreach($egyebcad as $key => $cad)
|
||||
{
|
||||
$no = $key+1;
|
||||
$keres = 'cb'.$no;
|
||||
|
||||
if($this->input->post($keres)=='on')
|
||||
{
|
||||
$valasztott[]=$cad;
|
||||
}
|
||||
}
|
||||
|
||||
if(count($valasztott)==0)
|
||||
{
|
||||
$tomb['egyebcad']=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['egyebcad']=$valasztott;
|
||||
}
|
||||
}
|
||||
elseif(eng())
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','fax','email','comment','cim');
|
||||
$names = array('event_id' => 'event id', 'nev' => 'name', 'cegnev' => 'company name', 'varos' => 'city', 'irsz' => 'zip code', 'tel' => 'phone number', 'fax' => 'fax number', 'email' => 'e-mail', 'comment' => 'comment', 'cim' => 'address');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev')
|
||||
{
|
||||
$error = "Fill out every bold field ({$names[$a]} missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
/*$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}*/
|
||||
|
||||
/* ??? */
|
||||
foreach($event_ids as $akt){
|
||||
$event_id = explode('|',$akt);
|
||||
$event_id = $event_id[0];
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
$tomb['esemeny'] = array();
|
||||
$i = 0;
|
||||
foreach($event_ids as $akt){
|
||||
|
||||
$event_id = explode('|',$akt);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'You have to specify an event!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$a = $this->mevents->get_row($event_id);
|
||||
|
||||
$tomb['esemeny'][$i++] = $this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','fax','email','comment','cim');
|
||||
$names = array('event_id' => 'event id', 'nev' => 'name', 'cegnev' => 'company name', 'varos' => 'city', 'irsz' => 'zip code', 'tel' => 'phone number', 'fax' => 'fax number', 'email' => 'e-mail', 'comment' => 'comment', 'cim' => 'address');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev')
|
||||
{
|
||||
$error = "Fill out every bold field ({$names[$a]} missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'You have to specify an event!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(!$error)
|
||||
{
|
||||
$this->load->library('email');
|
||||
$this->load->helper('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$tomb['mailcontent'] = 'support_interior/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Event SignUp Notification');
|
||||
$this->email->message($this->load->view('support_interior/eventmail',$tomb,true));
|
||||
$this->email->send('living-cg@leaf.ocn.ne.jp','smtp');
|
||||
}
|
||||
elseif(eng())
|
||||
{
|
||||
$i=0;
|
||||
foreach($event_ids as $akt){
|
||||
$e = explode('|',$akt);
|
||||
//plusz szokozok levetele
|
||||
$tomb['egyeb'][$i++] = substr($e[1],0,10) . " _ " . substr($e[1],18,13);
|
||||
//nem megy..: reg_replace('/ /','_',$e[1]);
|
||||
}
|
||||
|
||||
$tomb['mailcontent'] = 'support_interior/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@archlinexp.com','smtp');
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$tomb['mailcontent'] = 'support_interior/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@archlinexp.com','smtp');
|
||||
}
|
||||
|
||||
|
||||
redirect('support_interior/eventok');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
$data['error']=$error;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function eventok()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support_interior/eventok';
|
||||
$data['csik']=array('home','support');
|
||||
$data['aktiv']=2;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function show_faq()
|
||||
{
|
||||
$this->load->model('mfaq');
|
||||
|
||||
$faq_id = $this->uri->segment(3);
|
||||
|
||||
if(!$faq_id || !is_numeric($faq_id))
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support_interior/show_faq';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=3;
|
||||
|
||||
$data['faq'] = $this->mfaq->get_row($faq_id);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function fileup()
|
||||
{
|
||||
$this->load->helper('email');
|
||||
|
||||
$uzenet = $this->input->post('uzenet');
|
||||
$email = $this->input->post('email');
|
||||
|
||||
if(!valid_email($email))
|
||||
{
|
||||
show_error("Érvénytelen E-Mail címet adott meg!");
|
||||
}
|
||||
|
||||
if(isset($_FILES['file']))
|
||||
{
|
||||
if($_FILES['file']['tmp_name'])
|
||||
{
|
||||
// VAN FILE CSATOLVA
|
||||
// FÁJLNÉV ELLENŐRZÉSE
|
||||
|
||||
$name = $_FILES['file']['name'];
|
||||
$tmp = $_FILES['file']['tmp_name'];
|
||||
|
||||
if(strstr($name,'~')!==false || strstr($name,'..')!==false || strstr($name,'/')!==false)
|
||||
{
|
||||
show_error("A fájlnév nem megengedett karaktereket tartalmaz: ".$name);
|
||||
}
|
||||
else
|
||||
{
|
||||
$put_dir = 'public/ugyfelupload/'.$email;
|
||||
|
||||
if(!is_dir($put_dir))
|
||||
{
|
||||
mkdir($put_dir);
|
||||
chmod($put_dir,0777);
|
||||
}
|
||||
|
||||
if(is_file($put_dir.'/'.$name))
|
||||
{
|
||||
$name = date('Y.m.d').'-'.$name.rand(0,100);
|
||||
}
|
||||
|
||||
|
||||
if(!move_uploaded_file($tmp,$put_dir.'/'.$name))
|
||||
{
|
||||
$file = 'hiba';
|
||||
}
|
||||
else
|
||||
{
|
||||
$file = $put_dir.'/'.$name;
|
||||
chmod($file,0777);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//NINCS FILE CSATOLVA
|
||||
$msg_file = false;
|
||||
}
|
||||
|
||||
$data['file'] = $file;
|
||||
$data['uzenet'] = $uzenet;
|
||||
$data['email'] = $email;
|
||||
$data['mailcontent'] = 'support_interior/helpmail';
|
||||
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
|
||||
|
||||
$this->email->from('info@cadline.hu');
|
||||
$this->email->setReturnPath($email);
|
||||
|
||||
$this->email->subject('Segitsegkeres Weboldalon Keresztul');
|
||||
$this->email->message($this->load->view('mail',$data,true));
|
||||
|
||||
if(!$this->email->send('info@cadline.hu','smtp'))
|
||||
{
|
||||
show_error("Nem tudtuk elküldeni a kérését, kérjük próbálja meg újra, vagy lépjen kapcsolatba velünk telefonon keresztül.");
|
||||
}
|
||||
|
||||
$this->load->view('site',array('tartalom'=>'support_interior/helpmailok','csik'=>'Üzenet elküldve'));
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
}
|
||||
|
||||
function links()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Linkek' : 'ARCHLine.XP CAD Software - Links';
|
||||
$data['tartalom']='support_interior/links';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=2;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function drivers()
|
||||
{
|
||||
$this->load->model('mdownloads');
|
||||
$data['heading']=$this->mdownloads->get_heading('drivers');
|
||||
$data['downloads']=$this->mdownloads->get_category('drivers',$this->muser->user['lang']);
|
||||
$data['aktiv']=5;
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Driverek' : 'ARCHLine.XP Drivers';
|
||||
$data['tartalom']='support_interior/list';
|
||||
$data['csik']=array('home','interior','drivers');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function help()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support_interior/help';
|
||||
$data['csik']=array('home','support');
|
||||
$data['javascript'] = array('prototype');
|
||||
|
||||
$data['aktiv']=4;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,574 @@
|
||||
<?php
|
||||
class Support extends Controller
|
||||
{
|
||||
function Support()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Terméktámogatás' : 'ARCHLine.XP Support';
|
||||
$data['tartalom']='support/index';
|
||||
$data['javascript'] = array('prototype');
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
$data['cimlap'] = $this->mpages->get_row(295);
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function faq()
|
||||
{
|
||||
$this->load->model('mfaq');
|
||||
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Gy.I.K.' : 'ARCHLine.XP CAD Software - FAQ';
|
||||
$data['tartalom']='support/faq';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=3;
|
||||
|
||||
$data['faqs'] = $this->mfaq->get_faqs($this->muser->user['lang'],'faq_date');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function downloads()
|
||||
{
|
||||
$this->load->model('mdownloads');
|
||||
|
||||
$data['heading']=$this->mdownloads->get_heading('support');
|
||||
$data['downloads']=$this->mdownloads->get_category('support',$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','downloads','support');
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function showarticle()
|
||||
{
|
||||
$article_url = $this->uri->segment(3);
|
||||
if(!$article_url)
|
||||
{
|
||||
show_error();
|
||||
}
|
||||
|
||||
$data['article_url'] = base64_decode($article_url);
|
||||
$data['csik'] = array('home','support');
|
||||
$data['tartalom'] = 'support/article';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function helpcontent()
|
||||
{
|
||||
$this->load->model('mhelp');
|
||||
$data['xml'] = $this->mhelp->render_nodes();
|
||||
$data['csik'] = array('home','support');
|
||||
$data['tartalom'] = 'support/helpcontent';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function keyword()
|
||||
{
|
||||
$needs_decode = true;
|
||||
|
||||
$this->load->model('mhelp');
|
||||
|
||||
$keyword = $this->uri->segment(3);
|
||||
if(!$keyword)
|
||||
{
|
||||
$keyword = $this->input->post('keyword');
|
||||
$needs_decode = false;
|
||||
if(!$keyword)
|
||||
{
|
||||
redirect('support');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
if($needs_decode)
|
||||
{
|
||||
$keyword = base64_decode($keyword);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data['keyword'] = $keyword;
|
||||
|
||||
$data['found'] = $this->mhelp->search($keyword);
|
||||
$data['csik'] = array('home','support');
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Tudásközpont - '.$keyword : 'ARCHLine.XP Knowledge Center - '.$keyword;
|
||||
$data['tartalom'] = 'support/index';
|
||||
$data['javascript'] = array('prototype');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function toc()
|
||||
{
|
||||
|
||||
$this->load->model('mhelp');
|
||||
|
||||
$data['toc'] = $this->mhelp->render_nodes();
|
||||
$data['csik'] = array('home','support');
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Tudásközpont' : 'ARCHLine.XP Knowledge Center';
|
||||
$data['tartalom'] = 'support/toc';
|
||||
|
||||
if(hun())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['hun'];
|
||||
}
|
||||
if(eng())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
if(be())
|
||||
{
|
||||
$keywords = $this->config->item('help_keywords');
|
||||
$data['keywords'] = $keywords['eng'];
|
||||
}
|
||||
|
||||
$this->load->view('site',$data);
|
||||
|
||||
}
|
||||
|
||||
function events()
|
||||
{
|
||||
$this->load->model('mevents');
|
||||
|
||||
$data['counties'] = array(
|
||||
-1 => '-- válassz --',
|
||||
'Bács-Kiskun' => 'Bács-Kiskun',
|
||||
'Baranya' => 'Baranya',
|
||||
'Békés' => 'Békés',
|
||||
'Borsod-Abaúj-Zemplén' => 'Borsod-Abaúj-Zemplén',
|
||||
'Budapest' => 'Budapest',
|
||||
'Csongrád' => 'Csongrád',
|
||||
'Fejér' => 'Fejér',
|
||||
'Győr-Moson-Sopron' => 'Győr-Moson-Sopron',
|
||||
'Hajdú-Bihar' => 'Hajdú-Bihar',
|
||||
'Heves' => 'Heves',
|
||||
'Jász-Nagykun-Szolnok' => 'Jász-Nagykun-Szolnok',
|
||||
'Komárom-Esztergom' => 'Komárom-Esztergom',
|
||||
'Nógrád' => 'Nógrád',
|
||||
'Pest' => 'Pest',
|
||||
'Somogy' => 'Somogy',
|
||||
'Szabolcs-Szatmár-Bereg' => 'Szabolcs-Szatmár-Bereg',
|
||||
'Tolna' => 'Tolna',
|
||||
'Vas' => 'Vas',
|
||||
'Veszprém' => 'Veszprém',
|
||||
'Zala' => 'Zala'
|
||||
);
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Bemutatók' : 'ARCHLine.XP CAD Software - Events';
|
||||
$data['tartalom']='support/events';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
if(hun())
|
||||
$data['javascript'] = array('events');
|
||||
|
||||
$data['events'] = $this->mevents->get_latest('30',$this->muser->user['lang']);
|
||||
|
||||
$data['aktiv']=2;
|
||||
|
||||
$data['faqs'] = $this->mevents->get_latest('faq_date');
|
||||
|
||||
$error = false;
|
||||
|
||||
if($this->input->post('do')!=false)
|
||||
{
|
||||
if(hun())
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','kamsz','county','fax','email','comment','cim');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev' && $a!='kamsz' && $a!='county')
|
||||
{
|
||||
$error = "Minden vastaggal jelölt mezőt ki kell tölteni ($a hiányzik)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hibás azonosító: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($tomb['kamsz']!='' && $tomb['county']==-1)
|
||||
{
|
||||
$error = "A kamarai névjegyzéki számhoz meg kell adnia a megyét is.";
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'Hiábás esemény azonosító';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$arr = array('event_id','nev','pron','cegnev','cim','tel','fax','email','comment','other');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a=='tel' && $a =='nev' && $a=='cegnev')
|
||||
{
|
||||
$error = "You have to fill all form fields marked with bold text ($a is missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
if($a=='event_id' && !is_numeric($tomb[$a]))
|
||||
{
|
||||
$error = 'Invalid id: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!is_numeric($tomb['event_id']))
|
||||
{
|
||||
$error = 'You have not selected an event, please select one!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($tomb['event_id']);
|
||||
}
|
||||
|
||||
|
||||
$egyebcad = array('AutoCAD','VectorWorks','ArchiCAD','JWCAD','ARCHITREND','GoogleSketchup','DRACAD','SuperSoft','その他');
|
||||
|
||||
$valasztott = array();
|
||||
|
||||
foreach($egyebcad as $key => $cad)
|
||||
{
|
||||
$no = $key+1;
|
||||
$keres = 'cb'.$no;
|
||||
|
||||
if($this->input->post($keres)=='on')
|
||||
{
|
||||
$valasztott[]=$cad;
|
||||
}
|
||||
}
|
||||
|
||||
if(count($valasztott)==0)
|
||||
{
|
||||
$tomb['egyebcad']=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['egyebcad']=$valasztott;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$arr = array('event_id','nev','cegnev','varos','irsz','tel','fax','email','comment','cim');
|
||||
$names = array('event_id' => 'event id', 'nev' => 'name', 'cegnev' => 'company name', 'varos' => 'city', 'irsz' => 'zip code', 'tel' => 'phone number', 'fax' => 'fax number', 'email' => 'e-mail', 'comment' => 'comment', 'cim' => 'address');
|
||||
foreach($arr as $a)
|
||||
{
|
||||
$tomb[$a] = $this->input->post($a);
|
||||
|
||||
if($tomb[$a]==false && $a!='fax' && $a !='comment' && $a!='cegnev')
|
||||
{
|
||||
$error = "Fill out every bold field ({$names[$a]} missing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if($a=='event_id' && !is_numeric($event_id))
|
||||
{
|
||||
$error = 'Wrong identifier: '.$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$event_id = explode('|',$tomb['event_id']);
|
||||
$event_id = $event_id[0];
|
||||
|
||||
if(!is_numeric($event_id))
|
||||
{
|
||||
$error = 'You have to specify an event!';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tomb['esemeny']=$this->mevents->get_row($event_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if(!$error)
|
||||
{
|
||||
$this->load->library('email');
|
||||
$this->load->helper('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
|
||||
if(hun())
|
||||
{
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
}
|
||||
elseif(jap())
|
||||
{
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Event SignUp Notification');
|
||||
$this->email->message($this->load->view('support/eventmail',$tomb,true));
|
||||
$this->email->send('living-cg@leaf.ocn.ne.jp','smtp');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$e = explode('|',$tomb['event_id']);
|
||||
|
||||
$tomb['egyeb'] = $e[1];
|
||||
$tomb['mailcontent'] = 'support/eventmail';
|
||||
|
||||
$this->email->from('info@cadline.hu', 'Cadline Weboldal');
|
||||
$this->email->subject('Esemenyek jelentkezes');
|
||||
$this->email->message($this->load->view('mail',$tomb,true));
|
||||
$this->email->send('info@archlinexp.com','smtp');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
redirect('support/eventok');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
$data['error']=$error;
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function eventok()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support/eventok';
|
||||
$data['csik']=array('home','support');
|
||||
$data['aktiv']=2;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function show_faq()
|
||||
{
|
||||
$this->load->model('mfaq');
|
||||
|
||||
$faq_id = $this->uri->segment(3);
|
||||
|
||||
if(!$faq_id || !is_numeric($faq_id))
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
|
||||
|
||||
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support/show_faq';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=3;
|
||||
|
||||
$data['faq'] = $this->mfaq->get_row($faq_id);
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function fileup()
|
||||
{
|
||||
$this->load->helper('email');
|
||||
|
||||
$uzenet = $this->input->post('uzenet');
|
||||
$email = $this->input->post('email');
|
||||
|
||||
if(!valid_email($email))
|
||||
{
|
||||
show_error("Érvénytelen E-Mail címet adott meg!");
|
||||
}
|
||||
|
||||
if(isset($_FILES['file']))
|
||||
{
|
||||
if($_FILES['file']['tmp_name'])
|
||||
{
|
||||
// VAN FILE CSATOLVA
|
||||
// FÁJLNÉV ELLENŐRZÉSE
|
||||
|
||||
$name = $_FILES['file']['name'];
|
||||
$tmp = $_FILES['file']['tmp_name'];
|
||||
|
||||
if(strstr($name,'~')!==false || strstr($name,'..')!==false || strstr($name,'/')!==false)
|
||||
{
|
||||
show_error("A fájlnév nem megengedett karaktereket tartalmaz: ".$name);
|
||||
}
|
||||
else
|
||||
{
|
||||
$put_dir = 'public/ugyfelupload/'.$email;
|
||||
|
||||
if(!is_dir($put_dir))
|
||||
{
|
||||
mkdir($put_dir);
|
||||
chmod($put_dir,0777);
|
||||
}
|
||||
|
||||
if(is_file($put_dir.'/'.$name))
|
||||
{
|
||||
$name = date('Y.m.d').'-'.$name.rand(0,100);
|
||||
}
|
||||
|
||||
|
||||
if(!move_uploaded_file($tmp,$put_dir.'/'.$name))
|
||||
{
|
||||
$file = 'hiba';
|
||||
}
|
||||
else
|
||||
{
|
||||
$file = $put_dir.'/'.$name;
|
||||
chmod($file,0777);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//NINCS FILE CSATOLVA
|
||||
$msg_file = false;
|
||||
}
|
||||
|
||||
$data['file'] = $file;
|
||||
$data['uzenet'] = $uzenet;
|
||||
$data['email'] = $email;
|
||||
$data['mailcontent'] = 'support/helpmail';
|
||||
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
|
||||
|
||||
$this->email->from('info@cadline.hu');
|
||||
$this->email->setReturnPath($email);
|
||||
|
||||
$this->email->subject('Segitsegkeres Weboldalon Keresztul');
|
||||
$this->email->message($this->load->view('mail',$data,true));
|
||||
|
||||
if(!$this->email->send('info@cadline.hu','smtp'))
|
||||
{
|
||||
show_error("Nem tudtuk elküldeni a kérését, kérjük próbálja meg újra, vagy lépjen kapcsolatba velünk telefonon keresztül.");
|
||||
}
|
||||
|
||||
$this->load->view('site',array('tartalom'=>'support/helpmailok','csik'=>'Üzenet elküldve'));
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
show_404();
|
||||
}
|
||||
}
|
||||
|
||||
function links()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'ARCHLine.XP CAD Software - Linkek' : 'ARCHLine.XP CAD Software - Links';
|
||||
$data['tartalom']='support/links';
|
||||
$data['csik']=array('home','support');
|
||||
|
||||
$data['aktiv']=2;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function help()
|
||||
{
|
||||
$data['lang']=$this->muser->user['lang'];
|
||||
$data['tartalom']='support/help';
|
||||
$data['csik']=array('home','support');
|
||||
$data['javascript'] = array('prototype');
|
||||
|
||||
$data['aktiv']=4;
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,165 @@
|
||||
<?php
|
||||
class Temp_course extends Controller
|
||||
{
|
||||
function Temp_course()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
|
||||
if(!hun()){
|
||||
// redirect('interior/workshop/reception_room');
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archlinexp.com/interior/workshop/reception_room");
|
||||
}
|
||||
else{
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: http://www.archline.hu/interior/workshop/nappali");
|
||||
// redirect('interior/workshop/nappali');
|
||||
}
|
||||
|
||||
$this->load->model('mevents');
|
||||
//loading library for current date display
|
||||
$this->load->library('dateclass');
|
||||
|
||||
if($this->muser->user['lang'] == "hun")
|
||||
$lang = 1;
|
||||
else
|
||||
$lang = 2;
|
||||
|
||||
$main_events = $this->mevents->getWorkshop($lang, true);
|
||||
|
||||
if(!$main_events){
|
||||
redirect('workshop/no_main_event');
|
||||
}
|
||||
|
||||
$data['lang'] = $this->muser->user['lang'];
|
||||
$data['title'] = hun() ? 'Kurzusok - ARCHLine.XP CAD Software' : 'Courses - ARCHLine.XP CAD Software';
|
||||
$data['tartalom'] = 'temp_course/welcome_new4';
|
||||
$data['javascript'] = array('jquery_ui','fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('jquery.ui','fancybox2');
|
||||
$data['csik'] = array('home', 'courses');
|
||||
$data['error'] = false;
|
||||
|
||||
$kepek = array(
|
||||
14 => "/public/img/workshop/ENG/workshop_kitchen.jpg",
|
||||
15 => "/public/img/workshop/ENG/workshop_reception.jpg",
|
||||
16 => "/public/img/workshop/ENG/workshop_bathroom.jpg",
|
||||
19 => "/public/img/workshop/ENG/workshop_commercial_I.jpg",
|
||||
20 => "/public/img/workshop/ENG/workshop_awning.jpg",
|
||||
21 => "/public/img/workshop/ENG/workshop_loft.jpg",
|
||||
22 => "/public/img/workshop/ENG/workshop_virtual.jpg",
|
||||
23 => "/public/img/workshop/ENG/workshop_stairs.jpg",
|
||||
30 => "/public/img/workshop/ENG/workshop_commercial_II.jpg",
|
||||
35 => "/public/img/workshop/ENG/workshop_KBB2011.jpg",
|
||||
36 => "/public/img/workshop/ENG/workshop_2011.jpg",
|
||||
|
||||
|
||||
|
||||
10 => "/public/img/workshop/HUN/workshop_kitchen.jpg",
|
||||
11 => "/public/img/workshop/HUN/workshop_reception.jpg",
|
||||
13 => "/public/img/workshop/HUN/workshop_bathroom.jpg",
|
||||
24 => "/public/img/workshop/HUN/workshop_virtual.jpg",
|
||||
25 => "/public/img/workshop/HUN/workshop_awning.jpg",
|
||||
26 => "/public/img/workshop/HUN/workshop_commercial_I.jpg",
|
||||
27 => "/public/img/workshop/HUN/workshop_stairs.jpg",
|
||||
28 => "/public/img/workshop/HUN/workshop_loft.jpg",
|
||||
29 => "/public/img/workshop/HUN/workshop_commercial_II.jpg",
|
||||
31 => "/public/img/workshop/HUN/workshop_thea.jpg",
|
||||
32 => "/public/img/workshop/HUN/workshop_construma2011.jpg",
|
||||
34 => "/public/img/workshop/HUN/workshop_2011.jpg"
|
||||
);
|
||||
|
||||
$szintek = array(
|
||||
// 10 => "HALADÓ SZINT",
|
||||
11 => "KEZDŐ SZINT",
|
||||
//13 => "Középhaladó szint",
|
||||
28 => "HALADÓ SZINT",
|
||||
// 25 => "Haladó szint",
|
||||
// 26 => "Haladó szint",
|
||||
// 27 => "Haladó szint",
|
||||
// 28 => "Haladó szint"
|
||||
);
|
||||
|
||||
foreach($main_events as $key => $main_event){
|
||||
$results = $this->mevents->getEventDatesByDay($main_event->event_main_id, true);
|
||||
$main_events[$key]->events = $results['events'];
|
||||
$main_events[$key]->times = $results['times'];
|
||||
$id = $main_event->event_main_id;
|
||||
$main_event->thumbnail_name = $kepek[$id];
|
||||
if( isset($szintek[$id]) )
|
||||
$main_event->szint = $szintek[$id];
|
||||
else
|
||||
$main_event->szint = "";
|
||||
}
|
||||
|
||||
$data['main_events'] = $main_events;
|
||||
|
||||
$this->load->view('temp_course/site',$data);
|
||||
}
|
||||
|
||||
|
||||
function naptar(){
|
||||
$this->load->model('mevents');
|
||||
|
||||
if($this->muser->user['lang'] == "hun")
|
||||
$lang = 1;
|
||||
else
|
||||
$lang = 2;
|
||||
|
||||
$main_events = $this->mevents->getWorkshop($lang, true);
|
||||
|
||||
$urlveg = $this->uri->segment(3);
|
||||
|
||||
$data['event'] = $this->db->query("SELECT * FROM events_new_main WHERE urlname = '".$urlveg."' AND language_id = ".$lang)->row();
|
||||
$data['dates'] = $this->db->query("SELECT * FROM events_new WHERE event_main_id = '".$data['event']->event_main_id."' AND active = 1 AND deleted = 0 ORDER BY start_ts")->result();
|
||||
|
||||
|
||||
|
||||
// if( $_SERVER['REMOTE_ADDR'] == "78.92.152.8" && strstr($_SERVER['HTTP_USER_AGENT'],"inux") )
|
||||
$data['tartalom'] = 'temp_course/nagyonujws';
|
||||
// else
|
||||
// $data['tartalom'] = 'temp_course/naptarral';
|
||||
|
||||
$data['title'] = hun() ? 'Kurzusok - ARCHLine.XP CAD Software' : 'Workshop - ARCHLine.XP CAD Software';
|
||||
$data['javascript'] = array('jquery_ui','fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('jquery.ui','fancybox2');
|
||||
$data['csik'] = array('home', 'courses');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
function naptargen(){
|
||||
$this->load->model('mevents');
|
||||
$this->load->library('dateclass');
|
||||
|
||||
$main_events = $this->mevents->getWorkshop($this->muser->user['lang'], true);
|
||||
$esemenyek = array();
|
||||
|
||||
$data['lang'] = $this->muser->user['lang'];
|
||||
$data['style'] = array('jquery.ui');
|
||||
|
||||
$uri = explode("/", str_ireplace( "", "", $_SERVER[ 'REQUEST_URI'] ) );
|
||||
//print_r($uri);
|
||||
if( is_numeric($uri[3]) && is_numeric($uri[4]) && is_numeric($uri[5]) ){
|
||||
$honap = $uri[3];
|
||||
$ev = $uri[4];
|
||||
}else{
|
||||
$most = getdate();
|
||||
$honap = $most['mon'];
|
||||
$ev = $most['year'];
|
||||
}
|
||||
$esemenyek = $this->mevents->getEventDatesByMonth($honap,$ev,true);
|
||||
|
||||
$data['esemenyek'] = $esemenyek;
|
||||
$this->load->view('temp_course/naptar',$data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,287 @@
|
||||
<?php
|
||||
class Tipoftheday extends Controller
|
||||
{
|
||||
function Tipoftheday()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
|
||||
function show(){
|
||||
$hl_id = $this->uri->segment(3);
|
||||
$lang=(hun() ? "hun" : "eng");
|
||||
|
||||
if(!$hl_id)
|
||||
{
|
||||
$hl_id=$this->muser->lasttipoftheday($lang);
|
||||
}
|
||||
|
||||
if($hl_id == "milora-anyagok")
|
||||
{
|
||||
Header("HTTP/1.1 301 Moved Permanently");
|
||||
Header("Location: /newsletter/show/anyagmintak");
|
||||
}
|
||||
|
||||
$data['level']=$this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE ".(is_numeric($hl_id) ? "nl_id=".$hl_id : "url='".$hl_id."'")." AND deleted = 0")->row();
|
||||
$data['levelek']=$this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE lang = '".$lang."' AND deleted = 0 ORDER BY nl_id DESC")->result();
|
||||
|
||||
if( !$data['level'] )
|
||||
{
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
}
|
||||
|
||||
$data['javascript'] = array();
|
||||
|
||||
if( is_dir($data['level']->video) || is_dir($data['level']->link) ){
|
||||
$data['javascript'] = array(
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.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_min'
|
||||
);
|
||||
}elseif( $hl_id=='modelling-furniture-design' ){
|
||||
$data['javascript'] = array('fancybox/jquery-1.3.2.min','fancybox/jquery.easing.1.3','fancybox/jquery.fancybox-1.2.1.pack','fancybox/fancy');
|
||||
$data['style'] = array('fancybox2');
|
||||
}
|
||||
|
||||
$metadesc = trim(str_replace(array("\n",'"'),array(" ",''),substr(($str=wordwrap(strip_tags($data['level']->text),140,'$$')),0,strpos($str,'$$'))." ..."));
|
||||
|
||||
hun() ? $data['title'] = 'ARCHLine.XP Napi tipp' : $data['title'] = 'ARCHLine.XP Tip Of The Day';
|
||||
$data['title'] .= " - ".$data['level']->title;
|
||||
$data['meta']['desc'] = $metadesc;
|
||||
$data['mobilink'] = "/mobile/newsletter/".$hl_id;
|
||||
$data['tartalom'] = '/tipoftheday/index';
|
||||
$data['page'] = $lap;
|
||||
$data['javascript'][] = hun() ? "lnkbuilding-hun" : "lnkbuilding-eng";
|
||||
//$data['javascript'][] = "lnkbuilding-eng";
|
||||
|
||||
$this->load->view('site_new',$data);
|
||||
|
||||
}
|
||||
|
||||
function show2(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$hl_id = $this->uri->segment(3);
|
||||
|
||||
if(is_numeric($hl_id))
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE nl_id = ".$hl_id)->row();
|
||||
else
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE url = '".$hl_id."'")->row();
|
||||
|
||||
// email atalakitasa
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
|
||||
$egyezes = "newsletter/show/".$hl_id;
|
||||
if(hun())
|
||||
$info = "Hírlevél megtekintve: ".$level->title." (http://archline.hu/newsletter/show/".$hl_id.")";
|
||||
else
|
||||
$info = "Has been seen: ".$level->title." (http://archlinexp.com/newsletter/show/".$hl_id.")";
|
||||
$hibainfo = $level->url;
|
||||
|
||||
if(hun()){
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 64, $egyezes, $info, "hun", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 126, $egyezes, $info, "hun", $hibainfo);
|
||||
}
|
||||
else{
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 183, $egyezes, $info, "eng", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2", 147, $egyezes, $info, "eng", $hibainfo);
|
||||
}
|
||||
|
||||
|
||||
$user = $this->phpsession->get('user');
|
||||
$user['voltmobiloldal'] = true;
|
||||
$this->phpsession->save('user',$user);
|
||||
$mobil = $user['mobil'];
|
||||
|
||||
// átírányítás a hírlevélre
|
||||
if($mobil===true)
|
||||
redirect("mobile/newsletter/".$level->nl_id);
|
||||
else
|
||||
redirect("newsletter/show/".$hl_id);
|
||||
return;
|
||||
}
|
||||
|
||||
function show2esp(){
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$hl_id = $this->uri->segment(3);
|
||||
|
||||
if(is_numeric($hl_id))
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE nl_id = ".$hl_id)->row();
|
||||
else
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE url = '".$hl_id."'")->row();
|
||||
|
||||
// email atalakitasa
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
|
||||
$egyezes = "newsletter/show/".$hl_id;
|
||||
$info = "Hírlevél megtekintve: ".$level->title." (http://archlinexp.com/newsletter/show/".$hl_id.")";
|
||||
$hibainfo = $level->url;
|
||||
|
||||
if(UJUGYFELKEZELO===true)
|
||||
$this->mclusers->levelesemeny($email, "newsletter", "show2esp", 253, $egyezes, $info, "esp", $hibainfo);
|
||||
else
|
||||
$this->mclusers->levelesemenyEsp($email, "newsletter", "show2esp", 132, $egyezes, $info, "esp", $hibainfo);
|
||||
|
||||
redirect("newsletter/show/".$hl_id);
|
||||
}
|
||||
|
||||
function show2cz(){
|
||||
$hl_id = $this->uri->segment(3);
|
||||
|
||||
if(is_numeric($hl_id))
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE nl_id = ".$hl_id)->row();
|
||||
else
|
||||
$level = $this->db->query("SELECT * FROM `cadline2`.`tipoftheday` WHERE url = '".$hl_id."'")->row();
|
||||
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$info = "Newsletter: ".$level->title." (http://archlinexp.com/newsletter/show/".$hl_id.")";
|
||||
|
||||
$volte = $this->db->query(" SELECT * FROM cz_newsletter WHERE email = '{$email}' AND info = '{$info}'")->result();
|
||||
|
||||
if( count($volte) == 0 ){
|
||||
// mentes
|
||||
$czuser["email"] = $email;
|
||||
$czuser["info"] = $info;
|
||||
$czuser["date"] = date('Y-m-d, H:i:s',time());
|
||||
$this->db->insert('cz_newsletter',$czuser);
|
||||
}else{
|
||||
$record->osztaly = "newsletter";
|
||||
$record->fv = "show2cz";
|
||||
$record->hiba = "Dupla kattintás: ".$email."\n".$hl_id;
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
}
|
||||
|
||||
|
||||
redirect("newsletter/show/".$hl_id);
|
||||
}
|
||||
|
||||
function subscribe()
|
||||
{
|
||||
$data['email'] = $this->input->post('email');
|
||||
$data['nev'] = $this->input->post('nev');
|
||||
$data['tel'] = $this->input->post('tel');
|
||||
$data['mailcontent'] = 'newsletter/mail_sub';
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject('Hirlevel jelentkezes');
|
||||
$this->email->message($this->load->view('mailb',$data,true));
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
|
||||
$this->load->view('site',array('tartalom'=>'newsletter/ok_sub','csik'=>array('Hírlevél')));
|
||||
}
|
||||
|
||||
function unsubscribe()
|
||||
{
|
||||
$data['email'] = $this->input->post('email');
|
||||
|
||||
if(!$data['email'])
|
||||
redirect('page/show/27');
|
||||
|
||||
$data['nev'] = $this->input->post('nev');
|
||||
$data['tel'] = $this->input->post('tel');
|
||||
$data['mailcontent'] = 'newsletter/mail_unsub';
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->initialize();
|
||||
$this->email->addOfficialImages();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
|
||||
|
||||
$this->email->subject('Hirlevel leiratkozas');
|
||||
|
||||
$this->email->message($this->load->view('mail',$data,true));
|
||||
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
|
||||
$this->load->view('site',array('tartalom'=>'newsletter/ok_unsub','csik'=>array('Hírlevél')));
|
||||
}
|
||||
|
||||
function signup(){
|
||||
$name = $this->input->post('name');
|
||||
$email = $this->input->post('email');
|
||||
$url = $this->input->post('url');
|
||||
|
||||
if( !$email || $url ){
|
||||
print "Robot? ";
|
||||
|
||||
$record->osztaly = "newsletter";
|
||||
$record->fv = "signup";
|
||||
$record->hiba = "Robot? Új email:";
|
||||
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);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$lang = hun() ? "hun" : "eng";
|
||||
|
||||
$nUserID = $this->mclusers->get_nUserIDByEmail($email,$lang);
|
||||
if( !$nUserID ){
|
||||
$tomb['strName'] = $name;
|
||||
$tomb['strEMail'] = $email;
|
||||
|
||||
$tomb2['email'] = $email;
|
||||
|
||||
if( $lang == "hun" ){
|
||||
$nUserID = $this->mclusers->addUserHun($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailHun($tomb2);
|
||||
}else{
|
||||
$nUserID = $this->mclusers->addUserEng($tomb);
|
||||
$tomb2['nUserID'] = $nUserID;
|
||||
$this->mclusers->addUserEmailEng($tomb2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( $nUserID && hun() ){
|
||||
$this->mclusers->addEvent($nUserID, 38, '');
|
||||
}elseif( $nUserID && !hun() ){
|
||||
$this->mclusers->addEvent($nUserID, 150, '','eng');
|
||||
}
|
||||
|
||||
|
||||
|
||||
$record->osztaly = "newsletter";
|
||||
$record->fv = "signup";
|
||||
$record->hiba = "Új feliratkozo: ".print_r($_POST,true)." ".$lang;
|
||||
$record->datum = date('Y-m-d H:i:s',time());
|
||||
$this->db->insert('a_hibak',$record);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Sikeres feliratkozás' : 'ARCHLine.XP - Sign Up';
|
||||
$data['tartalom'] = 'forum/kiir';
|
||||
$data['csik']=array('home');
|
||||
|
||||
$data['info'] = "<div style='text-align: center; font-size: 1.3em;'>".lang('nl_submitok')."</div>";
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,187 @@
|
||||
<?php
|
||||
require_once APPPATH . "/helpers/SimpleXLSXGen.php";
|
||||
|
||||
class Trialusage extends Controller
|
||||
{
|
||||
private $ctrID;
|
||||
private $partner;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->load->library('session');
|
||||
$this->load->model('mtrialusage');
|
||||
$this->load->model('mweborder');
|
||||
$this->lang->load('site');
|
||||
|
||||
if ($this->phpsession->get('access_id')) {
|
||||
if ($this->phpsession->get('additional_access_id') != '')
|
||||
$access_id = $this->phpsession->get('additional_access_id');
|
||||
else
|
||||
$access_id = $this->phpsession->get('access_id');
|
||||
|
||||
$this->ctrID = $this->mweborder->getCtrID($access_id);
|
||||
$this->partner = $this->mtrialusage->getPartner($access_id);
|
||||
}
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
if (!$this->mweborder->weborderAccess()) {
|
||||
$this->mweborder->loadLoginTemplate();
|
||||
return;
|
||||
}
|
||||
|
||||
$data = array();
|
||||
|
||||
$partner_template = $this->mtrialusage->getPartnerTemplate($this->partner->id);
|
||||
$temp = json_decode($partner_template->template);
|
||||
$data['templates'] = $temp->templates;
|
||||
$data['versions'] = $this->mtrialusage->getProgramVersions();
|
||||
$data['types'] = $this->mtrialusage->getProgramTypes();
|
||||
$data['ctrID'] = $this->ctrID;
|
||||
$data['spec'] = $this->mtrialusage->getSpecEditonForCountry(substr($this->ctrID, 0, 2));
|
||||
$data['appearance'] = $_COOKIE["appearance"] != '' ? $_COOKIE["appearance"] : 1;
|
||||
$data['permission'] = $this->mtrialusage->getPermission($this->partner->permission_id);
|
||||
$data['crm_url'] = $data['permission']->is_admin == 1 ? 'https://crm.cadline.hu/hu/users/show/' : $partner_template->crm_url;
|
||||
$data['dists'] = $this->mtrialusage->getDistributors($data['permission']->is_admin, $this->ctrID);
|
||||
|
||||
if ($data['permission']->is_admin)
|
||||
$data['schools'] = $this->mtrialusage->getSchools();
|
||||
|
||||
$this->mweborder->loadTemplate('trialusage/index.php', $data, 'Program Usage', 'trialusage', false);
|
||||
}
|
||||
|
||||
function trialrequests()
|
||||
{
|
||||
$data = array();
|
||||
|
||||
$data['ctrID'] = $this->ctrID;
|
||||
$data['permission'] = $this->mtrialusage->getPermission($this->partner->permission_id);
|
||||
$data['dists'] = $this->mtrialusage->getDistributors($data['permission']->is_admin, $this->ctrID);
|
||||
$data['versions'] = $this->mtrialusage->getProgramVersions();
|
||||
|
||||
$this->mweborder->loadTemplate('trialusage/trialrequests.php', $data, 'Trial Requests', 'trialrequests', false);
|
||||
}
|
||||
|
||||
function getTrialStarts()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$response = $this->mtrialusage->getTrialStarts($this->ctrID, $_POST['distID'], $this->partner->permission_id, $this->partner->id, $_POST['fromDate'], $_POST['endDate'], $_POST['typeID'], $_POST['versionID']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function exportUsers()
|
||||
{
|
||||
$users = json_decode($_POST['users']);
|
||||
|
||||
$userArray = array(
|
||||
array('<b>Name</b>', '<b>Email</b>', '<b>Serial</b>', '<b>Number of starts</b>', '<b>Working hour(s)</b>')
|
||||
);
|
||||
|
||||
|
||||
foreach ($users as $user) {
|
||||
$workingHour = round($user->workingHour);
|
||||
$userDatas = array($user->userName, $user->email, $user->serial, $user->startSum, $workingHour);
|
||||
array_push($userArray, $userDatas);
|
||||
}
|
||||
|
||||
$xlsx = Shuchkin\SimpleXLSXGen::fromArray($userArray);
|
||||
$xlsx->setDefaultFontSize(14);
|
||||
$xlsx->downloadAs($_POST['selected_template'] . '.xlsx');
|
||||
}
|
||||
|
||||
function getProgramStarts()
|
||||
{
|
||||
$response = array();
|
||||
$courses = json_decode($_POST['courses']);
|
||||
|
||||
$response = $this->mtrialusage->getProgramStarts($this->ctrID, $_POST['tmpID'], $_POST['distID'], $this->partner->permission_id, $this->partner->id, $_POST['fromDate'], $_POST['endDate'], $courses);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getUsersFromPassword()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$passwords = json_decode(stripslashes($_POST['data']));
|
||||
|
||||
$response = $this->mtrialusage->getUsersFromPassword($passwords, substr($this->ctrID, 0, 2), $_POST['tmpID'], $this->partner->id);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getTemplate()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$tmp = $this->mtrialusage->getPartnerTemplate($this->partner->id);
|
||||
$templates = json_decode($tmp->template);
|
||||
$templates = (array)$templates->templates;
|
||||
|
||||
$response['template'] = $templates[$_POST['id']];
|
||||
$response['tmp_id'] = $_POST['id'];
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function saveTemplate()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$data = json_decode($_POST['data']);
|
||||
$template = $data->template;
|
||||
|
||||
$response = $this->mtrialusage->saveTemplate($template, $this->partner->id);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function deleteTemplate()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$response = $this->mtrialusage->deleteTemplate($_POST['id'], $this->partner->id);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getCourses()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$selectedSchools = json_decode($_POST['selectedSchools']);
|
||||
|
||||
$response = $this->mtrialusage->getCourses($selectedSchools);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function getNameMask()
|
||||
{
|
||||
echo json_encode($this->partner->program_usage_name_mask);
|
||||
}
|
||||
|
||||
function saveNameMask()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$response = $this->mtrialusage->saveNameMask($this->partner->id, $_POST['nameMask']);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function createAdminAccess()
|
||||
{
|
||||
if (isset($_POST['admin']) && $_POST['admin'] == 'true') {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', '36');
|
||||
}
|
||||
|
||||
redirect('/trialusage');
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,159 @@
|
||||
<?php
|
||||
class Unsubscribe extends Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$this->index2();
|
||||
return;
|
||||
$data['tartalom'] = 'unsubscribe/index';
|
||||
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
function validate()
|
||||
{
|
||||
$do = $this->input->post('do');
|
||||
$name = $this->input->post('name');
|
||||
$email = $this->input->post('email');
|
||||
|
||||
if($do && $email && $name && $do=='unsub')
|
||||
{
|
||||
$mail_vars['name'] = $name;
|
||||
$mail_vars['email'] = $email;
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->clear();
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject('ARCHLine.XP Leiratkozas');
|
||||
$this->email->message($this->load->view('mail/unsubscribe', $mail_vars, true));
|
||||
|
||||
if(hun())
|
||||
$this->email->send('info@cadline.hu','smtp');
|
||||
else
|
||||
$this->email->send('kitti.toth@archlinexp.com','smtp');
|
||||
|
||||
redirect('unsubscribe/done');
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['tartalom'] = 'error/unsubscribe';
|
||||
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
}
|
||||
|
||||
function done()
|
||||
{
|
||||
$data['tartalom'] = 'unsubscribe/done';
|
||||
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
|
||||
// automatikus leiratkozás
|
||||
function index2(){
|
||||
$data['tartalom'] = 'unsubscribe/index2';
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
// megerősítő e-mailt küld
|
||||
function validate2(){
|
||||
$do = $this->input->post('do');
|
||||
$name = $this->input->post('name');
|
||||
$email = $this->input->post('email');
|
||||
|
||||
|
||||
if($do && $email && $name && $do=='unsub' && !$url){
|
||||
$code = md5('aefsa'.$name.$email.time());
|
||||
|
||||
// adatbázisba
|
||||
$record = array(
|
||||
'name' => $name,
|
||||
'email' => $email,
|
||||
'code' => $code,
|
||||
);
|
||||
$this->db->insert('unsubscribe',$record);
|
||||
|
||||
// e-mail
|
||||
|
||||
$lapid = hun() ? 826 : 827;
|
||||
$lap = $this->mpages->get_row($lapid);
|
||||
$message = str_ireplace('#name#', $name, $lap->page_body);
|
||||
$message = str_ireplace('#code#', $code, $message);
|
||||
|
||||
$this->load->library('email');
|
||||
$this->email->clear();
|
||||
$this->email->initialize();
|
||||
|
||||
$this->email->from('info@cadline.hu', 'CadLine');
|
||||
$this->email->subject($lap->page_title);
|
||||
$this->email->message($message);
|
||||
|
||||
$this->email->send($email,'smtp');
|
||||
|
||||
redirect('unsubscribe/done2');
|
||||
}
|
||||
else{
|
||||
$data['tartalom'] = 'error/unsubscribe';
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function done2(){
|
||||
$data['info'] = hun() ? $this->mpages->get_row(829) : $this->mpages->get_row(828);
|
||||
$data['tartalom'] = 'unsubscribe/done2';
|
||||
$this->load->view('site', $data);
|
||||
}
|
||||
|
||||
// megerősítés e-mailben
|
||||
function confirm(){
|
||||
$code = $this->uri->segment(3);
|
||||
$this->load->model('mclusers');
|
||||
|
||||
$leiratkozo = $this->db->query("SELECT * FROM unsubscribe WHERE code='{$code}'")->row();
|
||||
if( !isset($leiratkozo->email) || !$leiratkozo->email ){
|
||||
print "error";
|
||||
return;
|
||||
}
|
||||
|
||||
$email = trim($leiratkozo->email);
|
||||
|
||||
// crm-ben kivenni az e-mailt + leiratkozas esemeny
|
||||
$userek = $this->db->query("SELECT DISTINCT(nUserID) nUserID FROM ".CRMADATBAZIS.".u_emails WHERE email='{$email}'")->result();
|
||||
$this->db->query("DELETE FROM ".CRMADATBAZIS.".u_emails WHERE email='{$email}'");
|
||||
|
||||
$topicId = hun() ? 54 : 166;
|
||||
$lang = hun() ? "hun" : "eng";
|
||||
|
||||
foreach($userek as $user){
|
||||
$userlang = $this->db->query("SELECT old_db FROM ".CRMADATBAZIS.".users WHERE nUserID='{$user->nUserID}'")->row();
|
||||
switch($userlang->old_db){
|
||||
case 'clusers_eng': $topicId=166; break;
|
||||
case 'clusers_spa': $topicId=248; break;
|
||||
default: $topicId=54;
|
||||
}
|
||||
$this->mclusers->addEvent($user->nUserID, $topicId, $email, $lang);
|
||||
}
|
||||
$this->db->query("UPDATE unsubscribe SET `deleted`=1 WHERE code='{$code}'");
|
||||
|
||||
redirect('unsubscribe/done');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,276 @@
|
||||
<?php
|
||||
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/application/libraries/phpmailer/Exception.php';
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/application/libraries/phpmailer/PHPMailer.php';
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/application/libraries/phpmailer/SMTP.php';
|
||||
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
|
||||
class Update extends Controller
|
||||
{
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->load->model('mupdate');
|
||||
$this->lang->load('site');
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
if ($this->uri->segment(2) != 'index')
|
||||
redirect('update/index');
|
||||
|
||||
if ($this->uri->segment(3) == '' || !is_numeric($this->uri->segment(3))) {
|
||||
$this->load->view('update/404.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$updateData = array();
|
||||
$updateData['update_name'] = $_SESSION['update_name'];
|
||||
$updateData['update_email'] = $_SESSION['update_email'];
|
||||
$updateData['update_years'] = $_SESSION['update_years'];
|
||||
$updateData['update_info'] = $_SESSION['update_info'];
|
||||
$updateData['update_old_hl_number'] = $_SESSION['update_old_hl_number'];
|
||||
$updateData['update_year'] = $updateData['update_years'] != '' ? $updateData['update_years'] : '2';
|
||||
$updateData['error'] = $_SESSION['error'];
|
||||
|
||||
$_SESSION['update_name'] = '';
|
||||
$_SESSION['update_email'] = '';
|
||||
$_SESSION['update_years'] = '';
|
||||
$_SESSION['update_info'] = '';
|
||||
$_SESSION['update_old_hl_number'] = '';
|
||||
$_SESSION['error'] = '';
|
||||
|
||||
$productId = $this->uri->segment(3);
|
||||
|
||||
$updateData['product'] = $this->mupdate->getProduct($productId);
|
||||
|
||||
if (empty($updateData['product'])) {
|
||||
$this->load->view('update/404.php');
|
||||
return;
|
||||
}
|
||||
|
||||
$updateData['normalPrice'] = $updateData['product']->price;
|
||||
|
||||
if ($productId == 1282 || $productId == 1283)
|
||||
$updateData['product']->price *= $updateData['update_year'];
|
||||
|
||||
$afa_key = "27";
|
||||
$afa = $afa_key / 100;
|
||||
$updateData['brut'] = $updateData['product']->price;
|
||||
|
||||
$updateData['header'] = $updateData['product']->id == 1856 ? 'ARCHLine.XP 2025 BETA TESTER - REGISTRATION' : $updateData['product']->header;
|
||||
$updateData['title'] = $updateData['product']->id == 1856 ? 'ARCHLine.XP 2025 Beta Tester - Registration' : 'ARCHLine.XP PROFESSIONAL UPGRADE';
|
||||
$updateData['btn'] = $updateData['product']->id == 1856 ? 'Send Request' : 'Send Order';
|
||||
$updateData['star'] = $updateData['product']->id == 1856 ? '- ARCHLine.XP PROF 2022,2023,2024 serials accepted only' : '*';
|
||||
$updateData['informed'] = $updateData['product']->id == 1856 ? 'I understand that works produced using Beta version cannot be used for commercial purposes while these features remain in the beta stage.' : "I confirm I'm informed on the products";
|
||||
$updateData['purchase'] = $updateData['product']->id == 1856 ? 'Please accept' : 'Purchase confirmations';
|
||||
|
||||
$this->load->view('update/index.php', $updateData);
|
||||
}
|
||||
|
||||
function order_update()
|
||||
{
|
||||
$years = $_POST['years-select'];
|
||||
$email = $_POST['email'];
|
||||
$name = $_POST['name'];
|
||||
$info = $_POST['info'];
|
||||
$productId = $_POST['productId'];
|
||||
$oldSerial = $_POST['old_hl_number'];
|
||||
$hlNum = substr($oldSerial, 0, 6);
|
||||
|
||||
$program = $this->db->query("SELECT * FROM cl_hlusers.h_programs WHERE prPass = '{$oldSerial}'")->row();
|
||||
|
||||
if (empty($program)) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
$product = $this->mupdate->getProduct($productId);
|
||||
|
||||
$currentVer = $product->type == 'L' ? 2 : 1;
|
||||
|
||||
if ($productId == 1856)
|
||||
$version = $this->db->query("SELECT * FROM cl_hlusers.p_versions WHERE verID = 25")->row();
|
||||
else
|
||||
$version = $this->db->query("SELECT * FROM cl_hlusers.p_versions WHERE currentVer = 0 OR currentVer = {$currentVer}")->row();
|
||||
|
||||
$checkUpdate = $this->db->query("SELECT * FROM cl_hlusers.h_programs WHERE prHlNum = '{$hlNum}' AND prVerID = {$version->verID}")->row();
|
||||
|
||||
if (!empty($checkUpdate)) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'You already have the latest version';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($product->cont_id != 0) {
|
||||
$year = $product->termek;
|
||||
$productName = $product->termek;
|
||||
} else {
|
||||
$year = 'ARCHLine.XP order: Upgrade for ' . $years . ' years';
|
||||
$productName = $product->termek . " Fix price for {$years} years";
|
||||
}
|
||||
|
||||
if ($product->o_type == 7 && substr($oldSerial, 7, 2) != $version->verPassword8and9 - 1) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($product->o_type == 8 && substr($oldSerial, 7, 2) == $version->verPassword8and9 - 1) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($product->o_type == 26 && substr($oldSerial, 7, 2) != $version->verPassword8and9 - 2) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($product->o_type == 27 && substr($oldSerial, 7, 2) > $version->verPassword8and9 - 3) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($product->o_type == 6 && substr($oldSerial, 7, 2) < 38) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if (substr($oldSerial, 6, 1) != $product->type) {
|
||||
if ($product->type == '8' && substr($oldSerial, 6, 1) != '7') {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ($productId == 1856 && substr($oldSerial, 7, 2) < $version->verPassword8and9 - 3) {
|
||||
$_SESSION['update_years'] = $years;
|
||||
$_SESSION['update_email'] = $email;
|
||||
$_SESSION['update_name'] = $name;
|
||||
$_SESSION['update_info'] = $info;
|
||||
$_SESSION['error'] = 'Wrong serial number';
|
||||
|
||||
redirect('update/index/' . $productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($productId == 1282 || $productId == 1283)
|
||||
$product->price *= $years;
|
||||
|
||||
$afa_key = "27";
|
||||
$afa = $afa_key / 100;
|
||||
$brut = $product->price;
|
||||
|
||||
$key = $this->db->query("SELECT * FROM cl_hlusers.hardlock WHERE hlNum = '{$hlNum}'")->row();
|
||||
|
||||
$serial = $this->mupdate->createPassword($hlNum, $version->verCode, $product->type, $key->hlLan);
|
||||
$orderNumber = $this->mupdate->getOrderNumber();
|
||||
|
||||
$this->mupdate->createLicence($serial, $version->verID, $product->type, $orderNumber, $key->hlLan, $brut, $productId);
|
||||
$this->mupdate->createOrder($name, $email, $product->termek, $orderNumber, $oldSerial, $serial, $brut, $info);
|
||||
|
||||
$template = $this->mupdate->getEmailTemplate($year, $email, $name, $info, $productName, $serial, $brut, $orderNumber, $version->year, $productId);
|
||||
|
||||
$mail = new PHPMailer();
|
||||
|
||||
$mail->IsSMTP();
|
||||
|
||||
$mail->CharSet = 'UTF-8';
|
||||
$mail->SMTPAuth = true;
|
||||
|
||||
$mail->SMTPOptions = [
|
||||
'ssl' => [
|
||||
'verify_peer' => false,
|
||||
'verify_peer_name' => false,
|
||||
'allow_self_signed' => true
|
||||
]
|
||||
];
|
||||
|
||||
$mail->From = 'info@archlinexp.com';
|
||||
$mail->FromName = 'info@archlinexp.com';
|
||||
$mail->AddAddress($email);
|
||||
|
||||
$mail->addCC('office@cadline.hu');
|
||||
$mail->addBCC('mate.nagy@cadline.hu');
|
||||
|
||||
$mail->isHTML(true);
|
||||
$mail->Subject = $template->subject;
|
||||
$mail->Body = $template->body;
|
||||
|
||||
$mail->send();
|
||||
|
||||
if ($product->id == 1282) {
|
||||
if ($years == 2)
|
||||
$product->barion_url = 'https://secure.shareit.com/shareit/cart.html?DELIVERY[300158265]=EML&PRODUCT[301037670]=1&language=English&js=-1';
|
||||
else
|
||||
$product->barion_url = 'https://secure.shareit.com/shareit/cart.html?DELIVERY[300158265]=EML&PRODUCT[301037673]=1&language=English&js=-1';
|
||||
}
|
||||
|
||||
if ($product->id == 1283) {
|
||||
if ($years == 2)
|
||||
$product->barion_url = 'https://secure.shareit.com/shareit/cart.html?DELIVERY[300158265]=EML&PRODUCT[301037669]=1&language=English&js=-1';
|
||||
else
|
||||
$product->barion_url = 'https://secure.shareit.com/shareit/cart.html?DELIVERY[300158265]=EML&PRODUCT[301037672]=1&language=English&js=-1';
|
||||
}
|
||||
|
||||
if ($product->barion_url == '') {
|
||||
redirect('update/success');
|
||||
die();
|
||||
}
|
||||
|
||||
return header('Location: ' . $product->barion_url);
|
||||
}
|
||||
|
||||
function success()
|
||||
{
|
||||
$this->load->view('update/success.php');
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,225 @@
|
||||
<?php
|
||||
class Videok extends Controller
|
||||
{
|
||||
function Videok(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
redirect("videok/tapasztalt");
|
||||
|
||||
/*$nyelv = hun() ? "hun" : "eng";
|
||||
$videokvegyes = $this->db->query("SELECT * FROM videos WHERE sorszam > 0 AND nyelv='{$nyelv}' ORDER BY sorszam")->result();
|
||||
|
||||
$videok = array();
|
||||
foreach($videokvegyes as $video){
|
||||
$csoport = $video->csoport;
|
||||
if( !is_array($videok[$csoport]) )
|
||||
$videok[$csoport] = array();
|
||||
|
||||
$videok[$csoport][] = $video;
|
||||
}
|
||||
|
||||
$lap = $this->mpages->get_row(715);
|
||||
foreach($videok as $k=>$v){
|
||||
$csere = '#'.$k.'#';
|
||||
$lap->page_body = str_replace($csere,$this->strcsere($k,$videok[$k]),$lap->page_body);
|
||||
}
|
||||
|
||||
$data['videok'] = $videok;
|
||||
$data['lap'] = $lap;
|
||||
$data['style'] = array( 'jquery.jscrollpane' );
|
||||
$data['javascript'] = array(
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.min'
|
||||
);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Oktatóvideók' : 'ARCHLine.XP videos';
|
||||
$data['tartalom'] = 'oktatovideok/index';
|
||||
|
||||
$this->load->view('site',$data);*/
|
||||
}
|
||||
|
||||
function email(){
|
||||
$this->load->model('mclusers');
|
||||
$fv = $this->uri->segment(3);
|
||||
$temptomb = explode("/", $_SERVER[ 'REQUEST_URI'] );
|
||||
$email = str_replace("%40","@",end($temptomb));
|
||||
|
||||
$user = $this->phpsession->get('user');
|
||||
$user['voltmobiloldal'] = true;
|
||||
$this->phpsession->save('user',$user);
|
||||
$link = $this->uri->segment(1)."/".$fv;
|
||||
|
||||
$egyezes = "Videók megtekintve: ".$_SERVER['SERVER_NAME']."/".$link;
|
||||
$info = "Videók megtekintve: ".$_SERVER['SERVER_NAME']."/".$link;
|
||||
$hibainfo = "Videók: ".$link;
|
||||
|
||||
$nyelv = (hun()) ? "hun" : "eng";
|
||||
if(UJUGYFELKEZELO===true){
|
||||
$nTopicID = (hun()) ? 270 : 0;
|
||||
}else{
|
||||
$nTopicID = (hun()) ? 172 : 0;
|
||||
}
|
||||
|
||||
$this->mclusers->levelesemeny($email, "videok", "email", $nTopicID, $egyezes, $info, $nyelv, $hibainfo);
|
||||
redirect($link);
|
||||
}
|
||||
|
||||
/* magyar videó oldalak */
|
||||
|
||||
function kezdo(){
|
||||
$lapid = 716;
|
||||
$this->eloallit($lapid,' kezdő felhasználóknak');
|
||||
return;
|
||||
}
|
||||
|
||||
function halado(){
|
||||
$lapid = 813;
|
||||
$this->eloallit($lapid,' haladó felhasználóknak');
|
||||
return;
|
||||
}
|
||||
|
||||
function profi(){
|
||||
$lapid = 717;
|
||||
$this->eloallit($lapid,' profi felhasználóknak');
|
||||
return;
|
||||
}
|
||||
|
||||
function workshop(){
|
||||
$lapid = 814;
|
||||
$this->eloallit($lapid,' workshop oktatóvideók');
|
||||
return;
|
||||
}
|
||||
|
||||
function bemutato(){
|
||||
$lapid = 815;
|
||||
$this->eloallit($lapid,' bemutató videók');
|
||||
return;
|
||||
}
|
||||
|
||||
/* End magyar videó oldalak */
|
||||
|
||||
function tapasztalt(){
|
||||
$lapid = 715;
|
||||
$this->eloallit($lapid,' tapasztalt felhasználóknak');
|
||||
return;
|
||||
}
|
||||
|
||||
/* angol videó oldalak */
|
||||
|
||||
function beginner(){
|
||||
$lapid = 718;
|
||||
$this->eloallit($lapid,' for new users');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
function familiar(){
|
||||
$lapid = 719;
|
||||
$this->eloallit($lapid," - Familiar");
|
||||
return;
|
||||
}
|
||||
|
||||
function expert(){
|
||||
$lapid = 720;
|
||||
$this->eloallit($lapid," - Expert");
|
||||
return;
|
||||
}
|
||||
|
||||
function workshops(){
|
||||
$lapid = 816;
|
||||
$this->eloallit($lapid,' - Workshops');
|
||||
return;
|
||||
}
|
||||
|
||||
function presentations(){
|
||||
$lapid = 817;
|
||||
$this->eloallit($lapid,' - Interior design projects using ARCHLine.XP');
|
||||
return;
|
||||
}
|
||||
|
||||
/* End angol videó oldalak */
|
||||
|
||||
|
||||
|
||||
function strcsere($csoport,$videok){
|
||||
$csoport2 = $this->db->query("SELECT * FROM videogroups WHERE azon='{$csoport}'")->row();
|
||||
$ret = "";
|
||||
$ret .= "<div style=\"background: url('/public/img/welcome/2012/box_video.png') no-repeat; margin-left: -17px; width: 970px;\">\n";
|
||||
$ret .= " <div id=\"vh{$csoport}\" title=\"The Second Video\" style=\"height: 350px; width: 425px; float: left; padding: 13px 20px 10px 12px; margin-top: 0px;\">\n";
|
||||
|
||||
$ret .= " <object width=\"425\" height=\"349\">\n";
|
||||
$ret .= " <param name=\"movie\" value=\"http://www.youtube.com/v/{$videok[0]->youtubeid}?fs=1&hl=hu_HU\"></param>\n";
|
||||
$ret .= " <param name=\"allowFullScreen\" value=\"true\"></param>\n";
|
||||
$ret .= " <param name=\"allowscriptaccess\" value=\"always\"></param>\n";
|
||||
$ret .= " <param name=\"wmode\" value=\"opaque\"></param>\n";
|
||||
$ret .= " <embed src=\"http://www.youtube.com/v/{$videok[0]->youtubeid}?fs=1&hl=hu_HU\" type=\"application/x-shockwave-flash\" width=\"425\" height=\"349\" allowscriptaccess=\"always\" allowfullscreen=\"true\" wmode=\"opaque\"></embed>\n";
|
||||
$ret .= " </object>\n";
|
||||
$ret .= " </div>\n";
|
||||
$ret .= " <div id=\"videojobb\" style=\"height: 378px; width: 515px; margin-left: 450px;\">\n";
|
||||
$ret .= " <div class=\"welboxtit\" style=\"padding-top: 10px;\"><strong>{$csoport2->cim}</strong></div>\n";
|
||||
$ret .= " <div style=\"margin: 0px 5px 0px 5px;\">{$csoport2->leiras}</div>\n";
|
||||
|
||||
$ret .= " <div class=\"videoklistakeret scroll-pane\" style=\"width: 500px; height: 300px;\">\n";
|
||||
|
||||
foreach($videok as $video){
|
||||
$ret .= " <div style=\"height: 58px; overflow: hidden; cursor: pointer; padding: 5px;\" class=\"video\" rel=\"{$video->youtubeid}\" name=\"{$csoport}\">\n";
|
||||
|
||||
if(!file_exists($video->kep)){
|
||||
$ret .= " <img src=\"http://i1.ytimg.com/vi/".$video->youtubeid."/default.jpg\" style=\"float: left; width: 60px; height: 48px; margin-right: 5px;\" alt=\"{$video->cim}\" />\n";
|
||||
}
|
||||
else
|
||||
$ret .= " <img src=\"/{$video->kep}\" style=\"float: left; width: 60px; height: 48px; margin-right: 5px;\" alt=\"{$video->cim}\" />\n";
|
||||
|
||||
$ret .= " <h3 style=\"margin: 0px 0px 4px 65px; font-weight: bold;\">{$video->cim}</h3>\n";
|
||||
$ret .= $video->leiras;
|
||||
$ret .= " </div>\n";
|
||||
$ret .= " <div class=\"clear\"></div>\n";
|
||||
}
|
||||
|
||||
|
||||
$ret .= " </div>\n";
|
||||
|
||||
$ret .= " </div>\n";
|
||||
$ret .= "</div>";
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function eloallit($lapid,$title=""){
|
||||
$nyelv = hun() ? "hun" : "eng";
|
||||
//$videokvegyes = $this->db->query("SELECT * FROM videos WHERE sorszam > 0 AND nyelv='{$nyelv}' ORDER BY sorszam")->result();
|
||||
$videokvegyes = $this->db->query("SELECT * FROM videos WHERE sorszam > 0 ORDER BY sorszam")->result();
|
||||
|
||||
$videok = array();
|
||||
foreach($videokvegyes as $video){
|
||||
$csoport = $video->csoport;
|
||||
if( !is_array($videok[$csoport]) )
|
||||
$videok[$csoport] = array();
|
||||
|
||||
$videok[$csoport][] = $video;
|
||||
}
|
||||
|
||||
$lap = $this->mpages->get_row($lapid);
|
||||
foreach($videok as $k=>$v){
|
||||
$csere = '#'.$k.'#';
|
||||
$lap->page_body = str_replace($csere,$this->strcsere($k,$videok[$k]),$lap->page_body);
|
||||
}
|
||||
|
||||
$data['videok'] = $videok;
|
||||
$data['lap'] = $lap;
|
||||
$data['style'] = array( 'jquery.jscrollpane' );
|
||||
$data['javascript'] = array(
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.min'
|
||||
);
|
||||
|
||||
$data['title'] = hun() ? 'ARCHLine.XP Oktatóvideók '.$title : 'ARCHLine.XP videos '.$title;
|
||||
$data['tartalom'] = 'oktatovideok/index';
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,227 @@
|
||||
<?php
|
||||
class Weborder extends Controller
|
||||
{
|
||||
private $access_id;
|
||||
private $ctrID;
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
header('location: https://partners.staging.cadline.hu/');
|
||||
|
||||
$this->load->library('session');
|
||||
$this->load->library('Product');
|
||||
$this->load->model('mweborder');
|
||||
$this->lang->load('site');
|
||||
|
||||
if ($this->phpsession->get('access_id')) {
|
||||
$this->access_id = $this->phpsession->get('additional_access_id') != '' ? $this->phpsession->get('additional_access_id') : $this->phpsession->get('access_id');
|
||||
$this->ctrID = $this->mweborder->getCtrID($this->access_id);
|
||||
}
|
||||
}
|
||||
|
||||
function login()
|
||||
{
|
||||
if (isset($_SESSION['error']) || isset($_SESSION['username'])) {
|
||||
unset($_SESSION['error']);
|
||||
unset($_SESSION['username']);
|
||||
}
|
||||
$username = $this->input->post('username');
|
||||
$password = $this->input->post('password');
|
||||
$url = $this->input->post('current_url');
|
||||
|
||||
if ($_POST['login-btn']) {
|
||||
$user = $this->mweborder->login($username, $password);
|
||||
|
||||
if (!$user) {
|
||||
$_SESSION['error'] = 'Wrong username or password!';
|
||||
$_SESSION['username'] = $username;
|
||||
} else {
|
||||
$this->phpsession->save('bugtracker_access', true);
|
||||
$this->phpsession->save('access_id', $user->username);
|
||||
}
|
||||
|
||||
redirect($url);
|
||||
}
|
||||
}
|
||||
|
||||
function index()
|
||||
{
|
||||
$needProduct = false;
|
||||
$data = array();
|
||||
$data['country'] = $this->ctrID;
|
||||
|
||||
if (!$this->mweborder->canOrder($data['country']) && $this->access_id != '') {
|
||||
show_404();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$this->mweborder->weborderAccess()) {
|
||||
$this->mweborder->loadLoginTemplate();
|
||||
return;
|
||||
}
|
||||
|
||||
/*if ($this->ctrID == '43') {
|
||||
$_SESSION['error_login'] = 'Online orders temporarily suspended. For further details, please contact <a href="mailto:office@cadline.hu">office@cadline.hu</a>.';
|
||||
redirect('partners');
|
||||
}*/
|
||||
|
||||
if ($this->ctrID == '86') {
|
||||
$_SESSION['error_login'] = 'Online orders temporarily suspended. For further details, please contact <a href="mailto:office@cadline.hu">office@cadline.hu</a>.';
|
||||
redirect('partners');
|
||||
}
|
||||
|
||||
if (isset($_POST['prod_id'])) {
|
||||
$needProduct = true;
|
||||
$needSubscriptionComment = false;
|
||||
$data['selected_product'] = $_POST['prod_id'];
|
||||
$data['selected_category'] = $_POST['category'];
|
||||
$data['product'] = $this->mweborder->getSelectedProduct($_POST['prod_id'], $data['country']);
|
||||
$data['params'] = json_decode($data['product']->params);
|
||||
$data['latest_versions'] = $this->mweborder->getTheFourLatestVersions();
|
||||
$data['currency'] = $this->mweborder->getCurrency($data['country']);
|
||||
$data['needLive'] = $this->mweborder->needLiveChkbox($data['product']->kategoria, $data['country'], $data['product']->termek, $data['params']);
|
||||
$data['livePrice'] = Product::getLivePrice($data['country']);
|
||||
$data['floatingPrice'] = Product::getFloatingPrice($data['country']);
|
||||
$data['prev_sw_price'] = Product::getPrevSoftwarePrice($data['country']);
|
||||
$data['inst'] = $this->mweborder->getInstalments($data['country'], $data['product']->termek);
|
||||
$data['modules'] = $this->mweborder->getModules($data['country'], $data['product']->termek, $data['product']->kategoria);
|
||||
$data['lanPrice'] = Product::getLanPrice($data['country'], $data['product']->type);
|
||||
|
||||
if ($data['product']->kategoria == 'perp' || $data['product']->kategoria == 'hardlock') {
|
||||
$data['hl_price'] = Product::getHardlockPrice($data['country']);
|
||||
$data['empty_hardlocks'] = $this->mweborder->getHardlockKeys($data['country']);
|
||||
|
||||
if ($data['product']->incl_live == 1) {
|
||||
$data['bundle'] = $this->mweborder->getBundle($data['country']);
|
||||
$profPrice = 0;
|
||||
$livePrice = 0;
|
||||
$bundlePrice = 0;
|
||||
$prodName = '';
|
||||
$liveName = '';
|
||||
|
||||
foreach ($data['bundle'] as $bundle) {
|
||||
$price = substr($data['country'], 0, 2) == '11' ? $bundle->usd : $bundle->euro;
|
||||
|
||||
if ($bundle->kategoria == 'perp') {
|
||||
$profPrice = $price;
|
||||
$prodName = $bundle->termek;
|
||||
} else {
|
||||
$livePrice = $price;
|
||||
$liveName = $bundle->termek;
|
||||
}
|
||||
|
||||
$bundlePrice += $price;
|
||||
}
|
||||
|
||||
$data['product']->price = round($bundlePrice * 0.85);
|
||||
$data['product']->termek = $prodName;
|
||||
$data['bundleLivePrice'] = round($livePrice * 0.85);
|
||||
$data['bundleProfPrice'] = round($profPrice * 0.85);
|
||||
$data['bundleLiveName'] = $liveName;
|
||||
}
|
||||
}
|
||||
|
||||
if (Product::needCertification($data['product']->id, $data['product']->kategoria))
|
||||
$data['cert_info'] = Product::getFileInfo($data['product']->id, $data['product']->kategoria);
|
||||
|
||||
if ($data['product']->kategoria == 'nonp') {
|
||||
$data['client'] = date('d/m/Y', strtotime(date("Y-m-d") . '+30 days'));
|
||||
$data['date'] = date('d/m/Y', strtotime(date("Y-m-d") . '+60 days'));
|
||||
$data['nonp'] = Product::getNonprofitVersion($data['product']->termek, $data['product']->id);
|
||||
}
|
||||
|
||||
if ($data['product']->kategoria == 'subscription') {
|
||||
$data['date'] = Product::getSubscriptionExpirationDate($data['product']->termek);
|
||||
$data['prodInfo'] = Product::getSubscriptionInfo($data['product']->termek);
|
||||
|
||||
if (strpos($data['product']->termek, "monthly") && $data['product']->type != 'L' && $data['product']->type != '2') {
|
||||
if (!strpos($data['product']->termek, "Professional") && !strpos($data['product']->termek, "LIVE")) {
|
||||
$needSubscriptionComment = true;
|
||||
$data['sub_price'] = $data['product']->price / 3;
|
||||
$data['modules']->price *= 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$data['sub_comment'] = $needSubscriptionComment;
|
||||
}
|
||||
|
||||
$this->mweborder->loadTemplate('weborder/index.php', $data, 'Weborder', 'index', $needProduct);
|
||||
}
|
||||
|
||||
function orders()
|
||||
{
|
||||
$data = array();
|
||||
|
||||
if (!$this->mweborder->canOrder($this->ctrID) && $this->access_id != '') {
|
||||
$this->mweborder->loadLoginTemplate();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$this->mweborder->weborderAccess()) {
|
||||
$this->mweborder->loadLoginTemplate();
|
||||
return;
|
||||
}
|
||||
|
||||
$data['orders'] = $this->mweborder->getOrdersForCountry($this->ctrID);
|
||||
|
||||
$this->mweborder->loadTemplate('weborder/orders.php', $data, 'Orders', 'orders');
|
||||
}
|
||||
|
||||
function getProducts()
|
||||
{
|
||||
$products = $this->mweborder->getProducts($_POST['category'], $this->ctrID);
|
||||
|
||||
echo json_encode($products);
|
||||
}
|
||||
|
||||
function order()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$data = json_decode($_POST['data']);
|
||||
$order = $data->order;
|
||||
$file = isset($_FILES['file']) ? (object)$_FILES['file'] : false;
|
||||
|
||||
$order->file = $file;
|
||||
|
||||
$response = $this->mweborder->order($this->ctrID, $order);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function createUser()
|
||||
{
|
||||
$response = array();
|
||||
|
||||
$data = json_decode($_POST['data']);
|
||||
$user = $data->user;
|
||||
|
||||
$response = $this->mweborder->createUser($user);
|
||||
|
||||
echo json_encode($response);
|
||||
}
|
||||
|
||||
function changeDistributor()
|
||||
{
|
||||
$isAdmin = $this->mweborder->isAdmin();
|
||||
|
||||
$url = $this->uri->segment(4);
|
||||
|
||||
$segments = explode("_", $url);
|
||||
|
||||
$returnedUrl = '/' . $segments[0];
|
||||
|
||||
$partner = $this->mweborder->getPartnerById($this->uri->segment(3));
|
||||
|
||||
if (count($segments) > 1)
|
||||
$returnedUrl .= '/' . $segments[1];
|
||||
|
||||
if ($isAdmin && $this->uri->segment(3) != '')
|
||||
$this->phpsession->save('additional_access_id', $partner->username);
|
||||
|
||||
redirect($returnedUrl);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
class Webrender extends Controller
|
||||
{
|
||||
function Webrender(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
$data['title'] = "ARCHLine.XP - Webrender";
|
||||
$data['tartalom'] = 'webrender/index';
|
||||
$data['csik'] = array('home');
|
||||
|
||||
$data['style'] = array('jquery.ui');
|
||||
$data['javascript'] = array('jquery_ui');
|
||||
|
||||
|
||||
$this->load->view('site_new',$data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,228 @@
|
||||
<?php
|
||||
|
||||
class Welcome extends Controller {
|
||||
|
||||
function __construct()
|
||||
{
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
header("Location: /partners/");
|
||||
exit();
|
||||
|
||||
|
||||
$this->index2014();
|
||||
return;
|
||||
|
||||
/*if( strstr($_SERVER['SCRIPT_URI'],'http://') ){
|
||||
header("Location: https://".$_SERVER['HTTP_HOST']);
|
||||
exit;
|
||||
}*/
|
||||
|
||||
$data['javascript'] = array(
|
||||
'welcome',
|
||||
'jsor-jcarousel/lib/jquery.jcarousel.min',
|
||||
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.min'/*,
|
||||
|
||||
'gallery2012'*/,
|
||||
|
||||
'fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack',
|
||||
'choco-slider/jquery.chocoslider'
|
||||
);
|
||||
|
||||
$data['style'] = array(
|
||||
'lapozo_min',
|
||||
/*'jquery.jscrollpane_min',*/
|
||||
'../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2_min',
|
||||
'choco-slider/chocoslider'
|
||||
);
|
||||
|
||||
|
||||
$order = array("\r\n", "\n", "\r");
|
||||
$replace = '<br />';
|
||||
$nyelv = $this->muser->user['lang'];
|
||||
|
||||
$dobozok = $this->cache->get('welcome-dobozok-'.$nyelv);
|
||||
$foinfo = $this->cache->get('foinfo-dobozok-'.$nyelv);
|
||||
|
||||
if( !$dobozok || !$foinfo ){
|
||||
$dobozok = $this->db->query("SELECT * FROM welcome_box WHERE sorszam>0 AND nyelv='{$nyelv}' ORDER BY sorszam")->result();
|
||||
|
||||
foreach($dobozok as $doboz){
|
||||
$doboz->infok = $this->db->query("SELECT * FROM welcome_info WHERE doboz=".$doboz->id." AND sorszam>0 AND nyelv='{$nyelv}' ORDER BY sorszam")->result();
|
||||
|
||||
// új sorok cseréje html-es új sorra ..
|
||||
foreach($doboz->infok as $info){
|
||||
$info->info = str_replace($order, $replace, $info->info);
|
||||
}
|
||||
}
|
||||
|
||||
$foinfo = $this->db->query("SELECT * FROM welcome_info WHERE doboz=0 AND sorszam=100 AND nyelv='{$nyelv}' ORDER BY sorszam")->row();
|
||||
$foinfo->info = str_replace($order, $replace, $foinfo->info);
|
||||
|
||||
$this->cache->write($dobozok, 'welcome-dobozok-'.$nyelv, 6000000);
|
||||
$this->cache->write($foinfo, 'foinfo-dobozok-'.$nyelv, 6000000);
|
||||
}
|
||||
|
||||
$data['dobozok'] = $dobozok;
|
||||
$data['fo_info'] = $foinfo;
|
||||
|
||||
$data['title'] = hun() ? "ARCHLine.XP építészeti, belsőépítészeti és lakberendezési tervezőprogram" : "ARCHLine.XP CAD software, Architect and Interior design";
|
||||
|
||||
$data['utvonal'] = 'public/img/banner405/';
|
||||
/*$kepek = array();
|
||||
$kepek[0] = new stdClass();
|
||||
$kepek[0]->img = 'banner_KBB_2013.jpg';
|
||||
$kepek[0]->link = '/news/show/kbb-2013';
|
||||
$kepek[1] = new stdClass();
|
||||
$kepek[1]->img = 'bathroom_design_banner_2013.jpg';
|
||||
$kepek[1]->link = '/newsletter/show/bathroom-design';
|
||||
$kepek[2] = new stdClass();
|
||||
$kepek[2]->img = 'furniture_design_banner_2013.jpg';
|
||||
$kepek[2]->link = '/newsletter/show/modelling-furniture-design';
|
||||
$kepek[3] = new stdClass();
|
||||
$kepek[3]->img = 'kitchen_design_banner_2013.jpg';
|
||||
$kepek[3]->link = '/newsletter/show/kitchen-design';
|
||||
$kepek[4] = new stdClass();
|
||||
$kepek[4]->img = 'virtual_staging_banner_2013.jpg';
|
||||
$kepek[4]->link = '/newsletter/show/virtual_staging';*/
|
||||
|
||||
$most = time();
|
||||
$kepek = $this->db->query("SELECT title, filename img, link FROM welcome_banner2 WHERE lang='{$nyelv}' AND position>0 AND start_date<{$most} AND stop_date>{$most} ORDER BY position")->result();
|
||||
|
||||
$data['kepek'] = $kepek;
|
||||
|
||||
$data['home']=true;
|
||||
|
||||
//if(!hun() /*$this->uri->segment(3)=="newgallery"*/)
|
||||
$data['tartalom'] = "welcome_2013_jsgallery";
|
||||
/*else
|
||||
$data['tartalom'] = "welcome_2013_youtube";*/
|
||||
|
||||
$this->load->view('site_wel2012',$data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
function gallery(){
|
||||
$data['kepek'] = scandir('public/img/gallery2012/');
|
||||
|
||||
$data['tartalom'] = 'other/gallery';
|
||||
|
||||
$data['javascript'] = array('choco-slider/jquery.chocoslider.min');
|
||||
$data['style'] = array('../js/choco-slider/chocoslider');
|
||||
|
||||
// $data['javascript'] = array('slides/slides.min.jquery');
|
||||
// $data['style'] = array('sliders');
|
||||
|
||||
// $data['javascript'] = array('smart-gallery/smart-gallery.min');
|
||||
// $data['style'] = array('../js/smart-gallery/smart-gallery');
|
||||
|
||||
$this->load->view('site_new',$data);
|
||||
}
|
||||
|
||||
function interiorgallery(){
|
||||
$utvonal = 'public/img/gallery2012/';
|
||||
|
||||
$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['iframeurl'] = '/multimedia/imagegallery/cHVibGljL2ltZy9nYWxsZXJ5MjAxMi8=';
|
||||
|
||||
$data['tartalom'] = 'other/iframe';
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function index2014(){
|
||||
$data['javascript'] = array(
|
||||
'welcome',
|
||||
'jsor-jcarousel/lib/jquery.jcarousel.min',
|
||||
|
||||
'jquery.mousewheel.min',
|
||||
'jscrollpane/jquery.jscrollpane.min',
|
||||
|
||||
'fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack',
|
||||
'choco-slider/jquery.chocoslider'
|
||||
);
|
||||
|
||||
$data['style'] = array(
|
||||
'lapozo_min',
|
||||
'../js/fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4v2_min',
|
||||
'choco-slider/chocoslider'
|
||||
);
|
||||
|
||||
|
||||
$order = array("\r\n", "\n", "\r");
|
||||
$replace = '<br />';
|
||||
$nyelv = $this->muser->user['lang'];
|
||||
|
||||
//$dobozok = $this->cache->get('welcome-dobozok-'.$nyelv);
|
||||
//$foinfo = $this->cache->get('foinfo-dobozok-'.$nyelv);
|
||||
|
||||
if( true || !$dobozok || !$foinfo ){
|
||||
$dobozok = $this->db->query("SELECT * FROM welcome_box WHERE sorszam_2014>0 AND nyelv='{$nyelv}' ORDER BY sorszam_2014")->result();
|
||||
|
||||
foreach($dobozok as $doboz){
|
||||
$doboz->infok = $this->db->query("SELECT * FROM welcome_info WHERE doboz=".$doboz->id." AND sorszam>0 AND nyelv='{$nyelv}' ORDER BY sorszam")->result();
|
||||
|
||||
// új sorok cseréje html-es új sorra ..
|
||||
foreach($doboz->infok as $info){
|
||||
$info->info = str_replace($order, $replace, $info->info);
|
||||
}
|
||||
}
|
||||
|
||||
$foinfo = $this->db->query("SELECT * FROM welcome_info WHERE doboz=0 AND sorszam=200 AND nyelv='{$nyelv}' ORDER BY sorszam")->row();
|
||||
$foinfo->info = str_replace($order, $replace, $foinfo->info);
|
||||
$dobozszam = hun() ? 26 : 25;
|
||||
$foinfolinkek = $this->db->query("SELECT * FROM welcome_info WHERE doboz={$dobozszam} AND (sorszam>0 or sorszam=-1) order by sorszam asc ")->result();
|
||||
$h1cim = $this->db->query("SELECT cim_2014 FROM welcome_box WHERE id = {$dobozszam}")->row();
|
||||
|
||||
//$this->cache->write($dobozok, 'welcome-dobozok-'.$nyelv, 6000);
|
||||
//$this->cache->write($foinfo, 'foinfo-dobozok-'.$nyelv, 6000);
|
||||
}
|
||||
|
||||
|
||||
$data['dobozok'] = $dobozok;
|
||||
$data['fo_info'] = $foinfo;
|
||||
$data['foinfolinkek'] = $foinfolinkek;
|
||||
$data['h1cim'] = $h1cim->cim_2014;
|
||||
|
||||
$data['title'] = hun() ? "ARCHLine.XP építészeti, belsőépítészeti és lakberendezési tervezőprogram" : "ARCHLine.XP, the Interior design software";
|
||||
|
||||
$data['utvonal'] = 'public/img/banner405/';
|
||||
|
||||
$most = time();
|
||||
$kepek = $this->db->query("SELECT title, filename img, link FROM welcome_banner2 WHERE lang='{$nyelv}' AND position>0 AND start_date<{$most} AND stop_date>{$most} ORDER BY position")->result();
|
||||
|
||||
$data['kepek'] = $kepek;
|
||||
$data['home']=true;
|
||||
|
||||
$data['tartalom'] = "welcome_2014";
|
||||
|
||||
$this->load->view('site_wel2012',$data);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* End of file welcome.php */
|
||||
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
class Whitepaper extends Controller
|
||||
{
|
||||
|
||||
function Whitepaper(){
|
||||
parent::Controller();
|
||||
}
|
||||
|
||||
function index(){
|
||||
$nyelv = hun() ? "hun" : "eng";
|
||||
$data['kategoriak'] = $this->db->query("SELECT * FROM wp_categories WHERE lang='{$nyelv}' ORDER BY number ASC")->result();
|
||||
$data['meta']['desc'] = $metadesc;
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Dokumentáció' : 'ARCHLine.XP - White Paper';
|
||||
$data['tartalom'] = 'whitepaper/index';
|
||||
$data['csik'] = array('home','whitepaper');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function routing(){
|
||||
$kategoria = $this->uri->segment(2);
|
||||
$cikk = $this->uri->segment(3);
|
||||
if(!$cikk || $cikk=="")
|
||||
$this->showcategory($kategoria);
|
||||
else
|
||||
$this->showarticle($kategoria,$cikk);
|
||||
return;
|
||||
}
|
||||
|
||||
function showcategory($kategoriaurl){
|
||||
$nyelv = hun() ? "hun" : "eng";
|
||||
$kategoria = $this->db->query("SELECT * FROM wp_categories WHERE url='{$kategoriaurl}' AND lang='{$nyelv}'")->row();
|
||||
$cikkek = $this->db->query("SELECT * FROM wp_articles WHERE dc_id={$kategoria->dc_id} ORDER BY number ASC")->result();
|
||||
|
||||
$data['kategoria'] = $kategoria;
|
||||
$data['cikkek'] = $cikkek;
|
||||
$data['meta']['desc'] = $metadesc;
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Dokumentáció' : 'ARCHLine.XP - White Paper';
|
||||
$data['tartalom'] = 'whitepaper/category';
|
||||
$data['csik'] = array('home','whitepaper');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
function showarticle($kategoriaurl,$cikkurl){
|
||||
$nyelv = hun() ? "hun" : "eng";
|
||||
$kategoria = $this->db->query("SELECT * FROM wp_categories WHERE url='{$kategoriaurl}' AND lang='{$nyelv}'")->row();
|
||||
$cikk = $this->db->query("SELECT * FROM wp_articles WHERE dc_id={$kategoria->dc_id} AND url='{$cikkurl}'")->row();
|
||||
|
||||
$data['cikk'] = $cikk;
|
||||
$data['meta']['desc'] = $metadesc;
|
||||
$data['title'] = hun() ? 'ARCHLine.XP - Dokumentáció' : 'ARCHLine.XP - White Paper';
|
||||
$data['tartalom'] = 'whitepaper/article';
|
||||
$data['csik'] = array('home','whitepaper');
|
||||
|
||||
$this->load->view('site',$data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,110 @@
|
||||
<?
|
||||
header("HTTP/1.1 404 Not Found");
|
||||
@header("Content-Type: text/html; charset=UTF-8");
|
||||
$error404 = true;
|
||||
|
||||
if (isset($_SESSION['page_lang'])) {
|
||||
$CI = &get_instance();
|
||||
$CI->muser->user['lang'] = $_SESSION['page_lang'];
|
||||
}
|
||||
|
||||
if( !function_exists('hun') ){
|
||||
function hun(){
|
||||
if( $_SERVER['HTTP_HOST']=='cadline.hu' || $_SERVER['HTTP_HOST']=='www.cadline.hu' || $_SERVER['HTTP_HOST']=='archline.hu' || $_SERVER['HTTP_HOST']=='www.archline.hu' ){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}}
|
||||
if( !function_exists('eng') ){
|
||||
function eng(){
|
||||
if( !hun() ){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}}
|
||||
if( !function_exists('be') ){
|
||||
function be(){ return false; }
|
||||
function jap(){ return false; }
|
||||
function cr(){ return false; }
|
||||
function gr(){ return false; }
|
||||
function pol(){ return false; }
|
||||
}
|
||||
if( !function_exists('lang') ){
|
||||
function lang($p){
|
||||
if($p == 'search_thissite')
|
||||
return "Search";
|
||||
else
|
||||
return;
|
||||
}}
|
||||
|
||||
if( hun() && $heading=='404 Page Not Found' ){
|
||||
$heading = "404-es hiba";
|
||||
$message = "A keresett oldal nem található!<br />";
|
||||
}
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>404 Page Not Found</title>
|
||||
|
||||
<link href="/public/img/icon.ico" rel="SHORTCUT ICON" />
|
||||
<link href="/public/css/menu/menu.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/public/css/style_new.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/public/css/style_all.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<script type="text/javascript" src="/public/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="/public/js/script.js"></script>
|
||||
<script type="text/javascript" src="/public/js/menu.js"></script>
|
||||
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<div id="header">
|
||||
<div id="header-left">
|
||||
<a href="/">
|
||||
<img src="/public/img/logo_hu_new.png" alt="logo" />
|
||||
</a>
|
||||
<ul style="margin-left: 0pt; padding-left: 3px;">
|
||||
<li style="list-style: none;"><?include('application/views/menu2.php')?></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<div id="header-right-menu">
|
||||
<?include('application/views/topmenu.php')?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="content-main">
|
||||
<div id="content-left" style="width: 952px; padding-left: 10px; padding-top: 10px;">
|
||||
<h1 style="color: #a00;"><?php echo $heading; ?></h1>
|
||||
<?php echo $message;?><br />
|
||||
<a href="/"><?=$_SERVER['HTTP_HOST']?></a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div id="to_back"> </div>
|
||||
<table width="920px">
|
||||
<tr>
|
||||
<td width="56px">
|
||||
<img src="/public/img/welcome/2012/cadline_logo.png" alt="Cadline Kft." />
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<a href="/" style="font-size: 12px"> © 2012 CadLine Kft.</a></td>
|
||||
<td align="right" valign="middle">
|
||||
<ul class="footer-ul" style="margin-top: -5px;">
|
||||
<?if(hun()):?>
|
||||
<li style="background: none;"><a href="/page/show/99" style="font-size: 12px">Felhasználás Feltételei</a></li>
|
||||
<li><a href="/page/show/67" style="font-size: 12px">Adatvédelmi Nyilatkozat</a></li>
|
||||
<?else:?>
|
||||
<li style="background: none;"><a href="/page/show/101" style="font-size: 12px">Terms of Use</a></li>
|
||||
<li><a href="/page/show/100" style="font-size: 12px">Privacy Statement</a></li>
|
||||
<?endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,34 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font-family: Lucida Grande, Verdana, Sans-serif;
|
||||
font-size: 12px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#content {
|
||||
border: #999 1px solid;
|
||||
background-color: #fff;
|
||||
padding: 20px 20px 12px 20px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-weight: normal;
|
||||
font-size: 14px;
|
||||
color: #990000;
|
||||
margin: 0 0 4px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user