<?php
session_start();
$key = md5(date("Y-m-d").":".$_SERVER['REMOTE_ADDR']);
if (isset($_SESSION['aW1iZXN0cmEuY29tLm15']) <> $key) {
    header("location:".$_SERVER['REQUEST_SCHEME']."://".$_SERVER['SERVER_NAME']); // cara baru !
} else {
    include "_header2.php";
    include "_navtop.php";
    include "_navside.php";
    include "_functions.php";
    require "conn.php";
/*
    $cwallet = sumWall("masuk", "cwallet") - sumWall("keluar", "cwallet");

*/
    $result = mysqli_query($con, "SELECT * FROM ahli WHERE id='".$_SESSION['aidi']."'");
    $rows = mysqli_fetch_array($result);

    $u_name = $rows['username'];
    $tel    = $rows['telefon'];


    
?>
        <div id="page-wrapper" >
            <div id="page-inner">
                <div class="row">
                    <div class="col-md-12">
                     <h2>Marketing Tools</h2>
                    </div>
                </div>
            <hr />
                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">           
                        <div class="panel panel-back noti-box">
                            <span class="icon-box bg-color-green set-icon">
                                <i class="fa fa-phone" aria-hidden="true"></i>
                            </span>
                        <div class="text-box" >
                            <p class="main-text">Your PMTePi Link</p>
                            <p class="text-muted"><a href="https://wa.me/6<?= $tel ?>?text=I'm%20interested%20in%20IMBESTRA">https://wa.me/6<?= $tel ?></a></p>
                            <p class="text-muted">Please make sure your phone number registered as whatsapp account. </p>
                        </div>
                        </div>
                    </div>
                    
                    <div class="col-md-12 col-sm-12 col-xs-12">               
                        <div class="panel panel-back noti-box">
                            <span class="icon-box bg-color-green set-icon">
                                <i class="fa fa-link" aria-hidden="true"></i>
                            </span>
                        <div class="text-box" >
                            <p class="main-text">Your Marketing WEB</p>
                            <p class="text-muted"><a href="https://tls2u.com/?v=<?= $_SESSION['username'] ?>">https://tls2u.com/?v=<?= strtolower($_SESSION['username']) ?></a></p>
                        </div>
                        </div>
                    </div>
                    
                    <div class="col-md-12 col-sm-12 col-xs-12">              
                        <div class="panel panel-back noti-box">
                            <span class="icon-box bg-color-green set-icon">
                                <i class="fa-solid fa-file-pdf"></i>
                            </span>
                        <div class="text-box" >
                            <p class="main-text">BIZ Pamphlet</p>
                          <p class="text-muted"><a href="tls2u.pdf" download> Download</a></p>
                        </div>
                        </div>
                    </div>


                </div>
                 <!-- /. ROW  -->
                <hr />                
                    
    </div>
             <!-- /. PAGE INNER  -->
            </div>
<?
    include "_footer2.php";
}
?>
