Server IP : 148.135.140.132 / Your IP : 18.220.47.149 Web Server : LiteSpeed System : Linux in-mum-web1116.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64 User : u496275626 ( 496275626) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u496275626/domains/mdnenterprises.in/public_html/ |
Upload File : |
<style type="text/css"> .footer-logo { display:flex; justify-content: center; align-items: center; } .polink { margin:0 auto; margin-bottom:1rem; } .polink li { text-align:center; margin:0.5rem 0.25rem; } @media (min-width: 10px) and (max-width: 726px) { .__MyText { padding-left: 5rem!important; } } /*close*/ .visited___Modal { max-width: 800px!important; margin: auto!important; padding-top: 4rem!important; } .___title___Most { color: #fff!important; } .__MyText h6 { font-weight: 700; margin-bottom: 1rem; font-size: 12px; text-align: left; } .___ComPrev { margin-left: 0!important; background: #232f3e!important; width: 33px!important; padding: 6px!important; height: fit-content; top: 45%; } .___right_Com { margin-left: 0!important; background: #232f3e!important; width: 33px!important; padding: 6px!important; height: fit-content; top: 45%; } .__MyText p { margin-top: 1rem; } .__MyText { text-align: left; padding: 1.65rem; } .__MyText small { font-size: 1rem!important; } .carousel-control-next, .carousel-control-prev { opacity: 1!important; } .close { color: #fff!important; opacity: 1!important; } ._price_xyz{ font-weight: 700!important; font-size: 2rem!important; } </style> <?php $message = ''; if(isset($_POST["subscribe"])) { $message = ' <h3 align="center"> New Subscriber</h3> <table border="1" width="100%" cellpadding="5" cellspacing="5" style="border-collapse: collapse"> <tr> <td colspan="2" style="text-align:center;font-size: 18px;font-weight: 600;">Subscriber From Website</td> </tr> <tr> <td width="30%">Email</td> <td width="70%">'.$_POST["email"].'</td> </tr> <tr> </tr> </table>'; require 'php_mail/class.phpmailer.php'; $mail = new PHPMailer; $mail->Host = "smtp.hostinger.com"; $mail->Port = '587'; $mail->SMTPAuth = true; $mail->Username = 'sales@redsun.com'; $mail->Password = 'Stereo@1879'; $mail->SMTPSecure = 'tls'; $mail->From = "sales@redsun.com"; $mail->FromName = "a4paper"; $mail->Mailer = "smtp"; $mail->AddAddress('order@redsun.com'); $mail->WordWrap = 50; $mail->IsHTML(true); $mail->Subject = "Newsletter From Website"; $mail->Body = $message; if($mail->Send()) { $message = '<script>alert("Successfully Subscribed");</script>'; //unlink($photo); } else { $message = '<script>alert("Error.......");</script>'; } } ?> <?php @print_r($message); ?> <footer class="footer-area"> <div class="footer-top" style="background:#000000;"> <div class="newlet"> <div class="container"> <div class="row"> <div class="col-md-5" style="margin: auto;"> <div class="single-wedge"> <h4 class="footer-herading">Signup To Receive Offers & Updates</h4> <div id="mc_embed_signup" class="subscribe-form"> <form method="post" action=""> <div class="mc-form"> <input class="email" type="email" required="" placeholder="Enter your email here.." name="email" value="" /> <div class="sucbtn"> <i class="fa fa-telegram"></i> </div> </div> </form> </div> </div> </div> </div> </div> </div> <div class="secfoot"> <div class="container"> <div class="row"> <!-- footer single wedget --> <div class="col-md-3 col-lg-3 footer-logo"> <img src="https://mdnenterprises.in/assets/images/logo/logo.png" width="150" /> </div> <div class="col-md-3 col-lg-3"> <!-- footer logo --> <!-- footer logo --> <div class="about-footer"> <h4 class="footer-herading">FOLLOW US</h4> <div class="social-info"> <a href="https://www.facebook.com/people/Mdn-Enterprises/100076297230275/" target="_blank" class="btn btn-sm btn-facebook text-white"><i class="fa fa-facebook"></i></a> <a href="https://twitter.com/mdnenterprises0" target="_blank" class="btn btn-sm btn-twitter text-white"><i class="fa fa-twitter"></i></a> <a href="https://www.instagram.com/mdnenterprises/" target="_blank" class="btn btn-sm btn-twitter text-white"><i class="fa fa-instagram"></i></a> <a href="https://www.youtube.com/@mdnenterprises" target="_blank" class="btn btn-sm btn-linkedin text-white"><i class="fa fa-youtube"></i></a> </div> </div> </div> <!-- footer single wedget --> <div class="col-md-3 col-lg-3"> <div class="single-wedge foright"> <h4 class="footer-herading">CONTACT US</h4> <div class="footer-links"> <p> If you’d like to get in touch, Please send us a mail during regular business hours. </p> <br> <p> contact@redsun.com </p> </div> </div> </div> <div class="col-md-3 col-lg-3"> <div class="single-wedge foright"> <h4 class="footer-herading">CATEGORIES</h4> <div class="footer-links"> <p class="text-center"> <a href="https://mdnenterprises.in/shop-brand/389/1/mcb" class="text-white">MCBS</a><br> <a href="https://mdnenterprises.in/shop-brand/390/1/accessories" class="text-white">Accessories</a><br> <a href="https://mdnenterprises.in/shop-brand/391/1/electrical-switches" class="text-white">Electrical switches</a><br> <a href="https://mdnenterprises.in/shop-brand/392/1/electrical-accessories" class="text-white">Electrical accessories</a> </p> </div> </div> </div> <!-- footer single wedget --> </div> </div> </div> </div> <!-- Footer Bottom Area start --> <div class="footer-bottom" style="background:#000000;"> <div class="container"> <div class="row text-center"> <ul class="polink"> <li><a href="<?=BASE_URL?>">Contact Us </a></li> <li><a href="<?=BASE_URL?>">Privacy Policy </a></li> <li><a href="<?=BASE_URL?>">Terms & Conditions </a></li> <li><a href="<?=BASE_URL?>">Return & Refund Policy </a></li> <li><a href="<?=BASE_URL?>">Shipping Policy </a></li> <li><a href="<?=BASE_URL?>">Disclaimer </a></li> </ul> </div> <div class="row"> <div class="col-md-12 col-lg-12"> <p class="copy-text" style="color: #ffffff;">Copyright © <a href="#"> redsun.com </a> All Rights Reserved</p> </div> <div class="col-md-12 col-lg-12"> <img class="payment-img" src="<?=BASE_URL?>assets/images/icons/payment.png" alt="" /> </div> </div> </div> </div> <!-- Footer Bottom Area End--> </footer> <div class="fixfoot"> <a class="fnav-item" href="<?=BASE_URL?>index.php"> <i class="fa fa-home"></i><span>Home</span> </a> <a class="fnav-item" href="<?=BASE_URL?>cart.php"> <i class="fa fa-shopping-cart"></i><span>Cart</span> </a> <a class="fnav-item" href="<?=BASE_URL?>my_account.php"> <i class="fa fa-user"></i><span>Profile</span> </a> </div> <!-- Footer Area End --> <script> feather.replace(); document.querySelector(".fnav-item").focus(); </script> <!-- ==================== Offer Popup Modal =================== --> <?php /*-------- Admin Control -------------*/ $where_con = "`popup_name`= 'Offer Coupon Popup'"; $c_query=$sel_obj->display_rcd('popup_control',$where_con); if(is_array($c_query) || !empty($c_query)) { foreach($c_query as $c_data) { } } /*--------------------------------------*/ $offer_coupon_status = json_decode($_COOKIE['offer_coupon_status'], true); if ($_COOKIE['visit_count']!=0 && isset($checksession) && ($_COOKIE['visit_count']%$c_data['frequent_visit'])==0 && $c_data['status']==1) { if ($offer_coupon_status['expire_at'] < time()) { $offer_day = $offer_coupon_status['day']+1; $offer_expire_at = $offer_coupon_status['expire_at']+86400; $offer_coupon_status_value = 0; }else{ $offer_day = $offer_coupon_status['day']; $offer_coupon_status_value = $offer_coupon_status['value']+1; $offer_expire_at = $offer_coupon_status['expire_at']; } $cookie_value = array( 'day'=>$offer_day, 'value'=>$offer_coupon_status_value, 'created_at'=> $offer_coupon_status['created_at'], 'expire_at'=> $offer_expire_at ); setcookie('offer_coupon_status', json_encode($cookie_value), $offer_coupon_status['created_at']+86400*30); /*------ Most Interested Product ------*/ $where_con = "`user_id`=" . "'$checksession'"; $u_p_q = $sel_obj->display_rcd_desc_by_key("user_product_log", $where_con, 'visited_qty'); $product_id = $u_p_q[0]['product_id']; // die(); /*---------- Product Info -------------*/ $where_product = "`status`=1 AND p_id=" . $product_id; $product_query = $sel_obj->display_rcd("product", $where_product); foreach($product_query as $product_data) { } /*---------- Category Info -------------*/ $where_categ = "p_id=" . $product_id; $product_categ = $sel_obj->display_rcd("multiple_category", $where_categ); foreach($product_categ as $categ_data) { } /*==== POPUP VARIABLE ON/OFF ====*/ $show_popup = 1; /*===============================*/ ?> <?php $where_condition0 = array('status' =>1); $coupon_query0 = $sel_obj->select_where("coupon", $where_condition0); if($offer_coupon_status['value']<$c_data['in_a_day'] && !empty($coupon_query0)){ ?> <!-- -------------- Get Coupon Info ---------------- --> <?php $pd = 1; foreach ($coupon_query0 as $coupon_d) { if ($offer_coupon_status['day']==$pd) { $discount = $coupon_d['discount']; } $pd++; } $where_condition = array('discount' =>$discount); $coupon_query = $sel_obj->select_where("coupon", $where_condition); foreach($coupon_query as $coupon_data) { } if(!empty($coupon_data)){ ?> <!-- ----------------------------------------------- --> <div class="modal fade" id="exampleModal_1" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog modal-md" role="document"> <div class="modal-content"> <div class="modal-header text-center" style="background-color:#000;color: #fff;"> <h5 class="modal-title text-center" id="exampleModalLabel">Big Offer</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="row"> <div class="col-md-12 text-center"> <div class="row"> <div class="col-md-4"> <img src="admin/img/coupon_image/<?php echo $coupon_data['image']; ?>" class="img-responsive" alt=""> </div> <div class="col-md-8"> <h5 class="mb-2"><?php echo $coupon_data['name']; ?> on Minimum Purchase Amount ₹<?php echo $coupon_data['amount']; ?></h5> <!-- <p><?php echo $coupon_data['amount']; ?></p> --> <p>Use Coupon Code : <b id="my_coupon"><?php echo $coupon_data['code']; ?></b> <button onclick="copy_coupon()" class="btn" title="Copy"><i class="fa fa-copy"></i></button></p> </div> </div> </div> </div> </div> </div> </div> </div> <script> $("#exampleModal_1").modal('show'); </script> <script> function copy_coupon() { var copyText = document.getElementById("my_coupon").innerHTML; navigator.clipboard.writeText(copyText); // alert("Copied the text: " + copyText); } </script> <?php } } } ?> <!-- ==================== TRENDING PRODUCT Popup Modal =================== --> <?php /*------ Most Trending Product ------*/ $select_key = "p_id"; $group_by_key = "p_id"; $limit = 5; $u_p_q = $sel_obj->get_best_selling_productList($select_key, $group_by_key, $limit); /*-------- Admin Control -------------*/ $where_con = "`popup_name`= 'Best Selling Popup'"; $c_query=$sel_obj->display_rcd('popup_control',$where_con); if(is_array($c_query) || !empty($c_query)) { foreach($c_query as $c_data) { } } /*--------------------------------------*/ ?> <?php $best_selling_status = json_decode($_COOKIE['best_selling_status'], true); if (($_COOKIE['visit_count']==1 || ($_COOKIE['visit_count']!=0 && $_COOKIE['visit_count']%$c_data['frequent_visit']==0 && $best_selling_status['value']<$c_data['in_a_day'])) && $c_data['status']==1) { $cookie_value = array( 'value'=>$best_selling_status['value']+1, 'created_at'=> $best_selling_status['created_at'], 'expire_at'=> $best_selling_status['expire_at'] ); setcookie('best_selling_status', json_encode($cookie_value), $best_selling_status['created_at']+86400); ?> <div class="modal fade pan_india" id="exampleModal_2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog modal-md visited___Modal" role="document"> <div class="modal-content"> <div class="modal-header" style="background-color: #232f3e;"> <h5 class="modal-title text-center text-light" id="exampleModalLabel">Best Selling Product</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"> <!-- Wrapper for slides --> <div class="carousel-inner" style="width: 100%; margin: auto; align-items: center;"> <?php $pn2 =1; foreach ($u_p_q as $best_product) { /*---------- Product Info -------------*/ $where_product = "`status`=1 AND p_id=" . $best_product['p_id']; $product_query = $sel_obj->display_rcd("product", $where_product); foreach($product_query as $product_data) { } /*---------- Category Info -------------*/ $where_categ = "p_id=" . $best_product['p_id']; $product_categ = $sel_obj->display_rcd("multiple_category", $where_categ); foreach($product_categ as $categ_data) { } ?> <div class="carousel-item <?php if($pn2==1){echo 'active'; } ?> text-center "> <div class="row"> <div class="col-md-5"> <a href="<?=BASE_URL?>product-details/<?php echo $product_data['p_id'];?>/<?=generateSlug($product_data['p_name']);?>"> <img src="<?=BASE_URL?>admin/upload/<?php echo $product_data['p_img'];?>" class="img-responsive" alt="" style="height: 110px; margin: auto!important;"> </a> </div> <div class="col-md-6 __MyText"> <h6><?php echo $product_data["p_name"]; ?></h6> <small>Product Code : <?php echo $product_data["p_code"]; ?></small> <p>MRP : <span class="font-weight-bold text-muted"><strike><?php echo "₹". round($product_data['price'],2);?></strike></span> <span class="_price_xyz"> <?php echo "₹". round($product_data['d_price'],2);?></span> </p> </div> </div> <a href="<?=BASE_URL?>product-details/<?php echo $product_data['p_id'];?>/<?=generateSlug($product_data['p_name']);?>" class="btn btn-sm btn-success mt-2">Buy Now</a> </div> <?php $pn2++; } ?> </div> <!-- Controls --> <a class="carousel-control-prev ___ComPrev" href="#carouselExampleIndicators" role="button" data-slide="prev" style="margin-left: -40px;"> <span class="carousel-control-prev-icon text-danger" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next ___right_Com" href="#carouselExampleIndicators" role="button" data-slide="next" style="margin-right: 2px;"> <span class="carousel-control-next-icon text-danger" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> </div> </div> </div> <script> $("#exampleModal_2").modal('show'); </script> <?php } ?> <!-- ========================================================== --> <!-- ==================== Most Visited PRODUCT Popup Modal =================== --> <?php /*------ Most Interested Product ------*/ $u_p_q = json_decode($_COOKIE['interested_product'], true); $keys = array_column($u_p_q, 'visited_qty'); array_multisort($keys, SORT_DESC, $u_p_q); array_unique($u_p_q); /*-------- Admin Control -------------*/ $where_con = "`popup_name`= 'Most Visited Popup'"; $c_query=$sel_obj->display_rcd('popup_control',$where_con); if(is_array($c_query) || !empty($c_query)) { foreach($c_query as $c_data) { } } /*--------------------------------------*/ ?> <?php $most_visited_status = json_decode($_COOKIE['most_visited_status'], true); if ($_COOKIE['visit_count']>1 && ($_COOKIE['visit_count']%$c_data['frequent_visit'])==0 && $most_visited_status['value']<$c_data['in_a_day'] && !empty($u_p_q) && $c_data['status']==1) { $cookie_value = array( 'value'=>$most_visited_status['value']+1, 'created_at'=> $most_visited_status['created_at'], 'expire_at'=> $most_visited_status['expire_at'] ); setcookie('most_visited_status', json_encode($cookie_value), $most_visited_status['created_at']+86400); ?> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="modal fade" id="exampleModal_3" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false"> <div class="modal-dialog modal-md visited___Modal" role="document"> <div class="modal-content"> <div class="modal-header" style="background-color:#232f3e;"> <h5 class="modal-title text-center ___title___Most" id="exampleModalLabel">Most Visited Product</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"> <!-- Wrapper for slides --> <div class="carousel-inner" style="width: 100%; margin: auto; align-items: center;"> <?php $pn3 =1; foreach ($u_p_q as $best_product) { /*---------- Product Info -------------*/ $where_product = "`status`=1 AND p_id=" . $best_product['product_id']; $product_query = $sel_obj->display_rcd("product", $where_product); foreach($product_query as $product_data) { } /*---------- Category Info -------------*/ if($best_product['product_id']!=''){ $where_categ = "p_id=" . $best_product['product_id']; $product_categ = $sel_obj->display_rcd("multiple_category", $where_categ); foreach($product_categ as $categ_data) { } if($pn3 <5){ ?> <div class="carousel-item <?php if($pn3==1){echo 'active'; } ?> text-center "> <div class="row"> <div class="col-md-5"> <a href="<?=BASE_URL?>product-details/<?php echo $product_data['p_id'];?>/<?=generateSlug($product_data['p_name']);?>"> <img src="<?=BASE_URL?>admin/upload/<?php echo $product_data['p_img'];?>" class="img-responsive" alt="" style="max-height: 240px; margin: auto!important;"> </a> </div> <div class="col-md-7 __MyText"> <h6><?php echo $product_data["p_name"]; ?></h6> <small>Product Code : <?php echo $product_data["p_code"]; ?></small> <p>MRP : <span class="font-weight-bold text-muted"><strike><?php echo "₹". round($product_data['price'],2);?></strike></span> <span class="_price_xyz"> <?php echo "₹". round($product_data['d_price'],2);?></span> </p> </div> </div> <a href="<?=BASE_URL?>product-details/<?php echo $product_data['p_id'];?>/<?=generateSlug($product_data['p_name']);?>" class="btn btn-sm btn-success mt-2">Buy Now</a> </div> <?php $pn3++; } } } ?> <!-- Controls --> <a class="carousel-control-prev ___ComPrev" href="#carouselExampleIndicators" role="button" data-slide="prev" style="margin-left: -40px;"> <span class="carousel-control-prev-icon text-danger" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next ___right_Com" href="#carouselExampleIndicators" role="button" data-slide="next" style=""> <span class="carousel-control-next-icon text-danger" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> </div> </div> </div> <?php if($_COOKIE['interested_product']!=""){ ?> <script> $("#exampleModal_3").modal('show'); </script> <?php } ?> <?php /*==== Update Cookie For Most visited product Popup ====*/ setcookie('most_visited', 1 , time()+86400); ?> <?php } ?> <!-- ========================================================== --> </div> </div> </div> </div> <style> @media(max-width:768px){ .pan_india .modal-dialog .modal-body { padding: 8px 15px; } .modal-header{ padding:5px 1rem; } } .pan_india .visited___Modal { max-width: 800px!important; margin: auto!important; padding-top: 0rem!important; } .__MyText h6{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #gb-widget-1569 { bottom:50px !important; } </style> <!--====== Vendors js ======--> <script src="<?=BASE_URL?>assets/js/vendor/modernizr-3.7.1.min.js"></script> <script src="<?=BASE_URL?>assets/js/plugins.min.js"></script> <script src="<?=BASE_URL?>assets/js/jitu.js"></script> <script src="<?=BASE_URL?>assets/js/temp_cart.js"></script> <script src="<?=BASE_URL?>assets/js/notify.js"></script> <!-- GetButton.io widget --> <script type="text/javascript"> (function () { var options = { whatsapp: "+919990666555", // WhatsApp number call: "+919990666555", // Call phone number call_to_action: "Message us", // Call to action button_color: "#FF6550", // Color of button position: "left", // Position may be 'right' or 'left' order: "whatsapp,call", // Order of buttons }; var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host; var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js'; s.onload = function () { WhWidgetSendButton.init(host, proto, options); }; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })(); </script> <!-- /GetButton.io widget --> </body> </html>