本文整理汇总了PHP中tep_session_save_path函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_session_save_path函数的具体用法?PHP tep_session_save_path怎么用?PHP tep_session_save_path使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_session_save_path函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getMessage
function getMessage()
{
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
return WARNING_SESSION_DIRECTORY_NON_EXISTENT;
} elseif (!tep_is_writable(tep_session_save_path())) {
return WARNING_SESSION_DIRECTORY_NOT_WRITEABLE;
}
}
}
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:10,代码来源:session_storage.php
示例2: define
define('ICON_ARROW_RIGHT', 'more');
define('ICON_CART', 'In Cart');
define('ICON_ERROR', 'Error');
define('ICON_SUCCESS', 'Success');
define('ICON_WARNING', 'Warning');
define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');
define('TEXT_SORT_PRODUCTS', 'Sort products ');
define('TEXT_DESCENDINGLY', 'descendingly');
define('TEXT_ASCENDINGLY', 'ascendingly');
define('TEXT_BY', ' by ');
define('TEXT_REVIEW_BY', 'by %s');
define('TEXT_REVIEW_WORD_COUNT', '%s words');
define('TEXT_REVIEW_RATING', 'Rating: %s [%s]');
define('TEXT_REVIEW_DATE_ADDED', 'Date Added: %s');
define('TEXT_NO_REVIEWS', 'There are currently no product reviews.');
define('TEXT_NO_NEW_PRODUCTS', 'There are currently no products.');
define('TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate');
define('TEXT_REQUIRED', '<span class="errorText">Required</span>');
define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</b></font>');
define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Warning: Installation directory exists at: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Please remove this directory for security reasons.');
define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . tep_session_save_path() . '. Sessions will not work until the right user permissions are set.');
define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.');
define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid. Please check the date and try again.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid. Please check the number and try again.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s. If that number is correct, we do not accept that type of credit card. If it is wrong, please try again.');
define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');
开发者ID:neomobil,项目名称:neomobil.hu,代码行数:31,代码来源:english.php
示例3: _GetCustomerSessions
function _GetCustomerSessions()
{
$cust_ses_ids = array();
if (RCS_CHECK_SESSIONS == 'true') {
if (STORE_SESSIONS == 'mysql') {
// --- DB RECORDS ---
$sesquery = tep_db_query("select value from " . TABLE_SESSIONS . " where 1");
while ($ses = tep_db_fetch_array($sesquery)) {
if (ereg("customer_id[^\"]*\"([0-9]*)\"", $ses['value'], $custval)) {
$cust_ses_ids[] = $custval[1];
}
}
} else {
// --- FILES ---
if ($handle = opendir(tep_session_save_path())) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$file = tep_session_save_path() . '/' . $file;
// create full path to file!
if ($fp = fopen($file, 'r')) {
$val = fread($fp, filesize($file));
fclose($fp);
if (ereg("customer_id[^\"]*\"([0-9]*)\"", $val, $custval)) {
$cust_ses_ids[] = $custval[1];
}
}
}
}
closedir($handle);
}
// end ($handle = opendir( tep_session_save_path() ) )
}
// end if (STORE_SESSIONS == 'mysql')
}
// end if (RCS_CHECK_SESSIONS == 'true')
return $cust_ses_ids;
}
开发者ID:digideskio,项目名称:oscmax2,代码行数:37,代码来源:recover_cart_sales.php
示例4: array
?>
</td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
if (isset($info)) {
$heading[] = array('text' => '<b>' . TABLE_HEADING_SHOPPING_CART . '</b>');
if (STORE_SESSIONS == 'mysql') {
$session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $info . "'");
$session_data = tep_db_fetch_array($session_data);
$session_data = trim($session_data['value']);
} else {
if (file_exists(tep_session_save_path() . '/sess_' . $info) && filesize(tep_session_save_path() . '/sess_' . $info) > 0) {
$session_data = file(tep_session_save_path() . '/sess_' . $info);
$session_data = trim(implode('', $session_data));
}
}
if ($length = strlen($session_data)) {
if (PHP_VERSION < 4) {
$start_id = strpos($session_data, 'customer_id[==]s');
$start_cart = strpos($session_data, 'cart[==]o');
$start_currency = strpos($session_data, 'currency[==]s');
$start_country = strpos($session_data, 'customer_country_id[==]s');
$start_zone = strpos($session_data, 'customer_zone_id[==]s');
} else {
$start_id = strpos($session_data, 'customer_id|s');
$start_cart = strpos($session_data, 'cart|O');
$start_currency = strpos($session_data, 'currency|s');
$start_country = strpos($session_data, 'customer_country_id|s');
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:whos_online.php
示例5: define
define('ICON_ARROW_RIGHT', 'Thêm');
define('ICON_CART', 'Trong giỏ');
define('ICON_ERROR', 'Lỗi');
define('ICON_SUCCESS', 'Thành công');
define('ICON_WARNING', 'Cảnh báo');
define('TEXT_GREETING_PERSONAL', 'Xin chào <span class="greetUser">%s!</span> bạn có muốn xem những <a href="%s"><u>mặt hàng mới</u></a> để mua không?');
define('TEXT_GREETING_PERSONAL_RELOGON', '<small>Nếu bạn không phải là %s, phiền bạn hãy <a href="%s"><u>Đăng nhập lại</u></a> bằng tài khỏan của bạn.</small>');
define('TEXT_GREETING_GUEST', 'Xin chào <span class="greetUser">khách hàng thân mến!</span> Bạn có muốn <a href="%s"><u>Đăng nhập</u></a> không? Hoặc có thể tạo <a href="%s"><u>1 Tài khỏan mới</u></a>?');
define('TEXT_SORT_PRODUCTS', 'Sắp xếp sản phẩm');
define('TEXT_DESCENDINGLY', 'Từ dưới lên');
define('TEXT_ASCENDINGLY', 'Ngược lại');
define('TEXT_BY', ' Theo ');
define('TEXT_REVIEW_BY', 'theo %s');
define('TEXT_REVIEW_WORD_COUNT', '%s Tên');
define('TEXT_REVIEW_RATING', 'Mức bình chọn: %s [%s]');
define('TEXT_REVIEW_DATE_ADDED', 'Ngày thêm vào: %s');
define('TEXT_NO_REVIEWS', 'Hiện tại không có nhận xét nào.');
define('TEXT_NO_NEW_PRODUCTS', 'Hiện tại không có sản phẩm nào.');
define('TEXT_UNKNOWN_TAX_RATE', 'Không xác định thuế');
define('TEXT_REQUIRED', '<span class="errorText">Yêu cầu</span>');
define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>Lỗi:</small> Không thế gửi email thông qua máy chủ SMTP.</b></font>');
define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Cảnh báo 1: Thư mục Install còn tồn tại : ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Hãy xóa thư mục này để đảm bảo tính an toàn.');
define('WARNING_CONFIG_FILE_WRITEABLE', 'Cảnh báo: Tôi vẫn có thể ghi được vào file cấu hình : ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. Hãy đặt chế độ ReadOnly - Hoặc chỉ định quyền truy cập cho file này để đảm bảo tính an toàn.');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Cảnh báo: Thư mục sessions không tồn tại: ' . tep_session_save_path() . '. Sessions sẽ không hoạt động được cho đến khi thư mục này được tạo.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Cảnh báo: Tôi vẫn không thể ghi được vào thư mục sessions: ' . tep_session_save_path() . '. Sessions sẽ không thể hoạt động được cho đến khi bạn thiết lập quyền truy cập cho nó.');
define('WARNING_SESSION_AUTO_START', 'Cảnh báo: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Cảnh báo: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.');
define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid.<br>Please check the date and try again.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br>Please check the number and try again.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.');
define('FOOTER_TEXT_BODY', 'Bản quyền © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Phát triển từ mã nguồn mở <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br>Xem đẹp nhất ở độ phân giải <b>1024 x 768</b>');
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:vietnam.php
示例6: init
protected function init()
{
global $request_type, $cookie_domain, $cookie_path, $PHP_SELF, $login_request, $messageStack, $cfgModules;
Registry::set('Cache', new Cache());
$OSCOM_Db = Db::initialize();
Registry::set('Db', $OSCOM_Db);
// TODO legacy
tep_db_connect() or die('Unable to connect to database server!');
// set the application parameters
$Qcfg = $OSCOM_Db->get('configuration', ['configuration_key as k', 'configuration_value as v']);
//, null, null, null, 'configuration'); // TODO add cache when supported by admin
while ($Qcfg->fetch()) {
define($Qcfg->value('k'), $Qcfg->value('v'));
}
// Used in the "Backup Manager" to compress backups
define('LOCAL_EXE_GZIP', 'gzip');
define('LOCAL_EXE_GUNZIP', 'gunzip');
define('LOCAL_EXE_ZIP', 'zip');
define('LOCAL_EXE_UNZIP', 'unzip');
// Define how do we update currency exchange rates
// Possible values are 'oanda' 'xe' or ''
define('CURRENCY_SERVER_PRIMARY', 'oanda');
define('CURRENCY_SERVER_BACKUP', 'xe');
// set the type of request (secure or not)
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' || isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) {
$request_type = 'SSL';
$cookie_domain = HTTPS_COOKIE_DOMAIN;
$cookie_path = HTTPS_COOKIE_PATH;
} else {
$request_type = 'NONSSL';
$cookie_domain = HTTP_COOKIE_DOMAIN;
$cookie_path = HTTP_COOKIE_PATH;
}
// set php_self in the global scope
$req = parse_url($_SERVER['SCRIPT_NAME']);
$PHP_SELF = substr($req['path'], $request_type == 'SSL' ? strlen(DIR_WS_HTTPS_ADMIN) : strlen(DIR_WS_ADMIN));
// set the session name and save path
tep_session_name('oscomadminid');
tep_session_save_path(SESSION_WRITE_DIRECTORY);
// set the session cookie parameters
// set the session cookie parameters
session_set_cookie_params(0, $cookie_path, $cookie_domain);
if (function_exists('ini_set')) {
ini_set('session.use_only_cookies', SESSION_FORCE_COOKIE_USE == 'True' ? 1 : 0);
}
// lets start our session
tep_session_start();
// TODO remove when no more global sessions exist
foreach ($_SESSION as $k => $v) {
$GLOBALS[$k] =& $_SESSION[$k];
}
// set the language
if (!isset($_SESSION['language']) || isset($_GET['language'])) {
$lng = new \language();
if (isset($_GET['language']) && !empty($_GET['language'])) {
$lng->set_language($_GET['language']);
} else {
$lng->get_browser_language();
}
$_SESSION['language'] = $lng->language['directory'];
$_SESSION['languages_id'] = $lng->language['id'];
}
// redirect to login page if administrator is not yet logged in
if (!isset($_SESSION['admin'])) {
$redirect = false;
$current_page = $PHP_SELF;
// if the first page request is to the login page, set the current page to the index page
// so the redirection on a successful login is not made to the login page again
if ($current_page == FILENAME_LOGIN && !isset($_SESSION['redirect_origin'])) {
$current_page = FILENAME_DEFAULT;
}
if ($current_page != FILENAME_LOGIN) {
if (!isset($_SESSION['redirect_origin'])) {
$_SESSION['redirect_origin'] = ['page' => $current_page, 'get' => []];
}
// try to automatically login with the HTTP Authentication values if it exists
if (!isset($_SESSION['auth_ignore'])) {
if (isset($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']) && !empty($_SERVER['PHP_AUTH_PW'])) {
$_SESSION['redirect_origin']['auth_user'] = $_SERVER['PHP_AUTH_USER'];
$_SESSION['redirect_origin']['auth_pw'] = $_SERVER['PHP_AUTH_PW'];
}
}
$redirect = true;
}
if (!isset($login_request) || isset($_GET['login_request']) || isset($_POST['login_request']) || isset($_COOKIE['login_request']) || isset($_SESSION['login_request']) || isset($_FILES['login_request']) || isset($_SERVER['login_request'])) {
$redirect = true;
}
if ($redirect == true) {
tep_redirect(tep_href_link(FILENAME_LOGIN, isset($_SESSION['redirect_origin']['auth_user']) ? 'action=process' : ''));
}
}
// include the language translations
$_system_locale_numeric = setlocale(LC_NUMERIC, 0);
require DIR_FS_ADMIN . 'includes/languages/' . $_SESSION['language'] . '.php';
setlocale(LC_NUMERIC, $_system_locale_numeric);
// Prevent LC_ALL from setting LC_NUMERIC to a locale with 1,0 float/decimal values instead of 1.0 (see bug #634)
$current_page = basename($PHP_SELF);
if (file_exists(DIR_FS_ADMIN . 'includes/languages/' . $_SESSION['language'] . '/' . $current_page)) {
include DIR_FS_ADMIN . 'includes/languages/' . $_SESSION['language'] . '/' . $current_page;
}
//.........这里部分代码省略.........
开发者ID:tiansiyuan,项目名称:oscommerce2,代码行数:101,代码来源:Admin.php
示例7: tep_session_name
// set the cookie domain
$cookie_domain = $request_type == 'NONSSL' ? HTTP_COOKIE_DOMAIN : HTTPS_COOKIE_DOMAIN;
$cookie_path = $request_type == 'NONSSL' ? HTTP_COOKIE_PATH : HTTPS_COOKIE_PATH;
// include cache functions if enabled
if (USE_CACHE == 'true') {
include DIR_WS_FUNCTIONS . 'cache.php';
}
// include shopping cart class
require DIR_WS_CLASSES . 'shopping_cart.php';
// include navigation history class
require DIR_WS_CLASSES . 'navigation_history.php';
// define how the session functions will be used
require DIR_WS_FUNCTIONS . 'sessions.php';
// set the session name and save path
tep_session_name('osCsid');
tep_session_save_path(SESSION_WRITE_DIRECTORY);
// set the session cookie parameters
if (function_exists('session_set_cookie_params')) {
session_set_cookie_params(0, $cookie_path, $cookie_domain);
} elseif (function_exists('ini_set')) {
ini_set('session.cookie_lifetime', '0');
ini_set('session.cookie_path', $cookie_path);
ini_set('session.cookie_domain', $cookie_domain);
}
@ini_set('session.use_only_cookies', SESSION_FORCE_COOKIE_USE == 'True' ? 1 : 0);
// set the session ID if it exists
if (isset($HTTP_POST_VARS[tep_session_name()])) {
tep_session_id($HTTP_POST_VARS[tep_session_name()]);
} elseif ($request_type == 'SSL' && isset($HTTP_GET_VARS[tep_session_name()])) {
tep_session_id($HTTP_GET_VARS[tep_session_name()]);
}
开发者ID:grum1965,项目名称:Plaster-Ceiling-Roses,代码行数:31,代码来源:application_top.php
示例8: define
define('TEXT_DESCENDINGLY', 'descendant');
define('TEXT_ASCENDINGLY', 'ascendant');
define('TEXT_BY', ' par ');
define('TEXT_REVIEW_BY', 'par %s');
define('TEXT_REVIEW_WORD_COUNT', '%s mots');
define('TEXT_REVIEW_RATING', 'Classement: %s [%s]');
define('TEXT_REVIEW_DATE_ADDED', 'Date d\'ajout: %s');
define('TEXT_NO_REVIEWS', 'Il n\'y a pas encore de commentaire sur ce produit.');
define('TEXT_NO_NEW_PRODUCTS', 'Il n\'y a pour le moment aucun nouveau produit.');
define('TEXT_UNKNOWN_TAX_RATE', 'TVA inconnue');
define('TEXT_REQUIRED', '<span class="errorText">Requis</span>');
define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERREUR:</small> Impossible d\'envoyer le courriel au travers du serveur SMTP spécifié. Vérifiez le fichier PHP.INI et corrigez le nom du serveur SMTP si nécessaire.</b></font>');
define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Attention, le répertoire d\'installation existe à :' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Il est vinement conseillé de supprimer ce répertoire pour des raisons de sécurité.');
define('WARNING_CONFIG_FILE_WRITEABLE', 'Attention: Il est possible d\'écrire sur le fichier de configuration: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. Ceci est un risque potentiel - merci de mettre les bonnes permissions sur ce fichier.');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Attention: Le répertoire de session n\'existe pas: ' . tep_session_save_path() . '. Les sessions ne fonctionneront pas tant que ce répertoire n\'aura pas été créé.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Attention: Il est impossible d\'écrire dans le répertoire de sessions ' . tep_session_save_path() . '. Celles-ci ne fonctionneront pas tant que les permissions n\'auront pas été corrigées.');
define('WARNING_SEO_PHP_VERSION_LOW', 'Attention: Votre serveur web est en cours d\'exécution ' . PHP_VERSION . ' qui n\'est pas suffisante pour pouvoir utiliser les SEO URLs. S\'il vous plaît désactiver ce module jusqu\'à ce que vous avez mis à niveau votre version de PHP.');
define('WARNING_SESSION_AUTO_START', 'Attention: session.auto_start est actif - désactiver cette fonctionnalité dans php.ini et redémarrer le serveur.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Attention : Le répertoire de téléchargement n\'existe pas : ' . DIR_FS_DOWNLOAD . '. Le téléchargement de produits ne fonctionnera qu\'avec un répertoire valide.');
define('TEXT_CCVAL_ERROR_INVALID_DATE', 'La date d\'expiration entrée pour cette carte de crédit n\'est pas valide.<br>Veuillez vérifier la date et réessayez.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'Le numé entrée pour cette carte de crédit n\'est pas valide.<br>Veuillez vérifier le numéro et réessayez.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'Le code à 4 chiffres que vous avez entré est: %s<br>Si ce code est correcte, nous n\'acceptons pas ce type de carte crédit.<br>S\'il est erroné, veuillez réessayer.');
define('WARNING_JAVASCRIPT_DISABLED', 'Attention: Nous avons détecté que vous avez désactivé Javascript. Pour une bonne utuilisation de ce site, vous devez l\'aciver. Si vous avez besoin d\'aide, <b>cliquez ici.</b>');
define('WARNING_IE6_DETECTED', 'Attention: Nous avons détecté que vous utilisez Internet Explorer 6 qui est instable. Nous vous recommandons vivement de <b>mettre à jour votre navigateur</b>. Pourquoi ne pas essayer <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx"><b>IE</b></a>, <a href="http://www.mozilla.com/"><b>Firefox</b></a> ou <a href="http://www.google.co.uk/chrome/"><b>Chrome</b></a>');
define('FOOTER_TEXT_BODY', 'Tous drois réservé, textes et images Placebo Sàrl et aux fabricants respectis © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscmax.com" target="_blank">' . PROJECT_VERSION . '</a>');
// BOF: MOD - Checkout Without Account
define('IMAGE_BUTTON_CREATE_ACCOUNT', 'Créer un compte');
define('NAV_ORDER_INFO', 'Info de la commande');
// EOF: MOD - Checkout Without Account
// BOF: MOD - Article Manager
define('BOX_HEADING_ARTICLES', 'Articles');
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:core.php
示例9: define
define('DASHBOARD_NO_ERRORS_DETECTED_CONFIG', 'Keine Fehler in Ihrer Systemkonfiguration gefunden.');
define('DASHBOARD_ALERT_ERRORS_DETECTED_CONFIG', ' Systemkonfigurationsfehler;');
define('DASHBOARD_ALERT_WARNINGS_DETECTED_CONFIG', ' Systemkonfigurationswarnung(en);');
define('DASHBOARD_NO_ERRORS_DETECTED_SETUP', 'Keine Fehler in Ihrer Systemeinrichtung gefunden.');
define('DASHBOARD_ALERT_ERRORS_DETECTED_SETUP', ' Systemeinrichtungsfehler; ');
define('DASHBOARD_ALERT_WARNINGS_DETECTED_SETUP', ' Systemeinrichtungswarnung(en); ');
define('DASHBOARD_NO_ERRORS_DETECTED_PERMISSION', 'Kein Fehler in Ihren Berechtigungen gefunden.');
define('DASHBOARD_ALERT_ERRORS_DETECTED_PERMISSION', ' Berechtigungsfehler; ');
define('DASHBOARD_ALERT_WARNINGS_DETECTED_PERMISSION', ' Berechtigungswarnung(en); ');
define('DASHBOARD_PWA_OPC_ERROR', 'Fehler: Sie haben <u><a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=7575&cID=3069', 'NONSSL') . '">One Page Checkout</a></u> und <u><a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=5&cID=1449', 'NONSSL') . '">Purchase Without Account</a></u> aktiviert. Bitte deaktivieren Sie eines dieser Module.');
define('DASHBOARD_OPC_EMAIL_ERROR', 'Warnung: Sie haben One Page Checkout aktiviert, aber keine <u><a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=7575&cID=3079', 'NONSSL') . '">Debug E-Mail-Adresse<a></u> hinterlegt.');
define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Fehler: Das Installationsverzeichnis befindet sich in: ' . (DIR_FS_CATALOG . 'install/') . '. Bitte entfernen Sie das Verzeichnis aus Sicherheitsgründen.');
define('WARNING_CONFIG_FILE_WRITEABLE', 'Fehler: Die Konfigurationsdatei: ' . DIR_FS_CATALOG . 'includes/configure.php ist beschreibbar. Dies ist ein potenzielles Sicherheitsrisiko - bitte ändern Sie die entsprechenden Berechtigungen dieser Datei.');
define('WARNING_ADMIN_CONFIG_FILE_WRITEABLE', 'Fehler: Die Konfigurationsdatei: ' . DIR_FS_ADMIN . 'includes/configure.php ist beschreibbar. Dies ist ein potenzielles Sicherheitsrisiko - bitte ändern Sie die entsprechenden Berechtigungen dieser Datei.');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Fehler: Das Sessions Verzeichnis existiert nicht: ' . tep_session_save_path() . '. Sessions funktionieren nicht, solange dieses Verzeichnis fehlt.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warnung: Das Sessions Verzeichnis ist nicht beschreibbar: ' . tep_session_save_path() . '. Sessions funktionieren nicht, solange das Verzeichnis schreibgeschützt ist.');
define('WARNING_GLOBALS_ENABLED', 'Fehler: Sie haben Register Globals auf On. Aus Sicherheits- und Funktionalitätsgründen verlangt osCmax die Deaktivierung.');
define('WARNING_SEO_PHP_VERSION_LOW', 'Fehler: Auf Ihrem Webserver läuft ' . PHP_VERSION . ', was nicht ausreichend zum Betrieb der SEO URLs ist. Bitte deaktivieren Sie dieses Modul, bis Sie PHP aktualisiert haben.');
define('WARNING_SESSION_AUTO_START', 'Warnung: session.auto_start ist aktiviert - bitte deaktivieren Sie diese PHP Funktion in der php.ini und starten Sie den Webserver neu.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warnung: Das Verzeichnis der herunterladbaren Produkte existiert nicht: ' . dirname(DIR_FS_CATALOG) . '/download. Die herunterladbaren Produkte werden nicht funktionieren, solange kein gültiges Verzeichnis existiert.');
define('WARNING_ADMIN_NOT_RENAMED', 'Warnung: Das admin-Verzeichnis wurde nicht umbenannt. Dies ist ein potenzielles Sicherheitsrisiko. <u><a href="http://wiki.oscdox.com/v2.5/setting_up_security" target="_blank">Bitte lesen Sie dazu die Anleitung in der Wiki</a></u>.');
define('WARNING_PHP_FILES_IN_BIGIMAGES', 'Warnung: Es befinden sich Dateien in ' . DIR_FS_CATALOG . DYNAMIC_MOPICS_BIGIMAGES_DIR . ', die keine Bilder sind. Dies könnte auf eine Infizierung Ihres Servers durch bösartige Software hindeuten.');
define('WARNING_PHP_FILES_IN_PRODUCTS', 'Warnung: Es befinden sich Dateien in ' . DIR_FS_CATALOG . DYNAMIC_MOPICS_PRODUCTS_DIR . ', die keine Bilder sind. Dies könnte auf eine Infizierung Ihres Servers durch bösartige Software hindeuten.');
define('WARNING_PHP_FILES_IN_THUMBS', 'Warnung: Es befinden sich Dateien in ' . DIR_FS_CATALOG . DYNAMIC_MOPICS_THUMBS_DIR . ', die keine Bilder sind. Dies könnte auf eine Infizierung Ihres Servers durch bösartige Software hindeuten.');
define('DASHBOARD_AFFILIATE_EMAIL_ERROR', 'Warnung: Die Affiliate Infobox ist in Ihrem Shop aktiviert, aber Sie haben die Standard-E-Mail-Adresse nicht geändert. Bitte <u><a href="' . tep_href_link(FILENAME_INFOBOX_CONFIGURATION, 'gID=1&cID=28', 'NONSSL') . '">deaktivieren Sie dieses Modul</a></u>, oder <u><a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=35&cID=1204&action=edit', 'NONSSL') . '"> ändern Sie die E-Mail-Adresse</a></u>.');
define('SET_DEFAULT', 'Standardmäßiger Tab:');
define('DASHBOARD_REVIEWS', 'Produkt- und Artilelbewertungen');
define('DASHBOARD_REVIEW_COMPLETE', 'Es existieren keine freizugebenden Bewertungen.');
define('DASHBOARD_REVIEWS_PRODUCTS_OPEN', 'Geben Sie %s neue Produktbewertungen frei oder löschen Sie diese..');
define('DASHBOARD_REVIEWS_ARTICLES_OPEN', 'Geben Sie %s neue Artikelbewertungen frei oder löschen Sie diese.');
define('DASHBOARD_GOTO_PRODUCT_REVIEWS', 'Zu den Produktbewertungen');
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:index.php
示例10: Copyright
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Das sessions - Verzeichnis existiert nicht: ' . tep_session_save_path() . '. Die Sessions funktionieren nicht bis das Verzeichnis erstellt wurde.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Ich bin nicht in der Lage in das Sessions - Verzeichnis zu schreiben: ' . tep_session_save_path() . '. Sessions arbeitet nicht, bis die korrekten Zugriffsrechte gesetzt sind.');
开发者ID:tapwag,项目名称:oscommerce_deutsch,代码行数:14,代码来源:session_storage.php
示例11: tep_check_cart
function tep_check_cart($which, $customer_id, $session_id)
{
global $cart, $status_active_cart, $status_inactive_cart, $status_active_nocart, $status_inactive_nocart, $status_inactive_bot, $status_active_bot, $active_time;
// Pull Session data from the correct source.
if (STORE_SESSIONS == 'mysql') {
$session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $session_id . "'");
$session_data = tep_db_fetch_array($session_data);
$session_data = trim($session_data['value']);
} else {
if (file_exists(tep_session_save_path() . '/sess_' . $session_id) && filesize(tep_session_save_path() . '/sess_' . $session_id) > 0) {
$session_data = file(tep_session_save_path() . '/sess_' . $session_id);
$session_data = trim(implode('', $session_data));
}
}
if ($length = strlen($session_data)) {
if (PHP_VERSION < 4) {
$start_id = strpos($session_data, 'customer_id[==]s');
$start_cart = strpos($session_data, 'cart[==]o');
$start_currency = strpos($session_data, 'currency[==]s');
$start_country = strpos($session_data, 'customer_country_id[==]s');
$start_zone = strpos($session_data, 'customer_zone_id[==]s');
} else {
$start_id = strpos($session_data, 'customer_id|s');
$start_cart = strpos($session_data, 'cart|O');
$start_currency = strpos($session_data, 'currency|s');
$start_country = strpos($session_data, 'customer_country_id|s');
$start_zone = strpos($session_data, 'customer_zone_id|s');
}
for ($i = $start_cart; $i < $length; $i++) {
if ($session_data[$i] == '{') {
if (isset($tag)) {
$tag++;
} else {
$tag = 1;
}
} elseif ($session_data[$i] == '}') {
$tag--;
} elseif (isset($tag) && $tag < 1) {
break;
}
}
$session_data_id = substr($session_data, $start_id, strpos($session_data, ';', $start_id) - $start_id + 1);
$session_data_cart = substr($session_data, $start_cart, $i);
$session_data_currency = substr($session_data, $start_currency, strpos($session_data, ';', $start_currency) - $start_currency + 1);
$session_data_country = substr($session_data, $start_country, strpos($session_data, ';', $start_country) - $start_country + 1);
$session_data_zone = substr($session_data, $start_zone, strpos($session_data, ';', $start_zone) - $start_zone + 1);
session_decode($session_data_id);
session_decode($session_data_currency);
session_decode($session_data_country);
session_decode($session_data_zone);
session_decode($session_data_cart);
if (PHP_VERSION < 4) {
$broken_cart = $cart;
$cart = new shoppingCart();
$cart->unserialize($broken_cart);
}
if (is_object($cart)) {
$products = $cart->get_products();
}
}
$which_query = $session_data;
$who_data = tep_db_query("select time_entry, time_last_click\r\n from " . TABLE_WHOS_ONLINE . "\r\n where session_id='" . $session_id . "'");
$who_query = tep_db_fetch_array($who_data);
// Determine if visitor active/inactive
$xx_mins_ago_long = time() - $active_time;
// Determine Bot active/inactive
if ($customer_id < 0) {
// inactive
if ($who_query['time_last_click'] < $xx_mins_ago_long) {
return tep_image(DIR_WS_IMAGES . $status_inactive_bot, TEXT_STATUS_INACTIVE_BOT);
// active
} else {
return tep_image(DIR_WS_IMAGES . $status_active_bot, TEXT_STATUS_ACTIVE_BOT);
}
}
// Determine active/inactive and cart/no cart status
if (sizeof($products) == 0) {
// inactive
if ($who_query['time_last_click'] < $xx_mins_ago_long) {
return tep_image(DIR_WS_IMAGES . $status_inactive_nocart, TEXT_STATUS_INACTIVE_NOCART);
// active
} else {
return tep_image(DIR_WS_IMAGES . $status_active_nocart, TEXT_STATUS_ACTIVE_NOCART);
}
// cart
} else {
// inactive
if ($who_query['time_last_click'] < $xx_mins_ago_long) {
return tep_image(DIR_WS_IMAGES . $status_inactive_cart, TEXT_STATUS_INACTIVE_CART);
// active
} else {
return tep_image(DIR_WS_IMAGES . $status_active_cart, TEXT_STATUS_ACTIVE_CART);
}
}
}
开发者ID:eosc,项目名称:EosC-2.3,代码行数:95,代码来源:whos_online.php
示例12: tep_check_cart
function tep_check_cart($customer_id, $session_id, $the_ip)
{
global $status_active_cart, $status_active_cart_top, $status_inactive_cart, $status_active_nocart, $status_inactive_nocart, $status_inactive_bot, $status_active_bot, $active_time;
// mjc added next line for count active guests and customers without duplicates
global $ip_addrs_active;
// Pull Session data from the correct source.
// First we check if the session exist in a file, else we will use mysql
if (file_exists(tep_session_save_path() . '/sess_' . $session_id) && filesize(tep_session_save_path() . '/sess_' . $session_id) > 0) {
$session_data = file(tep_session_save_path() . '/sess_' . $session_id);
$session_data = trim(implode('', $session_data));
} else {
$session_data = tep_db_query("select value from " . TABLE_SESSIONS . " WHERE sesskey = '" . $session_id . "'");
$session_data = tep_db_fetch_array($session_data);
$session_data = trim($session_data['value']);
}
// mjc mike challis bof added to fix shopping cart indicator bug
# the bug was .. When one of the visitors has an item in their cart,
# every "customer" has the Active with Cart or Inactive with Cart icon blinking.
$products = 0;
if ($length = strlen($session_data)) {
#contents";a:0: <= no products in cart
#contents";a:5: <= 5 products in cart
preg_match('|contents";a:(\\d+):|i', $session_data, $find);
$products = $find[1];
}
// mjc mike challis eof added to fix shopping cart indicator bug
$which_query = $session_data;
$who_data = tep_db_query("select time_entry, time_last_click\r\n from " . TABLE_WHOS_ONLINE . "\r\n where session_id='" . $session_id . "'");
$who_query = tep_db_fetch_array($who_data);
// Determine if visitor active/inactive
$xx_mins_ago_long = time() - $active_time;
if ($customer_id < 0) {
// inactive
if ($who_query['time_last_click'] < $xx_mins_ago_long) {
return tep_image(DIR_WS_IMAGES . $status_inactive_bot, TEXT_STATUS_INACTIVE_BOT);
// active
} else {
return tep_image(DIR_WS_IMAGES . $status_active_bot, TEXT_STATUS_ACTIVE_BOT);
}
}
// Determine active/inactive and cart/no cart status
// no cart
// mjc mike challis modified the next line to fix shopping cart indicator bug
if ($products == 0) {
// inactive
if ($who_query['time_last_click'] < $xx_mins_ago_long) {
return tep_image(DIR_WS_IMAGES . $status_inactive_nocart, TEXT_STATUS_INACTIVE_NOCART);
// active
} else {
// mjc mike challis added next 3 lines for count active guests and customers without duplicates
if (!in_array($the_ip, $ip_addrs_active)) {
$the_ip != $_SERVER["REMOTE_ADDR"] and $ip_addrs_active[] = $the_ip;
}
return tep_image(DIR_WS_IMAGES . $status_active_nocart, TEXT_STATUS_ACTIVE_NOCART);
}
// cart
} else {
// inactive
if ($who_query['time_last_click'] < $xx_mins_ago_long) {
return tep_image(DIR_WS_IMAGES . $status_inactive_cart, TEXT_STATUS_INACTIVE_CART);
// active
} else {
// mjc mike challis added next 3 lines for count active guests and customers without duplicates
if (!in_array($the_ip, $ip_addrs_active)) {
$the_ip != $_SERVER["REMOTE_ADDR"] and $ip_addrs_active[] = $the_ip;
}
return tep_image(DIR_WS_IMAGES . $status_active_cart, TEXT_STATUS_ACTIVE_CART);
}
}
}
开发者ID:digideskio,项目名称:oscmax2,代码行数:70,代码来源:whos_online.php
示例13: elseif
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
}
// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php') && is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) {
$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
}
// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
} elseif (!is_writeable(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
}
}
}
// check session.auto_start is disabled
if (function_exists('ini_get') && WARN_SESSION_AUTO_START == 'true') {
if (ini_get('session.auto_start') == '1') {
$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
}
if (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true' && DOWNLOAD_ENABLED == 'true') {
if (!is_dir(DIR_FS_DOWNLOAD)) {
$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
}
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:header.php
示例14: define
define('ENTRY_REVIEW_NAME_ERROR', 'Вы не указали свое имя.');
define('ENTRY_REVIEW_EMAIL_ERROR', 'Вы не указали свой e-mail.');
define('REVIEW_TEXT_MIN_LENGTH', '30');
define('ENTRY_REVIEW_TEXT_ERROR', 'Длина текста Вашего отзыва должна быть не менее ' . REVIEW_TEXT_MIN_LENGTH . ' символов.');
define('TEXT_REVIEW_REGISTER', 'Отзывы могут оставлять только зарегистрированные пользователи. Пожалуйста, <a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">авторизуйтесь</a> или <a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">зарегистрируйтесь</a> (регистрация бесплатна и не отнимет у Вас более минуты).');
define('JS_REVIEW_NAME', '* Вы не указали свое имя.\\n');
define('JS_REVIEW_EMAIL', '* Вы не указали свой e-mail.\\n');
define('JS_REVIEW_TEXT', '* Поле "Отзыв" должно содержать не менее ' . REVIEW_TEXT_MIN_LENGTH . ' символов.\\n');
define('JS_REVIEW_RATING', '* Оцените, пожалуйста, продукт по пятибальной шкале.\\n');
define('TEXT_UNKNOWN_TAX_RATE', 'Налоговая ставка неизвестна');
define('TEXT_REQUIRED', '<span class="errorText">Обязательно</span>');
define('ERROR_TEP_MAIL', 'Ошибка: Невозможно отправить email через сервер SMTP. Проверьте, пожалуйста, Ваши установки php.ini и если необходимо, скорректируйте сервер SMTP.</b></font>');
define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Предупреждение: Не удалена директория установки магазина: ' . dirname($_SERVER['SCRIPT_FILENAME']) . '/install. Пожалуйста, удалите эту директорию для безопасности.');
define('WARNING_CONFIG_FILE_WRITEABLE', 'Предупреждение: Файл конфигурации доступен для записи: ' . dirname($_SERVER['SCRIPT_FILENAME']) . '/includes/configure.php. Это - потенциальный риск безопасности - пожалуйста, установите необходимые права доступа к этому файлу.');
define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Предупреждение: директория сессий не существует: ' . tep_session_save_path() . '. Сессии не будут работать пока эта директория не будет создана.');
define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Предупреждение: Нет доступа к каталогу сессий: ' . tep_session_save_path() . '. Сессии не будут работать пока не установлены необходимые права доступа.');
define('WARNING_SESSION_AUTO_START', 'Предупреждение: опция session.auto_start включена - пожалуйста, выключите данную опцию в файле php.ini и перезапустите веб-сервер.');
define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Предупреждение: Директория отсутствует: ' . DIR_FS_DOWNLOAD . '. Создайте директорию.');
define('TEXT_CCVAL_ERROR_INVALID_DATE', 'Вы указали неверную дату истечения срока действия кредитной карточки.<br />Попробуйте ещё раз.');
define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'Вы указали неверный номер кредитной карточки.<br />Попробуйте ещё раз.');
define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'Первые цифры Вашей кредитной карточки: %s<br />Если Вы указали номер своей кредитной карточки правильно, сообщаем Вам, что мы не принимаем к оплате данный тип кредитных карточек.<br />Если Вы указали номер кредитной карточки неверно, попробуйте ещё раз.');
define('ENTRY_GUEST_ADD_TO_CART_ERROR', 'Чтобы иметь возможность добавлять товары в корзину, пожалуйста, авторизуйтесь или зарегистрируйтесь!');
define('TABLE_HEADING_IMAGE', '');
define('TABLE_HEADING_PICTURE', 'Фото');
define('TABLE_HEADING_NAME', 'Наименование');
define('TABLE_HEADING_DESCRIPTION', 'Краткое описание');
define('TABLE_HEADING_MODEL', 'ISBN');
define('TABLE_HEADING_PRODUCTS', 'Наименование');
define('TABLE_HEADING_MANUFACTURER', 'Издатель');
define('T
|
请发表评论