Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|woff|woff2|ttf|eot|otf|css|js)$">
Allow from all
</Files>
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|woff|woff2|ttf|eot|otf|css|js)$">
Require all granted
</Files>
</IfModule>
4 changes: 4 additions & 0 deletions backward_compatibility/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA
*/

if (!defined('_PS_VERSION_')) {
exit;
}

if ((bool)Configuration::get('PS_MOBILE_DEVICE')) {
require_once(_PS_MODULE_DIR_ . '/mobile_theme/Mobile_Detect.php');
}
Expand Down
4 changes: 4 additions & 0 deletions backward_compatibility/Display.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
* International Registered Trademark & Property of PrestaShop SA
*/

if (!defined('_PS_VERSION_')) {
exit;
}

/**
* Class allow to display tpl on the FO
*/
Expand Down
4 changes: 4 additions & 0 deletions backward_compatibility/backward.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
* Need to be called for each module in 1.4
*/

if (!defined('_PS_VERSION_')) {
exit;
}

// Get out if the context is already defined
if (!in_array('Context', get_declared_classes())) {
require_once(dirname(__FILE__).'/Context.php');
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"require": {
"php": ">=5.6.0",
"smartsupp/chat-code-generator": "^1.0",
"smartsupp/php-partner-client": "^1.0"
"smartsupp/php-partner-client": "^1.0",
"prestashop/prestashop-accounts-installer": "^1.0.1",
"prestashop/module-lib-service-container": "v2.0",
"prestashop/module-lib-mbo-installer": "^3.0.0"
},
"autoload": {
"psr-4": {
Expand Down
222 changes: 214 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions config/admin/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
/**
* Smartsupp Live Chat integration module.
*
* @package Smartsupp
* @author Smartsupp <vladimir@smartsupp.com>
* @link http://www.smartsupp.com
* @copyright 2016 Smartsupp.com
* @license GPL-2.0+
*
* Plugin Name: Smartsupp Live Chat
* Plugin URI: http://www.smartsupp.com
* Description: Adds Smartsupp Live Chat code to PrestaShop.
* Version: 2.2.0
* Author: Smartsupp
* Author URI: http://www.smartsupp.com
* Text Domain: smartsupp
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/

header('Expires: Mon, 26 Jul 1998 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;
2 changes: 2 additions & 0 deletions config/admin/services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports:
- { resource: ../common.yml }
12 changes: 12 additions & 0 deletions config/common.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
PrestaShop\PsAccountsInstaller\Installer\Installer:
class: 'PrestaShop\PsAccountsInstaller\Installer\Installer'
public: true
arguments:
- "7.0.0"

PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts:
class: 'PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts'
public: true
arguments:
- '@PrestaShop\PsAccountsInstaller\Installer\Installer'
Loading