Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/celkcksm/ecampus.ncriptech.com/../websites/attendance.rmpharma.in/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("include/config.inc.php"); $do=mysqli_real_escape_string($con,$_REQUEST['do']); switch($do){ case "LeaveDates": $start=mysqli_real_escape_string($con,$_REQUEST['start']); $end=mysqli_real_escape_string($con,$_REQUEST['end']); for($i=0;$change<$end;$i++){ $change=date("Y-m-d",strtotime($start." + $i day")); $html.="<label style='margin-right:10px;'>".$change."<input type='checkbox' class='leaves_date_array' class='leaves' name='leaves[]' value='".$change."' /></label>"; } $response=$html; break; case "Take": $leaves=json_decode($_REQUEST['leaves']); echo json_encode($leaves[0]); break; } function dateDiff($date1, $date2) { $date1_ts = strtotime($date1); $date2_ts = strtotime($date2); $diff = $date2_ts - $date1_ts; return round($diff / 86400); } function change($time,$x){ return date("H:i:s",strtotime($time." $x seconds")); } ?>