Location: PHPKode > projects > PHP Enter > www/link.php
<?php @session_start();
//PHP Enter 3.0.
//Copyright (C) 2011  Predrag Rukavina hide@address.com
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either version 2
//of the License, or (at your option) any later version.
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.
//You should have received a copy of the GNU General Public License
//along with this program; if not, write to the Free Software
//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
include_once('admin/functions.php');
include_once('settings.php');
$tmp = mysql_query("SELECT * FROM categori ORDER BY name ASC") 
or die("A MySQL error has occurred.<br />Your Query: " . $tmp . "<br /> Error: (" . mysql_errno() . ") " . mysql_error());
while ($aclrow = mysql_fetch_assoc($tmp))
{
$ccval[] = $aclrow;
}
if(@$ccval == true){
$smarty->assign('path',$path);
$smarty->assign('title',$title);
$smarty->assign('temp',$temp);
$smarty->assign('categori', $ccval);
$smarty->display('blank.php');
}else{
$smarty->assign('path',$path);
$smarty->assign('title',$title);
$smarty->assign('temp',$temp);
$smarty->assign('categori', @$ccval);
$smarty->display('blank.php');
echo"There are no categories available!";
die();
}
?>
<body>
<div id="content">
<div style="margin:8px;">
<h3>Links</h3>
<span class="ha5" style="font-size:14px;">&nbsp;&nbsp;&nbsp;Hello <?php echo $_SESSION['INC_USER_NAME']; ?></span>&nbsp;&nbsp;&nbsp;  
<span class="ha5" style="font-size:14px;">&nbsp;&nbsp;&nbsp;<a title="Logout" href="signout.php"><font style="font-size:14px;">Logout</a></span>&nbsp;&nbsp;&nbsp; 
<span class="ha5" style="font-size:14px;">&nbsp;&nbsp;&nbsp;<a title="My News" href="profile.php?id=<?php echo $_SESSION['INC_USER_ID']; ?>"><font style="font-size:14px;">My News</a></span>
<br /><br />
<h3>New Story</h3>
<span class="ha5" style="font-size:14px;">&nbsp;&nbsp;&nbsp;<a title="Post without url" href="post.php"><font style="font-size:14px;">Post without url</a></span>&nbsp;&nbsp;&nbsp;
<br /><br />
<form action="post.php" method="post">
<span class="ha5" style="font-size:14px;">&nbsp;&nbsp;&nbsp;URL:</span>&nbsp;&nbsp;&nbsp;  <br />
<input type="text" name="incname" class="cinput" style="width:340px;"><br /><br />
<input type="submit" value="Submit" name="Submit" class="incbtn">
</form>
<br /><br />
<div>

</div></div></div>
<?php
$smarty->display('footer.php');
?>




Return current item: PHP Enter