-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cchalamon
committed
Apr 10, 2023
1 parent
6672e4a
commit acac9ff
Showing
6 changed files
with
80 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Project : everpsquotation | ||
* @author Team Ever | ||
* @copyright Team Ever | ||
* @license Tous droits réservés / Le droit d'auteur s'applique (All rights reserved / French copyright law applies) | ||
* @see https://www.team-ever.com | ||
*/ | ||
|
||
class Configuration extends ConfigurationCore | ||
{ | ||
/** | ||
* Get a single configuration value (in multiple languages). | ||
* | ||
* @param string $key Configuration Key | ||
* @param int $idShopGroup Shop Group ID | ||
* @param int $idShop Shop ID | ||
* | ||
* @return array Values in multiple languages | ||
*/ | ||
public static function getConfigInMultipleLangs($key, $idShopGroup = null, $idShop = null) | ||
{ | ||
$resultsArray = []; | ||
foreach (Language::getIDs() as $idLang) { | ||
$resultsArray[$idLang] = Configuration::get($key, $idLang, $idShopGroup, $idShop); | ||
} | ||
|
||
return $resultsArray; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Project : everpsadvancepayment | ||
* @author Team Ever | ||
* @copyright Team Ever | ||
* @license Tous droits réservés / Le droit d'auteur s'applique (All rights reserved / French copyright law applies) | ||
* @see https://www.team-ever.com | ||
*/ | ||
|
||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Project : everpsadvancepayment | ||
* @author Team Ever | ||
* @copyright Team Ever | ||
* @license Tous droits réservés / Le droit d'auteur s'applique (All rights reserved / French copyright law applies) | ||
* @see https://www.team-ever.com | ||
*/ | ||
|
||
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; |