Location: PHPKode > scripts > Cwfm > cwfm/php/Status.php
<?
//////////////////////////////////////////////////////////////////////
//
// Status.php - Cwfm
//
// By Vincenzo Valvano - hide@address.com
//
// This program is free software; you can redistribute it and/or 
// modify it under the terms of the GNU General Public License as 
// published by the Free Software Foundation; either version 2 of 
// the License, or (at your option) any later version. This program 
// is distributed in the hope that it will be useful, but WITHOUT 
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 
// License for more details. You should have received a copy of the 
// GNU General Public License along with this program; if not, write 
// to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
// Boston, MA  02111-1307  USA
//////////////////////////////////////////////////////////////////////
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
include_once("Global.php");
include_once("Desc.php");
session_start();
if( !ValidSession() )
{
	IntrusionNotify();
	exit;
}
include_once("lang/$Language.php");
include_once("data/Cwfmini.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel=stylesheet href="Css.php" type="text/css">
<script language="JavaScript">
function SetStatus()
{
	parent.Done--;
}
</script>
</head>
<body  topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<?
global $command;

if( ($fp=@fopen("tmp/$sid/fstat", "r")) )
{
	$tf = substr(fgets($fp, 128),0,-1);
	$sf = substr(fgets($fp, 128),0,-1);
	$ts = substr(fgets($fp, 128),0,-1);
	$ss = substr(fgets($fp, 128),0,-1);
	fclose($fp);
	echo "<b>$L39_L</b>: ".number_format($tf,0,"",".")." / <b>$L40_L</b>: ".number_format($ts,0,"",".")." / <b>$L41_L</b>: ".number_format($sf,0,"",".")." / <b>$L42_L</b>: ".number_format($ss,0,"",".");
}
if( $CanDescV && $command == "select")
{
	if( ($path = LastSelected()) != "" )
	{
		if( strlen($iPath) <= 1 )
			$from = 1;
		else
			$from = strlen($iPath);
		$rel = substr($path, $from);
		if( ($idx = GetDescIdx(EncodeFilename($path))) >= 0 )
		{
			$desc = GetDesc($idx);
			echo " / <b>$L43_L</b>: '$desc[0]' <div  style=\"position:absolute\">";
			printf("<a href=\"#\" class=menu onClick=\"javscript:window.open('ShowMemo.php?idx=$idx&rel=%s','Memo','width=600,height=300')\">%s</a></div>", 
					EncodeFilename($rel), HiMenu($F37_L,1));
		}
	}
}
?>
<script language="JavaScript">
SetStatus();
</script>
</body>
</html>
Return current item: Cwfm