diff --git a/404.php b/404.php
index 856c99e72..d90d7df7a 100644
--- a/404.php
+++ b/404.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index e6ace3913..322ab0155 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -1,53 +1,58 @@
-CONTRIBUTORS
-============
+ - (d)oekia
+ - Caleydon Media
+ - Damien Metzger
+ - DamienMetzger
+ - Damon Skelhorn
+ - David Gasperoni
+ - François Gaillard
+ - Gabriel Schwardy
+ - Ha!*!*y
+ - Jonathan Danse
+ - Krystian Podemski
+ - Milow
+ - PrestaEdit
+ - Rémi Gaillard
+ - Sarah Lorenzini
+ - Vincent Augagneur
+ - Xavier POITAU
+ - aFolletete
+ - aKorczak
+ - aNiassy
+ - adonis karavokyros
+ - bLeveque
+ - bMancone
+ - bumbu
+ - cmouleyre
+ - dMetzger
+ - dSevere
+ - fBrignoli
+ - fSerny
+ - gBrunier
+ - gCharmes
+ - gPoulain
+ - hAitmansour
+ - ivancasasempere
+ - jBreux
+ - jObregon
+ - jessylenne
+ - jmCollin
+ - lBrieu
+ - lCherifi
+ - lLefevre
+ - mBertholino
+ - mDeflotte
+ - mMarinetti
+ - montes
+ - nPellicari
+ - oleacorner
+ - rGaillard
+ - rMalie
+ - rMontagne
+ - sLorenzini
+ - sThiebaut
+ - tDidierjean
+ - vAugagneur
+ - vChabot
+ - vKham
+ - vSchoener
-- Caleydon Media
-- DamienMetzger
-- Damon Skelhorn
-- doekia
-- François Gaillard
-- Gabriel Schwardy
-- Jonathan Danse
-- Krystian Podemski
-- PrestaEdit
-- Rémi Gaillard
-- Sarah Lorenzini
-- Vincent Augagneur
-- Xavier POITAU
-- aFolletete
-- aKorczak
-- aNiassy
-- adonis karavokyros
-- bLeveque
-- bMancone
-- bumbu
-- cmouleyre
-- dMetzger
-- dSevere
-- fBrignoli
-- fSerny
-- gBrunier
-- gCharmes
-- gPoulain
-- hAitmansour
-- jBreux
-- jObregon
-- jessylenne
-- jmCollin
-- lBrieu
-- lCherifi
-- lLefevre
-- mBertholino
-- mDeflotte
-- mMarinetti
-- nPellicari
-- oleacorner
-- rGaillard
-- rMalie
-- rMontagne
-- sLorenzini
-- sThiebaut
-- tDidierjean
-- vChabot
-- vKham
-- vSchoener
\ No newline at end of file
diff --git a/address.php b/address.php
index 8d2a7ee75..fcfac54af 100644
--- a/address.php
+++ b/address.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/addresses.php b/addresses.php
index 71a0007c2..75e3a1dfe 100644
--- a/addresses.php
+++ b/addresses.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajax-tab.php b/admin-dev/ajax-tab.php
index d3b865930..684278d34 100755
--- a/admin-dev/ajax-tab.php
+++ b/admin-dev/ajax-tab.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajax.php b/admin-dev/ajax.php
index 01c35c7db..5ec0197ac 100644
--- a/admin-dev/ajax.php
+++ b/admin-dev/ajax.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
@@ -171,110 +171,6 @@ if (Tools::isSubmit('updateElementEmployee') && Tools::getValue('updateElementEm
die($notification->updateEmployeeLastElement(Tools::getValue('updateElementEmployeeType')));
}
-if (Tools::isSubmit('syncImapMail'))
-{
- if (!($url = Configuration::get('PS_SAV_IMAP_URL'))
- || !($port = Configuration::get('PS_SAV_IMAP_PORT'))
- || !($user = Configuration::get('PS_SAV_IMAP_USER'))
- || !($password = Configuration::get('PS_SAV_IMAP_PWD')))
- die('{"hasError" : true, "errors" : ["Configuration is not correct"]}');
-
- $conf = Configuration::getMultiple(array(
- 'PS_SAV_IMAP_OPT_NORSH', 'PS_SAV_IMAP_OPT_SSL',
- 'PS_SAV_IMAP_OPT_VALIDATE-CERT', 'PS_SAV_IMAP_OPT_NOVALIDATE-CERT',
- 'PS_SAV_IMAP_OPT_TLS', 'PS_SAV_IMAP_OPT_NOTLS'));
-
- $conf_str = '';
- if ($conf['PS_SAV_IMAP_OPT_NORSH'])
- $conf_str .= '/norsh';
- if ($conf['PS_SAV_IMAP_OPT_SSL'])
- $conf_str .= '/ssl';
- if ($conf['PS_SAV_IMAP_OPT_VALIDATE-CERT'])
- $conf_str .= '/validate-cert';
- if ($conf['PS_SAV_IMAP_OPT_NOVALIDATE-CERT'])
- $conf_str .= '/novalidate-cert';
- if ($conf['PS_SAV_IMAP_OPT_TLS'])
- $conf_str .= '/tls';
- if ($conf['PS_SAV_IMAP_OPT_NOTLS'])
- $conf_str .= '/notls';
-
- if (!function_exists('imap_open'))
- die('{"hasError" : true, "errors" : ["imap is not installed on this server"]}');
-
- $mbox = @imap_open('{'.$url.':'.$port.$conf_str.'}', $user, $password);
-
- //checks if there is no error when connecting imap server
- $errors = imap_errors();
- $str_errors = '';
- $str_error_delete = '';
- if (sizeof($errors) && is_array($errors))
- {
- var_dump($errors);
- $str_errors = '';
- foreach($errors as $error)
- $str_errors .= '"'.$error.'",';
- $str_errors = rtrim($str_errors, ',').'';
- }
- //checks if imap connexion is active
- if (!$mbox)
- die('{"hasError" : true, "errors" : ["Cannot connect to the mailbox"]}');
-
- //Returns information about the current mailbox. Returns FALSE on failure.
- $check = imap_check($mbox);
- if (!$check)
- die('{"hasError" : true, "errors" : ["Fail to get information about the current mailbox"]}');
-
- if ($check->Nmsgs == 0)
- die('{"hasError" : true, "errors" : ["NO message to sync"]}');
-
- $result = imap_fetch_overview($mbox,"1:{$check->Nmsgs}",0);
- foreach ($result as $overview)
- {
- //check if message exist in database
- if (isset($overview->subject))
- $subject = $overview->subject;
- else
- $subject = '';
-
- //Creating an md5 to check if message has been allready processed
- $md5 = md5($overview->date.$overview->from.$subject.$overview->msgno);
- $exist = Db::getInstance()->getValue(
- 'SELECT `md5_header`
- FROM `'._DB_PREFIX_.'customer_message_sync_imap`
- WHERE `md5_header` = \''.pSQL($md5).'\'');
- if ($exist)
- {
- if (Configuration::get('PS_SAV_IMAP_DELETE_MSG'))
- if (!imap_delete($mbox, $overview->msgno))
- $str_error_delete = ', "Fail to delete message"';
- }
- else
- {
- //check if subject has id_order
- preg_match('/\#ct([0-9]*)/', $subject, $matches1);
- preg_match('/\#tc([0-9-a-z-A-Z]*)/', $subject, $matches2);
-
- if (isset($matches1[1]) && isset($matches2[1]))
- {
- //check if order exist in database
- $ct = new CustomerThread((int)$matches1[1]);
-
- if (Validate::isLoadedObject($ct) && $ct->token == $matches2[1])
- {
- $cm = new CustomerMessage();
- $cm->id_customer_thread = $ct->id;
- $cm->message = imap_fetchbody($mbox, $overview->msgno, 1);
- $cm->add();
- }
- }
- Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'customer_message_sync_imap` (`md5_header`) VALUES (\''.pSQL($md5).'\')');
- }
- }
- imap_expunge($mbox);
- imap_close($mbox);
- die('{"hasError" : false, "errors" : ["'.$str_errors.$str_error_delete.'"]}');
-}
-
if (Tools::isSubmit('searchCategory'))
{
$q = Tools::getValue('q');
diff --git a/admin-dev/ajax_products_list.php b/admin-dev/ajax_products_list.php
index f3c747e18..64ee54211 100644
--- a/admin-dev/ajax_products_list.php
+++ b/admin-dev/ajax_products_list.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
@@ -51,13 +51,16 @@ else
// Excluding downloadable products from packs because download from pack is not supported
$excludeVirtuals = (bool)Tools::getValue('excludeVirtuals', false);
+$exclude_packs = (bool)Tools::getValue('exclude_packs', false);
$sql = 'SELECT p.`id_product`, `reference`, pl.name
FROM `'._DB_PREFIX_.'product` p
LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.id_product = p.id_product AND pl.id_lang = '.(int)Context::getContext()->language->id.Shop::addSqlRestrictionOnLang('pl').')
WHERE (pl.name LIKE \'%'.pSQL($query).'%\' OR p.reference LIKE \'%'.pSQL($query).'%\')'.
(!empty($excludeIds) ? ' AND p.id_product NOT IN ('.$excludeIds.') ' : ' ').
- ($excludeVirtuals ? 'AND p.id_product NOT IN (SELECT pd.id_product FROM `'._DB_PREFIX_.'product_download` pd WHERE (pd.id_product = p.id_product))' : '');
+ ($excludeVirtuals ? 'AND p.id_product NOT IN (SELECT pd.id_product FROM `'._DB_PREFIX_.'product_download` pd WHERE (pd.id_product = p.id_product))' : '').
+ ($exclude_packs ? 'AND (p.cache_is_pack IS NULL OR p.cache_is_pack = 0)' : '');
+
$items = Db::getInstance()->executeS($sql);
if ($items)
diff --git a/admin-dev/ajaxfilemanager/inc/index.php b/admin-dev/ajaxfilemanager/inc/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/inc/index.php
+++ b/admin-dev/ajaxfilemanager/inc/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/index.php b/admin-dev/ajaxfilemanager/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/index.php
+++ b/admin-dev/ajaxfilemanager/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/jscripts/edit_area/images/index.php b/admin-dev/ajaxfilemanager/jscripts/edit_area/images/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/jscripts/edit_area/images/index.php
+++ b/admin-dev/ajaxfilemanager/jscripts/edit_area/images/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/jscripts/edit_area/index.php b/admin-dev/ajaxfilemanager/jscripts/edit_area/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/jscripts/edit_area/index.php
+++ b/admin-dev/ajaxfilemanager/jscripts/edit_area/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/jscripts/edit_area/langs/index.php b/admin-dev/ajaxfilemanager/jscripts/edit_area/langs/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/jscripts/edit_area/langs/index.php
+++ b/admin-dev/ajaxfilemanager/jscripts/edit_area/langs/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/jscripts/edit_area/reg_syntax/index.php b/admin-dev/ajaxfilemanager/jscripts/edit_area/reg_syntax/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/jscripts/edit_area/reg_syntax/index.php
+++ b/admin-dev/ajaxfilemanager/jscripts/edit_area/reg_syntax/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/jscripts/index.php b/admin-dev/ajaxfilemanager/jscripts/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/jscripts/index.php
+++ b/admin-dev/ajaxfilemanager/jscripts/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/langs/index.php b/admin-dev/ajaxfilemanager/langs/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/langs/index.php
+++ b/admin-dev/ajaxfilemanager/langs/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/session/index.php b/admin-dev/ajaxfilemanager/session/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/session/index.php
+++ b/admin-dev/ajaxfilemanager/session/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/css/index.php b/admin-dev/ajaxfilemanager/theme/default/css/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/theme/default/css/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/css/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/images/action/index.php b/admin-dev/ajaxfilemanager/theme/default/images/action/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/theme/default/images/action/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/images/action/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/images/big_icon/index.php b/admin-dev/ajaxfilemanager/theme/default/images/big_icon/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/theme/default/images/big_icon/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/images/big_icon/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/images/file_type/index.php b/admin-dev/ajaxfilemanager/theme/default/images/file_type/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/theme/default/images/file_type/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/images/file_type/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/images/index.php b/admin-dev/ajaxfilemanager/theme/default/images/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/theme/default/images/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/images/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/images/pagination/index.php b/admin-dev/ajaxfilemanager/theme/default/images/pagination/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/theme/default/images/pagination/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/images/pagination/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/images/standard/index.php b/admin-dev/ajaxfilemanager/theme/default/images/standard/index.php
index ec45b2dfe..f42f03e4d 100644
--- a/admin-dev/ajaxfilemanager/theme/default/images/standard/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/images/standard/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/default/index.php b/admin-dev/ajaxfilemanager/theme/default/index.php
index 7a626751d..319128b59 100644
--- a/admin-dev/ajaxfilemanager/theme/default/index.php
+++ b/admin-dev/ajaxfilemanager/theme/default/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/ajaxfilemanager/theme/index.php b/admin-dev/ajaxfilemanager/theme/index.php
index 7a626751d..319128b59 100644
--- a/admin-dev/ajaxfilemanager/theme/index.php
+++ b/admin-dev/ajaxfilemanager/theme/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/autoupgrade/index.php b/admin-dev/autoupgrade/index.php
index 4c1db9e4c..5ca842ada 100644
--- a/admin-dev/autoupgrade/index.php
+++ b/admin-dev/autoupgrade/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/backup.php b/admin-dev/backup.php
index bf13d08ad..e4b451f43 100644
--- a/admin-dev/backup.php
+++ b/admin-dev/backup.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
define('_PS_ADMIN_DIR_', getcwd());
-
include(_PS_ADMIN_DIR_.'/../config/config.inc.php');
if (!Context::getContext()->employee->isLoggedBack())
@@ -39,7 +38,7 @@ if ($tabAccess['view'] !== '1')
$backupdir = realpath(_PS_ADMIN_DIR_ . '/backups/');
if ($backupdir === false)
- die (Tools::displayError('Backups directory does not exist.'));
+ die (Tools::displayError('"Backup" directory does not exist.'));
if (!$backupfile = Tools::getValue('filename'))
die (Tools::displayError('No file specified'));
diff --git a/admin-dev/backups/index.php b/admin-dev/backups/index.php
index 88e934d59..195fab225 100644
--- a/admin-dev/backups/index.php
+++ b/admin-dev/backups/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/cron_currency_rates.php b/admin-dev/cron_currency_rates.php
index 36015d7e5..2bf94de21 100644
--- a/admin-dev/cron_currency_rates.php
+++ b/admin-dev/cron_currency_rates.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/displayImage.php b/admin-dev/displayImage.php
index 17ac32918..e48f4f290 100644
--- a/admin-dev/displayImage.php
+++ b/admin-dev/displayImage.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
+define('_PS_ADMIN_DIR_', getcwd());
require_once(dirname(__FILE__).'/../config/config.inc.php');
require_once(dirname(__FILE__).'/init.php');
diff --git a/admin-dev/drawer.php b/admin-dev/drawer.php
index 6d6c78384..d155d25c5 100644
--- a/admin-dev/drawer.php
+++ b/admin-dev/drawer.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/export/index.php b/admin-dev/export/index.php
index 88e934d59..195fab225 100644
--- a/admin-dev/export/index.php
+++ b/admin-dev/export/index.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/footer.inc.php b/admin-dev/footer.inc.php
index e41c93db3..5f91c44fa 100644
--- a/admin-dev/footer.inc.php
+++ b/admin-dev/footer.inc.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/functions.php b/admin-dev/functions.php
index a79749b62..888f9bb24 100644
--- a/admin-dev/functions.php
+++ b/admin-dev/functions.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
-require_once(dirname(__FILE__).'/../images.inc.php');
-
function bindDatepicker($id, $time)
{
if ($time)
@@ -265,7 +263,7 @@ function checkingTab($tab)
$adminObj = new $tab;
if (!$adminObj->viewAccess() AND ($adminObj->table != 'employee' OR Context::getContext()->employee->id != Tools::getValue('id_employee') OR !Tools::isSubmit('updateemployee')))
{
- $adminObj->_errors = array(Tools::displayError('Access denied'));
+ $adminObj->_errors = array(Tools::displayError('Access denied.'));
echo $adminObj->displayErrors();
return false;
}
@@ -431,7 +429,7 @@ function runAdminTab($tab, $ajaxMode = false)
$bread = '';
foreach ($tabs AS $key => $item)
{
- $bread .= '
';
+ $bread .= '
';
if (count($tabs) - 1 > $key)
$bread .= '';
diff --git a/admin-dev/get-file-admin.php b/admin-dev/get-file-admin.php
index bc9e28e82..1a6c855db 100644
--- a/admin-dev/get-file-admin.php
+++ b/admin-dev/get-file-admin.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/grider.php b/admin-dev/grider.php
index 4fffad24a..0ba54a8a6 100644
--- a/admin-dev/grider.php
+++ b/admin-dev/grider.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
diff --git a/admin-dev/header.inc.php b/admin-dev/header.inc.php
index 0f92567d4..077fde82f 100644
--- a/admin-dev/header.inc.php
+++ b/admin-dev/header.inc.php
@@ -1,6 +1,6 @@
-* @copyright 2007-2012 PrestaShop SA
+* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
@@ -36,9 +36,9 @@ echo '
-
+
-
+
- {l s='Groups'} ({count($groups)})
-
-
- {if $groups AND count($groups)}
-
-
-
| {l s='ID'} | -{l s='Name'} | -{l s='Actions'} | -
|---|---|---|
| {$group['id_group']} | -{$group['name']} | -![]() |
-
| {l s='ID'} | {l s='Date'} | -{l s='Payment'} | +{l s='Payment: '} | {l s='State'} | -{l s='Products'} | -{l s='Total spent'} | +{l s='Products'} | +{l s='Total spent'} | {l s='Actions'} | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {$order['id_order']} | -{$order['date_add']} | -{$order['payment']} | -{$order['order_state']} | +{$order['id_order']} | +{$order['date_add']} | +{$order['payment']} | +{$order['order_state']} | {$order['nb_products']} | {$order['total_paid_real']} | ![]() |
@@ -225,7 +229,6 @@
{assign var=count_ko value=count($orders_ko)}
{if $count_ko}
|||||||||||||||||||||||||||||||||||||||||||||||||
| {l s='ID'} | +{l s='Name'} | +{l s='Actions'} | +
|---|---|---|
| {$group['id_group']} | +{$group['name']} | +![]() |
+
| {l s='Date'} | -{l s='Name'} | - {if $shop_is_feature_active}{l s='Shop'} | {/if} -
|---|---|---|
| {$referrer['date_add']} | -{$referrer['name']} | - {if $shop_is_feature_active}{$referrer['shop_name']} | {/if} -
| {l s='Date'} | +{l s='Name'} | + {if $shop_is_feature_active}{l s='Shop'} | {/if} +
|---|---|---|
| {$referrer['date_add']} | +{$referrer['name']} | + {if $shop_is_feature_active}{$referrer['shop_name']} | {/if} +
| {l s='No modules available in this section.'} |
- {l s='If you select to create this discount for all invoices, one discount will be created per order invoice.'} + {l s='If you chooses to create this discount for all invoices, only one discount will be created per order invoice.'}
{/if} diff --git a/admin-dev/themes/default/template/controllers/orders/_documents.tpl b/admin-dev/themes/default/template/controllers/orders/_documents.tpl index cff383826..8a14112c5 100644 --- a/admin-dev/themes/default/template/controllers/orders/_documents.tpl +++ b/admin-dev/themes/default/template/controllers/orders/_documents.tpl @@ -1,5 +1,5 @@ {* -* 2007-2012 PrestaShop +* 2007-2013 PrestaShop * * NOTICE OF LICENSE * @@ -18,7 +18,7 @@ * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA{l s='If you don\'t select "Free shipping," the normal shipping cost will be applied'}
+{l s='If you don\'t select "Free shipping," the normal shipping cost will be applied.'}
{l s='Search a customer by tapping the first letters of his name'}
+{l s='Search a customer by tapping the first letters of his/her name'}
{l s='Add new customer'}
@@ -996,7 +1001,7 @@
{l s='Search a product by tapping the first letters of his name'}
+{l s='Search a product by tapping the first letters of his/her name.'}
{l s='Add new address'}
+
{l s='Add a new address'}