Guest User

Untitled

a guest
Dec 16th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.92 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. session_start();
  4.  
  5. if(isset($_SESSION['username'])) {
  6. header('location:/');
  7. }
  8. require_once("include/config.php");
  9. ?>
  10. <!DOCTYPE html>
  11. <html lang="">
  12.  
  13. <head>
  14. <meta charset="utf-8">
  15. <title>Stars Media - Login Page</title>
  16. <meta name="description" content="Stars Media Adalah WebPanel Penyedia Layanan Sosial Media/SMM.">
  17. <meta name="author" content="Muhammad Doni">
  18. <meta name="viewport" content="width=device-width, initial-scale=1">
  19.  
  20. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  21. <link rel="icon" href="favicon.ico" type="image/x-icon">
  22.  
  23. <!-- Begin Vendor CSS -->
  24. <link rel="stylesheet" href="scripts/plugins/bootstrap/dist/css/bootstrap.css">
  25. <link rel="stylesheet" href="scripts/plugins/components-font-awesome/css/font-awesome.css" />
  26. <link rel="stylesheet" href="scripts/plugins/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css" />
  27. <link rel="stylesheet" href="scripts/plugins/nvd3/build/nv.d3.min.css">
  28. <link rel="stylesheet" href="scripts/plugins/datatables/media/css/jquery.dataTables.css" />
  29. <link rel="stylesheet" href="scripts/plugins/datatables-tabletools/css/dataTables.tableTools.css" />
  30.  
  31. <link rel="stylesheet" href="scripts/plugins/jquery.steps/demo/css/jquery.steps.css">
  32. <!-- End Vendor CSS -->
  33. <link rel="stylesheet" href="scripts/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css" />
  34. <!-- Begin XPLOIT CSS -->
  35. <link rel="stylesheet" href="styles/xploit.css">
  36. <!-- End XPLOIT CSS -->
  37.  
  38. <style>
  39. .nv-x .tick {
  40. opacity: 0 !important;
  41. }
  42.  
  43. .nv-y path {
  44. display: none;
  45. }
  46.  
  47. .nv-y text {
  48. fill: #aaa;
  49. font-weight: normal !important;
  50. }
  51.  
  52. .highcharts-tooltip > path{
  53. fill: #000 !important;
  54. stroke: transparent;
  55. }
  56. .highcharts-tooltip > text {
  57. fill: #fff !important;
  58. }
  59.  
  60. .highcharts-tooltip > text > tspan:first-child {
  61. text-transform: uppercase;
  62. font-size: 14px !important;
  63. margin-bottom: 15px;
  64. }
  65. </style>
  66. </head>
  67.  
  68. <body class="navbar-collapsed">
  69. <!--
  70. All the utility classes are assigned to the body tag to cover all the elements inside the tag
  71. Classes Used:
  72. navbar-collapsed - for collapsed navbar
  73.  
  74.  
  75. For the time being XPLOIT comes with only fixed header version, so the CSS is directly added
  76.  
  77. The body elements contains these main elements in the below hierarchy
  78.  
  79. body
  80. .content-wrapper
  81. #page-sidebar - Navigation for the app
  82. #page-header - Header element for the app
  83. #page-content - Main content for each of the page
  84. #page-footer - App footer
  85. -->
  86.  
  87.  
  88.  
  89. <!--[if lt IE 10]>
  90. <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>
  91. <![endif]-->
  92.  
  93. <!--
  94. Content Wrapper is the main elements that holds all the elements inside it.
  95. -->
  96.  
  97. <!-- Begin Content Wrapper -->
  98. <div class="content-wrapper">
  99. <!-- Begin Page Sidebar -->
  100. <nav id="page-sidebar">
  101. <!--
  102. #page-siderbar contains the base navigation items and contains
  103. .sidebar-header,
  104. .sidebar-avatar,
  105. .sidebar-navigation and
  106. .sidebar-stats
  107.  
  108. Sidebar is categorized in the four sections as mentioned above
  109. and contains their respective HTML codes
  110.  
  111. The main navigation items are under .sidebar-navigation unordered list
  112. -->
  113.  
  114.  
  115. <!-- Begin Scrollbar Padder -->
  116. <div class="scrollbar-padder">
  117. <!-- Begin Sidebar Container -->
  118. <div class="sidebar-container">
  119. <!-- Begin Sidebar Header -->
  120. <div class="sidebar-header">
  121. <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>
  122. </div>
  123.  
  124. <!-- End Sidebar Header -->
  125.  
  126.  
  127. <!-- Begin Sidebar Navigation -->
  128. <ul class="sidebar-navigation ul-clear">
  129.  
  130. <!--
  131. Contains all the list items for the navigation.
  132. <li> with the class menu-header is the category header for the list.
  133. Respective <li> or the current <li> is added with the "open" manually for all the page.
  134. And all the <li> childrens(<ul) are given with the class "nav-submenu"
  135. -->
  136. <?php include 'jangan/menu.php'; ?>
  137.  
  138. <!-- Begin Sidebar Footer -->
  139. <div class="sidebar-footer">
  140.  
  141. </div>
  142. <!-- End Sidebar Footer -->
  143. </div>
  144. <!-- End Sidebar Container -->
  145. </div>
  146.  
  147. <!-- Begin Scrollbar Padder -->
  148. </nav>
  149. <!-- End Page Sidebar -->
  150.  
  151. <!-- Begin Page Header -->
  152. <header id="page-header">
  153. <div class="header-container hidden-md hidden-lg">
  154. <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>
  155. </div>
  156.  
  157. <!-- Begin Navbar Content -->
  158. <div class="navbar-content">
  159. <ul class="nav navbar-nav">
  160. <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>
  161. <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>
  162.  
  163.  
  164.  
  165. </ul>
  166. <!--
  167. Header contains contains all the header menus and the profile option.
  168. It uses bootstrap navbar classes for all the <ul>
  169. -->
  170. <?php
  171. $content = mysql_real_escape_string($_GET['content']);
  172. if ($content == "daftar-harga-operator") {
  173. include_once "content/daftar-harga-operator.php";
  174. } else if ($content == "add-balance") {
  175. include_once "content/add-balance.php";
  176. } else if ($content == "history-balance") {
  177. include_once "content/history-balance.php";
  178. } else if ($content == "api") {
  179. include_once "content/api.php";
  180. } else if ($content == "reset-api") {
  181. include_once "content/reset-api.php";
  182. } else if ($content == "invoice") {
  183. include_once "content/invoice.php";
  184. } else if ($content == "daftar-harga") {
  185. include_once "content/daftar-harga.php";
  186. } else if ($content == "profile") {
  187. include_once "content/profile.php";
  188. } else if ($content == "tiket") {
  189. include_once "content/tiket.php";
  190. } else if ($content == "tikets") {
  191. include_once "content/tikets.php";
  192. } else if ($api == "api") {
  193. include_once "api/api.php";
  194. } else { ?>
  195.  
  196.  
  197. <ul class="nav navbar-nav pull-right hidden-sm hidden-xs">
  198. <li class="dropdown">
  199. <a href="javascript:void(0)" class="text-default" data-toggle="dropdown">
  200. <span class="m-sm-r"><?php echo $username; ?></span><i class="fa fa-angle-down"></i>
  201. </a>
  202. <ul class="profile-dropdown dropdown-menu dropdown-menu-right" role="menu">
  203. <li role="presentation">
  204. <!-- Begin Profile Menu Container -->
  205. <div class="profile-menu-container">
  206. <div class="media">
  207. <div class="profile-image pull-left">
  208. <img src="<?php echo $tampil['photo']; ?>" alt="Avatar" height="64" width="64" class="img-circle">
  209. </div>
  210. <div class="media-body">
  211. <h4 class="fw-thk m-n"><?php echo $username; ?></h4>
  212. <p class="fs-sm m-xs-t">Level : <strong><a href="javascript:void(0)" class="text-info"><?php echo $level; ?></a></strong></p>
  213. <button class="btn btn-success w-100 text-uppercase fs-sm">Online <i class="fa fa-circle"></i></button>
  214. </div>
  215. </div>
  216. <div class="profile-options">
  217. <div class="text-center">
  218. <a href="/?content=profile"><i class="fa fa-user fa-fw"></i></a>
  219. </div>
  220. <div class="text-center">
  221. <a href="/?content=profile"><i class="fa fa-cog fa-fw"></i></a>
  222. </div>
  223. <div class="text-center">
  224. <a href="logout.php"><i class="fa fa-power-off"></i></a>
  225. </div>
  226. </div>
  227. </div>
  228. <!-- End Profile Menu Container -->
  229. </li>
  230. </ul>
  231. </li>
  232. </ul>
  233. </div>
  234. <!-- End Navbar Content -->
  235. </header>
  236. <!-- End Page Header -->
  237.  
  238. <!-- Begin Page Content -->
  239. <main id="page-content"> <div class="row">
  240. <div class="col-md-6">
  241. <div class="panel panel-default">
  242. <div class="panel-heading">
  243. <h3 class="panel-title"><i class="fa fa-user"></i> Masuk</h3>
  244. </div>
  245. <div class="panel-body">
  246.  
  247. <?php if(isset($_POST['masuk'])) {
  248. $username = mysql_real_escape_string($_POST['username']);
  249. $pass = mysql_real_escape_string($_POST['password']);
  250.  
  251. // Recaptcha System By Agum Darmawan
  252. // Everyone Store
  253. $recaptcha_secret = "6Le9QT0UAAAAAGi9X2RnkO_n7CTs_ZfSVMb7lnWI"; // Secret Code
  254. $response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$recaptcha_secret."&response=".$_POST['g-recaptcha-response']);
  255. $response = json_decode($response, true);
  256.  
  257. $cekuser = mysql_query("SELECT * FROM user WHERE username = '$username'");
  258. $jumlah = mysql_num_rows($cekuser);
  259. $get = mysql_fetch_array($cekuser);
  260. if($jumlah == 0) { // user tdk terdaftar ?>
  261. <div class="alert alert-danger"> <strong>Akun Tidak Terdaftar!.</strong> </div>
  262. <script>
  263. swal("Error!", "Akun Tidak Terdaftar!.", "error");
  264. </script>
  265. <? } else if($response["success"] === false) { // Recaptcha Response ?>
  266. <div class="alert alert-danger"> <strong>Captcha Tidak Valid !</strong> </div>
  267. <script>
  268. swal("Error!", "Captcha Tidak Valid !", "error");
  269. </script>
  270. <? } else {
  271. if(!password_verify($pass, $get['password'])) { // pass salah ?>
  272. <div class="alert alert-danger"> <strong>Username Atau Password Salah!</strong> </div>
  273. <script>
  274. swal("Error!", "Username Atau Password Salah!.", "error");
  275. </script>
  276. <? } else {
  277. $_SESSION['username'] = $get['username'];
  278. header('location:/');
  279. } } } ?>
  280. <form class="form-horizontal" role="form" method="POST">
  281. <div class="form-group">
  282. <label class="col-md-2 control-label">Username</label>
  283. <div class="col-md-10">
  284. <input type="text" name="username" class="form-control" placeholder="Username">
  285. </div>
  286. </div>
  287. <div class="form-group">
  288. <label class="col-md-2 control-label">Password</label>
  289. <div class="col-md-10">
  290. <input type="password" name="password" class="form-control" placeholder="Password">
  291. </div>
  292.  
  293. <div class="form-group">
  294. <div class="col-md-offset-2 col-md-10">
  295. <button type="submit" class="btn btn-success btn-bordered waves-effect w-md waves-light" name="masuk">Masuk</button>
  296. <a class="btn btn-warning btn-bordered waves-effect w-md waves-light" href="lupa-sandi.php">Lupa password</a>
  297. </div>
  298. </div>
  299. </form>
  300. </div>
  301. </div>
  302. </div>
  303.  
  304. <div class="col-md-6">
  305. <div class="panel panel-default">
  306. <div class="panel-heading">
  307. <h3 class="panel-title"><i class="fa fa-question-circle"></i> Tentang Kami</h3>
  308. </div>
  309. <div class="panel-body">
  310. <h5>Stars Media adalah sebuah website penyedia layanan sosial media terlengkap, termurah, dan berkualitas.</h5>
  311. </div>
  312. </div>
  313. </div></div>
  314. <!-- End Row -->
  315. </main>
  316. <!-- End Page Content -->
  317. <? } ?>
  318. <!-- Begin Page Footer -->
  319. <footer id="page-footer">
  320. <p class="m-n text-left"><strong class="text-success ls-xs">&copy;</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>
  321. </footer>
  322. <!-- End Page Footer -->
  323. </div>
  324. <!-- End Content Wrapper -->
  325.  
  326.  
  327. <!-- Begin Vendor JS -->
  328. <script src="scripts/plugins/jquery/jquery.js"></script>
  329. <script src="scripts/plugins/bootstrap/dist/js/bootstrap.js"></script>
  330. <script src="scripts/plugins/kapusta-jquery.sparkline/dist/jquery.sparkline.min.js"></script>
  331. <script src="scripts/plugins/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.js"></script>
  332. <script src="scripts/plugins/d3/d3.min.js"></script>
  333. <script src="scripts/plugins/nvd3/build/nv.d3.min.js"></script>
  334. <script src="scripts/plugins/raphael/raphael.min.js"></script>
  335. <script src="scripts/plugins/jquery-mapael/js/jquery.mapael.min.js"></script>
  336. <script src="scripts/plugins/jquery-mapael/js/maps/usa_states.min.js"></script>
  337. <script src="scripts/plugins/highcharts/highcharts.js"></script>
  338. <script src="scripts/plugins/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js"></script>
  339. <script src="scripts/plugins/rickshaw/rickshaw.min.js"></script>
  340. <script src="scripts/plugins/jquery.steps/build/jquery.steps.min.js"></script>
  341. <script src="scripts/plugins/jquery-validation/dist/jquery.validate.min.js"></script>
  342. <script src="scripts/plugins/twitter-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
  343. <script src="scripts/plugins/datatables/media/js/jquery.dataTables.js"></script>
  344. <script src="scripts/plugins/datatables-responsive/js/dataTables.responsive.js"></script>
  345. <script src="scripts/plugins/datatables-tabletools/js/dataTables.tableTools.js"></script>
  346. <script src="scripts/plugins/datatables-fixedheader/js/dataTables.fixedHeader.js"></script>
  347. <!-- End Vendor JS -->
  348. <script src="scripts/pages/tables.js"></script>
  349.  
  350. <!-- Begin XPLOIT JS -->
  351. <script src="scripts/xploit.js"></script>
  352. <!-- End XPLOIT JS -->
  353. <script src="scripts/pages/forms.wizard.js"></script>
  354. <!-- Begin Page Level JS -->
  355. <script src="scripts/pages/dashboard.js"></script>
  356. <!-- End Page Level JS -->
  357. <script>
  358. $(function() {
  359. Tables.initTables('data-table');
  360. });
  361. </script>
  362. <!-- BEGIN JIVOSITE CODE {literal} -->
  363. <script type='text/javascript'>
  364. (function(){ var widget_id = 'tfVbZqjflY';var d=document;var w=window;function l(){
  365. 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>
  366. <div id='jivo_copyright' style='display: none'>Live Chat Powered by <a href='https://www.jivochat.com' target='_blank'>jivochat.com</a></div>
  367. <!-- {/literal} END JIVOSITE CODE -->
  368.  
  369. </body>
  370.  
  371. </html>
Add Comment
Please, Sign In to add comment