BLACKSITE
:
216.73.217.4
:
104.37.75.190 / alpenpass.ca
:
Linux server3.pointsplan.com 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
:
/
home
/
apca
/
www
/
Upload File:
files >> /home/apca/www/viewblog.php
<?php /** * require("includes/lib/common.php"); */ ini_set('display_errors', 0); require_once("includes/lib/common.php"); require_once("includes/lib/configure.php"); require_once("includes/lib/classes/a/blogs.php"); require("includes/lib/classes/a/blogcategory.php"); require("includes/lib/classes/a/blogwriters.php"); require("includes/lib/classes/a/writermessages.php"); ##include_once('slim-contact-form/conf.php' ); ##include_once('slim-contact-form/lib/class.phpmailer.php' ); // include_once("includes/head.php"); if(!isset($blogs)) $blogs = new blogs(); $category = new blogcategory(); $writer = new blogwriters(); $msgs = new writermessages(); $blog_id = $request->getvalue('blog_id'); $blog_name = $request->getvalue('blog_name'); if($blogs->blog_id > 0) $blog_id = $blogs->blog_id; if($blog_id>0) { $blogs->load($blog_id); $writer->load($blogs->user_id); }else{ exit(); } $message = $request->postvalue('message'); if((($_SESSION['security_code'] != $_POST['security_code']) OR empty($_SESSION['security_code'])) && $message!='') { $invalid_code = 1; } if($message!='' && $invalid_code!='1'){ $msgs->sender_first_name = $request->postvalue('first_name'); $msgs->sender_last_name = $request->postvalue('last_name'); $msgs->sender_email = $request->postvalue('email'); $msgs->sender_phone = $request->postvalue('sender_phone'); $msgs->message_contents = $request->postvalue('message'); $msgs->writer_id = $blogs->user_id; $msgs->blog_id = $blogs->blog_id; $msgs->date_sent = date("Y-m-d H:i:s"); $msgs->save(); $msgsent = 1; unset($_POST); $emailmsg = '<table width="899" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#EEE;"> <tr> <td><img src="images/logo.png" /></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="20"> <tr>'; //<td>Dear '.$writer->first_name.' '.$writer->last_name.'</td> $emailmsg .= '<td>Hi :</td> <td> </td> </tr> <tr> <td>'.$request->postvalue('first_name').' '.$request->postvalue('last_name').' has sent you following message from your <a href="/view/'.$blogs->blog_id.'">blog</a> on AlpenPass Motorcycle Rentals. Here are the details</td> <td> </td> </tr> <tr> <td colspan="2"><p> Name : '.$request->postvalue('first_name').' '.$request->postvalue('last_name').'<br /> Email : '.$request->postvalue('email').'<br /> Contact : '.$request->postvalue('phone').'<br /> Message : '.$request->postvalue('message') .' <br /> </p></td> </tr> <tr> <td>Thank You,<br /> AlpenPass Team</td> <td> </td> </tr> </table></td> </tr> </table>'; } ?> <?php session_start(); include('includes/config.php'); error_reporting(0); $pageName=$blogs->blog_name; include('includes/head.php'); include('includes/header.php');?> <style> .no_results { font-size: 20px; margin-top: 20px; text-align: center; } .pageOn { background: none repeat scroll 0 0 #CCCCCC; border: 1px solid #336699; color: #336699; margin: 2px 4px; padding: 2px 4px; } .pageOff { background: none repeat scroll 0 0 #EEEEEE; border: 1px solid #336699; color: #336699; margin: 2px 4px; padding: 2px 4px; } .pageOff:hover { background: none repeat scroll 0 0 #DDDDDD; cursor: pointer; } .pageOff a { color: #000000; text-decoration: none; } .paginationSelect { background: none repeat scroll 0 0 #EEEEEE; } .paginationErrors { background: none repeat scroll 0 0 #FFDD99; border: 2px dashed #DD9900; clear: both; color: #AA4400; margin: 40px auto; padding: 10px; text-align: left; size:18px; width: 70%; } .blogtitle { color: #646464; line-height: 1.2em; text-decoration: none; transition: all 0.2s ease-in-out 0s;} .bloglist{ min-height:150px; overflow:hidden; background-color:#EEE; margin:10px; padding:10px;; } .tags { /* display:block;*/ padding:4px 10px 4px 10px; background-color: #fb4d59 !important; font-size:12px; margin-bottom:4px; color : #fff; } .tags a { color:#FFF; } .top_list_title{ color:#fff; background-color: #fb4d59 !important; padding:10px; margin-top: 20px; font-size: 20px; } .top_list_title a{ color:#fff; } .dropCap:first-letter { float: left; color: #6E6E6E; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px; } a{ text-decoration: none; } .formNowRight{ float: left !important; } .right-column-mistake-banner { float: left !important; } .blogText div{ font-size: 16px; } </style> <!-- Start Page Banner --> <div class="page-banner"> <div class="container"> <div class="row"> <div class="col-md-3"> <h2>Blog Details </h2> </div> <div class="col-md-9"> <ul class="breadcrumbs"> <li style="display: inline;"><a href="/blog.php" style="margin-right: 20px; color: #000; text-decoration:none; font-size: 12px;">Blog Home</a></li> <li style="display: inline; font-size: 12px;"><?php echo $blogs->blog_name;?> </li> </ul> </div> </div> </div> </div> <!-- End Page Banner --> <div id="content"> <div class="container"> <div class="page-content"> <div class="row"> <div class="col-md-8"> <div class="row"> <div class="col-md-12"> <h1 class="top_list_title"> <?php echo cleanit($blogs->blog_name);?> <span style="float:right"> Author : <?php /** <a href="/bwriters/<?php echo $writer->writer_id;?>"> */?><?php echo $writer->first_name.' '.$writer->last_name;?></a> </span> </h1> <span class="published_date" style="font-size:12px; display:inline-block; font-weight:bold;float:right; color:#131511">Published on: <?=date('F j, Y',strtotime($blogs->release_date));?></span> </div> </div> <div class="row panel-group"> <div class="col-md-12 blogText"> <?php if($blogs->main_image!='') echo '<img src="/images/blogs/large/'.$blogs->main_image.'" alt="'.$blogs->main_image_alt.'" style="float:LEFT; padding:4px 0px 4px 0px; width:100% !important;">'; // $blogs->description=preg_replace('/<p>/', '<p class=\"dropCap\">', $blogs->description, 1); $blogs->description=str_replace(" ","",$blogs->description); echo cleanit($blogs->description); if($blogs->tags!='') { $tags = explode(',',$blogs->tags); $tmp = array_unique($tags); echo "<p style=\"margin-top:10px\">"; for($i=0;$i<sizeof($tmp); $i++) { echo '<span class="tags" style="margin-left:4px;"><a href="/blog/'.trim($tmp[$i]).'">'.$tmp[$i].'</a></span>'; } echo "</p>"; } ?> </div> </div> <div class="row"> <?php /* <div class="col-md-7"> <form> <h2 style="margin-top:20px;">CONTACT AUTHOR</h2> <div style="width:80%; padding:4px; margin:15px; " id="message_div"></div> <div class="form-group"> <label for="first_name">First Name</label> <input type="text" class="form-control" id="first_name" aria-describedby="" placeholder="First Name"> </div> <div class="form-group"> <label for="last_name">Last Name</label> <input type="text" class="form-control" id="last_name" aria-describedby="" placeholder="Last Name"> </div> <div class="form-group"> <label for="exampleInputEmail1">Email address</label> <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email"> <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small> </div> <div class="form-group"> <label for="phone">Phone #</label> <input type="text" class="form-control" id="phone" aria-describedby="" placeholder="Phone"> </div> <div class="form-group"> <label for="message">Message</label> <textarea class="form-control" id="message" aria-describedby="" placeholder="Message"></textarea> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> */ ?> </div> </div> <?php //include("includes/shortcodes.php"); ?> <div class="col-md-4"><?php include_once("blog_right_panel.php");?></div> </div> </div> </div> <div class="divider pos_top"></div> </div> <?php include_once("includes/footer.php"); ?> </div> </div> </section> </div> <script> $(document).ready(function() { //for table row $("tr:even").css("background-color", "#E4F8FD"); $("tr:odd").css("background-color", "#D1E6F4"); }); function bloghome() { window.location = 'blog.php'; } function validate_writer_message(){ var first_name = $("#first_name").val(); var last_name = $("#last_name").val(); var email = $("#email").val(); var message = $("#message").val(); var security_code = $("#security_code").val(); if(first_name==''){ alert("Please enter first name"); $("#first_name").focus(); return false; } if(last_name==''){ alert("Please enter last name"); $("#last_name").focus(); return false; } if(email==''){ alert("Please enter email "); $("#email").focus(); return false; } if(!isEmail(email)){ alert("Please enter valid email "); $("#email").focus(); return false; } if(message==''){ alert("Please enter message"); $("#message").focus(); return false; } if(security_code==''){ alert("Please enter captcha code"); $("#security_code").focus(); return false; } } function isEmail(email) { var rExp = new RegExp("^[\\w-_\.]*[\\w-_\.]\@[\\w]\.+[\\w]+[\\w]$"); return rExp.test(email); } //function contact(){ // $("#message_div").toggle(); // $("#first_name").focus(); //} </script> </body> </html>