コード例 #1
0
        ob_start();
        if (strpos($shop_content_data['content_file'], '.txt')) {
            echo '<pre>';
        }
        include DIR_FS_CATALOG . 'media/content/' . $shop_content_data['content_file'];
        if (strpos($shop_content_data['content_file'], '.txt')) {
            echo '</pre>';
        }
        $smarty->assign('file', ob_get_contents());
        ob_end_clean();
    } else {
        $content_body = $shop_content_data['content_text'];
    }
    if (SESSION_LANGUAGE == 'german') {
        require_once DIR_FS_INC . 'olc_silbentrennung.inc.php';
        $content_body = olc_silbentrennung($content_body);
    }
    $smarty->assign('CONTENT_BODY', $content_body);
    //W. Kaiser - AJAX
    $is_popup = isset($_GET['pop_up']);
    if ($is_popup) {
        $button = "button_window_close.gif";
        $button_action = "window.close();";
    } else {
        $button = "button_continue_shopping.gif";
        $button_action = USE_AJAX ? $button_action = "button_left()" : "history.back(1)";
    }
    $smarty->assign('BUTTON_CONTINUE', '<a href="javascript:' . $button_action . '">' . olc_image_button($button, IMAGE_BUTTON_BACK) . HTML_A_END);
    //W. Kaiser - AJAX
    $main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'content' . HTML_EXT, SMARTY_CACHE_ID);
}
コード例 #2
0
             $fernag_info = file_get_contents();
             $is_text_file = strpos($content_file, '.txt') !== false;
         } else {
             $fernag_info = $shop_content_data['content_text'];
             $is_text_file = false;
         }
         $use_html_email = $customer_email_type == EMAIL_TYPE_HTML;
         if ($is_text_file) {
             if ($use_html_email) {
                 $fernag_info = '<pre>' . $fernag_info . '</pre>';
             }
         } else {
             if ($use_html_email) {
                 if (SESSION_LANGUAGE == 'german') {
                     require_once DIR_FS_INC . 'olc_silbentrennung.inc.php';
                     $fernag_info = olc_silbentrennung($fernag_info);
                 }
             } else {
                 $fernag_info = str_replace(HTML_NBSP, BLANK, $fernag_info);
                 $fernag_info = nl2br($fernag_info);
                 $fernag_info = strip_tags($fernag_info);
                 $fernag_info = html_entity_decode($fernag_info);
             }
         }
         $smarty->assign('FERNAG_INFO', $fernag_info);
     }
 }
 $attachment_agb = "lang" . SLASH . SESSION_LANGUAGE . SLASH . "agb.pdf";
 $agb_info = true;
 if (file_exists($attachment_agb)) {
     $attachment_agb = basename($attachment_agb);