################################################### #Copyright (C) 2001 Stuart Wigley (stuartwigley@yahoo.co.uk) # #main.php 19/04/2001 # #This file is part of workbench. # #workbench 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. # #workbench 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 workbench; if not, write to the Free Software #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ##################################################### session_start(); require_once("config.php"); require_once("connect.php"); require_once("general.php"); include("header.php"); #if user has logged in get $login from session plus some useful information if ($HTTP_SESSION_VARS["login"] && session_is_registered("login")){ $login = $HTTP_SESSION_VARS["login"]; $query = mysql_query("select * from users where users.login='$login'") or die(mysql_error()); $result = mysql_fetch_array($query); $query2 = mysql_query("select * from groups where grpID='$result[grpID]'") or die(mysql_error()); $result2 = mysql_fetch_array($query2); $query3 = mysql_query("select * from bugs where assTo='$login' and statusID!='3'") or die(mysql_error()); $query4 = mysql_query("select email from users where userID='1'") or die(mysql_error()); $result4 = mysql_fetch_array($query4); $query5 = mysql_query("select * from bugs where openedBy='$login' and statusID!='3'") or die(mysql_error()); #update accessLog table $query7 = mysql_query("select * from accessLog where sessionID='".session_id()."'") or die(mysql_error()); if (!mysql_num_rows($query7)){ mysql_query("insert into accessLog (sessionID,date,useragent,userID) values('".session_id()."','$now','$HTTP_USER_AGENT','$result[userID]')") or die(mysql_error()); } ?>
Hello =$result[fName]." ".$result[sName]?> and welcome to =$theVersion?> |
You are currently a member of the "=$result2[grpName]?>" group and you have access to the following projects: $query6 = mysql_query("select * from projectAccess, apps, users where users.login='$login' and projectAccess.userID=users.userID and projectAccess.appID=apps.appID order by apps.appName") or die(mysql_error()); echo("
If you believe this information to be inaccurate please contact your Administrator. |
You have =mysql_num_rows($query3)?> issues assigned to you and =mysql_num_rows($query5)?> issues outstanding which you opened. These can be viewed on the "View Issues" screen. If you cannot see these issues make sure that you have set your filter correctly on the "Settings" screen. |