MINI SHELL

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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/eoffice/application/document/docreg_user_menu.php
<?
function check_db_base($get_dbname){ // ฟังก์ชั่นเช็ค database 
				$result_db = mysql_select_db($get_dbname);
			//	echo "$host   === $get_dbname ==  ".$result_db."<br>";
				if($result_db){
					$txt_db = "true";
				}else{
					$txt_db = "false";
				}
		return $txt_db;
}

/*
		function conn($host){
				$username="$epm_username";
				$password="$epm_password";
				$myconnect =mysql_connect($host,$username,$password);//or die (mysql_error()) ; //OR DIE("Unable to connect to database :: $host ");			
				$iresult = mysql_query("SET character_set_results=tis-620");
				$iresult = mysql_query("SET NAMES TIS620");
			}
*/
?>
<? if(!$action){?>
<STYLE type="text/css">
<!--
.style1 {color: #CCCCCC}
-->
</STYLE>

<SCRIPT type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<BODY onLoad="MM_preloadImages('../../images/system_icon/root_pic1.png','../../images/system_icon/root_pic2.png','../../images/system_icon/root_pic3.png','../../images/system_icon/root_pic4.png')">
<DIV align="center"> <BR />
	<BR />
	<TABLE width="60%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
		<TR>
			<TD>
				
				<TABLE width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
					<TR>
						<TD height="20" bgcolor="#F4F4F4">&nbsp;</TD>
				</TR>
					<TR>
						<TD align="center">&nbsp;</TD>
					</TR>
					<TR>
						<TD align="center">
						
						<A href="<?=$PHP_SELF?>?type=system&amp;action=user_manager" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('user_manager','','../../images/system_icon/root_pic1.png',1)"><IMG src="../../images/system_icon/root_pic_1.png" alt="การจัดการ User manager" name="user_manager" width="114" height="120" border="0" id="user_manager" /></A> &nbsp;&nbsp;
						
						<A href="<?=$PHP_SELF?>?type=organize&amp;action=user_manager"></A><A href="<?=$PHP_SELF?>?type=organize&amp;action=user_manager" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('org_manager','','../../images/system_icon/root_pic2.png',1)"><IMG src="../../images/system_icon/root_pic_2.png" alt="การจัดการ Organization Manage" name="org_manager" width="115" height="120" border="0" id="org_manager" /></A> &nbsp;&nbsp;

						<? if(($project_man=="on")){?>
						<A href="<?=$PHP_SELF?>?type=project&amp;action=user_manager" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','../../images/system_icon/root_pic3.png',1)"><IMG src="../../images/system_icon/root_pic_3.png" alt="การจัดการ Project Manage" name="Image7" width="115" height="120" border="0" id="Image7" /></A> &nbsp;&nbsp;
						<? }elseif(($project_man=="off")||(!$project_man)){?>
						<IMG src="../../images/system_icon/root_pic3_dis.png" alt="การจัดการ Project Manage" name="Image7" width="115" height="119" border="0" id="Image7" />&nbsp;&nbsp;
						<? }?>
						
						<A href="<?=$PHP_SELF?>?type=system&amp;action=autonumber" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','../../images/system_icon/root_pic4.png',1)"><IMG src="../../images/system_icon/root_pic_4.png" alt="การจัดการ เลขทะเบียนอัตโนมัต" name="Image5" width="115" height="120" border="0" id="Image5" /></A><A href="<?=$PHP_SELF?>?type=system&amp;action=autonumber"> </A>						</TD>
					</TR>
					<TR>
						<TD align="center">&nbsp;&nbsp;<A href="<?=$PHP_SELF?>?type=system&amp;action=user_manager"></A></TD>
				</TR>
	<?  if(check_db_base($db_epm)=="true"){ ?>				
	<?}?>
					
					<TR>			
						<TD height="20" bgcolor="#F4F4F4">&nbsp;</TD>
				</TR>
			</TABLE>		</TD>
		</TR>
	</TABLE>
	<BR/>
	<BR/>
	
	
	<? }elseif($action=="user_manager"){
 include "docreg_usermanage.php"; 
}elseif($action=="epm_manager"){
 include "docreg_epmmanage.php"; 
}elseif($action=="autonumber"){
 include "docreg_autonumber.php"; 
}?>
</DIV>

Anon7 - 2021