Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function main() {
- include( 'settings.php' );
- include( 'language.php' );
- $date = date( 'Y-m-d' );
- $memid = mysql_real_escape_string( $_SESSION['memid'] );
- $sms_general_select = mysql_fetch_array( mysql_query( 'select * from general_sms' ) );
- $rs0 = mysql_fetch_array( mysql_query( 'select * from zw_websetting' ) );
- $productid = mysql_real_escape_string( $_REQUEST['productid'] );
- $product_rating = mysql_real_escape_string( $_REQUEST['send'] );
- $list = mysql_real_escape_string( $_REQUEST['list'] );
- global $memid;
- $_SESSION['cartproid'] = $productid;
- $_SESSION['cartproid123'] = $productid;
- $_SESSION['cartpro'] = $productid;
- $product_id = mysql_fetch_array( mysql_query( '' . 'select * from products where id=\'' . $productid . '\'' ) );
- $query_str = '' . 'select * from products PR, category MC, subcategory SC, sub_cat SS where PR.id=\'' . $productid . '\' and PR.status=\'active\' and PR.main_cat=MC.categoryid';
- if ($product_id['sub_cat'] != '') {
- $query_str .= ' and PR.sub_cat=SC.subcategoryid';
- }
- if ($product_id['sub_subcat'] != '') {
- $query_str .= ' and PR.sub_subcat=SS.subcategoryid';
- }
- $product_fetch = mysql_fetch_array( mysql_query( $query_str ) );
- $merchant_id = $product_fetch['user_id'];
- $cat_id = $product_fetch['categoryid'];
- $product_code = $product_fetch['product_code'];
- $productid = $product_fetch['id'];
- $viewed_product = $product_fetch['viewed_product'];
- $view_product = $viewed_product + 1;
- $related_product = $product_fetch['related_product'];
- $len = strlen( $related_product );
- $related_product = substr( $related_product, 0, $len - 1 );
- $query = mysql_query( '' . 'update products set viewed_product=\'' . $view_product . '\' where id=\'' . $productid . '\'' );
- $delete = mysql_query( '' . 'delete from viewed_product where prod_id=' . $productid . ' and user_id=' . $memid );
- $vieweds = mysql_query( '' . 'insert into viewed_product set prod_id=' . $productid . ' , user_id=' . $memid );
- $product_image = mysql_fetch_array( mysql_query( '' . 'select * from products_image where product_code=\'' . $product_code . '\' ' ) );
- $product_image_small = mysql_query( '' . 'select * from products_image where product_code=\'' . $product_code . '\' and type=\'small\'' );
- $mem_fetch = mysql_fetch_array( mysql_query( '' . 'select * from job_seeker where id=\'' . $merchant_id . '\'' ) );
- $memidname = $mem_fetch['uname'];
- $mem_select = mysql_fetch_array( mysql_query( '' . 'select * from job_seeker where id=\'' . $memid . '\'' ) );
- $pay_fetch_select = mysql_query( '' . 'select * from payment where merchant_id=\'' . $merchant_id . '\' and pay_status=\'active\'' );
- $check_plan = mysql_fetch_array( mysql_query( '' . 'select * from plans where id=\'' . $mem_select['memid'] . '\'' ) );
- $brand_select = mysql_fetch_array( mysql_query( '' . 'select * from brand where status=\'active\' and brandid=\'' . $product_fetch['brand'] . '\'' ) );
- $payment_modes = $check_plan['payment_modes'];
- $exp_payments = explode( '|', $payment_modes );
- if ($_REQUEST['send'] != '') {
- include( 'logincheck.php' );
- $self = basename( $_SERVER['REQUEST_URI'] );
- $self = str_replace( 'send', 'null', $self );
- $get_rate_number = mysql_num_rows( mysql_query( '' . 'select * from orders OT, order_details OD where OT.memid=\'' . $merchant_id . '\' and OT.orderid=OD.orderid and OT.p_status=\'Received\'' ) );
- if ($get_rate_number == 0) {
- echo '' . '<script>window.location=\'' . $self . '&rate=not_purs\'</script>';
- exit( );
- }
- $get_rate_num = mysql_num_rows( mysql_query( '' . 'select * from product_feedback where merchant_id=\'' . $merchant_id . '\' and product_id=\'' . $productid . '\'' ) );
- if ($get_rate_num != 0) {
- echo '' . '<script>window.location=\'' . $self . '&rate=done_already\'</script>';
- exit( );
- }
- $insert_rating = mysql_query( '' . 'insert into product_feedback set
- mem_id = \'' . $memid . '\',
- merchant_id = \'' . $merchant_id . '\',
- product_id = \'' . $productid . '\',
- product_rating =\'' . $product_rating . '\',
- added_date=\'' . $date . '\'' );
- echo '' . '<script>window.location=\'' . $self . '\'</script>';
- }
- $tot_ratings = mysql_num_rows( mysql_query( '' . 'select * from product_feedback where product_id=\'' . $productid . '\'' ) );
- $i = 1;
- while ($i <= 5) {
- $star = mysql_num_rows( mysql_query( '' . 'select * from product_feedback where product_id=\'' . $productid . '\' and product_rating=\'' . $i . '\'' ) );
- $val_array[] = $star;
- ++$i;
- }
- $star_ratings = max( $val_array );
- $m = 1;
- while ($m <= 5) {
- $star = mysql_num_rows( mysql_query( '' . 'select * from product_feedback where product_id=\'' . $productid . '\' and product_rating=\'' . $m . '\'' ) );
- if (( ( $star_ratings == $star && $star != 0 ) && $star_ratings != 0 )) {
- $image_path = $m . 'star.jpg';
- $rate = $m;
- } else {
- if (( $star == 0 && $star_ratings == 0 )) {
- $image_path = '0star.jpg';
- $rate = 0;
- }
- }
- ++$m;
- }
- echo '<s';
- echo 'cript src="js/select_image.js" language="javascript"></script>
- <link rel="stylesheet" type="text/css" href="Contact-Pop/css/contact-pop.css" />
- ';
- echo '<s';
- echo 'cript type="text/javascript" src="Contact-Pop/js/popOverForm.js" ></script>
- ';
- echo '<s';
- echo 'cript type="text/javascript" src="Contact-Pop/js/jquery-1.3.2.min.js"></script>
- ';
- echo '<s';
- echo 'cript type="text/javascript" src="Contact-Pop/js/email-pop.js"></script>
- ';
- echo '<s';
- echo 'cript type="text/javascript" src="Contact-Pop/js/sms-pop.js"></script>
- </script>
- ';
- echo '<s';
- echo 'cript src="js/get_activity_id.js"></script>
- ';
- echo '<s';
- echo 'cript src="js/jquery.js"></script>
- ';
- echo '<s';
- echo 'cript src="js/jquery.min.js"></script>
- ';
- echo '<S';
- echo 'CRIPT type=text/javascript src="js/jquery.all.min.js"></SCRIPT>
- ';
- echo '<S';
- echo 'CRIPT type=text/javascript src="js/jquery.jqzoom-core-pack.js"></SCRIPT>
- ';
- echo '<S';
- echo 'CRIPT type=text/javascript src="js/zeescript.js"></SCRIPT>
- ';
- echo '<s';
- echo 'cript type="text/javascript">
- $(document).ready(function(){
- $("#image_over").mouseover(function(){
- $("#bigger_image").hide();
- $("#bigger_imagess").show();
- });
- $("#image_over").mouseout(function(){
- $("#bigger_image").show();
- $("#bigger_imagess").hide();
- });
- });
- </script>
- ';
- echo '<s';
- echo 'tyle type="text/css">
- .tdpdg{ padding:3px 5px 3px 5px;}
- .tdpdg3{ padding:3px 5px 3px 18px;}
- .tblhdg{background-color:#E7F1FA; color:#333333; font-size:16px; font-weight:bold; padding-left:10px;}
- .inr{font-size:24px; font-family:\'Times New Roman\', Times, serif; }
- .phone{padding-left:25px; padding-top:5px; padding-bottom:3px; background:url(images/phone.png) no-repeat left bottom;}
- .rating{
- w';
- echo 'idth:80px;
- height:16px;
- margin:5px 0 5px 0;
- padding:0;
- list-style:none;
- clear:both;
- position:relative;
- background: url(images/star-matrix.gif) no-repeat 0 0;
- }
- ul.rating li {
- cursor: pointer;
- float:left;
- text-indent:-999em;
- }
- ul.rating li a {
- position:absolute;
- left:0;
- top:0;
- width:16px;
- height:16px;
- text-decoration:none;
- z-index: 200;
- }
- ul.rating li.one a {left:0}
- ul.r';
- echo 'ating li.two a {left:16px;}
- ul.rating li.three a {left:32px;}
- ul.rating li.four a {left:48px;}
- ul.rating li.five a {left:64px;}
- .nostar {background-position:0 0}
- .onestar {background-position:0 -16px}
- .twostar {background-position:0 -32px}
- .threestar {background-position:0 -48px}
- .fourstar {background-position:0 -64px}
- .fivestar {background-position:0 -80px}
- ul.rating li a:hover {
- z';
- echo '-index:2;
- width:80px;
- height:16px;
- overflow:hidden;
- left:0;
- background: url(images/star-matrix.gif) no-repeat 0 0
- }
- ul.rating li.one a:hover {background-position:0 -96px;}
- ul.rating li.two a:hover {background-position:0 -112px;}
- ul.rating li.three a:hover {background-position:0 -128px}
- ul.rating li.four a:hover {background-position:0 -144px}
- ul.rating li.five a:hover {background-positio';
- .....................................................
- .............................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement