From c5aa2513717a59bac99618ee195d104944c54e5e Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 27 Apr 2022 19:08:23 +0530 Subject: [PATCH] Remove trackingfront --- config/xml/themes/default.xml | 1 - .../admin/AdminReferrersController.php | 11 - controllers/admin/AdminThemesController.php | 1 - modules/trackingfront/CHANGELOG.txt | 14 -- modules/trackingfront/index.php | 36 --- modules/trackingfront/js/index.php | 36 --- modules/trackingfront/js/trackingfront.js | 86 ------- modules/trackingfront/logo.gif | Bin 1073 -> 0 bytes modules/trackingfront/logo.png | Bin 2319 -> 0 bytes modules/trackingfront/stats.php | 35 --- modules/trackingfront/trackingfront.php | 237 ------------------ modules/trackingfront/translations/index.php | 35 --- modules/trackingfront/views/index.php | 36 --- .../views/templates/front/account.tpl | 88 ------- .../views/templates/front/footer.tpl | 26 -- .../views/templates/front/header.tpl | 46 ---- .../views/templates/front/index.php | 36 --- .../views/templates/front/login.tpl | 55 ---- .../trackingfront/views/templates/index.php | 36 --- 19 files changed, 815 deletions(-) delete mode 100644 modules/trackingfront/CHANGELOG.txt delete mode 100644 modules/trackingfront/index.php delete mode 100644 modules/trackingfront/js/index.php delete mode 100644 modules/trackingfront/js/trackingfront.js delete mode 100644 modules/trackingfront/logo.gif delete mode 100644 modules/trackingfront/logo.png delete mode 100644 modules/trackingfront/stats.php delete mode 100644 modules/trackingfront/trackingfront.php delete mode 100644 modules/trackingfront/translations/index.php delete mode 100644 modules/trackingfront/views/index.php delete mode 100644 modules/trackingfront/views/templates/front/account.tpl delete mode 100644 modules/trackingfront/views/templates/front/footer.tpl delete mode 100644 modules/trackingfront/views/templates/front/header.tpl delete mode 100644 modules/trackingfront/views/templates/front/index.php delete mode 100644 modules/trackingfront/views/templates/front/login.tpl delete mode 100644 modules/trackingfront/views/templates/index.php diff --git a/config/xml/themes/default.xml b/config/xml/themes/default.xml index 7b8d93179..18673d21b 100644 --- a/config/xml/themes/default.xml +++ b/config/xml/themes/default.xml @@ -62,7 +62,6 @@ - diff --git a/controllers/admin/AdminReferrersController.php b/controllers/admin/AdminReferrersController.php index 8efbd2640..ee8da2c2b 100644 --- a/controllers/admin/AdminReferrersController.php +++ b/controllers/admin/AdminReferrersController.php @@ -230,17 +230,6 @@ class AdminReferrersControllerCore extends AdminController 'submit' => array('title' => $this->l('Save')), )); - if (Module::isInstalled('trackingfront')) { - $this->fields_form[0]['form']['desc'] = array( - $this->l('Affiliates can access their data with this name and password.'), - $this->l('Front access:').' '.$uri.'modules/trackingfront/stats.php' - ); - } else { - $this->fields_form[0]['form']['desc'] = array( - sprintf($this->l('Please install the "%s" module in order to give your affiliates access their own statistics.'), Module::getModuleName('trackingfront')) - ); - } - $this->fields_form[1] = array('form' => array( 'legend' => array( 'title' => $this->l('Commission plan'), diff --git a/controllers/admin/AdminThemesController.php b/controllers/admin/AdminThemesController.php index 8ed3ccd0b..1e8635424 100644 --- a/controllers/admin/AdminThemesController.php +++ b/controllers/admin/AdminThemesController.php @@ -2135,7 +2135,6 @@ class AdminThemesControllerCore extends AdminController 'statssales', 'statsvisits', 'themeconfigurator', - 'trackingfront', 'vatnumber', 'watermark' ); diff --git a/modules/trackingfront/CHANGELOG.txt b/modules/trackingfront/CHANGELOG.txt deleted file mode 100644 index 085e2473b..000000000 --- a/modules/trackingfront/CHANGELOG.txt +++ /dev/null @@ -1,14 +0,0 @@ ------------------------------- -# V1.8.3 to V1.8.4 ------------------------------- - -## Improved/Changed Features: - -* [CO] : Updated with latest PS version - 1.6.1.23. - - -2014-03-27 17:33:35 +0100 / MO : min ps_versions_compliancy modified -2014-03-25 11:55:41 +0100 Merge branch 'master' of https://github.com/PrestaShop/trackingfront -2014-03-24 16:08:37 +0100 // Typos. -2014-03-24 15:23:11 +0100 / MO trackingfront : ps_versions_compliancy added -2014-03-20 14:40:21 +0100 Initial commit diff --git a/modules/trackingfront/index.php b/modules/trackingfront/index.php deleted file mode 100644 index 531cab52a..000000000 --- a/modules/trackingfront/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../'); -exit; \ No newline at end of file diff --git a/modules/trackingfront/js/index.php b/modules/trackingfront/js/index.php deleted file mode 100644 index c98ece472..000000000 --- a/modules/trackingfront/js/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../'); -exit; \ No newline at end of file diff --git a/modules/trackingfront/js/trackingfront.js b/modules/trackingfront/js/trackingfront.js deleted file mode 100644 index 0113cdcf3..000000000 --- a/modules/trackingfront/js/trackingfront.js +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 2007-2016 PrestaShop - * - * NOTICE OF LICENSE - * - * This source file is subject to the Open Software License (OSL 3.0) - * that is bundled with this package in the file LICENSE.txt. - * It is also available through the world-wide-web at this URL: - * http://opensource.org/licenses/osl-3.0.php - * If you did not receive a copy of the license and are unable to - * obtain it through the world-wide-web, please send an email - * to license@prestashop.com so we can send you a copy immediately. - * - * DISCLAIMER - * - * Do not edit or add to this file if you wish to upgrade PrestaShop to newer - * versions in the future. If you wish to customize PrestaShop for your - * needs please refer to http://www.prestashop.com for more information. - * - * @author PrestaShop SA - * @copyright 2007-2016 PrestaShop SA - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) - * International Registered Trademark & Property of PrestaShop SA - */ - -$(function () { - - updateValues(); - - $("#datepickerFrom").datepicker({ - prevText: "", - nextText: "", - dateFormat: "yy-mm-dd"}); - - $("#datepickerTo").datepicker({ - prevText: "", - nextText: "", - dateFormat: "yy-mm-dd"}); - -}); - -function updateValues() { - $.getJSON("stats.php", {ajaxProductFilter: 1, id_referrer: referrer_id, token: token, id_product: 0}, - function (j) { - $.each(display_tab, function (index, value) { - if (value == 'reg_rate' || value == 'order_rate') - $("#" + value).html(parseFloat(j[0][value] * 100).toFixed(2) + ' %'); - else - $("#" + value).html(j[0][value]); - }); - } - ) -} - -function showProductLines() { - var irow = 0; - for (var i = 0; i < product_ids.length; ++i) - $.getJSON("stats.php", {ajaxProductFilter: 1, token: token, id_referrer: referrer_id, id_product: product_ids[i]}, - function (result) { - if (result) { - var newLine = newProductLine(referrer_id, result[0], (irow++ % 2 ? 204 : 238)); - $(newLine).hide().insertBefore($('#trid_dummy')).fadeIn(); - } - } - ); -} - -function newProductLine(id_referrer, result, color) { - return '' + - '' + - ' ' + result.id_product + '' + - ' ' + result.product_name + '' + - ' ' + result.uniqs + '' + - ' ' + result.visits + '' + - ' ' + result.pages + '' + - ' ' + result.registrations + '' + - ' ' + result.orders + '' + - ' ' + result.sales + '' + - ' ' + result.cart + '' + - ' ' + result.reg_rate + '' + - ' ' + result.order_rate + '' + - ' ' + result.click_fee + '' + - ' ' + result.base_fee + '' + - ' ' + result.percent_fee + '' + - ''; -} diff --git a/modules/trackingfront/logo.gif b/modules/trackingfront/logo.gif deleted file mode 100644 index 117f9626ed287da0fc9f4600ee371f67ef5e6613..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1073 zcmZ?wbhEHb6krfw_|5V(o6zc%*yfVf=U+5EqHxCfs(BYn7u>2^bnSXY z!t40R4^csnvi%;_g?>m4`=6cquQ2IzO<~u(xW?6qZL3S#cP6y&O6cB|)VnLCXHRPX zp7j3RSv~vnrmnA>zqNEjbJ&_i@w=B4Y~Nqre=vXY;o|8h%cq~HnsKaj=BbidC+p{) ztJ`)saQpe9W9?zrJ3{Zz4?D27D-Fx<_OH3twf1h$x_f;a z?oHotW#We0^S9q@Uj1mw<_FVvy`HoE!HgZx=I?s6c-O6Ed+sgV`(*z4hJ`2FmYwQZ zd97>Zt*2nU7EV_+N3R4rf$4CW80NEdu}h;{c!TuqX(B9db9H2 z)0M~Ht~>r}(}}0ME`B_6Z}zFHGw$DQynny<%B|^VudKQMeC~y3yPn-_|8=?L<@1JD zFB@OIY<=~z`_-$iSFa|#em&*&>*=50PW}F={mYl0k00m%`Z4q8&$&N;&VT!Q$*-S_ ze*Rqc>(~0(}32x&HRrwKvzVzq@kf)y*4kuiboi<;J_Kx87fS{pIzW zudm;HdH3%7n|I&ezWw(8{f~D)et-Y*2Z(z+V-s(S66-I3eyQ+BWAK-DW_+r+w>`4UIwL| zmf%~ikkccQ$}&;gb3@9{O$(dZ0tLas(Bw+ z@KDH&TXV@)8^=>2tu3OOH7q|Fw>(?b95sW>bykuK%M|IxODhDMvku+#pKRs2>Pw>F zAhnXixN*Y8=NZc;A!lk<8z{A8xEM3-J2_Y5?iPsj$C|8VDnsJ8dsSvHu j8{tbATv+7C&Bgl9kZ*#)!aYAZIoMbv5+1}mFjxZs-h1av diff --git a/modules/trackingfront/logo.png b/modules/trackingfront/logo.png deleted file mode 100644 index 02f433c6a24d8eeba15eab6b344eec12cb316910..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2319 zcmV+q3GnubP)yfQBo?}!rn#2-?0cMy1W?;q{V1U^dwqX`#g^};ECP0A!OWwkbV;{e^7?B zzkdmxUJt9$0KHDn*A=2lw9~q+UB|)JY)_{*z@WFlZgye+)dl!Xj)3ty1%v`X$#4Wp zh(O5i#e^gOL_86wP-@X@Gr?&yqqy<`es%aWMDP0?r7{gV%tn|@Mu;k_&`!?U7zqMf zSJ0lpXo1b*L}u|+q@4IZ%0zczx47W*1xG#tpVx~HiwSiSF>GcNOhzLI+f&v`aOjQ# zkMFvT^iQPdwOddl7Lzk0e`5x{!HB9V(zW!URB|4%`vsUyc1R@(7>!nV`g|xZDjJ3W zJzzOtu~;CH)WB@9(py?!GFxcR3YoM9&Q3e3)$RBx9m&E1G1T%}blB}MTWv5A%(f0l zWpX&XLx}%Cz!lL^ba!~jo{ZaJ_J=1x5%79_BrJtgT8o+*87Cr^NNARzh6qRrirN~; zYGruguXpj6^W|t#H=_yyB0jfqFWOWMCm7$t!^ihP1Mj{Xh z^rN@i2bH`PE=LGGogUcj-LTm^At6Gxj!xJ+yWw!VVbZ8EF8gE5%RGa+=SM*__6H~* z`y`|jUc~DM1YA6vh|V@MI=unZG$>)~>W0_vABjK-`h&ovTmchz3-|+_--WVlxE%p> zbvYodt%Kd+KnI0UefmRGkB>(6<`ww)sTwS~szN^o-~({&MjjIKA4T)FZ73f<2350O zMdf?B{20B#5Q>IP!lGgX0|RjP2BA?JplX#O`S>Vg{bM@%T!36j*-vj#zhyNlXH9~o zQ4UpeGqlz&ynOT?;x9-`?JeU@(Azfq{_;1cE`x6$&UC8qh%JrdDZDDk?(k`vPulO-A*M z$!JijprC|PG&Z7vfn?Px6--(q_7qRSiZhe(yJKREJNOxdt=AxIzdx^#tt;sut`bCM*7))4oVJwm;F>AGVSu|nLQdxFex$`ZBzvkrBs%CD($s$N_ zyTbNpkJ&FAi9kOk3Hw;6)M_f3ATO&ge-@3dx>{&;7O-)%?j+(53;5+O0kQi8{<%GJ zYYC_d5%Bj@-&b=RkxK}-_uv7anf;=Xj(`odMgt9%R}(dt`g5mHKK-|7vDwi=-A+qA zUDrlELe~ka!GU@eeX{l4(6yS;+}sLHQxn(aa~MtZySb%>&uo+oR|OFQEDzX4f?kN1 zo%QBbzR#M@&|x-y6_o)xj$j~22%v==v2y$RFc=Jj>yIyA{vQPTDWgfDM^T50i7~KJ zgE?~IB(|q#J{0>793mMjCmbT(cAXCP4m%DX%fq&`9b6_YBa4uU^c~sA+PMdNa`t&P zrEYzJ{66wu1p3KRyTu08x@D-zAp^T}sgY3obvnbP=^h08T`iVi*X|tZ7j~|%kSoaP z4&KBf@-Fwk<=HHw&wB3O{aC$b?Mo37g9O;nQ)^W&ibp!JmekhsK7TClIM%$g9&6Wa z#Kujj*tB^I&YrtKZPv_hLHiFL;<`Jsvbh7+eouUKipw$iwd*!8hsZyDhK|#Os%kMs zD8o*^zxy8q*j39&cY-cr`{s((Fi|w}K0JYwr%u6YwNg2`@!p~Lk-9Yv6h^Ek;~NNU zUbk^Gt+#Nn-|Ttnwlps9rtb4Jg+JtM&) z!D{u&l`BX}UPu=TIo{3Li|uI{D7bV9*RNlrP_D!4Nhz4WAPMv4C-M2=>trsshUA$Z z`QXQzle-Uf@&>%|=39dVo+M06NlDq1n3%YMus$v>?w!}>CR)y4yoB3#KBp*TV;Q~q zd@`JzvIxuHUWvC>titIt=lJ>0oHg4M8ymZF#>`ok1N58izrAubmXZ#WXQY^ZM%GSl z@4}@*ELyxY6d~{!;m3p+!gFD~IA%=Df+SLA$#mo9ryQl9-oY(0kpH){IClIaWRbyH zaq)|aPMyZ}A~xb?&*_PI_PL18hhQ3E5_1}s{iZs? pNF*K)hbd|pJQc3xN4}}fzW~1#B1 -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -include(dirname(__FILE__).'/../../config/config.inc.php'); -include(dirname(__FILE__).'/../../init.php'); -include(dirname(__FILE__).'/trackingfront.php'); - -$tf = new TrackingFront(); -if (!$tf->active) - Tools::redirect('index.php?controller=404'); -$tf->postProcess(); -echo $tf->isLogged() ? $tf->displayAccount() : $tf->displayLogin(); \ No newline at end of file diff --git a/modules/trackingfront/trackingfront.php b/modules/trackingfront/trackingfront.php deleted file mode 100644 index e6a17bfed..000000000 --- a/modules/trackingfront/trackingfront.php +++ /dev/null @@ -1,237 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -if (!defined('_PS_VERSION_')) - exit; - -class TrackingFront extends Module -{ - public function __construct() - { - $this->name = 'trackingfront'; - $this->tab = 'shipping_logistics'; - $this->version = '1.8.4'; - $this->author = 'PrestaShop'; - $this->need_instance = 0; - - parent::__construct(); - - $this->displayName = $this->l('Tracking - Front office'); - $this->ps_versions_compliancy = array('min' => '1.6', 'max' => '1.6.99.99'); - $this->description = $this->l('Enables your affiliates to access their own statistics. See Stats/Referrers.'); - } - - public function postProcess() - { - if (Tools::isSubmit('ajaxProductFilter')) - { - $fake_employee = new Employee(); - $fake_employee->id = 424242; - $fake_employee->stats_date_from = $this->context->cookie->stats_date_from; - $fake_employee->stats_date_to = $this->context->cookie->stats_date_to; - - if (empty($fake_employee->stats_date_from) || empty($fake_employee->stats_date_to) || $fake_employee->stats_date_from == '0000-00-00' || $fake_employee->stats_date_to == '0000-00-00') - { - if (empty($fake_employee->stats_date_from) || $fake_employee->stats_date_from == '0000-00-00') - $fake_employee->stats_date_from = date('Y').'-01-01'; - if (empty($fake_employee->stats_date_to) || $fake_employee->stats_date_to == '0000-00-00') - $fake_employee->stats_date_to = date('Y').'-12-31'; - } - - $result = Db::getInstance()->getRow(' - SELECT `id_referrer` - FROM `'._DB_PREFIX_.'referrer` - WHERE `id_referrer` = '.(int)Tools::getValue('id_referrer').' AND `passwd` = \''.pSQL(Tools::getValue('token')).'\''); - - if (isset($result['id_referrer']) && (int)$result['id_referrer'] > 0) - Referrer::getAjaxProduct((int)$result['id_referrer'], (int)Tools::getValue('id_product'), $fake_employee); - } - elseif (Tools::isSubmit('logout_tracking')) - { - unset($this->context->cookie->tracking_id); - unset($this->context->cookie->tracking_passwd); - Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php'); - } - elseif (Tools::isSubmit('submitLoginTracking')) - { - $errors = array(); - $login = trim(Tools::getValue('login')); - $passwd = trim(Tools::getValue('passwd')); - if (empty($login)) - $errors[] = $this->l('login is required'); - elseif (!Validate::isGenericName($login)) - $errors[] = $this->l('invalid login'); - elseif (empty($passwd)) - $errors[] = $this->l('password is required'); - elseif (!Validate::isPasswd($passwd, 1)) - $errors[] = $this->l('invalid password'); - else - { - $passwd = Tools::encrypt($passwd); - $result = Db::getInstance()->getRow(' - SELECT `id_referrer` - FROM `'._DB_PREFIX_.'referrer` - WHERE `name` = \''.pSQL($login).'\' AND `passwd` = \''.pSQL($passwd).'\''); - if (!isset($result['id_referrer']) || !($tracking_id = (int)$result['id_referrer'])) - $errors[] = $this->l('authentication failed'); - else - { - $this->context->cookie->tracking_id = $tracking_id; - $this->context->cookie->tracking_passwd = $passwd; - Tools::redirect(Tools::getShopDomain(true, false).__PS_BASE_URI__.'modules/trackingfront/stats.php'); - } - } - $this->smarty->assign('errors', $errors); - } - - $from = date('Y-m-d'); - $to = date('Y-m-d'); - - if (Tools::isSubmit('submitDatePicker')) - { - $from = Tools::getValue('datepickerFrom'); - $to = Tools::getValue('datepickerTo'); - } - if (Tools::isSubmit('submitDateDay')) - { - $from = date('Y-m-d'); - $to = date('Y-m-d'); - } - if (Tools::isSubmit('submitDateDayPrev')) - { - $yesterday = time() - 60 * 60 * 24; - $from = date('Y-m-d', $yesterday); - $to = date('Y-m-d', $yesterday); - } - if (Tools::isSubmit('submitDateMonth')) - { - $from = date('Y-m-01'); - $to = date('Y-m-t'); - } - if (Tools::isSubmit('submitDateMonthPrev')) - { - $m = (date('m') == 1 ? 12 : date('m') - 1); - $y = ($m == 12 ? date('Y') - 1 : date('Y')); - $from = $y.'-'.$m.'-01'; - $to = $y.'-'.$m.date('-t', mktime(12, 0, 0, $m, 15, $y)); - } - if (Tools::isSubmit('submitDateYear')) - { - $from = date('Y-01-01'); - $to = date('Y-12-31'); - } - if (Tools::isSubmit('submitDateYearPrev')) - { - $from = (date('Y') - 1).date('-01-01'); - $to = (date('Y') - 1).date('-12-31'); - } - $this->context->cookie->stats_date_from = $from; - $this->context->cookie->stats_date_to = $to; - } - - public function isLogged() - { - if (!$this->context->cookie->tracking_id || !$this->context->cookie->tracking_passwd) - return false; - $result = Db::getInstance()->getRow(' - SELECT `id_referrer` - FROM `'._DB_PREFIX_.'referrer` - WHERE `id_referrer` = '.(int)$this->context->cookie->tracking_id.' AND `passwd` = \''.pSQL($this->context->cookie->tracking_passwd).'\''); - - return isset($result['id_referrer']) ? $result['id_referrer'] : false; - } - - public function displayLogin() - { - return $this->display(__FILE__, 'login.tpl'); - } - - public function displayAccount() - { - if (!isset($this->context->cookie->stats_date_from)) - $this->context->cookie->stats_date_from = date('Y-m-01'); - if (!isset($this->context->cookie->stats_date_to)) - $this->context->cookie->stats_date_to = date('Y-m-t'); - Referrer::refreshCache(array(array('id_referrer' => (int)$this->context->cookie->tracking_id))); - - $referrer = new Referrer((int)$this->context->cookie->tracking_id); - $this->smarty->assign('referrer', $referrer); - $this->smarty->assign('datepickerFrom', $this->context->cookie->stats_date_from); - $this->smarty->assign('datepickerTo', $this->context->cookie->stats_date_to); - - $display_tab = array( - 'uniqs' => $this->l('Unique visitors'), - 'visitors' => $this->l('Visitors'), - 'visits' => $this->l('Visits'), - 'pages' => $this->l('Pages viewed'), - 'registrations' => $this->l('Registrations'), - 'orders' => $this->l('Orders'), - 'base_fee' => $this->l('Base fee'), - 'percent_fee' => $this->l('Percent fee'), - 'click_fee' => $this->l('Click fee'), - 'sales' => $this->l('Sales'), - 'cart' => $this->l('Average cart'), - 'reg_rate' => $this->l('Registration rate'), - 'order_rate' => $this->l('Order rate') - ); - $this->smarty->assign('displayTab', $display_tab); - - $products = Product::getSimpleProducts($this->context->language->id); - $products_array = array(); - foreach ($products as $product) - $products_array[] = $product['id_product']; - - $js_files = array(); - - $jquery_files = Media::getJqueryPath(); - if (is_array($jquery_files)) - $js_files = array_merge($js_files, $jquery_files); - else - $js_files[] = $jquery_files; - - $jquery_ui_files = Media::getJqueryUIPath('ui.datepicker', 'base', true); - - $js_files = array_merge($js_files, $jquery_ui_files['js']); - $css_files = $jquery_ui_files['css']; - - $js_files[] = $this->_path.'js/trackingfront.js'; - - $js_tpl_var = array( - 'product_ids' => implode(', ', $products_array), - 'referrer_id' => $referrer->id, - 'token' => $this->context->cookie->tracking_passwd, - 'display_tab' => implode('", "', array_keys($display_tab)) - ); - - $this->smarty->assign(array( - 'js' => $js_files, - 'css' => $css_files, - 'js_tpl_var' => $js_tpl_var - )); - - return $this->display(__FILE__, 'views/templates/front/account.tpl'); - } -} diff --git a/modules/trackingfront/translations/index.php b/modules/trackingfront/translations/index.php deleted file mode 100644 index e5064df41..000000000 --- a/modules/trackingfront/translations/index.php +++ /dev/null @@ -1,35 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); -header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); - -header("Cache-Control: no-store, no-cache, must-revalidate"); -header("Cache-Control: post-check=0, pre-check=0", false); -header("Pragma: no-cache"); - -header("Location: ../"); -exit; \ No newline at end of file diff --git a/modules/trackingfront/views/index.php b/modules/trackingfront/views/index.php deleted file mode 100644 index 531cab52a..000000000 --- a/modules/trackingfront/views/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../'); -exit; \ No newline at end of file diff --git a/modules/trackingfront/views/templates/front/account.tpl b/modules/trackingfront/views/templates/front/account.tpl deleted file mode 100644 index 81f042be2..000000000 --- a/modules/trackingfront/views/templates/front/account.tpl +++ /dev/null @@ -1,88 +0,0 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - -{include 'views/templates/front/header.tpl'} - -
-
{l s='Affiliation space' mod='trackingfront'}
- -
-
-
-
- - - - -

{l s='From:' mod='trackingfront'}

- -

{l s='To:' mod='trackingfront'}

- -
- -
-
-
- {$referrer->name} - {foreach from=$displayTab key=data item=label} -
{$label} -
- {/foreach} -
-
-
- - - - - - - - - - - - - - - - - - - - -
{l s='ID' mod='trackingfront'}{l s='Name' mod='trackingfront'}{l s='Visitors' mod='trackingfront'}{l s='Visits' mod='trackingfront'}{l s='Pages' mod='trackingfront'}{l s='Reg.' mod='trackingfront'}{l s='Ord.' mod='trackingfront'}{l s='Sales' mod='trackingfront'}{l s='Cart' mod='trackingfront'}{l s='Reg. rate' mod='trackingfront'}{l s='Ord. rate' mod='trackingfront'}{l s='Click' mod='trackingfront'}{l s='ยค' mod='trackingfront'}{l s='%' mod='trackingfront'}
-
- -{include 'views/templates/front/footer.tpl'} diff --git a/modules/trackingfront/views/templates/front/footer.tpl b/modules/trackingfront/views/templates/front/footer.tpl deleted file mode 100644 index eac8dd6fa..000000000 --- a/modules/trackingfront/views/templates/front/footer.tpl +++ /dev/null @@ -1,26 +0,0 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - \ No newline at end of file diff --git a/modules/trackingfront/views/templates/front/header.tpl b/modules/trackingfront/views/templates/front/header.tpl deleted file mode 100644 index 047ebc6ab..000000000 --- a/modules/trackingfront/views/templates/front/header.tpl +++ /dev/null @@ -1,46 +0,0 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - - - - - PrestaShop™ - {l s='Affiliation' mod='trackingfront'} - - {foreach $js as $js_item} - - {/foreach} - {foreach $css as $key => $css_item} - - {/foreach} - - - diff --git a/modules/trackingfront/views/templates/front/index.php b/modules/trackingfront/views/templates/front/index.php deleted file mode 100644 index 531cab52a..000000000 --- a/modules/trackingfront/views/templates/front/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../'); -exit; \ No newline at end of file diff --git a/modules/trackingfront/views/templates/front/login.tpl b/modules/trackingfront/views/templates/front/login.tpl deleted file mode 100644 index b0409e4a4..000000000 --- a/modules/trackingfront/views/templates/front/login.tpl +++ /dev/null @@ -1,55 +0,0 @@ -{* -* 2007-2016 PrestaShop -* -* NOTICE OF LICENSE -* -* This source file is subject to the Academic Free License (AFL 3.0) -* that is bundled with this package in the file LICENSE.txt. -* It is also available through the world-wide-web at this URL: -* http://opensource.org/licenses/afl-3.0.php -* If you did not receive a copy of the license and are unable to -* obtain it through the world-wide-web, please send an email -* to license@prestashop.com so we can send you a copy immediately. -* -* DISCLAIMER -* -* Do not edit or add to this file if you wish to upgrade PrestaShop to newer -* versions in the future. If you wish to customize PrestaShop for your -* needs please refer to http://www.prestashop.com for more information. -* -* @author PrestaShop SA -* @copyright 2007-2016 PrestaShop SA -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*} - - - - - - PrestaShop™ - {l s='Affiliation' mod='trackingfront'} - - - {include file="$tpl_dir./errors.tpl"} -
-
-
{l s='Affiliation space' mod='trackingfront'}
-
-
-
- -
-
- -
-
-
-
-
-
- - - \ No newline at end of file diff --git a/modules/trackingfront/views/templates/index.php b/modules/trackingfront/views/templates/index.php deleted file mode 100644 index 531cab52a..000000000 --- a/modules/trackingfront/views/templates/index.php +++ /dev/null @@ -1,36 +0,0 @@ - -* @copyright 2007-2016 PrestaShop SA -* @version Release: $Revision$ -* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) -* International Registered Trademark & Property of PrestaShop SA -*/ - -header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); -header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); - -header('Cache-Control: no-store, no-cache, must-revalidate'); -header('Cache-Control: post-check=0, pre-check=0', false); -header('Pragma: no-cache'); - -header('Location: ../'); -exit; \ No newline at end of file