|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/eoffice/application/document/ |
Upload File : |
<?
session_start();
echo " à¢éÒ config ";
include("../../config/config.inc.php");
$sql_gcheck="
SELECT
$table_groupmember.gid,
$table_groupmember.staffid,
profile_permission.pid
FROM
$table_groupmember
Inner Join $table_staffgroup ON $table_groupmember.gid = $table_staffgroup.gid
Inner Join profile_permission ON profile_permission.gid = $table_staffgroup.gid
WHERE
$table_groupmember.staffid=$_SESSION[session_staffid]
";
$result = mysql_query("$sql_gcheck");
while($rsg = mysql_fetch_assoc($result)){
if ($rsg[pid]) { $_SESSION[session_permit][$rsg[pid]]= on; }
}
//print_r($_SESSION[session_permit]);
$_SESSION[session_username] = $uname;
$_SESSION[session_dev_id] = $rs[org_id];
$_SESSION[session_depusername] = $rs[username];
$_SESSION[session_fullname] = $rs[prename] . " " . $rs[staffname] . " " . $rs[staffsurname];
// addLog("",9,"Login à»ç¹ $uname");
header("Location: docreg.php?type=get");
exit;
?>