function create_plugin_instance() { global $aInfoMessage, $aLang; if (!isset($aInfoMessage)) $aInfoMessage = array(); // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == '1') { if (file_exists(dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/install')) { $aInfoMessage[] = array('type' => 'warning', 'text' => $aLang['warning_install_directory_exists']); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == '1') { if ( (file_exists(dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/configure.php')) && (is_writeable(dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/configure.php')) ) { $aInfoMessage[] = array('type' => 'warning', 'text' => $aLang['warning_config_file_writeable']); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == '1') { if (STORE_SESSIONS == '0') { if (!is_dir(oos_session_save_path())) { $aInfoMessage[] = array('type' => 'warning', 'text' => $aLang['warning_session_directory_non_existent']); } elseif (!is_writeable(oos_session_save_path())) { $aInfoMessage[] = array('type' => 'warning', 'text' => $aLang['warning_session_directory_not_writeable']); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == '1') ) { if (ini_get('session.auto_start') == '1') { $aInfoMessage[] = array('type' => 'warning', 'text' => $aLang['warning_session_auto_start']); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == '1') && (DOWNLOAD_ENABLED == '1') ) { if (!is_dir(OOS_DOWNLOAD_PATH)) { $aInfoMessage[] = array('type' => 'warning', 'text' => $aLang['warning_download_directory_non_existent']); } } return true; }
$aLang['text_by'] = ' nach '; $aLang['text_review_by'] = 'von %s'; $aLang['text_review_word_count'] = '%s Worte'; $aLang['text_review_rating'] = 'Bewertung:'; $aLang['text_review_date_added'] = 'Datum hinzugefügt: '; $aLang['text_no_reviews'] = 'Es liegen noch keine Bewertungen vor.'; $aLang['text_no_new_products'] = 'Zur Zeit gibt es keine neuen Produkte.'; $aLang['text_unknown_tax_rate'] = 'Unbekannter Steuersatz'; $aLang['text_required'] = 'erforderlich'; $aLang['error_oos_mail'] = '<small>Fehler:</small> Die eMail kann nicht über den angegebenen SMTP-Server verschickt werden. Bitte kontrollieren Sie die Einstellungen in der php.ini Datei und führen Sie notwendige Korrekturen durch!'; $aLang['warning_install_directory_exists'] = 'Warnung: Das Installationverzeichnis ist noch vorhanden auf: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/install. Bitte löschen Sie das Verzeichnis aus Gründen der Sicherheit!'; $aLang['warning_config_file_writeable'] = 'Warnung: OOS [OSIS Online Shop] kann in die Konfigurationsdatei schreiben: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/configure.php. Das stellt ein mögliches Sicherheitsrisiko dar - bitte korrigieren Sie die Benutzerberechtigungen zu dieser Datei!'; $aLang['warning_session_auto_start'] = 'Warnung: session.auto_start ist enabled - Bitte disablen Sie dieses PHP Feature in der php.ini und starten Sie den WEB-Server neu!'; $aLang['warning_download_directory_non_existent'] = 'Warnung: Das Verzeichnis fr den Artikel Download existiert nicht: ' . OOS_DOWNLOAD_PATH . '. Diese Funktion wird nicht funktionieren bis das Verzeichnis erstellt wurde!'; $aLang['warning_session_directory_non_existent'] = 'Warnung: Das Verzeichnis für die Sessions existiert nicht: ' . oos_session_save_path() . '. Die Sessions werden nicht funktionieren bis das Verzeichnis erstellt wurde!'; $aLang['warning_session_directory_not_writeable'] = 'Warnung: OOS [OSIS Online Shop] kann nicht in das Sessions Verzeichnis schreiben: ' . oos_session_save_path() . '. Die Sessions werden nicht funktionieren bis die richtigen Benutzerberechtigungen gesetzt wurden!'; $aLang['text_ccval_error_invalid_date'] = 'Das "Gültig bis" Datum ist ungültig.<br>Bitte korrigieren Sie Ihre Angaben.'; $aLang['text_ccval_error_invalid_number'] = 'Die "KreditkarteNummer", die Sie angegeben haben, ist ungültig.<br>Bitte korrigieren Sie Ihre Angaben.'; $aLang['text_ccval_error_unknown_card'] = 'Die ersten 4 Ziffern Ihrer Kreditkarte sind: %s<br>Wenn diese Angaben stimmen, wird dieser Kartentyp leider nicht akzeptiert.<br>Bitte korrigieren Sie Ihre Angaben gegebenfalls.'; $aLang['voucher_balance'] = 'Gutschein - Guthaben'; $aLang['gv_faq'] = 'Gutschein FAQ'; $aLang['error_redeemed_amount'] = 'Prima: Der Einlösewert wurde Ihrem Kundenkonto gutgeschrieben! '; $aLang['error_no_redeem_code'] = 'Sie haben keinen Gutschein-Code eingegeben!'; $aLang['error_no_invalid_redeem_gv'] = 'Fehler: Sie haben keinen gültigen Gutschein-Code eingegeben!'; $aLang['table_heading_credit'] = 'Guthaben'; $aLang['gv_has_vouchera'] = 'Sie haben ein Gutschein - Guthaben auf Ihrem Kundenkonto. Möchten Sie einen Teil <br> Ihres Guthabens per'; $aLang['gv_has_voucherb'] = 'versenden?'; $aLang['entry_amount_check_error'] = ' <small><font color="#FF0000">Leider keine ausreichende Deckung auf Ihrem Kundenkonto!</font></smal>'; $aLang['gv_send_to_friend'] = 'Gutschein versenden'; $aLang['voucher_redeemed'] = 'Voucher Redeemed';
$aLang['text_review_rating'] = 'Valutazione: %s [%s]'; $aLang['text_review_date_added'] = 'Data di inserimento: %s'; $aLang['text_no_reviews'] = 'Non ci sono recensioni per questo prodotto.'; $aLang['text_no_new_products'] = 'Non ci sono prodotti.'; $aLang['text_unknown_tax_rate'] = 'Tassa sconosciuta'; $aLang['text_required'] = 'Richiesto'; $aLang['error_oos_mail'] = '<small>ERRORE:</small> Non posso spedire le email tramite il server SMTP. Controlla la configurazione del tuo php.ini e correggi le impostazioni dell server SMTP se neccessario.'; $aLang['warning_install_directory_exists'] = 'Attenzione: La directory di installazione esiste locata in: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/install. Rimuovila per ragioni di sicurezza!.'; $aLang['warning_config_file_writeable'] = 'Attenzione: è possibile scrivere sul file di configurazione: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/configure.php. Questo è un rischio - configura tale file in sola lettura.'; $aLang['warning_session_auto_start'] = 'Attenzione: session.auto_start è abilitata - disabilitala nel file php.ini e riavvia il web server.'; $aLang['warning_download_directory_non_existent'] = 'Attenzione: La directory che contiene i download non esiste: ' . OOS_DOWNLOAD_PATH . '. I download non funzioneranno finche non verrà corretto questo errore.'; $aLang['warning_session_directory_non_existent'] = 'Attenzione: La directory che contiene la sessione non esiste: ' . oos_session_save_path() . '. La sessione non funzionerà finche non si corregge questo errore.'; $aLang['warning_session_directory_not_writeable'] = 'Attenzione: Non è possibile scrivere-lavorare sulla directory che contiene la sessione: ' . oos_session_save_path() . '. La sessione non funzionerà finche non verrà corretto questo errore.'; $aLang['text_ccval_error_invalid_date'] = 'La data di scadenza della carta di credito non è corretta.<br>Controlla la data e riprova.'; $aLang['text_ccval_error_invalid_number'] = 'Il numero della carta di credito immesso è invalido.<br>Controlla il numero e riprova.'; $aLang['text_ccval_error_unknown_card'] = 'I primi quattro numeri digitati sono: %s<br>Se questi numeri sono corretti, noi accettiamo la carta di credito.<br>Se non sono giusti, riprova.'; $aLang['voucher_balance'] = 'Resoconto Buoni'; $aLang['gv_faq'] = 'Buoni Sconto FAQ'; $aLang['error_redeemed_amount'] = 'Congratulazione, hai riscattato i buoni '; $aLang['error_no_redeem_code'] = 'Non hai inserito un codice di riscatto.'; $aLang['error_no_invalid_redeem_gv'] = 'Codice Buono Sconto Invalido'; $aLang['table_heading_credit'] = 'Credito Disponibile'; $aLang['gv_has_vouchera'] = 'Hai dei fondi nel tuo Account Buono Sconto. Se vuoi <br> li puoi spedire tramite'; $aLang['gv_has_voucherb'] = 'a qualcuno'; $aLang['entry_amount_check_error'] = 'Non hai abbastanza credito per spedire questa quantità.';
$aLang['text_by'] = ' por '; $aLang['text_review_by'] = 'por %s'; $aLang['text_review_word_count'] = '%s palabras'; $aLang['text_review_rating'] = 'Evaluacion:'; $aLang['text_review_date_added'] = 'Fecha Alta:'; $aLang['text_no_reviews'] = 'En este momento, no hay ningun comentario.'; $aLang['text_no_new_products'] = 'Ahora mismo no hay novedades.'; $aLang['text_unknown_tax_rate'] = 'Impuesto desconocido'; $aLang['text_required'] = 'Obligatorio'; $aLang['error_oos_mail'] = '<small>OOS ERROR:</small> No he podido enviar el email con el servidor SMTP especificado. Configura tu servidor SMTP en la seccion adecuada del fichero php.ini.'; $aLang['warning_install_directory_exists'] = 'Advertencia: El directorio de instalacion existe en: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/install. Por razones de seguridad, elimine este directorio completamente.'; $aLang['warning_config_file_writeable'] = 'Advertencia: Puedo escribir en el fichero de configuracion: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/configure.php. En determinadas circunstancias esto puede suponer un riesgo - por favor corriga los permisos de este fichero.'; $aLang['warning_session_auto_start'] = 'Advertencia: session.auto_start esta activado - desactive esta caracteristica en el fichero php.ini and reinicie el servidor web.'; $aLang['warning_download_directory_non_existent'] = 'Advertencia: El directorio para productos descargables no existe: ' . OOS_DOWNLOAD_PATH . '. Los productos descargables no funcionaran hasta que no se corriga este error.'; $aLang['warning_session_directory_non_existent'] = 'Advertencia: El directorio para guardar datos de sesión no existe: ' . oos_session_save_path() . '. Las sesiones no funcionarán hasta que no se corriga este error.'; $aLang['warning_session_directory_not_writeable'] = 'Avertencia: No puedo escribir en el directorio para datos de sesión: ' . oos_session_save_path() . '. Las sesiones no funcionarán hasta que no se corriga este error.'; $aLang['text_ccval_error_invalid_date'] = 'La fecha de caducidad de la tarjeta de credito es incorrecta.<br>Compruebe la fecha e intentelo de nuevo.'; $aLang['text_ccval_error_invalid_number'] = 'El numero de la tarjeta de credito es incorrecto.<br>Compruebe el numero e intentelo de nuevo.'; $aLang['text_ccval_error_unknown_card'] = 'Los primeros cuatro digitos de su tarjeta son: %s<br>Si este numero es correcto, no aceptamos este tipo de tarjetas.<br>Si es incorrecto, intentelo de nuevo.'; $aLang['voucher_balance'] = 'Voucher Balance'; $aLang['gv_faq'] = 'Gift Voucher FAQ'; $aLang['error_reedeemed_amount'] = 'Congratulations, you have redeemed '; $aLang['error_no_redeem_code'] = 'You did not enter a redeem code.'; $aLang['error_no_invalid_redeem_gv'] = 'Invalid Gift Voucher Code'; $aLang['table_heading_credit'] = 'Credits Available'; $aLang['gv_has_vouchera'] = 'You have funds in your Gift Voucher Account. If you want <br> you can send those funds by'; $aLang['gv_has_voucherb'] = 'to someone'; $aLang['entry_amount_check_error'] = 'You do not have enough funds to send this amount.'; $aLang['gv_send_to_friend'] = 'Send Gift Voucher'; $aLang['voucher_redeemed'] = 'Voucher Redeemed';
$aLang['text_review_by'] = 'de %s'; $aLang['text_review_word_count'] = '%s mots'; $aLang['text_review_rating'] = 'Évaluation:'; $aLang['text_review_date_added'] = 'Date ajoutée: '; $aLang['text_no_reviews'] = 'Il n\'y a pas encore d\'évaluations faites.'; $aLang['text_no_new_products'] = 'Il n\'y a actuellement pas de nouveaux articles.'; $aLang['text_unknown_tax_rate'] = 'Taux fiscal inconnu'; $aLang['text_required'] = 'Indispensable'; $aLang['error_oos_mail'] = '<small>ERREUR:</small> L\'e-mail ne peut pas être envoyée par le SMTP-Serveur indiqué. Veuillez s\'il vous plaît vérifier les données dans le fichier php.ini pour ensuite effectuer les corrections nécessaires!'; $aLang['warning_install_directory_exists'] = 'Avertissement: le répertoire d\'installation n\'existe pas encore sur: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/install. Veuillez supprimer le répertoire pour des raisons sécuritaires!'; $aLang['warning_config_file_writeable'] = 'Avertissement: OOS [OSIS Online Shop] peut rédiger dans le fichier de configuration: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/config.php. Ceci signifie un risque sécuritaire - veuillez corriger les autorisations d\'utilisateur pour ce ficher!'; $aLang['warning_session_auto_start'] = 'Avertissement: Veuillez désactiver cette caractéristique PHP dans php.ini et redémarrez le serveur WEB!'; $aLang['warning_download_directory_non_existent'] = 'Avertissement: Le répertoire pour le téléchargement de l\'article n\'existe pas: '******'. Cette fonction ne sera pas opérationnelle avant que le répertoire soit crée!'; $aLang['warning_session_directory_non_existent'] = 'Avertissement: Le répertoire n\'existe pas pour les sessions: ' . oos_session_save_path() . '. Les sessions ne seront pas opérationnelles avant que le répertoire soit crée!'; $aLang['warning_session_directory_not_writeable'] = 'Avertissement: OOS [OSIS Online Shop] ne peut pas rédiger dans le répertoire des sessions: ' . oos_session_save_path() . '. Les sessions ne seront pas opérationnelles avant que les autorisations d\'utilisateur correctes soient enregistrées!'; $aLang['text_ccval_error_invalid_date'] = 'La date "valable jusque" est nulle.<br>Veuillez corriger vos saisies.'; $aLang['text_ccval_error_invalid_number'] = 'Le "numéro de carte de crédit" que vous avez indiqué est invalide.<br>Veuillez corriger vos données.'; $aLang['text_ccval_error_unknown_card'] = 'Les premiers quatre chiffres de votre carte de crédit sont: %s<br>Si ces données concordent, ce type de carte ne peut malheureusement pas être accepté.<br>Veuillez corriger vos données dans le cas échéant.'; $aLang['voucher_balance'] = 'Bon - Avoir'; $aLang['gv_faq'] = 'Bon FAQ'; $aLang['error_redeemed_amount'] = 'Parfait: La valeur d\'encaissement vous a été créditée au compte client! '; $aLang['error_no_redeem_code'] = 'Vous n\'avez enregistré aucun code pour le bon!'; $aLang['error_no_invalid_redeem_gv'] = 'Erreur: Vous n\'avez enregistré aucun code valable pour le bon!'; $aLang['table_heading_credit'] = 'Avoir'; $aLang['gv_has_vouchera'] = 'Vous avez un bon - Avoir sur votre compte client. Souhaitez-vous <br>une partie de votre avoir par'; $aLang['gv_has_voucherb'] = 'envoyer?'; $aLang['entry_amount_check_error'] = ' <small><font color="#FF0000">Il n\'y a malheureusement pas de couverture suffisante sur votre compte client!</font></smal>'; $aLang['gv_send_to_friend'] = 'Envoyer le bon';
$aLang['text_review_by'] = 'van %s'; $aLang['text_review_word_count'] = '%s Woorden'; $aLang['text_review_rating'] = 'Beoordeling:'; $aLang['text_review_date_added'] = 'Datum toegevoegd: '; $aLang['text_no_reviews'] = 'Er zijn nog geen beoordelingen.'; $aLang['text_no_new_products'] = 'Op dit moment zijn er geen nieuwe produkten.'; $aLang['text_unknown_tax_rate'] = 'Onbekend belastingtarief'; $aLang['text_required'] = 'verplicht'; $aLang['error_oos_mail'] = '<small>Fout:</small> De email kan niet via de aangegeven SMTP-Server verstuurd worden. Controleer a.u.b. de instellingen in het php.ini bestand en voer de noodzakelijke correctie uit!'; $aLang['warning_install_directory_exists'] = 'Waarschuwing: De installatiemap is nog aanwezig op: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/install. Wis a.u.b. de map uit veiligheidsoverweging voor het systeem!'; $aLang['warning_config_file_writeable'] = 'Waarschuwing: OOS [OSIS Online Shop] kan in het configuratiebestand schrijven: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/configure.php. Dit geeft een mogelijk veiligheidrisico - corrigeer a.u.b. de toegangsrechten voor dit bestand!'; $aLang['warning_session_auto_start'] = 'Waarschuwing: session.auto_start is enabled - Zet deze PHP instelling op disable in de php.ini en start de WEB-Server opnieuw!'; $aLang['warning_download_directory_non_existent'] = 'Waarschuwing: De map voor de artikelen download bestaat niet: ' . OOS_DOWNLOAD_PATH . '. Deze functie zal niet functioneren totdat de map is aangemaakt!'; $aLang['warning_session_directory_non_existent'] = 'Waarschuwing: De map voor de de sessies bestaat niet: ' . oos_session_save_path() . '. De sessies zullen niet functioneren totdat de map is aangemaakt!'; $aLang['warning_session_directory_not_writeable'] = 'Waarschuwing: OOS [OSIS Online Shop] kan niet in de sessiesmap schrijven: ' . oos_session_save_path() . '. De ssessies zullen niet functioneren totdat de juiste toegangsrechten gezet zijn!'; $aLang['text_ccval_error_invalid_date'] = 'De "Geldig tot" datum is ongeldig.<br>Corrigeer a.u.b. uw gegevens.'; $aLang['text_ccval_error_invalid_number'] = 'Het "Credietkaartnummer", die u ingevoerd hebben, is ongeldig.<br/>Corrigeer a.u.b. uw gegevens.'; $aLang['text_ccval_error_unknown_card'] = 'De eerste 4 cijfers van uw credietkaart zijn: %s<br>Wanneer deze gegevens kloppen, wordt dit kaarttype helaas niet geaccepteerd.<br>Corrigeer a.u.b. uw gegevens indien nodig.'; $aLang['voucher_balance'] = 'Tegoedbon - tegoed'; $aLang['gv_faq'] = 'Tegoedbon FAQ'; $aLang['error_redeemed_amount'] = 'Uitstekend: De inwisselwaarde werd op uw rekening bijgeschreven! '; $aLang['error_no_redeem_code'] = 'U hebt geen tegoedboncode ingevoerd!'; $aLang['error_no_invalid_redeem_gv'] = 'Fout: U hebt geen geldige tegoedboncode ingevoerd!'; $aLang['table_heading_credit'] = 'Tegoed'; $aLang['gv_has_vouchera'] = 'U hebt een tegoedbon-tegoed op uw rekening. Wilt u een deel van uw <br> toegoed per'; $aLang['gv_has_voucherb'] = 'versturen?'; $aLang['entry_amount_check_error'] = ' <small><font color="#FF0000">Helaas geen voldoende dekking op uw klantenrekening!</font></smal>';
$aLang['text_by'] = ' by '; $aLang['text_review_by'] = 'by %s'; $aLang['text_review_word_count'] = '%s words'; $aLang['text_review_rating'] = 'Rating:'; $aLang['text_review_date_added'] = 'Date Added:'; $aLang['text_no_reviews'] = 'There are currently no product reviews.'; $aLang['text_no_new_products'] = 'There are currently no products.'; $aLang['text_unknown_tax_rate'] = 'Unknown tax rate'; $aLang['text_required'] = 'Required'; $aLang['error_oos_mail'] = '<small>OOS ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.'; $aLang['warning_install_directory_exists'] = 'Warning: Installation directory exists at: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/install. Please remove this directory for security reasons.'; $aLang['warning_config_file_writeable'] = 'Warning: I am able to write to the configuration file: ' . dirname(oos_server_get_var('SCRIPT_FILENAME')) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'; $aLang['warning_session_auto_start'] = 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.'; $aLang['warning_download_directory_non_existent'] = 'Warning: The downloadable products directory does not exist: ' . OOS_DOWNLOAD_PATH . '. Downloadable products will not work until this directory is valid.'; $aLang['warning_session_directory_non_existent'] = 'Warning: The sessions directory does not exist: ' . oos_session_save_path() . '. Sessions will not work until this directory is created.'; $aLang['warning_session_directory_not_writeable'] = 'Warning: I am not able to write to the sessions directory: ' . oos_session_save_path() . '. Sessions will not work until the right user permissions are set.'; $aLang['text_ccval_error_invalid_date'] = 'The expiry date entered for the credit card is invalid.<br>Please check the date and try again.'; $aLang['text_ccval_error_invalid_number'] = 'The credit card number entered is invalid.<br>Please check the number and try again.'; $aLang['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.'; $aLang['voucher_balance'] = 'Voucher Balance'; $aLang['gv_faq'] = 'Gift Voucher FAQ'; $aLang['error_redeemed_amount'] = 'Congratulations, you have redeemed '; $aLang['error_no_redeem_code'] = 'You did not enter a redeem code.'; $aLang['error_no_invalid_redeem_gv'] = 'Invalid Gift Voucher Code'; $aLang['table_heading_credit'] = 'Credits Available'; $aLang['gv_has_vouchera'] = 'You have funds in your Gift Voucher Account. If you want <br> you can send those funds by'; $aLang['gv_has_voucherb'] = 'to someone'; $aLang['entry_amount_check_error'] = 'You do not have enough funds to send this amount.'; $aLang['gv_send_to_friend'] = 'Send Gift Voucher'; $aLang['voucher_redeemed'] = 'Voucher Redeemed';
if (STORE_SESSIONS == '1') { $sessionstable = $oostable['sessions']; $session_data = $dbconn->Execute("SELECT data FROM $sessionstable WHERE sesskey = '" . $info . "'"); if (STORE_SESSIONS_CRYPT == '1') { include_once '../includes/lib/adodb/session/crypt.inc.php'; $Crypt = new MD5Crypt; $session_data = rawurldecode($Crypt->Decrypt(reset($session_data->fields), crypt(ADODB_Session::encryptionKey(), $info))); } else { $session_data = rawurldecode($session_data->fields['data']); } } else { if ( (file_exists(oos_session_save_path() . '/sess_' . $info)) && (filesize(oos_session_save_path() . '/sess_' . $info) > 0) ) { $session_data = file(oos_session_save_path() . '/sess_' . $info); $session_data = trim(implode('', $session_data)); } } $currency = unserialize(oos_get_serialized_variable($session_data, 'currency', 'string')); $cart = unserialize(oos_get_serialized_variable($session_data, 'cart', 'object')); if (isset($cart) && is_object($cart)) { $products = $cart->get_products(); for ($i = 0, $n = count($products); $i < $n; $i++) { $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']); } if (count($products) > 0) {