<?php
/* --------------------------------------------------------------
reviews.php 2009-01-22 gm
Gambio OHG
http://www.gambio.de
Copyright (c) 2008 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(reviews.php,v 1.48 2003/05/27); www.oscommerce.com
(c) 2003 nextcommerce (reviews.php,v 1.12 2003/08/17); www.nextcommerce.org
(c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: reviews.php 1238 2005-09-24 10:51:19Z mz $)
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include ('includes/application_top.php');
$breadcrumb->add(NAVBAR_TITLE_REVIEWS, xtc_href_link(FILENAME_REVIEWS));
$smarty = new Smarty;
// include boxes
require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
// include needed functions
require_once (DIR_FS_INC.'xtc_word_count.inc.php');
require_once (DIR_FS_INC.'xtc_date_long.inc.php');
require (DIR_WS_INCLUDES.'header.php');
if ($_SESSION['customers_status']['customers_status_read_reviews'] == 0) {
xtc_redirect(xtc_href_link(FILENAME_LOGIN, '', 'SSL'));
}
$reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 250) as reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, p.products_image, r.customers_name from ".TABLE_REVIEWS." r, ".TABLE_REVIEWS_DESCRIPTION." rd, ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd where p.products_status = '1' and p.products_id = r.products_id and r.reviews_id = rd.reviews_id and p.products_id = pd.products_id and pd.language_id = '".(int) $_SESSION['languages_id']."' and rd.languages_id = '".(int) $_SESSION['languages_id']."' order by r.reviews_id DESC";
$reviews_split = new splitPageResults($reviews_query_raw, $_GET['page'], MAX_DISPLAY_NEW_REVIEWS);
if ($reviews_split->number_of_rows > 0) {
$smarty->assign('NAVBAR', '
<div>
<div class="box_left">
'.$reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS).'
</div>
<div class="box_right align_right">
'.TEXT_RESULT_PAGE.' '.$reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array ('page', 'info', 'x', 'y'))).'
</div>
</div>');
}
$module_data = array ();
if ($reviews_split->number_of_rows > 0) {
$reviews_query = xtc_db_query($reviews_split->sql_query);
while ($reviews = xtc_db_fetch_array($reviews_query)) {
// BOF GM_MOD:
$module_data[] = array ('PRODUCTS_IMAGE' => DIR_WS_THUMBNAIL_IMAGES.$reviews['products_image'],
'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']),
'PRODUCTS_NAME' => $reviews['products_name'],
'AUTHOR' => $reviews['customers_name'],
'TEXT' => '('.sprintf(TEXT_REVIEW_WORD_COUNT, xtc_word_count($reviews['reviews_text'], ' ')).')<br />'.htmlspecialchars($reviews['reviews_text']).'..',
'RATING' => xtc_image('templates/'.CURRENT_TEMPLATE.'/img/stars_'.$reviews['reviews_rating'].'.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])),
'REVIEW_TEXT' => htmlspecialchars($reviews['reviews_text']),
);
}
$smarty->assign('module_content', $module_data);
}
$smarty->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/reviews.html');
} else {
$smarty->caching = 1;
$smarty->cache_lifetime = CACHE_LIFETIME;
$smarty->cache_modified_check = CACHE_CHECK;
// BOF GM_MOD:
$cache_id = $_SESSION['language'].$_GET['page'];
$main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/reviews.html', $cache_id);
}
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('main_content', $main_content);
$smarty->caching = 0;
if (!defined(RM))
$smarty->load_filter('output', 'note');
$smarty->display(CURRENT_TEMPLATE.'/index.html');
include ('includes/application_bottom.php');
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| PdfCreator/ | 2013-11-12 21:09 | 202.72 KB | 76129f60960:kunden | dxwrx-rx-r | |
| StyleEdit/ | 2013-11-12 21:10 | 1.42 MB | 76129f60960:kunden | dxwrx-rx-r | |
| actindo/ | 2013-11-12 20:52 | 340.67 KB | 76129f60960:kunden | dxwrx-rx-r | |
| admin/ | 2013-11-12 20:53 | 16.69 MB | 76129f60960:kunden | dxwrx-rx-r | |
| cache/ | 2025-01-28 22:35 | 150.58 KB | 76129f60960:kunden | dxwrx-rx-r | |
| callback/ | 2013-11-12 21:01 | 390.73 KB | 76129f60960:kunden | dxwrx-rx-r | |
| download/ | 2025-01-28 22:35 | 109 B | 76129f60960:kunden | dxwrx-rx-r | |
| export/ | 2013-11-12 22:46 | 179.73 KB | 76129f60960:kunden | dxwrx-rx-r | |
| ext/ | 2013-11-12 21:01 | 271.04 KB | 76129f60960:kunden | dxwrx-rx-r | |
| gm/ | 2013-11-12 21:03 | 2.27 MB | 76129f60960:kunden | dxwrx-rx-r | |
| iclear/ | 2013-11-12 21:04 | 1.05 MB | 76129f60960:kunden | dxwrx-rx-r | |
| images/ | 2013-11-14 15:48 | 11.41 MB | 76129f60960:kunden | dxwrx-rx-r | |
| import/ | 2013-11-12 21:05 | 2 B | 76129f60960:kunden | dxwrx-rx-r | |
| inc/ | 2013-11-12 21:05 | 349.91 KB | 76129f60960:kunden | dxwrx-rx-r | |
| includes/ | 2025-01-28 22:35 | 3.75 MB | 76129f60960:kunden | dxwrx-rx-r | |
| lang/ | 2013-11-12 21:07 | 1.95 MB | 76129f60960:kunden | dxwrx-rx-r | |
| lettr/ | 2025-01-28 22:35 | 25.98 KB | 76129f60960:kunden | dxwrx-rx-r | |
| logfiles/ | 2018-07-12 04:18 | 330.63 KB | 76129f60960:kunden | dxwrx-rx-r | |
| media/ | 2013-11-12 22:32 | 15.49 KB | 76129f60960:kunden | dxwrx-rx-r | |
| promo/ | 2013-11-12 21:09 | 119.04 KB | 76129f60960:kunden | dxwrx-rx-r | |
| pub/ | 2025-01-28 22:35 | 38 B | 76129f60960:kunden | dxwrx-rx-r | |
| shopgate/ | 2025-01-28 22:35 | 811.32 KB | 76129f60960:kunden | dxwrx-rx-r | |
| system/ | 2013-11-12 21:11 | 678.06 KB | 76129f60960:kunden | dxwrx-rx-r | |
| templates/ | 2013-11-12 21:11 | 1.71 MB | 76129f60960:kunden | dxwrx-rx-r | |
| templates_c/ | 2017-11-16 23:11 | 158.67 KB | 76129f60960:kunden | dxwrx-rx-r | |
| user_classes/ | 2013-11-12 21:14 | 12.3 KB | 76129f60960:kunden | dxwrx-rx-r | |
| .DS_Store | 2013-11-12 20:51 | 24 KB | 76129f60960:kunden | -xw-x----- | |
| .htaccess | 2025-01-28 22:35 | 99 B | 76129f60960:kunden | -xw-x----- | |
| LICENSE.txt | 2013-11-12 20:52 | 17.83 KB | 76129f60960:kunden | -xw-x----- | |
| LIZENZUEBERSETZUNG.txt | 2013-11-12 20:52 | 25.33 KB | 76129f60960:kunden | -xw-x----- | |
| WICHTIGE_HINWEISE.txt | 2013-11-12 20:52 | 1.87 KB | 76129f60960:kunden | -xw-x----- | |
| account.php | 2013-11-12 20:51 | 1.93 KB | 76129f60960:kunden | -xw-x----- | |
| account_edit.php | 2013-11-12 20:51 | 16.32 KB | 76129f60960:kunden | -xw-x----- | |
| account_history.php | 2013-11-12 20:51 | 5 KB | 76129f60960:kunden | -xw-x----- | |
| account_history_info.php | 2013-11-12 20:51 | 6.57 KB | 76129f60960:kunden | -xw-x----- | |
| account_password.php | 2013-11-12 20:51 | 7.01 KB | 76129f60960:kunden | -xw-x----- | |
| address_book.php | 2013-11-12 20:51 | 1.81 KB | 76129f60960:kunden | -xw-x----- | |
| address_book_process.php | 2013-11-12 20:51 | 16.86 KB | 76129f60960:kunden | -xw-x----- | |
| advanced_search.php | 2013-11-12 20:51 | 1.63 KB | 76129f60960:kunden | -xw-x----- | |
| advanced_search_result.php | 2013-11-12 20:51 | 12.1 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_confirmation.php | 2013-11-12 20:51 | 27.82 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_iclear.php | 2013-11-12 20:51 | 8.82 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_payment.php | 2013-11-12 20:51 | 16.71 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_payment_address.php | 2013-11-12 20:51 | 12.14 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_process.php | 2013-11-12 20:51 | 36.23 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_qpay.php | 2013-11-12 20:51 | 2.67 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_shipping.php | 2013-11-12 20:51 | 14.43 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_shipping_address.php | 2013-11-12 20:51 | 12.66 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_success.php | 2013-11-12 20:51 | 5.89 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_vrepay_elv.php | 2013-11-12 20:51 | 2.3 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_vrepay_giropay.php | 2013-11-12 20:51 | 1.52 KB | 76129f60960:kunden | -xw-x----- | |
| checkout_vrepay_kreditkarte.php | 2013-11-12 20:51 | 2.33 KB | 76129f60960:kunden | -xw-x----- | |
| clickandbuy_check.php | 2013-11-12 20:51 | 3.94 KB | 76129f60960:kunden | -xw-x----- | |
| clickandbuy_ems_push_endpoint.php | 2013-11-12 20:51 | 3.48 KB | 76129f60960:kunden | -xw-x----- | |
| cookie_usage.php | 2013-11-12 20:51 | 1.92 KB | 76129f60960:kunden | -xw-x----- | |
| cout_qpay_iframe.php | 2013-11-12 20:51 | 1 KB | 76129f60960:kunden | -xw-x----- | |
| create_account.php | 2013-11-12 20:51 | 38.03 KB | 76129f60960:kunden | -xw-x----- | |
| create_guest_account.php | 2013-11-12 20:51 | 31.6 KB | 76129f60960:kunden | -xw-x----- | |
| display_vvcodes.php | 2013-11-12 20:51 | 750 B | 76129f60960:kunden | -xw-x----- | |
| download.php | 2013-11-12 20:51 | 3.75 KB | 76129f60960:kunden | -xw-x----- | |
| fax.html | 2013-11-12 20:51 | 3.99 KB | 76129f60960:kunden | -xw-x----- | |
| gm_account_delete.php | 2013-11-12 20:51 | 2.92 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ajax.php | 2013-11-12 20:51 | 1.82 KB | 76129f60960:kunden | -xw-x----- | |
| gm_corner.gif.php | 2013-11-12 20:51 | 3.39 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter.php | 2013-11-12 20:51 | 143 B | 76129f60960:kunden | -xw-x----- | |
| gm_counter_set_screen.php | 2013-11-12 20:51 | 1.16 KB | 76129f60960:kunden | -xw-x----- | |
| gm_create_vvcodes.php | 2013-11-12 20:51 | 533 B | 76129f60960:kunden | -xw-x----- | |
| gm_css_monitor.php | 2013-11-12 20:51 | 8.94 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ebay.php | 2013-11-12 20:51 | 917 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint.js.php | 2013-11-12 20:51 | 1002 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_ajax.php | 2013-11-12 20:52 | 38.48 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_download.php | 2013-11-12 20:52 | 1.76 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_order_ajax.php | 2013-11-12 20:52 | 1.47 KB | 76129f60960:kunden | -xw-x----- | |
| gm_guestbook.php | 2013-11-12 20:52 | 2.52 KB | 76129f60960:kunden | -xw-x----- | |
| gm_javascript.js.php | 2013-11-12 20:52 | 4.3 KB | 76129f60960:kunden | -xw-x----- | |
| gm_opensearch.php | 2013-11-12 20:52 | 718 B | 76129f60960:kunden | -xw-x----- | |
| gm_price_offer.php | 2013-11-12 20:52 | 1.57 KB | 76129f60960:kunden | -xw-x----- | |
| gm_privacy.php | 2013-11-12 20:52 | 3.2 KB | 76129f60960:kunden | -xw-x----- | |
| gm_product_export_cron.php | 2013-11-12 20:52 | 4.4 KB | 76129f60960:kunden | -xw-x----- | |
| gv_redeem.php | 2013-11-12 20:52 | 3.84 KB | 76129f60960:kunden | -xw-x----- | |
| gv_send.php | 2013-11-12 20:52 | 9.58 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_3dsecure.php | 2013-11-12 20:52 | 966 B | 76129f60960:kunden | -xw-x----- | |
| heidelpay_3dsecure_return.php | 2013-11-12 20:52 | 1.5 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_checkout_iframe.php | 2013-11-12 20:52 | 1.19 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_iframe.php | 2013-11-12 20:52 | 1.24 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_redirect.php | 2013-11-12 20:52 | 2.68 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_response.php | 2013-11-12 20:52 | 3.95 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_style.css | 2013-11-12 20:52 | 1.27 KB | 76129f60960:kunden | -xw-x----- | |
| heidelpay_success.php | 2013-11-12 20:52 | 4.6 KB | 76129f60960:kunden | -xw-x----- | |
| index.php | 2013-11-12 20:52 | 5.89 KB | 76129f60960:kunden | -xw-x----- | |
| login.php | 2013-11-12 20:52 | 2.63 KB | 76129f60960:kunden | -xw-x----- | |
| login_admin.php | 2013-11-12 20:52 | 6.06 KB | 76129f60960:kunden | -xw-x----- | |
| login_mobile.php | 2013-11-12 20:52 | 3.75 KB | 76129f60960:kunden | -xw-x----- | |
| logoff.php | 2013-11-12 20:52 | 2.1 KB | 76129f60960:kunden | -xw-x----- | |
| magnaCallback.php | 2013-11-12 20:52 | 20.86 KB | 76129f60960:kunden | -xw-x----- | |
| magnalister_compatibility_check.php | 2013-11-12 20:52 | 17.23 KB | 76129f60960:kunden | -xw-x----- | |
| media_content.php | 2013-11-12 20:52 | 2.6 KB | 76129f60960:kunden | -xw-x----- | |
| mkd_@_.html | 2014-05-29 21:30 | 5.84 KB | 76129f60960:kunden | -xw-x----- | |
| moneybookers_iframe.php | 2013-11-12 20:52 | 3.07 KB | 76129f60960:kunden | -xw-x----- | |
| newsletter.php | 2013-11-12 20:52 | 10.64 KB | 76129f60960:kunden | -xw-x----- | |
| notify_vrepay_elv.php | 2013-11-12 20:52 | 3.72 KB | 76129f60960:kunden | -xw-x----- | |
| notify_vrepay_giropay.php | 2013-11-12 20:52 | 3.77 KB | 76129f60960:kunden | -xw-x----- | |
| notify_vrepay_kreditkarte.php | 2013-11-12 20:52 | 3.81 KB | 76129f60960:kunden | -xw-x----- | |
| password_double_opt.php | 2013-11-12 20:52 | 11.65 KB | 76129f60960:kunden | -xw-x----- | |
| paypal_api_check.php | 2013-11-12 20:52 | 7.37 KB | 76129f60960:kunden | -xw-x----- | |
| paypal_checkout.php | 2013-11-12 20:52 | 39.45 KB | 76129f60960:kunden | -xw-x----- | |
| popup_content.php | 2013-11-12 20:52 | 3.3 KB | 76129f60960:kunden | -xw-x----- | |
| popup_coupon_help.php | 2013-11-12 20:52 | 5.08 KB | 76129f60960:kunden | -xw-x----- | |
| popup_cvv.php | 2013-11-12 20:52 | 2.69 KB | 76129f60960:kunden | -xw-x----- | |
| popup_image.php | 2013-11-12 20:52 | 5.03 KB | 76129f60960:kunden | -xw-x----- | |
| popup_search_help.php | 2013-11-12 20:52 | 1.64 KB | 76129f60960:kunden | -xw-x----- | |
| print_order.php | 2013-11-12 20:52 | 3.23 KB | 76129f60960:kunden | -xw-x----- | |
| print_product_info.php | 2013-11-12 20:52 | 7.29 KB | 76129f60960:kunden | -xw-x----- | |
| product_info.php | 2013-11-12 20:52 | 2.63 KB | 76129f60960:kunden | -xw-x----- | |
| product_reviews.php | 2013-11-12 20:52 | 4.58 KB | 76129f60960:kunden | -xw-x----- | |
| product_reviews_info.php | 2013-11-12 20:52 | 4.92 KB | 76129f60960:kunden | -xw-x----- | |
| product_reviews_write.php | 2013-11-12 20:52 | 7.13 KB | 76129f60960:kunden | -xw-x----- | |
| products_new.php | 2013-11-12 20:52 | 8.04 KB | 76129f60960:kunden | -xw-x----- | |
| redirect.php | 2013-11-12 20:52 | 3.77 KB | 76129f60960:kunden | -xw-x----- | |
| release_info.php | 2013-11-12 20:52 | 82 B | 76129f60960:kunden | -xw-x----- | |
| request_port.php | 2013-11-12 20:52 | 5.4 KB | 76129f60960:kunden | -xw-x----- | |
| reviews.php | 2013-11-12 20:52 | 4.25 KB | 76129f60960:kunden | -xw-x----- | |
| robots.txt | 2013-11-12 20:52 | 3.36 KB | 76129f60960:kunden | -xw-x----- | |
| send_order.php | 2013-11-12 20:52 | 9.69 KB | 76129f60960:kunden | -xw-x----- | |
| shop_content.php | 2013-11-12 20:52 | 8.22 KB | 76129f60960:kunden | -xw-x----- | |
| shopping_cart.php | 2013-11-12 20:52 | 2.08 KB | 76129f60960:kunden | -xw-x----- | |
| show_product_thumbs.php | 2013-11-12 20:52 | 2.33 KB | 76129f60960:kunden | -xw-x----- | |
| sitemap1.xml | 2013-11-14 19:16 | 2.04 KB | 76129f60960:kunden | -xw-x----- | |
| specials.php | 2013-11-12 20:52 | 5.02 KB | 76129f60960:kunden | -xw-x----- | |
| ssl_check.php | 2013-11-12 20:52 | 1.9 KB | 76129f60960:kunden | -xw-x----- | |
| stylesheet_new.css | 2013-11-12 20:52 | 26.88 KB | 76129f60960:kunden | -xw-x----- | |
| vrepay_kreditkarte.php | 2013-11-12 20:52 | 26.35 KB | 76129f60960:kunden | -xw-x----- | |
| wish_list.php | 2013-11-12 20:52 | 2.28 KB | 76129f60960:kunden | -xw-x----- | |
| wpcallback.php | 2013-11-12 20:52 | 3.5 KB | 76129f60960:kunden | -xw-x----- | |
| xtbcallback.php | 2013-11-12 20:52 | 12.48 KB | 76129f60960:kunden | -xw-x----- | |
| yatego.php | 2013-11-12 20:52 | 1.36 KB | 76129f60960:kunden | -xw-x----- | |