403Webshell
Server IP : 119.59.102.212  /  Your IP : 3.141.244.88
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/first_page/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/first_page/first_page.php
<?php
navigator($navig);
//#5.3#//if($p_status_data_other!="")		{	     $status_data_other=trim($p_status_data_other);		}
$status_data_other = isset($p_status_data_other) ? $p_status_data_other : '';
//#5.3#//if($p_status_news_out!="")		{	     $status_news_out=trim($p_status_news_out);			}
$status_news_out = isset($p_status_data_other) ? $p_status_data_other : '';
//#5.3#//if($p_status_news!="")				{	     $status_news=trim($p_status_news);							}
$status_news = isset($p_status_news) ? $p_status_news : '';
//#5.3#//if($p_status_news_tender_out!="")		{	     $status_news_tender_out=trim($p_status_news_tender_out);		}
$status_news_tender_out = isset($p_status_news_tender_out) ? $p_status_news_tender_out : '';
//#5.3#//if($p_status_news_tender!="")				{	     $status_news_tender=trim($p_status_news_tender);						}
$status_news_tender = isset($p_status_news_tender) ? $p_status_news_tender : '';

//#5.3#//if($p_status_first_page!="")		{	     $status_first_page=trim($p_status_first_page);		}
$status_first_page = isset($p_status_first_page) ? $p_status_first_page : '';
//#5.3#//if($p_status_webboard!="")		{	     $status_webboard=trim($p_status_webboard);			}
$status_webboard = isset($p_status_webboard) ? $p_status_webboard : '';

// ############################## กิจกรรมทั่วไป ###############################		
$status_module=select_query("status_module","cms_status_module","id","7");
if($status_module[0]==1)	{	// สถานะตาม PACKAGE 
// update status
if($_SESSION['admin_web']=="admin" || (id_top_permission("data_other"))){
  if($status_data_other=="1"){
    $sq="UPDATE cms_status_module set status='1' WHERE id='7'";
    $re=mysql_query($sq);
  }else if($status_data_other=="0"){
    $sq="UPDATE cms_status_module set status='0' WHERE id='7'";
    $re=mysql_query($sq);	
  }
}

# เช็คสถานะของ status
$x=select_query("status","cms_status_module","id","7");
if($_SESSION['admin_web']=="admin" || (id_top_permission("data_other"))){
?>
  <br/>
  <table align="center">
    <tr bgcolor='ffcc00' height='1'>
      <?php if($x[0]=="0"){ ?>
        <td colspan="2"><img src='coremain/images/hide.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_data_other=1' title='แสดงข้อมูล'> แสดงข้อมูลกิจกรรมทั่วไป</a></td>
      <?php }else{ ?>
        <td><img src='coremain/images/show.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_data_other=0' title='ซ่อนข้อมูล'> ซ่อนกิจกรรมทั่วไป</a></td>
        <td><img src='coremain/images/edit.gif'> <a href='index.php?mod=page_others_update&path=page_others' title='แก้ไขข้อมูล'>แก้ไขข้อมูล</a></td>
      <?php } ?>
    </tr>
  </table>
<?php }
# แสดงข้อมูล
if($x[0]==1){
  if($_SESSION['id_tumbon']=="dankhun2_n23")		{ bar_header("แหล่งท่องเที่ยวภายในตำบลหนองจะบก"); }
  else{ bar_header("กิจกรรมทั่วไป"); }

  if(!($_SESSION['admin_web']=="admin" || (id_top_permission("data_other")))){
    echo "<br/>";
  }
?>
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td>
        <?php  include('coremain/module/page_others/page_others.php'); ?>
      </td>
    </tr>
  </table>
<?php }
}

# ภาพกิจกรรม ?>
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td>&nbsp;
      <?php  include('coremain/module/freerss/freerss.php'); ?>
      </td>
    </tr>
  </table>
  
<?php
####################### ข่าวประชาสัมพันธ์ภายในหน่วยงาน #####################
$status_module=select_query("status_module","cms_status_module","id","2");
$id_sub=99999;
if($status_module[0]==1){  // สถานะตาม PACKAGE 
  // update status
  if($_SESSION['admin_web']=="admin" || (id_top_permission("news"))){
    if($status_news=="1"){
      $sq="UPDATE cms_status_module set status='1' WHERE id='2'";
      $re=mysql_query($sq);
    }else if($status_news=="0"){
      $sq="UPDATE cms_status_module set status='0' WHERE id='2'";
      $re=mysql_query($sq);	
    }
  }
  
  # เช็คสถานะของ status
  $x=select_query("status","cms_status_module","id","2");	
  if($_SESSION[admin_web]=="admin" || (id_top_permission("news"))){ ?>
  <br/>
  <table align='center'>
    <tr bgcolor='ffcc00' height='1'>
      <?php if($x[0]=="0"){ ?>
        <td colspan="2"><img src='coremain/images/hide.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news=1' title='แสดงข้อมูล'> แสดงข้อมูลข่าวประชาสัมพันธ์ (ภายในหน่วยงาน)</a></td>
      <?php }else{ ?>
        <td><img src='coremain/images/show.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news=0' title='ซ่อนข้อมูล'> ซ่อนข้อมูลข่าวประชาสัมพันธ์ (ภายในหน่วยงาน)</a>&nbsp;</td>
        <td><img src='coremain/images/add.gif'> <a href='index.php?mod=news_add&path=news&id_type=1&id_sub=<?=$id_sub?>' title='เพิ่มข้อมูล'>เพิ่มข้อมูล</a></td>
      <?php } ?>
    </tr>
  </table>
<?php }
  
  # แสดงข้อมูล
  if($x[0]==1){
    bar_header("ข่าวประชาสัมพันธ์ (ภายในหน่วยงาน)");
    if(!($_SESSION['admin_web']=="admin" || (id_top_permission("news")))){ echo "";}
  ?>
    <table width='100%' border='0' cellpadding='0' cellspacing='0'>
      <tr>
        <td>
          <?php   include('coremain/module/news/news.php'); ?>
        </td>
      </tr>
      <tr height='3'><td></td></tr>
    </table>
  <?php }
}


// ############################ ข่าวประชาสัมพันธ์ภายนอก ###############################		
$status_module=select_query("status_module","cms_status_module","id","4");
if($status_module[0]==1){  // สถานะตาม PACKAGE 
// update status
  if($_SESSION['admin_web']=="admin" || (id_top_permission("news_out"))){
    if($status_news_out=="1"){
      $sq="UPDATE cms_status_module set status='1' WHERE id='4'";
      $re=mysql_query($sq);
    }else if($status_news_out=="0"){
      $sq="UPDATE cms_status_module set status='0' WHERE id='4'";
      $re=mysql_query($sq);	
    }
  }
  
  # เช็คสถานะของ status
  $x=select_query("status","cms_status_module","id","4");
  if($_SESSION['admin_web']=="admin" || (id_top_permission("news_out"))){
?>
  <br/>
  <table align='center'>
    <tr bgcolor='ffcc00' height='1'>
      <?php if($x[0]=="0"){ ?>
        <td><img src='coremain/images/hide.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news_out=1' title='แสดงข้อมูล'> แสดงข้อมูลข่าวประชาสัมพันธ์ (ภายนอกหน่วยงาน)</a></td>
      <?php }else{ ?>
        <td><img src='coremain/images/show.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news_out=0' title='ซ่อนข้อมูล'> ซ่อนข้อมูลข่าวประชาสัมพันธ์ (ภายนอกหน่วยงาน)</a></td>
      <?php } ?>
    </tr>
  </table>
<?php }

  # แสดงข้อมูล
  if($x[0]==1){
    if(!($_SESSION['admin_web']=="admin" || (id_top_permission("news_out")))){ echo "<br/>";}
    bar_header("ข่าวประชาสัมพันธ์ (ภายนอกหน่วยงาน)"); ?>
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td><?php  include('coremain/module/news_out/news.php'); ?></td>
    </tr>
  </table>
<?php }
}


//####### ข่าวบริหารงานบุคคลเฉพาะอัน ##################
if($_SESSION['dbname']=="chonburi_14"){
  if($_SESSION['admin_web']=="admin"){
?>
  <br/>
  <table align='center'>
    <tr bgcolor='ffcc00' height='1'>
      <td><img src='coremain/images/add.gif'> <a href='index.php?mod=news_add&path=news_persion&id_type=3&id_sub=<?=$id_sub?>' title='เพิ่มข้อมูลข่าวบริหารงานบุคคล'>เพิ่มข้อมูลข่าวบริหารงานบุคคล</a></td>
    </tr>
  </table>
<?php }
  bar_header("ข่าวบริหารงานบุคคล");
?>
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td>
        <?php include('coremain/module/news_persion/news.php'); ?>
      </td>
    </tr>
  </table>
<?php
}

if($_SESSION['dbname'] !="chonburi_26"){
####################### ข่าวประกวดราคาภายใน #####################
  $status_module=select_query("status_module","cms_status_module","id","3");
  if($status_module[0]==1){  // สถานะตาม PACKAGE 
	# update status
	if($_SESSION['admin_web']=="admin" || (id_top_permission("news_tender"))){
      if($status_news_tender=="1"){
        $sq="UPDATE cms_status_module set status='1' WHERE id='3'";
        $re=mysql_query($sq);
      }else if($status_news_tender=="0"){
        $sq="UPDATE cms_status_module set status='0' WHERE id='3'";
        $re=mysql_query($sq);	
      }
    }
    # เช็คสถานะของ status
	$x=select_query("status","cms_status_module","id","3");
	if($_SESSION['admin_web']=="admin" || (id_top_permission("news_tender"))){
?>
  <br/>
  <table align='center'>
    <tr bgcolor='ffcc00'>
      <?php if($x[0]=="0"){ ?>
        <td colspan="2"><img src='coremain/images/hide.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news_tender=1' title='แสดงข้อมูล'> แสดงข้อมูลข่าวจัดซื้อจัดจ้าง (ภายในหน่วยงาน)</a></td>
      <?php }else{ ?>
        <td><img src='coremain/images/show.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news_tender=0' title='ซ่อนข้อมูล'>  ซ่อนข้อมูลข่าวจัดซื้อจัดจ้าง (ภายในหน่วยงาน)</a></td>
        <td><img src='coremain/images/add.gif'> <a href='index.php?mod=news_tender_add&path=news_tender' title='เพิ่มข้อมูล'>เพิ่มข้อมูล</a></td>
      <?php } ?>
    </tr>
  </table>
<?php }
	// แสดงข้อมูล
  if($x[0]==1){
	if(!($_SESSION['admin_web']=="admin" || (id_top_permission("news_tender")))){ echo "<br>"; }
	bar_header("ข่าวจัดซื้อจัดจ้าง (ภายในหน่วยงาน)");
?>
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td>&nbsp;<?php  include('coremain/module/news_tender/news_tender.php'); ?></td>
    </tr>
  </table>
<?php
  }
}


####################### ข่าวประกวดราคาภายนอก #####################
$status_module=select_query("status_module","cms_status_module","id","5");
  if($status_module[0]==1){  // สถานะตาม PACKAGE 
	# update status
	if($_SESSION['admin_web']=="admin" || (id_top_permission("news_tender_out"))){
      if($status_news_tender_out=="1"){
        $sq="UPDATE cms_status_module set status='1' WHERE id='5'";
        $re=mysql_query($sq);
      }else if($status_news_tender_out=="0"){
        $sq="UPDATE cms_status_module set status='0' WHERE id='5'";
        $re=mysql_query($sq);	
      }
    }
    # เช็คสถานะของ status
	$x=select_query("status","cms_status_module","id","5");	
	if($_SESSION['admin_web']=="admin" || (id_top_permission("news_tender_out"))){
?>
  <br/>
  <table align='center'>
    <tr bgcolor='ffcc00' height='1'>
    <?php if($x[0]=="0"){ ?>
      <td><img src='coremain/images/hide.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news_tender_out=1' title='แสดงข้อมูล'> แสดงข้อมูลข่าวจัดซื้อจัดจ้าง (ภายนอกหน่วยงาน)</a></td>
    <?php }else{ ?>
      <td><img src='coremain/images/show.gif' border=0><a href='index.php?mod=first_page&path=first_page&status_news_tender_out=0' title='ซ่อนข้อมูล'>  ซ่อนข้อมูลข่าวจัดซื้อจัดจ้าง (ภายนอกหน่วยงาน)</a></td>
    <?php } ?>
    </tr>
  </table>
<?php }
	# แสดงข้อมูล
	if($x[0]==1){
      if(!($_SESSION['admin_web']=="admin" || (id_top_permission("news_tender_out")))){ echo "<br/>";}
      bar_header("ข่าวจัดซื้อจัดจ้าง (ภายนอกหน่วยงาน)");
?>
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td>
        <?php  include('coremain/module/news_tender_out/news_tender.php'); ?>
      </td>
    </tr>
  </table>
<?php
	}
  }

}



// ###### กระดานสนทนา ################
if($_SESSION['dbname']=="abttumbon_44"){
  echo "<br/>";
  bar_header("กระดานสนทนา");
?>
  <table width='100%' border='0' cellspacing='1' cellpadding='4' align=center>
    <tr>
      <td width='100%' align='right'>
      <?php
        include('coremain/module/webboard/show10.php');
        showTop($_SESSION['dbname'],7);
      ?>
        <br/>
        <a href='index.php?mod=webboard&path=webboard'>ประเด็นทั้งหมด</a> | <a href='index.php?mod=postq&path=webboard'>ตั้งประเด็นใหม่</a>
      </td>
    </tr>
  </table>
<?php
}

// จังหวัดชัยภูมิ
if($_SESSION['name_province']=="chaiyaphoom"){
?>
  <br/>
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td align=center>
        <a href='http://www.cpmlocal.org' target='_blank'><img src='coremain/images/ch.gif' width='520' border=0></a>
      </td>
    </tr>
  </table>
<?php
}

//############## ข่าวอิสระ #############
if($_SESSION['admin_web']=="admin"){
?>
  <br/>
  <table align='center'>
    <tr bgcolor='ffcc00'>
      <td>
        <img src='coremain/images/add.gif'> <a href='index.php?mod=home_add_page&path=home' title='เพิ่มข้อมูล'>เพิ่มข้อมูลหน้าแรก</a>
      </td>
    </tr>
  </table>
<?php } ?>
  
  <table width='100%' border='0' cellpadding='0' cellspacing='0'>
    <tr>
      <td>&nbsp;
        <?php // include('coremain/module/home/home.php'); ?>
      </td>
    </tr>
  </table>

Youez - 2016 - github.com/yon3zu
LinuXploit