Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('config.php');
- global $db;
- $message = "";
- if (isset($_POST['register'])) {
- $email = $_POST['email'];
- $password = $_POST['password'];
- $password = md5($password);
- $username = strtolower($username);
- $db->Select("user_register", array('email' => $email));
- if ($db->records == 0) {
- $result = $db->Insert(array('email' => $email,
- 'password' => $password,
- 'confirm_acc' => md5($email),
- 'active' => '0'), "user_register");
- /* send email to confirm */
- require 'SendGrid-API/vendor/autoload.php';
- // Login credentials
- $username = 'itassists';
- $password = '7810.JAYlove';
- $from = new SendGrid\Email("JioCoin Token", "register@jiocoins.io");
- $subject = "Confirm Your Registration";
- //echo $email;
- $to = new SendGrid\Email($email, $email);
- $reglink=md5($email);
- $link="https://jiocoins.io/tokensale/confirm_registration.php?id=".$reglink;
- $message = "<head>
- <meta charset=\"utf-8\">
- <meta name=\"viewport\" content=\"width=device-width\">
- <!--[if !mso]><!-->
- <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
- <!--<![endif]-->
- <title>Confirmed, you’re on the Twist beta waitlist!</title>
- <!-- Normalize Styles -->
- <style type=\"text/css\">
- /* What it does: Remove spaces around the email design added by some email clients. */
- /* Beware: It can remove the padding / margin and add a background color to the compose a reply window. */
- html,
- body {
- margin: 0 auto !important;
- padding: 0 !important;
- height: 100% !important;
- width: 100% !important;
- }
- /* What it does: Stops WebKit and Windows mobile clients resizing small text. */
- * {
- -ms-text-size-adjust: 100%;
- -webkit-text-size-adjust: 100%;
- }
- /* What is does: Centers email on Android 4.4 */
- div[style*=\"margin: 16px 0\"] {
- margin: 0 !important;
- }
- /* What it does: Remove spacing between tables in Outlook 2007 and up. */
- table,
- td {
- mso-table-lspace: 0pt !important;
- mso-table-rspace: 0pt !important;
- }
- /* What it does: Fixes webkit padding issue. Fix for Yahoo mail table alignment bug. */
- table {
- border-spacing: 0 !important;
- border-collapse: collapse !important;
- table-layout: fixed !important;
- margin: 0 auto !important;
- }
- /* What it does: Reset styles. */
- img {
- line-height: 100%;
- outline: none;
- text-decoration: none;
- /* Uses a smoother rendering method when resizing images in IE. */
- -ms-interpolation-mode: bicubic;
- /* Remove border when inside `a` element in IE 8/9/10. */
- border: 0;
- /* Sets a maximum width relative to the parent and auto scales the height */
- max-width: 100%;
- height: auto;
- /* Remove the gap between images and the bottom of their containers */
- vertical-align: middle;
- }
- /* What it does: Overrides styles added when Yahoo's auto-senses a link. */
- .yshortcuts a {
- border-bottom: none !important;
- }
- /* What it does: A work-around for iOS meddling in triggered 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;
- }
- /* What it does: Neutralize whitespace for inline-block grids on iOS. */
- @media screen and (min-width: 600px) {
- .ios-responsive-grid {
- display: -webkit-box !important;
- display: flex !important;
- }
- /* Alternative method. Not needed if already using the .ios-responsive-grid flex workaround. */
- /* .ios-responsive-grid__unit class would need to be added to the inline-block
- <div>
- grid units */
- .ios-responsive-grid__unit {
- float: left;
- }
- }
- </style>
- <!--[if gte mso 9]>
- <style type=\"text/css\">
- /* What it does: Normalize space between bullets and text. */
- /* https://litmus.com/community/discussions/1093-bulletproof-lists-using-ul-and-li */
- li {
- text-indent: -1em;
- }
- </style>
- <![endif]-->
- <!-- Progressive Enhancements -->
- <style type=\"text/css\">
- /* Components */
- /* What it does: Hover styles for buttons */
- .button__td,
- .button__a {
- transition: all 100ms ease;
- }
- .button__td:hover,
- .button__a:hover {
- background: #1ab77b !important;
- }
- /* What it does: Mobile optimized styles */
- @media screen and (max-width: 599px) {
- /* Components */
- .tw-card { padding: 20px !important; }
- .tw-h1 { font-size: 22px !important; }
- /* Utilities */
- /* Display */
- .mobile-hidden {
- display: none !important;
- }
- .mobile-d-block {
- display: block !important;
- }
- /* Size */
- .mobile-w-full {
- width: 100% !important;
- }
- /* Margin */
- .mobile-m-h-auto {
- margin: 0 auto !important;
- }
- /* Padding */
- .mobile-p-0 {
- padding: 0 !important;
- }
- .mobile-p-t-0 {
- padding-top: 0 !important;
- }
- /* Images */
- .mobile-img-fluid {
- max-width: 100% !important;
- width: 100% !important;
- height: auto !important;
- }
- }
- </style>
- </head>
- <body style=\"background: #ffffff; height: 100% !important; margin: 0 auto !important; padding: 0 !important; width: 100% !important; ;\">
- <div style=\"display: none; font-size: 1px; line-height: 1px; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all;\">
- </div>
- <table cellpadding=\"0\" cellspacing=\"0\" style=\"background: #f2f2f2; border: 0; border-radius: 0; width: 100%;\">
- <tbody>
- <tr>
- <td align=\"center\" class=\"\" style=\"padding: 0 20px;\">
- <table cellpadding=\"0\" cellspacing=\"0\" style=\"background: #f2f2f2; border: 0; border-radius: 0;\">
- <tbody>
- <tr>
- <td align=\"center\" class=\"\" style=\"width: 600px;\">
- <table cellpadding=\"0\" cellspacing=\"0\" dir=\"ltr\" style=\"border: 0; width: 100%;\">
- <tbody>
- <tr>
- <td class=\"\" style=\"padding: 20px 0; text-align: center; ;\">
- <a href=\"https://www.jiocoins.io\" style=\"text-decoration: none; ;\" target=\"_blank\">
- <h2>JioCoin Token</h2>
- </a>
- </td>
- </tr>
- </tbody>
- </table>
- <table cellpadding=\"0\" cellspacing=\"0\" style=\"background: #ffffff; border: 0; border-radius: 4px; width: 100%;\">
- <tbody>
- <tr>
- <td align=\"center\" class=\"tw-card\" style=\"padding: 20px 50px;\">
- <table cellpadding=\"0\" cellspacing=\"0\" dir=\"ltr\" style=\"border: 0; width: 100%;\">
- <tbody>
- <tr>
- <td class=\"\" style=\"padding: 20px 0; text-align: center; ;\">
- <img alt=\"\" class=\" \" src=\"https://jiocoins.io/test/tokensale/img/jiocoins_150px.png\" style=\"border: 0; height: auto; max-width: 100%; vertical-align: middle; ;\" width=\"120px\" height=\"120px\">
- </td>
- </tr>
- </tbody>
- </table>
- <table cellpadding=\"0\" cellspacing=\"0\" dir=\"ltr\" style=\"border: 0; width: 100%;\">
- <tbody>
- <tr>
- <td class=\"\" style=\"padding: 20px 0; text-align: left; color: #474747; font-family: sans-serif;;\">
- <p style=\"margin: 20px 0;; font-size: 18px; mso-line-height-rule: exactly; line-height: 24px; margin: 30px 0;; ;\">
- <span style=\"font-weight: bold;;\">Confirm Your Registration!</span>
- </p>
- <p style=\"margin: 20px 0;; font-size: 14px; mso-line-height-rule: exactly; line-height: 24px; margin: 30px 0;; ;\">
- Welcome to Coin
- </p>
- <p style=\"margin: 20px 0;; font-size: 14px; mso-line-height-rule: exactly; line-height: 24px; margin: 30px 0;; ;\">
- Click the link bellow to complete verification:
- </p>
- <a href=\"$link\" target=\"_blank\" style=\"background-color:#2c90e4; border: 1px solid #6070E9; border-radius: 4px; padding: 19px 27px; font-family: 'Source Sans Pro', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 26px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;\">
- <font face=\"'Source Sans Pro', sans-serif\" color=\"#ffffff\" style=\"font-size: 26px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;\">
- <span style=\"font-family: 'Source Sans Pro', Arial, Verdana, Tahoma, Geneva, sans-serif; color: #ffffff; font-size: 26px; line-height: 30px; text-decoration: none; white-space: nowrap; font-weight: 600;\">Confirm Email</span>
- </font>
- </a>
- <h4 style=\"color:red;margin-top:35px;\">Security Tips</h4>
- <ul>
- <li> DO NOT give your password to anyone! </li>
- <li> Do Not call any phone number for someone claiming to be JioCoins Support! </li>
- <li> Do Not send any money to anyone claiming to be a member of JioCoins Support! </li>
- <li> Make Sure you are visiing https://jiocoins.io </li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- <br><br>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </body>";
- $content = new SendGrid\Content("text/html", ".$message.");
- $mail = new SendGrid\Mail($from, $subject, $to, $content);
- $apiKey = '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';
- $sg = new SendGrid($apiKey);
- $response = $sg->client->mail()->send()->post($mail);
- /*echo $response->statusCode();
- print_r($response->headers());
- print_r($response->body());*/
- if ($result) {
- $message = "<div class='alert alert-success'> Thanks For Registration. <a href='login.php'>Log In</a> </div>";
- } else {
- $db->lastError;
- }
- } else {
- $message = "<div class='alert alert-danger'> Username is already exist.!! </div>";
- }
- }
- ?>
- <!DOCTYPE html>
- <html>
- <!-- Mirrored from eagle-material-admin.bylancer.com/eagle/demo-7/pages/extra-page/register.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 01 Nov 2017 06:30:42 GMT -->
- <head>
- <meta charset="UTF-8">
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <title>Register | JioCoin Token </title>
- <!-- Favicon-->
- <link rel="icon" href="../img/logo--dark.png" type="image/x-icon">
- <!-- Bootstrap Core Css -->
- <link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
- <!-- Waves Effect Css -->
- <link href="plugins/node-waves/waves.css" rel="stylesheet"/>
- <!-- Animation Css -->
- <link href="plugins/animate-css/animate.css" rel="stylesheet"/>
- <!-- Custom Css -->
- <link href="assets/css/style.css" rel="stylesheet">
- </head>
- <body class="register-ac">
- <div class="register-box">
- <div class="card">
- <div class="body">
- <div class="row">
- <div class="col-lg-12">
- <div class="login-logo">
- <img src="img/jiocoins_150px.png" alt="Jio Coins Token" width="100px" height="100px" class="img-responsive img-circle align-center">
- <h3>Jio Coin</h3>
- </div>
- </div>
- </div>
- <form name='register' id="register" method="POST">
- <div class="msg">Create an account</div>
- <div class="input-group addon-line">
- <span class="input-group-addon">
- <i class="material-icons">email</i>
- </span>
- <div class="form-line">
- <input type="email" class="form-control" name="email" placeholder="Your Email Address" required>
- </div>
- </div>
- <div class="input-group addon-line">
- <span class="input-group-addon">
- <i class="material-icons">lock</i>
- </span>
- <div class="form-line">
- <input type="password" class="form-control" name="password" minlength="6"
- placeholder="Define Password" required>
- </div>
- </div>
- <div class="input-group addon-line">
- <span class="input-group-addon">
- <i class="material-icons">lock</i>
- </span>
- <div class="form-line">
- <input type="password" class="form-control" name="confirm" minlength="6"
- placeholder="Confirm Password" required>
- </div>
- </div>
- <div class="form-group">
- <input type="checkbox" name="terms" id="terms" class="filled-in chk-col-blue">
- <label for="terms">I agree with the <a href="#">terms and policy</a>.</label>
- </div>
- <button name="register" id="register" class="btn btn-block btn-primary waves-effect" type="submit">
- REGISTER NOW
- </button>
- <div class="m-t-25 m-b--5 align-center">
- <a href="login.php">You already have an account?</a>
- <?php echo $message; ?>
- </div>
- </form>
- </div>
- </div>
- </div>
- <!-- CORE PLUGIN JS -->
- <script src="plugins/jquery/jquery.min.js"></script>
- <script src="plugins/bootstrap/js/bootstrap.js"></script>
- <script src="plugins/node-waves/waves.js"></script>
- <script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
- <!--THIS PAGE LEVEL JS-->
- <script src="plugins/jquery-validation/jquery.validate.js"></script>
- <script src="assets/js/pages/examples/register.js"></script>
- <!-- LAYOUT JS -->
- <script src="assets/js/demo.js"></script>
- </body>
- <!-- Mirrored from eagle-material-admin.bylancer.com/eagle/demo-7/pages/extra-page/register.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 01 Nov 2017 06:30:42 GMT -->
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement