403Webshell
Server IP : 119.59.102.212  /  Your IP : 216.73.216.74
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/template/t02/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/coremain/template/t02/body.php
<?php
// ################ Background 2 ##################
//ปรับความกว้างตามขนาดจอภาพ
//========== menu & content table ============
$step2 = $_SESSION['web_width'] + 3;

if($_SESSION['admin_web'] == ''){
  $sql_tleft = "SELECT id_top, name, position, left_right, status, module_type FROM cms_menu_top WHERE left_right='1' and status='1' and permission != 'admin' and module_type != 'other' and `lock`='1' and position > 1 order by position asc";
  $que_tleft = mysql_query($sql_tleft);
  $num_tleft = mysql_num_rows($que_tleft);
  
  $sql_tright = "SELECT id_top, name, position, left_right, status, module_type FROM cms_menu_top WHERE left_right='2' and status='1' and permission != 'admin' and module_type != 'other' and `lock`='1' and position > 1 order by position asc";
  $que_tright = mysql_query($sql_tright);
  $num_tright = mysql_num_rows($que_tright);
  
  $chk_tleft = $num_tleft > 0 ? 1 : 0;
  $chk_tright = $num_tright > 0 ? 1 : 0;
  $chk_tside = $chk_tleft + $chk_tright;
  $width_tcenter = $chk_tside == 2 ? '60%' : ($chk_tside == 1 ? '80%' : '100%');
}else{
  $chk_tleft = 1;
  $chk_tright = 1;
  $width_tcenter = '60%';
}
?>
<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td>
      <table width='<?= $step2 ?>' align=center border='0' cellspacing='0' cellpadding='0' bgcolor='<?= $_SESSION['bg_menu'] // สี่พื้นเมนู ซ้ายและขวา ?>'>
      <?php if($mod == ''){ ?>
        <tr>
          <td>
            <?php include('center_block.php'); ?>
          </td>
        </tr>
      <?php } ?>
        <tr>
          <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <?php if($chk_tleft == '1'){ ?>
                <td style="width: 20%;" align="center" valign="top">
                  <?php
                    include('left_block.php');
                  ?>
                </td>
                <?php } ?>
                <td style="width: <?= $width_tcenter ?>;" align='center' valign='top'>
                <?php if($mod == ''){
                  $x=select_query("status","cms_status_module","id","7"); ?>
                  <fieldset class="canvas-corner" style="margin-left: 5px; margin-right: 5px;">
                  <?php if($_SESSION['admin_web']=="admin" || (id_top_permission("data_other"))){ ?>
                    <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="jsvascript:void(0);" id="page_others_update" 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 id="page_others_detail">
                          <?php include('coremain/module/page_others/page_others.php'); ?>
                        </td>
                      </tr>
                    </table>
                  <?php } ?>
                  </fieldset>

                  <?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='5' cellspacing='0'>
                      <tr>
                        <td>
                  <?php include('coremain/module/home/home.php'); ?>
                        </td>
                      </tr>
                    </table>

                <?php }else{ ?>
                  <fieldset class="canvas-corner">
                  <?php
                    include('coremain/display.php');
                    include(module($mod, $path));
                  ?>
                  </fieldset>
                <?php } ?>
                </td>
                <?php if($chk_tright == '1'){ ?>
                <td style="width: 20%;" align="center" valign="top">
                  <?php
                    include('right_block.php');
                  ?>
                </td>
                <?php } ?>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>

<script>

  $('#page_others_update').click(function(){
    $.ajax({
      type: 'post',
      url: 'coremain/module/page_others/page_others_dialog.php',
      success: function(result){
        $('#page_others_detail').html(result);
      }
    });
  });
  
  $('.edit_manage_header').click(function(){
    var arr = $(this).attr('id').split('#@#');
    var arrData = [
      { name: 'id_top', value: arr[0] },
      { name: 'module_type', value: arr[1] }
    ];
    var dialog = 'dialog-popup';
    var popup = $('#'+dialog);
    showDialog(dialog);
    popup.dialog('option', 'title', 'จัดการเมนู');
    
    $.ajax({
      type: 'post',
      url: 'coremain/module/link/manage_header.php',
      data: arrData,
      success: function(result){
        popup.html(result);
      }
    });
  });
  
  $('.btn_addblog').click(function(){
    var left_right = $(this).attr('id');
    var arrData = [
      { name: 'left_right', value: left_right }
    ];
    var dialog = 'dialog-popup';
    var popup = $('#'+dialog);
    showDialog(dialog);
    popup.dialog('option', 'title', 'เพิ่ม Blog');
    
    $.ajax({
      type: 'post',
      url: 'coremain/header_addblog.php',
      data: arrData,
      success: function(result){
        popup.html(result);
      }
    });
  });
  
  $('.btn_addmenu').click(function(){
    var left_right = $(this).attr('id');
    var arrData = [
      { name: 'left_right', value: left_right }
    ];
    var dialog = 'dialog-popup';
    var popup = $('#'+dialog);
    showDialog(dialog);
    popup.dialog('option', 'title', 'เพิ่ม Blog');
    
    $.ajax({
      type: 'post',
      url: 'coremain/header_addmenu.php',
      data: arrData,
      success: function(result){
        popup.html(result);
      }
    });
  });
  
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit