echo banner($info, $sinfo, $new); } ?> <table align="left"><td><tr> <h3><a href="ts3server://<?php echo $ip; ?> ?port=<?php echo $port; ?> ">>> Connect!</a></h3> </td></tr></table> <?php if (!isset($error[0])) { echo useron($info, $sinfo, $new); } ?> <?php if (!isset($error[0])) { echo ts_server($sinfo, $info, $new); } ?> <?php echo tree('0', '', $clist, $error, $sinfo, $plist, $info, $new); if (!isset($error[0])) { echo legend($info, $new); echo stats($info, $sinfo, $new); echo tm_client($info, $plist, $new);
<div id="Menu"> <ul> <li><a href="index.php" target="_self" >Home</a></li> <li><a href="WebService.php" target="_self">WebService</a></li> <li><a href="Catalog.php" target="_self" >Catalog</a></li> <li><a href="Contact.php" target="_self" >Contact</a></li> </ul> <form id="searchbox" name="searchbox" method="post" action="search.php"><input type="text" id="search1" name="searchbox" placeholder="Search..." size="40" maxlength="45"/><input type="submit" id="submit" name="submit" value="Search" /></form> <?php if (!isset($_SESSION["ERROR"])) { if (!useron()) { ?> <ul ><li ><a href="login.php" target="_self">Log In</a></li> <li ><a href="register.php" target="_self">Register</a></li></ul> <?php } else { ?> <ul style="float:right;"><li ><a href="" title="<?php if (isset($_SESSION["username"])) { echo $_SESSION["username"]; } else { echo ''; } ?> "> <?php if (isset($_SESSION["username"])) { if (strlen($_SESSION["username"]) > 7) { echo substr($_SESSION["username"], 0, 7) . "...";
// Ελέγχει αν ο χρήστης προσπάθησε να γράψει κάποιου τύπου κώδικα. if (!preg_match("/^[<+(\$|#|%|script|Script)+>]+(.)+[<+(\$|#|%|\\/script|\\/Script)+>]+\$/", $message)) { ?> <div class="message info"><?php echo $message; ?> </div> <?php } else { echo '<div class="message warning"><h1>Busted!</h1></div>'; } } ?> <?php if (!isset($_SESSION["ERROR"])) { if (useron()) { ?> <div id="UserPanel"> <ul> <?php if (!alreadyowner()) { ?> <li><a href="AddBusiness.php" target="_self">Add</a></li> <?php if (!isAdmin()) { ?> <li style="background-color:gray; padding:0.5em 2em;"><abbr title="You are not owner of One Business Record">Edit</abbr></li> <li style="background-color:gray; padding:0.5em 2em;"><abbr title="You are not owner of One Business Record">Delete</abbr></li> <?php } else { if (testdata() == true) {
function is_logged_in() { $isuser = useron(); if ($isuser == true) { $_SESSION["ERROR"] = "You are already Logged In"; $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'error.php'; header("Location: http://{$host}{$uri}/{$extra}"); exit; } }