OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
rssfeeds
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/22/2024 04:05:28 AM
rwxr-xr-x
📄
LICENSE.txt
1.5 KB
02/11/2020 10:49:34 AM
rwxrwxrwx
📄
README.markdown
3.8 KB
02/11/2020 10:49:34 AM
rwxrwxrwx
📄
autoloader.php
2.79 KB
02/11/2020 10:49:33 AM
rwxrwxrwx
📄
composer.json
847 bytes
02/11/2020 10:49:34 AM
rwxrwxrwx
📄
db.sql
0 bytes
02/11/2020 10:49:34 AM
rwxrwxrwx
📁
idn
-
03/17/2019 06:25:06 AM
rwxrwxr-x
📁
library
-
03/17/2019 06:24:58 AM
rwxrwxr-x
📄
newsletter.php
19.92 KB
02/11/2020 10:49:34 AM
rwxrwxrwx
Editing: newsletter.php
Close
<?php session_start(); include 'header.php'; if(isset($_SESSION['user'])) { $user = $_SESSION['user'];}; global $name; ?> <style> p img{ width: 170px; padding-right: 2%; height: 100px; } </style> <div class="content"> <div class="single" id="contentpage"> <?php include 'newssletterheader.html'; ?> <?php $comsql="select * from login where email_id = '$user' "; $comsqlresult = mysqli_query($db, $comsql); if (mysqli_num_rows($comsqlresult) > 0) { // output data of each row while($rows1 = mysqli_fetch_assoc($comsqlresult)) { $name=$rows1['company_name']; } } ?> <?php $logosql="select * from kr_review where email_id = '$user' "; $logoresult = mysqli_query($db, $logosql); if (mysqli_num_rows($logoresult) > 0) { // output data of each row while($rows = mysqli_fetch_assoc($logoresult)) { $logo=$rows['location']; $head=$rows['news_title']; ?> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 700px;background-color: rgb(252, 252, 252);;border: 1px solid rgb(0, 128, 128);" class="wrapper"> <tr> <td style="width: 55px;"></td> <td align="" valign="top" style="padding: 15px;width: 150px;" > <a> <img alt="Logo" src="http://cream.knoblymedia.com/upload/<?php echo $logo; ?>" width="100px" height="80" style="display: block; font-family: Helvetica, Arial, sans-serif; font-size: 16px;" border="0"> </a> </td> <td style="padding: 15px 0;width: 500px;vertical-align: top;text-align: center;" > <hr style="border-top: 3px solid rgb(238,238,238);margin-left: 10%;"> <h2><?php echo $head; ?></h2> <hr style="border-top: 1px solid rgb(238,238,238);margin-left: 10%;"> <p>Date: <?php echo date("Y-m-d"); ?> | Publisher: <?php echo $name;?></p> </a> </td> <td style="padding: 15px 0;width: 58px;vertical-align: top;"></td> </tr> </table> </td> </tr> <?php } } else { echo "Currently collection are not avaliable "; } ?> <tr> <td align="center" class="section-padding"> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-bottom: 20px; max-width: 700px; padding-top: 15px;border-left:1px solid rgb(0, 128, 128);border-right:1px solid rgb(0, 128, 128);border-bottom:1px solid rgb(0, 128, 128);" class="responsive-table"> <!-- TITLE --> <tr> <td align="center" height="100%" valign="top" width="100%" colspan="2" style="padding-top:20px"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width:600px;"> <tr style=""></tr> <tr> <td align="center" valign="top" style="font-size:0;"> <div style="display:inline-block; margin: 0 -2px; max-width:700px; vertical-align:top; width:100%;"> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="" class="no-padding"> <!-- ARTICLE --> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <?php if(isset($_POST['newsfeeds'])){ if (is_array($_POST['newsfeeds'])) { foreach($_POST['newsfeeds'] as $value){ $sql="select * from mycollection where id = $value"; $result = mysqli_query($db, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $cid=$row['id']; $ctitle=$row['title']; $clink=$row['link']; $cdesc=$row['description']; $date=$row['newsletter_date']; $sql1="UPDATE mycollection SET newsletter_date='".date("Y-m-d")."' WHERE user_email='$user' and id = '$value'"; if(mysqli_query($db, $sql1)) { } else{ } ?> <tr> <td align="left" style="padding: 0 0 5px 25px; font-size: 22px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; " class="padding"><a href ="<?php echo $clink; ?>" target="_blank" style="text-decoration: none !important;color:rgb(15,15,15);font-size: 18px;"><?php echo $ctitle; ?></a></td> </tr> <tr> <td align="left" style="padding: 0px 0 0px 25px; font-size: 16px; line-height: 24px; font-family: Helvetica, Arial, sans-serif; " class="padding"><?php echo "<style> img{width:150px;}</style><p style='margin:0px;color:rgb(94,94,94);font-size: 14px;'> $cdesc </p> "; ?></td> </tr> <tr> <td style="padding-bottom: 5%;padding-left: 21px;"> <a class="sbg-button sbg-button-facebook" data-sbg-network="facebook" data-sbg-url="<?php echo $clink; ?>" data-sbg-title="Share Button Generator" data-sbg-summary="Create simple share buttons, no strings attached" data-sbg-image="http://election.gv.my/assets/vote.png" data-sbg-width="600" data-sbg-height="368"> <i class="fa fa-facebook-official fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-twitter" data-sbg-network="twitter" data-sbg-text="Create simple share buttons, no strings attached <?php echo $clink; ?>" data-sbg-via="aakilfernandes" data-sbg-hashtags="sharing,simple" data-sbg-width="600" data-sbg-height="258"> <i class="fa fa-twitter-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-linkedin" data-sbg-network="linkedin" data-sbg-url="<?php echo $clink; ?>" data-sbg-title="Share Button Generator" data-sbg-source="Aakil Fernandes" data-sbg-summary="Create simple share buttons, no strings attached" data-sbg-width="585" data-sbg-height="471"> <i class="fa fa-linkedin-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-google-plus" data-sbg-network="google-plus" data-sbg-url="<?php echo $clink; ?>" data-sbg-width="500" data-sbg-height="505"> <i class="fa fa-google-plus-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-pinterest" data-sbg-network="pinterest" data-sbg-url="<?php echo $clink; ?>" data-sbg-media="http://sharebuttongenerator.aakilfernandes.com/img/addButton.png" data-sbg-description="Create simple share buttons, no strings attached" data-sbg-width="750" data-sbg-height="322"> <i class="fa fa-pinterest-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <script>sbg()</script> </td> </tr> <?php } } } } } ?> </table> </td> </tr> </table> </div> </td> </tr> </table> </td> </tr> </td> </tr> <tr> <td align="center" style="padding: 20px;border-top: 1px solid rgb(0, 128, 128);background-color: rgb(252, 252, 252);"> <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="max-width: 500px;" class="responsive-table"> <tr> <td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; "> Powered by Knobly Cream <br> <a>Click here</a> to unsubscribe. </td> </tr> </table> </td> </tr> </table> </table> </body> </html> </div> <center> <button onClick="download()" class="btn btn-primary">Download</button></center> <script> function download(){ var a = document.body.appendChild( document.createElement("a") ); a.download = "newsletter.html"; a.href = "data:text/html," + document.getElementById("contentpage").innerHTML; a.click(); } </script> <?php $comsql="select * from login where email_id = '$user' "; $comsqlresult = mysqli_query($db, $comsql); if (mysqli_num_rows($comsqlresult) > 0) { // output data of each row while($rows1 = mysqli_fetch_assoc($comsqlresult)) { $name=$rows1['company_name']; } } $logosql="select * from kr_review where email_id = '$user' "; $logoresult = mysqli_query($db, $logosql); if (mysqli_num_rows($logoresult) > 0) { // output data of each row while($rows = mysqli_fetch_assoc($logoresult)) { $logo=$rows['location']; $head=$rows['news_title']; } } $to = "pallavik@knobly.com"; $subject = "HTML email - newsletter"; $message = '<!DOCTYPE html> <html> <head> <title>News Letter</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"/> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <style type="text/css"> /* CLIENT-SPECIFIC STYLES */ body, table, td, a{-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;} /* Prevent WebKit and Windows mobile changing default text sizes */ table, td{mso-table-lspace: 0pt; mso-table-rspace: 0pt;} /* Remove spacing between tables in Outlook 2007 and up */ img{-ms-interpolation-mode: bicubic;} /* Allow smoother rendering of resized image in Internet Explorer */ /* RESET STYLES */ img{border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none;} table{border-collapse: collapse !important;} body{height: 100% !important; margin: 0 !important; padding: 0 !important; width: 100% !important;} /* iOS BLUE LINKS */ a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font-size: inherit !important; font-family: inherit !important; font-weight: inherit !important; line-height: inherit !important; } .fa { margin-left:7%; font-size: 16px; width: 30px; text-align: center; text-decoration: none; border-radius: 50%; margin-bottom:2%; } .fa:hover { } /* MOBILE STYLES */ @media screen and (max-width: 525px) { /* ALLOWS FOR FLUID TABLES */ .wrapper { width: 100% !important; max-width: 100% !important; } /* ADJUSTS LAYOUT OF LOGO IMAGE */ .logo img { margin: 0 auto !important; } /* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */ .mobile-hide { display: none !important; } .img-max { max-width: 100% !important; width: 100% !important; height: auto !important; } /* FULL-WIDTH TABLES */ .responsive-table { width: 100% !important; } /* UTILITY CLASSES FOR ADJUSTING PADDING ON MOBILE */ .padding { padding: 10px 5% 15px 5% !important; } .padding-meta { padding: 30px 5% 0px 5% !important; text-align: center; } .no-padding { padding: 0 !important; } .section-padding { padding: 50px 15px 50px 15px !important; } /* ADJUST BUTTONS ON MOBILE */ .mobile-button-container { margin: 0 auto; width: 100% !important; } .mobile-button { padding: 15px !important; border: 0 !important; font-size: 16px !important; display: block !important; } } /* ANDROID CENTER FIX */ div[style*="margin: 16px 0;"] { margin: 0 !important; } </style> </head> <body style="margin: 0 !important; padding: 0 !important;border:1px solid black"><table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 700px;background-color: rgb(252, 252, 252);;border: 1px solid rgb(0, 128, 128);" class="wrapper"> <tr> <td style="width: 55px;"></td> <td align="" valign="top" style="padding: 15px;width: 150px;" > <a> <img alt="Logo" src="http://cream.knoblymedia.com/upload/'.$logo.'" width="100px" height="80" style="display: block; font-family: Helvetica, Arial, sans-serif; font-size: 16px;" border="0"> </a> </td> <td style="padding: 15px 0;width: 500px;vertical-align: top;text-align: center;" > <hr style="border-top: 3px solid rgb(238,238,238);margin-left: 10%;"> <h2>'.$head.'</h2> <hr style="border-top: 1px solid rgb(238,238,238);margin-left: 10%;"> <p>Date:'. date("Y-m-d").'| Publisher:'.$name.'</p> </a> </td> <td style="padding: 15px 0;width: 58px;vertical-align: top;"></td> </tr> </table> </td> </tr> <tr> <td align="center" class="section-padding"> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding-bottom: 20px; max-width: 700px; padding-top: 15px;border-left:1px solid rgb(0, 128, 128);border-right:1px solid rgb(0, 128, 128);border-bottom:1px solid rgb(0, 128, 128);" class="responsive-table"> <!-- TITLE --> <tr> <td align="center" height="100%" valign="top" width="100%" colspan="2" style="padding-top:20px"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width:600px;"> <tr style=""></tr> <tr> <td align="center" valign="top" style="font-size:0;"> <div style="display:inline-block; margin: 0 -2px; max-width:700px; vertical-align:top; width:100%;"> <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td style="" class="no-padding"> <!-- ARTICLE --> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left" style="padding: 0 0 5px 25px; font-size: 22px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; " class="padding"><a href ="'.$clink.'" target="_blank" style="text-decoration: none !important;color:rgb(15,15,15);font-size: 18px;">'.$ctitle.'</a></td> </tr> <tr> <td align="left" style="padding: 0px 0 0px 25px; font-size: 16px; line-height: 24px; font-family: Helvetica, Arial, sans-serif; " class="padding"><p style="margin:0px;color:rgb(94,94,94);font-size: 14px;">'.$cdesc.' </p></td> </tr> <tr> <td style="padding-bottom: 5%;padding-left: 21px;"> <a class="sbg-button sbg-button-facebook" data-sbg-network="facebook" data-sbg-url="'.$clink.'" data-sbg-title="Share Button Generator" data-sbg-summary="Create simple share buttons, no strings attached" data-sbg-image="http://election.gv.my/assets/vote.png" data-sbg-width="600" data-sbg-height="368"> <i class="fa fa-facebook-official fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-twitter" data-sbg-network="twitter" data-sbg-text="Create simple share buttons, no strings attached <?php echo $clink; ?>" data-sbg-via="aakilfernandes" data-sbg-hashtags="sharing,simple" data-sbg-width="600" data-sbg-height="258"> <i class="fa fa-twitter-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-linkedin" data-sbg-network="linkedin" data-sbg-url="<?php echo $clink; ?>" data-sbg-title="Share Button Generator" data-sbg-source="Aakil Fernandes" data-sbg-summary="Create simple share buttons, no strings attached" data-sbg-width="585" data-sbg-height="471"> <i class="fa fa-linkedin-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-google-plus" data-sbg-network="google-plus" data-sbg-url="<?php echo $clink; ?>" data-sbg-width="500" data-sbg-height="505"> <i class="fa fa-google-plus-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> <a class="sbg-button sbg-button-pinterest" data-sbg-network="pinterest" data-sbg-url="<?php echo $clink; ?>" data-sbg-media="http://sharebuttongenerator.aakilfernandes.com/img/addButton.png" data-sbg-description="Create simple share buttons, no strings attached" data-sbg-width="750" data-sbg-height="322"> <i class="fa fa-pinterest-square fa-2x" style="line-height: 2.5;color:rgb(87,112,165);font-size: 20px;"></i> </a> '; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; // More headers $headers .= 'From: swethar@knobly.com' . "\r\n"; //$headers .= 'Cc: myboss@example.com' . "\r\n"; mail($to,$subject,$message,$headers); ?>