-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainroute.php
209 lines (184 loc) · 14.8 KB
/
mainroute.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?php
if (\mkw\store::isMindentkapni()) {
$router->map('GET', '/ProductDetails', 'termekController#redirectOldUrl', 'termekredirectoldurl');
$router->map('GET', '/', 'termekfaController#redirectOldUrl', 'termekfaredirectoldurl');
$router->map('GET', '/Static', 'statlapController#redirectOldUrl', 'statlapredirectoldurl');
$router->map('GET', '/mindentkapni.rss', 'termekController#redirectOldRSSUrl', 'termekredirectoldrssurl');
$router->map('GET', '/hirek.rss', 'hirController#redirectOldRSSUrl', 'hirredirectoldrssurl');
$router->map('GET', '/MiddleTier/ReadImage', 'termekController#redirectRegikepUrl', 'termekredirectregikepurl');
}
if (\mkw\store::isSuperzoneB2B()) {
$router->map('GET', '/termekm/[:slug]', 'mainController#termekm', 'showtermekm');
}
if (\mkw\store::isB2B()) {
$router->map('POST', '/fiok/ment/[adataim|szamlaadatok|szallitasiadatok|jelszo|discounts:subject]', 'b2bpartnerController#saveAccount', 'saveaccount');
$router->map('GET', '/regisztracio', 'b2bpartnerController#showRegistrationForm', 'showregistration');
$router->map('POST', '/regisztracio/ment', 'b2bpartnerController#saveRegistration', 'saveregistration');
$router->map('POST', '/changepartner', 'b2bpartnerController#changePartner', 'changepartner');
} else {
$router->map('POST', '/fiok/ment/[adataim|szamlaadatok|szallitasiadatok|jelszo:subject]', 'partnerController#saveAccount', 'saveaccount');
$router->map('GET', '/regisztracio', 'partnerController#showLoginForm', 'showregistration');
$router->map('POST', '/regisztracio/ms', 'partnerController#saveRegistration', 'saveregistration');
}
if (\mkw\store::isDarshan()) {
$router->map('GET', '/orarend/wp', 'orarendController#exportToWordpress', 'orarendexporttowordpress');
$router->map('GET', '/orarend/print', 'orarendController#print', 'orarendprint');
$router->map('GET', '/berletellenor', 'jogaberletController#getBerletAlkalmak', 'berletellenor');
$router->map('POST', '/orarend/bejelentkezes', 'jogabejelentkezesController#bejelentkezes', 'orarendbejelentkezes');
$router->map('POST', '/orarend/lemondas', 'jogabejelentkezesController#lemondas', 'orarendlemondas');
$router->map('GET', '/adategy', 'adategyeztetoController#view', 'adategyeztetoview');
$router->map('POST', '/adategy/check', 'adategyeztetoController#check', 'adategyeztetocheck');
$router->map('POST', '/adategy/save', 'adategyeztetoController#save', 'adategyeztetosave');
$router->map('GET', '/partner/getdata', 'partnerController#getPartnerData', 'partnergetdata');
}
if (\mkw\store::isMugenrace()) {
$router->map('GET', '/pr', 'partnerController#showPubRegistration', 'pubregistration');
$router->map('GET', '/prthx', 'partnerController#showPubRegistrationThx', 'pubregistrationthx');
$router->map('POST', '/prsave', 'partnerController#savePubRegistration', 'savepubregistration');
}
if (\mkw\store::isMugenrace2021()) {
$router->map('GET', '/mnrstatic/[:lap]', 'mnrstaticController#show', 'mnrshowstatic');
$router->map('POST', '/setlocale', 'mainController#setLocale', 'setmainlocale');
$router->map('GET', '/partner/getdata', 'partnerController#getPartnerData', 'partnergetdata');
}
if (\mkw\store::isMPTNGY()) {
$router->map('GET', '/szerepkorlist', 'mptngyszerepkorController#getApiList', 'mptngygetszerepkorlist');
$router->map('GET', '/szakmaianyagtipuslist', 'mptngyszakmaianyagtipusController#getApiList', 'mptngygetszakmaianyagtipuslist');
$router->map('GET', '/temakorlist', 'mptngytemakorController#getApiList', 'mptngygettemakorlist');
$router->map('GET', '/szakmaianyagok', 'mptngyszakmaianyagController#showSzakmaianyagok', 'mptngyszakmaianyagok');
$router->map('GET', '/partner/getdata', 'partnerController#getPartnerData', 'mptngypartnergetdata');
$router->map('GET', '/anyaglist', 'mptngyszakmaianyagController#getAnyagList', 'mptngygetanyaglist');
$router->map('GET', '/sajatanyaglist', 'mptngyszakmaianyagController#getSajatAnyagList', 'mptngygetsajatanyaglist');
$router->map('GET', '/checkpartnerunknown', 'mptngypartnerController#checkPartnerUnknown', 'mptngycheckpartnerunknown');
$router->map('GET', '/datumlist', 'mptngyszakmaianyagController#getDatumList', 'mptngygetdatumlist');
$router->map('POST', '/regisztracio/ment', 'mptngypartnerController#saveRegistration', 'mptngysaveregistration');
$router->map('POST', '/szakmaianyag/ment', 'mptngyszakmaianyagController#pubSave', 'mptngypubsave');
$router->map('GET', '/adataim', 'mptngypartnerController#adataim', 'mptngyadataim');
$router->map('POST', '/adataim/ment', 'mptngypartnerController#saveAdataim', 'mptngysaveadataim');
$router->map('GET', '/egyetemlist', 'mptngyegyetemController#getList', 'mptngygetegyetemlist');
$router->map('GET', '/karlist', 'mptngykarController#getList', 'mptngygetkarlist');
}
$router->map('GET', '', 'mainController#view', 'home');
$router->map('GET', '/404', 'mainController#show404', 'show404');
switch (true) {
case \mkw\store::isMPTNGY():
$router->map('POST', '/login/ment', 'mptngypartnerController#doLogin', 'dologin');
break;
case \mkw\store::isMPT():
$router->map('POST', '/login/ment', 'mptpartnerController#doLogin', 'dologin');
break;
default:
$router->map('POST', '/login/ment', 'partnerController#doLogin', 'dologin');
break;
}
$router->map('GET', '/login', 'partnerController#showLoginForm', 'showlogin');
$router->map('GET', '/logout', 'partnerController#doLogout', 'dologout');
$router->map('GET', '/fiok', 'partnerController#showAccount', 'showaccount');
$router->map('POST', '/checkemail', 'partnerController#checkemail', 'partnercheckemail');
$router->map('POST', '/getpassreminder', 'partnerController#createPassReminder', 'createpassreminder');
$router->map('GET', '/passreminder/[:id]', 'partnerController#showPassReminder', 'showpassreminder');
$router->map('POST', '/passreminder/ment', 'partnerController#savePassReminder', 'savepassreminder');
$router->map('GET', '/statlap/[:lap]', 'statlapController#show', 'showstatlap');
$router->map('GET', '/statlap/p/[:lap]', 'statlapController#showPopup', 'showstatlappopup');
$router->map('GET', '/hir/[:hir]', 'hirController#show', 'showhir');
$router->map('GET', '/hirek', 'hirController#showHirList', 'showhirlist');
$router->map('GET', '/blogposzt/[:blogposzt]', 'blogposztController#show', 'showblogposzt');
$router->map('GET', '/blog', 'blogposztController#showBlogposztList', 'showblogposztlist');
$router->map('GET', '/feed/hir', 'hirController#feed', 'hirfeed');
$router->map('GET', '/feed/termek', 'termekController#feed', 'termekfeed');
$router->map('GET', '/feed/blog', 'blogposztController#feed', 'blogposztfeed');
$router->map('GET', '/kapcsolat', 'mainController#kapcsolat', 'showkapcsolat');
$router->map('POST', '/kapcsolat/[ment:todo]', 'mainController#kapcsolat', 'savekapcsolat');
$router->map('GET', '/szuro', 'mainController#szuro', 'showszuro');
$router->map('GET', '/termekfa/[:slug]', 'mainController#termekfa', 'showtermekfa');
$router->map('GET', '/termek/[:slug]', 'mainController#termek', 'showtermek');
$router->map('GET', '/marka/[:slug]', 'mainController#marka', 'showmarka');
$router->map('GET', '/valtozatar', 'mainController#valtozatar', 'valtozatar');
$router->map('GET', '/valtozat', 'mainController#valtozat', 'valtozat');
$router->map('GET', '/kereses', 'mainController#kereses', 'kereses');
$router->map('GET', '/markak', 'termekcimkeController#showMarkak', 'markak');
$router->map('GET', '/getmeretszinhez', 'termekController#getMeretSzinhez', 'getmeretszinhez');
$router->map('GET', '/valtozatadatok', 'termekvaltozatController#getValtozatAdatok', 'getvaltozatadatok');
$router->map('GET', '/termekertekeles', 'termekertekelesController#showErtekelesForm', 'showertekelesform');
$router->map('POST', '/termekertekeles/save', 'termekertekelesController#pubSave', 'pubsaveertekeles');
$router->map('GET', '/termekertekeles/koszonjuk', 'termekertekelesController#thanks', 'termekertekeleskoszonjuk');
$router->map('GET', '/rendezveny/reg', 'rendezvenyController#regView', 'showrendezvenyreg');
$router->map('POST', '/rendezveny/reg/save', 'rendezvenyController#regSave', 'saverendezvenyreg');
$router->map('GET', '/rendezveny/lemond', 'rendezvenyController#regLemond', 'lemondrendezvenyreg');
$router->map('POST', '/kosar/add', 'kosarController#add', 'kosaradd');
$router->map('POST', '/kosar/multiadd', 'kosarController#multiAdd', 'kosarmultiadd');
$router->map('POST|GET', '/kosar/edit', 'kosarController#edit', 'kosaredit');
$router->map('POST|GET', '/kosar/del', 'kosarController#del', 'kosardel');
$router->map('GET', '/kosar/get', 'kosarController#get', 'kosarget');
$router->map('GET', '/kosar/getdata', 'kosarController#getData', 'kosargetdata');
$router->map('GET', '/kosar/gethash', 'kosarController#getHash', 'kosargethash');
$router->map('GET', '/checkout', 'checkoutController#getCheckout', 'showcheckout');
$router->map('GET', '/checkout/pay', 'checkoutController#showCheckoutFizetes', 'showcheckoutfizetes');
$router->map('POST', '/checkout/pay/ment', 'checkoutController#doCheckoutFizetes', 'docheckoutfizetes');
$router->map('POST', '/checkout/newfizmod/ment', 'checkoutController#saveCheckoutFizmod', 'savecheckoutfizmod');
$router->map('GET', '/checkout/getfizmodlist', 'checkoutController#getFizmodList', 'checkoutgetfizmod');
$router->map('GET', '/checkout/getszallmodfizmodlist', 'checkoutController#getSzallmodFizmodList', 'checkoutgetszallmodfizmod');
$router->map('GET', '/checkout/gettetellist', 'checkoutController#getTetelList', 'checkoutgettetellist');
$router->map('GET', '/checkout/gettetellistdata', 'checkoutController#getTetelListData', 'checkoutgettetellistdata');
switch (true) {
case (\mkw\store::isMugenrace2021()):
$router->map('POST', '/checkout/ment', 'mugenrace2021CheckoutController#save', 'checkoutment');
break;
case \mkw\store::isMindentkapni():
$router->map('POST', '/checkout/ment', 'mindentkapniCheckoutController#save', 'checkoutment');
break;
case \mkw\store::isSuperzoneB2B():
$router->map('POST', '/checkout/ment', 'superzoneb2bCheckoutController#save', 'checkoutment');
break;
case \mkw\store::isMugenrace():
$router->map('POST', '/checkout/ment', 'mugenraceCheckoutController#save', 'checkoutment');
break;
}
$router->map('GET', '/checkout/koszonjuk', 'checkoutController#thanks', 'checkoutkoszonjuk');
$router->map('GET', '/checkout/barionerror', 'checkoutController#barionError', 'checkoutbarionerror');
$router->map('GET', '/checkout/getfoxpostcsoportlist', 'csomagterminalController#getCsoportok', 'checkoutgetfoxpostcsoportlist');
$router->map('GET', '/checkout/getfoxpostterminallist', 'csomagterminalController#getTerminalok', 'checkoutgetfoxpostterminallist');
$router->map('GET', '/checkout/getglscsoportlist', 'csomagterminalController#getCsoportok', 'checkoutgetglscsoportlist');
$router->map('GET', '/checkout/getglsterminallist', 'csomagterminalController#getTerminalok', 'checkoutgetglsterminallist');
$router->map('GET', '/checkout/getcsomagterminalid', 'csomagterminalController#getTerminalId', 'checkoutgetcsomagterminalid');
$router->map('POST', '/checkout/saveterminalselection', 'checkoutController#saveTerminalSelection', 'checkoutsaveterminalselection');
$router->map('GET', '/irszam', 'irszamController#typeaheadList', 'irszamtypeahead');
$router->map('GET', '/varos', 'irszamController#varosTypeaheadList', 'varostypeahead');
$router->map('POST', '/termekertesito/save', 'termekertesitoController#save', 'termekertesitosave');
$router->map('POST', '/setorszag', 'mainController#setOrszag', 'setorszag');
$router->map('GET', '/szamlaprint', 'szamlafejController#doPrint', 'szamlaprint');
$router->map('GET', '/szamlapdf', 'szamlafejController#doPDF', 'szamlapdf');
$router->map('GET', '/export/grando', 'exportController#GrandoExport', 'grandoexport');
$router->map('GET', '/export/vatera', 'exportController#VateraExport', 'vateraexport');
$router->map('HEAD', '/export/vatera', 'exportController#VateraHeadExport', 'vateraheadexport');
$router->map('GET', '/export/shophunter', 'exportController#ShopHunterExport', 'shophunterexport');
$router->map('GET', '/export/arfurkesz', 'exportController#ArfurkeszExport', 'arfurkeszexport');
$router->map('GET', '/export/armutato', 'exportController#ArmutatoExport', 'armutatoexport');
$router->map('GET', '/export/olcso', 'exportController#OlcsoExport', 'olcsoexport');
$router->map('GET', '/export/argep', 'exportController#ArgepExport', 'argepexport');
$router->map('GET', '/export/yusp', 'exportController#YuspExport', 'yuspexport');
$router->map('GET', '/export/arukereso', 'exportController#ArukeresoExport', 'arukeresoexport');
$router->map('GET', '/export/olcsobbat', 'exportController#OlcsobbatExport', 'olcsobbatexport');
//$router->map('GET', '/export/fcmoto', 'exportController#FCMotoExport', 'fcmotoexport');
$router->map('GET', '/export/mugenrace', 'exportController#MugenraceExport', 'mugenraceexport');
$router->map('GET', '/export/superzonehu', 'exportController#SuperzonehuExport', 'superzonehuexport');
$router->map('GET', '/export/kaposimoto', 'exportController#KaposimotoExport', 'kaposimotoexport');
$router->map('GET', '/export/depo', 'exportController#DepoExport', 'depoexport');
$router->map('GET', '/sitemap.xml', 'sitemapController#toBot', 'sitemap');
$router->map('GET', '/t/emag/printvat', 'emagController#printVat', 'printvat');
$router->map('GET', '/t/emag/printcat', 'emagController#printCategories', 'printcat');
$router->map('GET', '/t/emag/printhandlingtime', 'emagController#printHandlingTime', 'printhandlingtime');
$router->map('GET', '/t/emag/printcharacteristics', 'emagController#printCharacteristics', 'printcharacteristics');
$router->map('GET', '/t/emag/printtermek', 'emagController#printTermek', 'printtermek');
$router->map('GET', '/t/emag/uploadtermek', 'emagController#uploadTermek', 'uploadtermek');
$router->map('GET', '/t/reintexdownload', 'toolController#reintexDownload', 'reintexdownload');
$router->map('GET', '/t/makszutovdownload', 'toolController#makszutovDownload', 'makszutovdownload');
$router->map('GET', '/t/copydepotermekdownload', 'toolController#copydepotermekDownload', 'copydepotermekdownload');
$router->map('GET', '/t/copydepokeszletdownload', 'toolController#copydepokeszletDownload', 'copydepokeszletdownload');
$router->map('POST', '/barion', 'barionController#callback', 'barioncallback');
$router->map('POST', '/a2a', 'a2aController#processCmd', 'a2aprocesscmd');
$router->map('POST', '/wcwh/ordercr', 'wcwebhookController#orderCreated', 'wcwhordercr');
$router->map('POST', '/wcwh/orderup', 'wcwebhookController#orderUpdated', 'wcwhorderup');
$router->map('POST', '/wcwh/partnercr', 'wcwebhookController#partnerCreated', 'wcwhpartnercr');
$router->map('POST', '/wcwh/partnerup', 'wcwebhookController#partnerUpdated', 'wcwhpartnerup');
$router->map('POST', '/wcwh/documentcr', 'wcwebhookController#documentCreated', 'wcwhdocumentcreated');