include('membersin.php'); ?>
include('latebikes.php'); ?>
include('generaltodo.php'); ?>
home"?> |
welcomeTo $cfg_company $lang->reportViewerHomeWelcomeMessage"; ?> closeDBlink(); ?>
=NOW()"));//SELECT id FROM customers")); } function getvolunteerhours() { /*$vquery = "SELECT *, DATE_FORMAT(endout,'%l:%i %p') as humanout, DATE_FORMAT(intime,'%b %e, %Y') as humanindate, DATE_FORMAT(intime,'%l:%i %p') as humanintime, UNIX_TIMESTAMP(intime) as unixin, UNIX_TIMESTAMP(endout) as unixout FROM visits WHERE endout IS NOT NULL AND activity!='dogfucking' AND activity!='using'";* / $vresult = mysql_query($vquery); if (!$vresult) { echo mysql_error(); } $totalseconds=0; while($row = mysql_fetch_array($vresult)){ $timespent = $row[unixout] - $row[unixin]; $totalseconds = $totalseconds + $timespent; } return round($totalseconds/3600);*/ $vquery = "SELECT ROUND(SUM(TIMESTAMPDIFF(MINUTE,intime,endout))/60) AS total FROM visits WHERE activity NOT IN ('volunteering', 'Administrator', 'Mechanic');"; $vresult = mysql_query($vquery); $row = mysql_fetch_array($vresult); return $row[total]; } function getmonth($m=0) { return (($m==0 ) ? date("F") : date("F", mktime(0,0,0,$m))); } $lang=new language(); $dbf=new db_functions($cfg_server,$cfg_username,$cfg_password,$cfg_database,$cfg_tableprefix,$cfg_theme,$lang); $sec=new security_functions($dbf,'Public',$lang); if(!$sec->isLoggedIn()){ header ("location: login.php"); exit(); } $tablename = $cfg_tableprefix.'users'; $auth = $dbf->idToField($tablename,'type',$_SESSION['session_user_id']); $first_name = $dbf->idToField($tablename,'first_name',$_SESSION['session_user_id']); $last_name= $dbf->idToField($tablename,'last_name',$_SESSION['session_user_id']); if(cfg_mustOpen && !$sec->isOpen()){ header("location: books/openshop.php"); exit(); } $name=$first_name.' '.$last_name; $dbf->optimizeTables(); ?>
home ?>
welcomeTo $cfg_company's -BikeTree- bike co-op management software."; ?>
home"?> |
welcomeTo $cfg_company $lang->reportViewerHomeWelcomeMessage"; ?> closeDBlink(); ?>