| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/news/group/ |
Upload File : |
<?php
session_start();
include("db.php");
if(!isset($_SESSION['username'])){
}else{
$username1 = $_SESSION['username'];
$user1 = $mysqli->query("SELECT * FROM users WHERE username='$username1' LIMIT 1");
$xchk=mysqli_num_rows($user1);
$userrow1 = mysqli_fetch_array($user1);
$_SESSION['uid'] = $userrow1['id'];
$_SESSION['xchk'] = $xchk;
}
$sitesettings = $mysqli->query("SELECT * FROM settings WHERE id='1'");
$settingsrow = mysqli_fetch_array($sitesettings);
?>
<!DOCTYPE HTML>
<html>
<head>
<script data-ad-client="ca-pub-6461791533063032" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script async custom-element="amp-auto-ads"
src="https://cdn.ampproject.org/v0/amp-auto-ads-0.1.js">
</script>
<!--
<style type="text/css">
html{ -moz-filter: grayscale(98%); -webkit-filter: grayscale(98%); filter: gray; /* IE6-9 */ filter: grayscale(98%); }
</style>
-->
<style>
a.one:link {color:#ffffff;}
a.one:visited {color:#ffffff;}
a.one:hover {color:#ffcc00;}
a.one:hover {font-size:120%;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="js/jquery.min.js"></script>
<script src="js/jquery.colorbox-min.js"></script>
<link href="css/style.css" rel="stylesheet" type="text/css">
<link href="css/colorbox.css" rel="stylesheet" type="text/css">
<script>
$(document).ready(function(){
$(".stopy-pop-up").colorbox();
$(".other-pop-up").colorbox();
$(".log-reg").colorbox();
})
</script>
</head>
<body>
<div id="fb-root"></div>
<div id="header">
<div class="header-container">
<div class="logo">
</div><!--logo-->
<div id="login-box">
<?php if(!isset($_SESSION['username'])){?>
<a class="one" href="login.php"><img src="images/peple.png" align="absmiddle">Login</a>
<?php }else{ ?>
Welcome <a class="logout" href="edit_user.php?id=<?php echo $userrow1['id'];?>"><?php echo ucfirst($_SESSION['username']);?> (<?php echo $userrow1['school'];?>)</a> | <a class="logout" href="logout.php">Logout</a>
<?php }?>
</div><!--login-box-->
</div><!--header-container-->
</div><!--header-->
<div id="container">
<div id="header-container2">
<!--header ปิดไว้ก่อน 23-06-2561
<form class="search-bar" method="get" action="search.php">
<input type="text" name="term" id="term" />
<button id="submit" class="search-button">Search</button>
</form>
-->
<!--search-bar-->
<div id="tab-container">
<div id="tabs">
<ul>
<!-- <li><a href="index.php" title="Home"><span>หน้าแรก</span></a></li> -->
<?php if(!isset($_SESSION['username'])){?>
<li><a href="index.php" title="Home"><span>ข่าวประชาสัมพันธ์กลุ่มต่างๆ</span></a></li>
<!--<li><a href="sesao8_all.php"><span>ข่าวประชาสัมพันธ์กลุ่มต่างๆ</span></a></li> -->
<?php }else{ ?>
<li><a href="allnews_edit.php?id=<?php echo $userrow1['id'];?>"><span>ข่าวกิจกรรม</span></a></li>
<!--
<li><a href="allnews_edit.php?id=<?php // echo $userrow1['id'];?>" ><span>+ แก้ไขข่าว</span></a></li>
<li><a href="submit.php" ><span>+ เขียนข่าวใหม่</span></a></li></ul>
-->
<?php }?>
</div><!--tabs-->
</div><!--tab-container-->
</div><!--header-container2-->