0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.138.67.56


Current Path : /var/www/misc/public_html/oums_old/phpscript/
Upload File :
Current File : /var/www/misc/public_html/oums_old/phpscript/sys_modules.php

<?php
	function get_page_info($link_file)
	{
		global $link_tit;
		global $link_but;
		global $link_path;
		global $link_name;
		include("sys_connect.php");
		@$mysql="select * from menulist where flinkpath='$link_file'";		
		@$myres=mysqli_query($mycon,$mysql);
		while($row = @mysqli_fetch_assoc($myres))
		{
			@$link_tit=$row['fmenuname'];
			@$link_add=$row['flinkadd'];
			@$link_edt=$row['flinkedt'];
			@$link_del=$row['flinkdel'];
			@$link_sav=$row['flinksav'];
			@$link_can=$row['flinkcan'];
			@$link_clr=$row['flinkclr'];
			@$link_rep=$row['flinkrep'];
		}
	
		@$link_path=$link_file;
		@$link_name=basename(@$link_path, ".php");
		
		if (@$link_add!=""){$butt_add="<input type=\"button\" id=\"add\" name=\"add\" value=\"Add\" onClick=\"window.location='$link_add'\"/>\n";}
		if (@$link_edt!=""){$butt_edt="<input type=\"button\" id=\"edt\" name=\"edt\" value=\"Edit\" onClick=\"window.location='$link_edt'\"/>\n";}
		if (@$link_del!=""){$butt_del="<input type=\"submit\" id=\"del\" name=\"del\" value=\"Delete\"/>\n";}
		if (@$link_sav!=""){$butt_sav="<input type=\"submit\" id=\"sav\" name=\"sav\" value=\"Save\"/>\n";}
		if (@$link_rep!=""){$butt_rep="<input type=\"submit\" id=\"rep\" name=\"rep\" value=\"View Report\" onClick=\"window.location='$link_rep'\"/>\n";}
		if (@$link_can!=""){$butt_can="<input type=\"button\" id=\"can\" name=\"can\" value=\"Cancel\" onClick=\"window.location='$link_can'\"/>\n";}
		if (@$link_clr!=""){$butt_clr="<input type=\"reset\" id=\"clr\" name=\"clr\" value=\"Clear\" onClick=\"window.location='$link_clr'\"/>\n";}
		
		@$link_but=@$butt_add.@$butt_edt.@$butt_del.@$butt_sav.@$butt_rep.@$butt_can.@$butt_clr;
		
		return @$link_tit;
		return @$link_but;
		return @$link_file;	
		return @$link_name;
	}

	function get_dept_info($dept_code)
	{
		global $gdept_code;
		global $gdept_name;
		include("sys_connect.php");
		@$mysql="select * from masdept where fdeptcode='$dept_code'";
		@$myres=mysqli_query($mycon,$mysql);
		while($row = @mysqli_fetch_assoc($myres))
		{
			$gdept_name=$row['fdeptname'];
		}
		if ($dept_code=='%')
		{
			$gdept_name="All";	
		}
		return $gdept_name;
	}
	
	function get_empl_info($empl_code)
	{
		global $gempl_code;
		global $gempl_name;
		include("sys_connect.php");		
		@$mysql="select * from masempl where femplcode='$empl_code'";
		@$myres=mysqli_query($mycon,$mysql);
		while($row = @mysqli_fetch_assoc($myres))
		{
			$gempl_name=$row['femplname'];
		}
		if ($empl_code=='%')
		{
			$gempl_name="All";	
		}	
		return $gempl_name;
	}
?>