403Webshell
Server IP : 43.241.58.20  /  Your IP : 216.73.216.25
Web Server : Apache/2
System : Linux ns1-1556229.dragonhispeed.com 3.16.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64
User : ratsitne ( 1130)
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/ratsitne/domains/tessabalpatiu.go.th/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ratsitne/domains/tessabalpatiu.go.th/public_html/toppic6.php
<?php
include("conn.php");
include("funtion.php");

//-- หลัก --//
$sql_main = "SELECT * FROM main WHERE mid = '1'";
$query_main = $obj_con->query($sql_main);
$row_main = $query_main->fetch_assoc();

if($row_main['moff'] == '0'){
?>
<html lang="en"><head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- The above 2 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Note there is no responsive meta tag here -->
    <link rel="icon" href="img/<?php echo $row_main['mfavorite'];?>">
    <?php include("title.php"); ?>
    <!-- Bootstrap core CSS -->
    <link href="dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
    <link href="examples/non-responsive/non-responsive.css" rel="stylesheet">
    <script src="assets/js/ie-emulation-modes-warning.js"></script>
    <link href="https://fonts.googleapis.com/css?family=Kanit:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Mitr:200,300,400,500,600,700|Prompt:100,100i,200,200i,300,300i,400,400i,500,500i,600,700,700i,800,800i,900,900i" rel="stylesheet">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">

    <!--======= Responsive boxslide Carousel StyleSheet =========-->
    <link href="boxslide/css/responsive_bootstrap_carousel_mega_min.css" rel="stylesheet" media="all">
    <link href="boxslide/css/theme.css" rel="stylesheet" media="all">
    <!-- Style sweetalert -->
		<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
    <!--======= Awesome Font StyleSheet =========-->
		<link href="font-awesome-4.6.3/css/font-awesome.min.css" rel="stylesheet" media="all">
  </head>

  <body>

    <div class="header-top">
      <div class="container">
        <div class="h-text-1"><?php echo $row_main['m_welcom'];?></div>
        <div class="h-box-r">
          <div class="h-text-email"><i class="fas fa-envelope-square"></i> อีเมลล์. <?php echo $row_main['memail'];?></div>
          <div class="h-text-tel"><i class="fas fa-phone-square"></i> เบอร์โทร.  <?php echo $row_main['mtel'];?></div>
        </div>

        <a href="/" title="<?php echo $row_main['mtitle_logo'];?>"><img src="img/logo/<?php echo $row_main['logo'];?>" class="logo-web"></a>

        <div class="h-box-title"><?php echo $row_main['mtitle_logo'];?></div>
        <div class="h-box-title-p"><?php echo $row_main['mp_logo'];?></div>
        <div class="h-box-menu">
          <a href="/" class="a-home-menu"><i class="fas fa-home"></i> หน้าหลัก</a>
          <a href="index.php?home=gallery" class="a-pic-menu">อัลบั้มกิจกรรม</a>
          <a href="#" class="a-news-menu"></a>
          <a href="index.php?home=download" class="a-dowload-menu">ดาวน์โหลด</a>
          <a href="index.php?home=contact " class="a-contact-menu">ติดต่อเรา</a>
        </div>

        <div class="h-box-text-slide">
          <marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="2" scrolldelay="2" class="h-box-mar">
            <?php echo $row_main['textslide'];?>
          </marquee>
        </div>

      <div id="kkk">
      <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
        <!-- Indicators -->
        <ol class="carousel-indicators">
          <?php
            $ss_1 = 0;
            $sql_slide_1 = "SELECT * FROM slideisc WHERE stype = '1' ORDER BY ids DESC";
            $query_slide_1 = $obj_con->query($sql_slide_1);
            while($row_slide_1 = $query_slide_1->fetch_assoc()){
          ?>
          <li data-target="#myCarousel-example-generic" data-slide-to="<?php echo $ss_1;?>" <?php if($ss_1 == 0){ ?> class="active" <?php } ?>></li>
         <?php $ss_1++; } ?>
        </ol>
        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
          <?php
            $ss_2 = 0;
            $sql_slide_2 = "SELECT * FROM slideisc WHERE stype = '1' ORDER BY ids DESC";
            $query_slide_2 = $obj_con->query($sql_slide_2);
            while($row_slide_2 = $query_slide_2->fetch_assoc()){
          ?>
          <div class="item <?php if($ss_2 == 0){ ?>active<?php } ?>">
            <img src="img/slide/<?php echo $row_slide_2['pics'];?>" alt="<?php echo $row_slide_2['slink'];?>">
          </div>
          <?php $ss_2++; } ?>
        </div>
        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
          <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
          <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
          <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
          <span class="sr-only">Next</span>
        </a>
        </div>
      </div>
    </div>
    </div>

    <div class="container">
      <div>
        <div class="pd20">
          <div class="row">
    
            <!---
            box zone 1 --------->
            <div class="col-xs-4" style="width: 269px;margin-top: -14px;">
              <div class="menu-l-top"></div>
                <div class="menu-l">
                  <div id="navigation">
                    <ul class="top-level">
                      <li><a href="index.php"><img src="img/ico_menu.png"> หน้าหลัก</a></li>
              <?php
                   $sql_index_general1 = "SELECT menu_id,menu_sort,menu_name FROM tasoft_menu where subsort = 0 order by menu_sort";
                   $query_index_general1 = $obj_con->query($sql_index_general1);
                   while($row_index_general1 = $query_index_general1->fetch_assoc()){
              ?>
                          <li><a href="index.php?home=information&id=<?php echo $row_index_general1['menu_id'];?>"><img src="img/ico_menu.png"> <?php echo $row_index_general1['menu_name'];?></a>
						  
						<ul class="sub-level">
                          <?php  
                              $sql_board1 = "SELECT * FROM tasoft_menu WHERE subsort ='".$row_index_general1['menu_sort']."' ";
                              $query_board1 = $obj_con->query($sql_board1);
                              while($row_board1 = $query_board1->fetch_assoc()){
                            ?>
                           <li><a href="index.php?home=board&id=<?php echo $row_board1['menu_id'];?>"><img src="img/ico_menu.png"> <?php echo $row_board1['menu_name'];?></a> </li>
                          <?php } ?>
                        </ul>
					  
	  </li>
			<?php } ?>
                    </ul>
                  </div>
                </div>
              <div class="menu-l-bottom">
              </div>

<!---     end  Menu  --------->

              <div class="div-box-t9">
                <?php
                  $sql_a_l_t = "SELECT * FROM tb_link WHERE l_group = '3' AND l_show = '1' ORDER BY l_id ASC";
                  $query_a_l_t = $obj_con->query($sql_a_l_t);
                  while($row_a_l_t = $query_a_l_t->fetch_assoc()){
                ?>
                  <a href="<?php echo $row_a_l_t['l_link'];?>" class="div-a-menu-line" target="_blank"><?php echo $row_a_l_t['l_name'];?></a>
                <?php } ?>
              </div>

              <div class="box-memu-l-t">
                <h3 class="title-box">ลิงค์สำคัญ</h3>
                <div class="">
                  <?php include("link_all.php");?>
                </div>
              </div>

              <div class="box-memu-l-t">
                <h3 class="title-box">แบบสำรวจเว็บไซต์</h3>
                <p class="p-vote">ท่านมีความคิดเห็นว่า <br>เว็บไซต์สำนักงานเทศบาลตำบลป่าติ้ว <br>มีประโยชน์ต่อประชาชน</p>
                <div class="div-a-manu-l">
                <?php if($_GET['home'] != 'from_contact'){ ?>
                  <form name="frm1" id="iframe_target_vote" method="post" action="insert/insert_vote.php" target="iframe_target_vote" enctype="multipart/form-data">
                  <iframe id="iframe_target_vote" name="iframe_target_vote" style="width:0;height:0;border:0px solid #fff; top:0; position:absolute;display: none;"></iframe>
                  <script language="JavaScript">
                       function showResult_vote(result)
                         {
                           if(result == '1'){
                                   swal("ทำการโหวตสำเร็จ!", "เราได้รับข้อมูลการโหวตของท่านแล้ว! ขอขอบคุณที่แสดงความคิดเห็นคะ", "success")
                                      .then((value) => {
                                        window.location.href = 'index.php';
                                   });
                             }
                             else if(result == '2')
                             {
                                     swal("เกิดข้อผิดพลาด", "ไม่สามารถตรวจสอบข้อมูลได้กรุณาลองใหม่อีกครั้ง", "error");
                             }
                      }
                    </script>

                    <?php
                        $vv = 1;
                        $iv_ip = $_SERVER['REMOTE_ADDR'];
                        $sql_ip_vote = "SELECT * FROM tb_ip_vote WHERE iv_ip = '$iv_ip'";
                        $query_ip_vote = $obj_con->query($sql_ip_vote);
                        $num_ip_vote  = mysqli_num_rows($query_ip_vote);

                        if($num_ip_vote == 0){

                        $sql_vote = "SELECT * FROM tb_vote ORDER BY v_id ASC";
                        $query_vote = $obj_con->query($sql_vote);
                        while($row_vote = $query_vote->fetch_assoc()){
                      ?>
                      <div class="radio">
                        <label>
                          <input type="radio" name="optionsRadios" id="optionsRadios1" value="<?php echo $row_vote['v_id'];?>" <?php if($vv == 1){ ?>checked<?php } ?>>
                          <?php echo $row_vote['v_name'];?>
                        </label>
                      </div>
                      <?php $vv++; } ?>

                    <button class="btn btn-default  btn-sm" type="submit"><i class="fas fa-check-circle"></i> แสดงผลโหวต</button>
                   </form>

                 <?php }else{ ?>

                    <?php
                      $sql_vote_pg = "SELECT * FROM tb_vote ORDER BY v_id ASC";
                      $query_vote_pg = $obj_con->query($sql_vote_pg);
                      while($row_vote_pg = $query_vote_pg->fetch_assoc()){
                    ?>
                    <div style="margin-right: 10px;">
                      <div><?php echo $row_vote_pg['v_name'];?> (<?php echo $row_vote_pg['v_num'];?>)</div>
                      <div class="progress">
                        <div class="progress-bar" role="progressbar" aria-valuenow="<?php echo $row_vote_pg['v_num'];?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $row_vote_pg['v_num'];?>%;"></div>
                      </div>
                    </div>
                    <?php } ?>

                 <?php } }?>
                </div>
                <div class="p-total-vote">** ผู้โหวตทั้งหมด : <?php echo $num_ip_vote;?> **</div>
              </div>

            </div>

<!-- Start toppic  -->
<?php $id = mysqli_real_escape_string($obj_con,$_GET['id']); ?>

<div class="col-md-8" id="box_r">
  <ol class="breadcrumb">
    <li><a href="#"><i class="fas fa-home"></i> หน้าหลัก</a></li>
    <li class="active">อัลบั้มภาพ</li>
  </ol>
  <h3 class="title-box-2">อัลบั้มภาพ </h3>

  <div class="row">
    <?php
          $sql_all_for = "SELECT picture_id,menu_id,image1,picture_title FROM tasoft_promote3_picture";
          $query_all_for = $obj_con->query($sql_all_for);
          $num_all_for = mysqli_num_rows($query_all_for);

          $Per_Page = 60;   // Per Page

          $Page = $_GET["Page"];
          if(!$_GET["Page"])
          {
            $Page=1;
          }

          $Prev_Page = $Page-1;
          $Next_Page = $Page+1;

          $Page_Start = (($Per_Page*$Page)-$Per_Page);
          if($num_all_for<=$Per_Page)
          {
            $Num_Pages =1;
          }
          else if(($num_all_for % $Per_Page)==0)
          {
            $Num_Pages =($num_all_for/$Per_Page) ;
          }
          else
          {
            $Num_Pages =($num_all_for/$Per_Page)+1;
            $Num_Pages = (int)$Num_Pages;
          }

          $sql_all_for .=" ORDER BY menu_id DESC LIMIT $Page_Start , $Per_Page";
          $query_all_for = $obj_con->query($sql_all_for);

          $intRows = 0;

          while($row_gal = $query_all_for->fetch_assoc()){
            $intRows++;
      ?>



    <div class="col-sm-6 col-md-4" id="box_img-m">
      <a href="toppic6_detail.php?id=<?php echo $row_gal['picture_id']?>&groupid=<?php echo $row_gal['menu_id']?>" class="a-thm">
        <div class="thumbnail_new">

		      <table width="100%" border="0">
                    <tr>
                        <td width="78%"><img src="./image_data/promote3/<?php echo $row_gal['image1'];?>" alt="..." class="img-100" width="200" height="200"></td>
                    </tr>
                    <tr>
                    	
                        <td width="78%"><?php echo $row_gal['picture_title'];?></td>
                    </tr>
                </table>

		  <div class="caption">
            <p>( เข้าชมแล้ว <i class="far fa-eye"></i> <?php echo number_format($row_gal['bo_view']);?> )</p>
          </div>
        </div>
      </a>
    </div>
   <?php } ?>

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

<!-- End toppic  -->

          </div>
        </div>
      </div>
    </div> <!-- /container -->


    <footer class="f-box" style="background: url(img/bg_footer/<?php echo $row_main['m_bg_footer'];?>) no-repeat top center;">


    </footer>


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="dist/js/bootstrap.min.js"></script>
    <script src="assets/js/ie10-viewport-bug-workaround.js"></script>

    <!--======= boxslide =========-->
    <script src="boxslide/js/jquery.touchSwipe.min.js"></script>
    <script src="boxslide/js/responsive_bootstrap_carousel.js"></script>

</body></html>
<!-- System & Design By MeawMeekhong -->

<?php }else{ ?>
	<link href="img/logo_icon.ico" rel="shortcut icon" />
  <title>ระบบกำลังปิดปรับปรุง</title>
	<link href="https://fonts.googleapis.com/css?family=Kanit:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i|Mitr:200,300,400,500,600,700|Prompt:100,100i,200,200i,300,300i,400,400i,500,500i,600,700,700i,800,800i,900,900i" rel="stylesheet">
  <div style="text-align: center; margin-top: 10%;">
  <font style="font-size: 34px;font-family: 'Kanit', sans-serif;color: #da6600;font-weight: 200;">
	:: ระบบกำลังปิดปรับปรุง ขออภัยในความไม่สะดวก! :: </font></div>
<?php } ?>



Youez - 2016 - github.com/yon3zu
LinuXploit