Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- session_start();
- if(isset($_SESSION['username'])) {
- header('location:/');
- }
- require_once("include/config.php");
- ?>
- <!DOCTYPE html>
- <html lang="">
- <head>
- <meta charset="utf-8">
- <title>Stars Media - Login Page</title>
- <meta name="description" content="Stars Media Adalah WebPanel Penyedia Layanan Sosial Media/SMM.">
- <meta name="author" content="Muhammad Doni">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
- <link rel="icon" href="favicon.ico" type="image/x-icon">
- <!-- Begin Vendor CSS -->
- <link rel="stylesheet" href="scripts/plugins/bootstrap/dist/css/bootstrap.css">
- <link rel="stylesheet" href="scripts/plugins/components-font-awesome/css/font-awesome.css" />
- <link rel="stylesheet" href="scripts/plugins/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css" />
- <link rel="stylesheet" href="scripts/plugins/nvd3/build/nv.d3.min.css">
- <link rel="stylesheet" href="scripts/plugins/datatables/media/css/jquery.dataTables.css" />
- <link rel="stylesheet" href="scripts/plugins/datatables-tabletools/css/dataTables.tableTools.css" />
- <link rel="stylesheet" href="scripts/plugins/jquery.steps/demo/css/jquery.steps.css">
- <!-- End Vendor CSS -->
- <link rel="stylesheet" href="scripts/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css" />
- <!-- Begin XPLOIT CSS -->
- <link rel="stylesheet" href="styles/xploit.css">
- <!-- End XPLOIT CSS -->
- <style>
- .nv-x .tick {
- opacity: 0 !important;
- }
- .nv-y path {
- display: none;
- }
- .nv-y text {
- fill: #aaa;
- font-weight: normal !important;
- }
- .highcharts-tooltip > path{
- fill: #000 !important;
- stroke: transparent;
- }
- .highcharts-tooltip > text {
- fill: #fff !important;
- }
- .highcharts-tooltip > text > tspan:first-child {
- text-transform: uppercase;
- font-size: 14px !important;
- margin-bottom: 15px;
- }
- </style>
- </head>
- <body class="navbar-collapsed">
- <!--
- All the utility classes are assigned to the body tag to cover all the elements inside the tag
- Classes Used:
- navbar-collapsed - for collapsed navbar
- For the time being XPLOIT comes with only fixed header version, so the CSS is directly added
- The body elements contains these main elements in the below hierarchy
- body
- .content-wrapper
- #page-sidebar - Navigation for the app
- #page-header - Header element for the app
- #page-content - Main content for each of the page
- #page-footer - App footer
- -->
- <!--[if lt IE 10]>
- <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
- <![endif]-->
- <!--
- Content Wrapper is the main elements that holds all the elements inside it.
- -->
- <!-- Begin Content Wrapper -->
- <div class="content-wrapper">
- <!-- Begin Page Sidebar -->
- <nav id="page-sidebar">
- <!--
- #page-siderbar contains the base navigation items and contains
- .sidebar-header,
- .sidebar-avatar,
- .sidebar-navigation and
- .sidebar-stats
- Sidebar is categorized in the four sections as mentioned above
- and contains their respective HTML codes
- The main navigation items are under .sidebar-navigation unordered list
- -->
- <!-- Begin Scrollbar Padder -->
- <div class="scrollbar-padder">
- <!-- Begin Sidebar Container -->
- <div class="sidebar-container">
- <!-- Begin Sidebar Header -->
- <div class="sidebar-header">
- <a href="index.php" class="text-uppercase fs-lg"><strong class="fa fa-user-circle" ></strong></span></strong></strong>Stars</strong><span class="ls-xs fw-thk">Media</span></a>
- </div>
- <!-- End Sidebar Header -->
- <!-- Begin Sidebar Navigation -->
- <ul class="sidebar-navigation ul-clear">
- <!--
- Contains all the list items for the navigation.
- <li> with the class menu-header is the category header for the list.
- Respective <li> or the current <li> is added with the "open" manually for all the page.
- And all the <li> childrens(<ul) are given with the class "nav-submenu"
- -->
- <?php include 'jangan/menu.php'; ?>
- <!-- Begin Sidebar Footer -->
- <div class="sidebar-footer">
- </div>
- <!-- End Sidebar Footer -->
- </div>
- <!-- End Sidebar Container -->
- </div>
- <!-- Begin Scrollbar Padder -->
- </nav>
- <!-- End Page Sidebar -->
- <!-- Begin Page Header -->
- <header id="page-header">
- <div class="header-container hidden-md hidden-lg">
- <a href="dashbord" class="text-uppercase text-black fs-lg"><strong class="header-short-name text-success ls-xs fw-thkr">Stars</strong><span class="ls-xs fw-thk">Media</span></a>
- </div>
- <!-- Begin Navbar Content -->
- <div class="navbar-content">
- <ul class="nav navbar-nav">
- <li class="hidden-md hidden-lg p-md-l"><a href="javascript:void(0)" class="text-default" data-toggle-class="navbar-visible" data-target="body"><i class="fa fa-bars fa-fw"></i></a></li>
- <li class="hidden-sm hidden-xs"><a href="javascript:void(0)" class="text-default" data-toggle-class="navbar-collapsed" data-target="body"><i class="fa fa-bars fa-fw"></i></a></li>
- </ul>
- <!--
- Header contains contains all the header menus and the profile option.
- It uses bootstrap navbar classes for all the <ul>
- -->
- <?php
- $content = mysql_real_escape_string($_GET['content']);
- if ($content == "daftar-harga-operator") {
- include_once "content/daftar-harga-operator.php";
- } else if ($content == "add-balance") {
- include_once "content/add-balance.php";
- } else if ($content == "history-balance") {
- include_once "content/history-balance.php";
- } else if ($content == "api") {
- include_once "content/api.php";
- } else if ($content == "reset-api") {
- include_once "content/reset-api.php";
- } else if ($content == "invoice") {
- include_once "content/invoice.php";
- } else if ($content == "daftar-harga") {
- include_once "content/daftar-harga.php";
- } else if ($content == "profile") {
- include_once "content/profile.php";
- } else if ($content == "tiket") {
- include_once "content/tiket.php";
- } else if ($content == "tikets") {
- include_once "content/tikets.php";
- } else if ($api == "api") {
- include_once "api/api.php";
- } else { ?>
- <ul class="nav navbar-nav pull-right hidden-sm hidden-xs">
- <li class="dropdown">
- <a href="javascript:void(0)" class="text-default" data-toggle="dropdown">
- <span class="m-sm-r"><?php echo $username; ?></span><i class="fa fa-angle-down"></i>
- </a>
- <ul class="profile-dropdown dropdown-menu dropdown-menu-right" role="menu">
- <li role="presentation">
- <!-- Begin Profile Menu Container -->
- <div class="profile-menu-container">
- <div class="media">
- <div class="profile-image pull-left">
- <img src="<?php echo $tampil['photo']; ?>" alt="Avatar" height="64" width="64" class="img-circle">
- </div>
- <div class="media-body">
- <h4 class="fw-thk m-n"><?php echo $username; ?></h4>
- <p class="fs-sm m-xs-t">Level : <strong><a href="javascript:void(0)" class="text-info"><?php echo $level; ?></a></strong></p>
- <button class="btn btn-success w-100 text-uppercase fs-sm">Online <i class="fa fa-circle"></i></button>
- </div>
- </div>
- <div class="profile-options">
- <div class="text-center">
- <a href="/?content=profile"><i class="fa fa-user fa-fw"></i></a>
- </div>
- <div class="text-center">
- <a href="/?content=profile"><i class="fa fa-cog fa-fw"></i></a>
- </div>
- <div class="text-center">
- <a href="logout.php"><i class="fa fa-power-off"></i></a>
- </div>
- </div>
- </div>
- <!-- End Profile Menu Container -->
- </li>
- </ul>
- </li>
- </ul>
- </div>
- <!-- End Navbar Content -->
- </header>
- <!-- End Page Header -->
- <!-- Begin Page Content -->
- <main id="page-content"> <div class="row">
- <div class="col-md-6">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title"><i class="fa fa-user"></i> Masuk</h3>
- </div>
- <div class="panel-body">
- <?php if(isset($_POST['masuk'])) {
- $username = mysql_real_escape_string($_POST['username']);
- $pass = mysql_real_escape_string($_POST['password']);
- // Recaptcha System By Agum Darmawan
- // Everyone Store
- $recaptcha_secret = "6Le9QT0UAAAAAGi9X2RnkO_n7CTs_ZfSVMb7lnWI"; // Secret Code
- $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$recaptcha_secret."&response=".$_POST['g-recaptcha-response']);
- $response = json_decode($response, true);
- $cekuser = mysql_query("SELECT * FROM user WHERE username = '$username'");
- $jumlah = mysql_num_rows($cekuser);
- $get = mysql_fetch_array($cekuser);
- if($jumlah == 0) { // user tdk terdaftar ?>
- <div class="alert alert-danger"> <strong>Akun Tidak Terdaftar!.</strong> </div>
- <script>
- swal("Error!", "Akun Tidak Terdaftar!.", "error");
- </script>
- <? } else if($response["success"] === false) { // Recaptcha Response ?>
- <div class="alert alert-danger"> <strong>Captcha Tidak Valid !</strong> </div>
- <script>
- swal("Error!", "Captcha Tidak Valid !", "error");
- </script>
- <? } else {
- if(!password_verify($pass, $get['password'])) { // pass salah ?>
- <div class="alert alert-danger"> <strong>Username Atau Password Salah!</strong> </div>
- <script>
- swal("Error!", "Username Atau Password Salah!.", "error");
- </script>
- <? } else {
- $_SESSION['username'] = $get['username'];
- header('location:/');
- } } } ?>
- <form class="form-horizontal" role="form" method="POST">
- <div class="form-group">
- <label class="col-md-2 control-label">Username</label>
- <div class="col-md-10">
- <input type="text" name="username" class="form-control" placeholder="Username">
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label">Password</label>
- <div class="col-md-10">
- <input type="password" name="password" class="form-control" placeholder="Password">
- </div>
- <div class="form-group">
- <div class="col-md-offset-2 col-md-10">
- <button type="submit" class="btn btn-success btn-bordered waves-effect w-md waves-light" name="masuk">Masuk</button>
- <a class="btn btn-warning btn-bordered waves-effect w-md waves-light" href="lupa-sandi.php">Lupa password</a>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="col-md-6">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title"><i class="fa fa-question-circle"></i> Tentang Kami</h3>
- </div>
- <div class="panel-body">
- <h5>Stars Media adalah sebuah website penyedia layanan sosial media terlengkap, termurah, dan berkualitas.</h5>
- </div>
- </div>
- </div></div>
- <!-- End Row -->
- </main>
- <!-- End Page Content -->
- <? } ?>
- <!-- Begin Page Footer -->
- <footer id="page-footer">
- <p class="m-n text-left"><strong class="text-success ls-xs">©</strong> Copyright 2017 Stars<span class="ls-xs">Media<span class="footer-author pull-right">Made by <strong class="text-success">Doni</strong></span></p>
- </footer>
- <!-- End Page Footer -->
- </div>
- <!-- End Content Wrapper -->
- <!-- Begin Vendor JS -->
- <script src="scripts/plugins/jquery/jquery.js"></script>
- <script src="scripts/plugins/bootstrap/dist/js/bootstrap.js"></script>
- <script src="scripts/plugins/kapusta-jquery.sparkline/dist/jquery.sparkline.min.js"></script>
- <script src="scripts/plugins/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.js"></script>
- <script src="scripts/plugins/d3/d3.min.js"></script>
- <script src="scripts/plugins/nvd3/build/nv.d3.min.js"></script>
- <script src="scripts/plugins/raphael/raphael.min.js"></script>
- <script src="scripts/plugins/jquery-mapael/js/jquery.mapael.min.js"></script>
- <script src="scripts/plugins/jquery-mapael/js/maps/usa_states.min.js"></script>
- <script src="scripts/plugins/highcharts/highcharts.js"></script>
- <script src="scripts/plugins/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js"></script>
- <script src="scripts/plugins/rickshaw/rickshaw.min.js"></script>
- <script src="scripts/plugins/jquery.steps/build/jquery.steps.min.js"></script>
- <script src="scripts/plugins/jquery-validation/dist/jquery.validate.min.js"></script>
- <script src="scripts/plugins/twitter-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
- <script src="scripts/plugins/datatables/media/js/jquery.dataTables.js"></script>
- <script src="scripts/plugins/datatables-responsive/js/dataTables.responsive.js"></script>
- <script src="scripts/plugins/datatables-tabletools/js/dataTables.tableTools.js"></script>
- <script src="scripts/plugins/datatables-fixedheader/js/dataTables.fixedHeader.js"></script>
- <!-- End Vendor JS -->
- <script src="scripts/pages/tables.js"></script>
- <!-- Begin XPLOIT JS -->
- <script src="scripts/xploit.js"></script>
- <!-- End XPLOIT JS -->
- <script src="scripts/pages/forms.wizard.js"></script>
- <!-- Begin Page Level JS -->
- <script src="scripts/pages/dashboard.js"></script>
- <!-- End Page Level JS -->
- <script>
- $(function() {
- Tables.initTables('data-table');
- });
- </script>
- <!-- BEGIN JIVOSITE CODE {literal} -->
- <script type='text/javascript'>
- (function(){ var widget_id = 'tfVbZqjflY';var d=document;var w=window;function l(){
- var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}if(d.readyState=='complete'){l();}else{if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();</script>
- <div id='jivo_copyright' style='display: none'>Live Chat Powered by <a href='https://www.jivochat.com' target='_blank'>jivochat.com</a></div>
- <!-- {/literal} END JIVOSITE CODE -->
- </body>
- </html>
Add Comment
Please, Sign In to add comment