Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/mis2222/ums/ drwxr-xr-x |
Viewing file: Select action/file-type: include_once("pagebody.php"); pageHeader(); $pageTitle="กำหนดสิทธิ์การใช้รายคน"; // $UsID"; ?>
include_once("clsUmSystem.php"); include_once("clsUmGroup.php"); include_once("clsUmUserGroup.php"); include_once("clsUmMenu.php"); include_once("clsUmGPermission.php"); include_once("clsUmPermission.php"); include_once("clsUmUser.php"); $oC = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB'], $GLOBALS['USER'], $GLOBALS['PASSWORD']); $oSt = new umsystem($oC); $oGp = new umgroup($oC); $oUg = new umusergroup($oC); $oMnT = new ummenu($oC); $oMn = new umMenu($oC); $oGPm = new umgpermission($oC); $oPm = new umpermission($oC); $oUs = new umuser($oC); //get groups are assigned to user $oUg->RSgroupByUs($UsID); if ($oUg->GetRowSelected()>0){ /*while ($oUg->GetRecord()){ //get group info $oGp->SearchByKey ($oUg->UgGpID);*/ $oGp->SearchByKey ($UgGpID); $oGp->GetRecord(); //get app info $oSt->SearchByKey($oGp->GpStID); $oSt->GetRecord(); $StName = $oSt->StNameT; //create table echo "\n"; echo " "; //} //end while //reset all permission echo ""; }else{ echo " "; echo "Not assigned any groups to this user yet !!!"; echo " "; } ////////////////////////////////////////// function ShowMenuP($GpID, $MnID, $UsID){ global $oC; global $oT; global $Str; global $oGPm; global $oPm; global $rw; include_once("../class/clsDB.php"); $oMn = new ummenu($oC); $oMn->SearchByKey($MnID); $oMn->GetRecord(); if ($oMn->MnLevel==0){ $bs=""; $be=""; } $lv = $oMn->MnLevel+1; $checkX= "checked"; $checkC= "checked"; $checkR= "checked"; $checkU= "checked"; $checkD= "checked"; $oT->rowStart(); //$oT->addCell("MnID>"); $oT->addCell("MnID>" . str_pad("",10*6*$oMn->MnLevel, " ", STR_PAD_RIGHT).$bs.$oMn->MnNameT.$be); //find in UmPermission $oPm->SearchByKey($UsID, $oMn->MnID); if ($oPm->GetRowSelected()>0){ //found in umPermission $oPm->GetRecord(); if ($oPm->pmX==0) $checkX=""; if ($oPm->pmC==0) $checkC=""; if ($oPm->pmR==0) $checkR=""; if ($oPm->pmU==0) $checkU=""; if ($oPm->pmD==0) $checkD=""; }else{ $oGPm->SearchByKey($GpID, $oMn->MnID); if ($oGPm->GetRowSelected()>0){ //found in umGPermission $oGPm->GetRecord(); if ($oGPm->gpX==0) $checkX=""; if ($oGPm->gpC==0) $checkC=""; if ($oGPm->gpR==0) $checkR=""; if ($oGPm->gpU==0) $checkU=""; if ($oGPm->gpD==0) $checkD=""; } } $oT->addCell("MnID."x\" $checkX>"); $oT->addCell("MnID."c\" $checkC>"); $oT->addCell("MnID."r\" $checkR>"); $oT->addCell("MnID."u\" $checkU>"); $oT->addCell("MnID."d\" $checkD>"); $oT->rowEnd(); //show column header $rw++; if ($rw % 15 == 0){ $oT->rowStart("",$oT->headerBgColor); //$oT->addCell(""); $oT->addCell("เมนู","center"); $oT->addCell("X","center"); $oT->addCell("C","center"); $oT->addCell("R","center"); $oT->addCell("U","center"); $oT->addCell("D","center"); $oT->rowEnd(); } //show column header $oMn->RSmenuByParentMn($oMn->MnID); while ($oMn->GetRecord()){ ShowMenuP($GpID, $oMn->MnID, $UsID); } } ?>pageFooter(); ?> bool(false) |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0054 ]-- |