-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
71 lines (66 loc) · 3.19 KB
/
index.php
1
2
3
4
5
<?php/** * @package CRI Web Radio * @author WizLab.it * @version 20180321.029 */require_once(".htCfg.php");if(!$LOGIN->checkType($_REQUEST["cmd"]) || !file_exists(".ht" . $_REQUEST["cmd"] . ".php")) $_REQUEST["cmd"] = "Home";require_once(".ht" . $_REQUEST["cmd"] . ".php");$PAGE_TITLE = $PAGE_TITLE_DEFAULT . (($PAGE_TITLE) ? (" - " . $PAGE_TITLE) : "");echo("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='content-type' content='text/html; charset=utf-8' /> <title>" . $PAGE_TITLE . "</title> <link type='text/css' rel='stylesheet' href='css/radio.css' /> <link type='text/css' rel='stylesheet' href='css/radio-print.css' media='print' /> <script type='text/javascript' src='js/radio.js'></script></head>
<body><div id='menuColumn'> <div id='logo'> <h4 style='letter-spacing:normal; font-size:130%; border-bottom:none; background-color:#FFF; text-align:center;'>T.L.C.ensus 2010</h4> <div style='text-align:center; background-color:#FFF;'><img src='img/logo.jpg' alt=\"" . $PAGE_TITLE_DEFAULT . "\" /></div> </div> <div id='menu'>\n"); if($LOGIN->isLoggedIn()) { unset($_SESSION["failedLogins"]); $userType = $LOGIN->getUserType(); echo(" <h4></h4> <div id='login'> <div>Utente: <b>" . $LOGIN->getUserData("realName") . "</b></div> <div>Tipo: <b>" . $userType["name"] . "</b></div> <div><a href='" . $_SERVER["SCRIPT_NAME"] . "?forceLogout=logout'>Logout</a></div> </div> <h4>Cerca</h4> <div style='padding:5px 5px 15px 15px;'><form method='post' action='" . $_SERVER["SCRIPT_NAME"] . "?cmd=Cerca'> <input type='text' name='searchKeyword' size='20' value=\"" . htmlentities($_POST["searchKeyword"], ENT_QUOTES, "utf-8") . "\" style='width:100px;' /> <input type='submit' value='Cerca' /> </form></div> "); } else { echo("<form method='post' action='" . $_SERVER["SCRIPT_NAME"] . "' id='login'> <h4>Login</h4> " . (($_POST["loginUsername"]) ? "<div class='failed'>Login failed. Try again.</div>" : "") . " <table border='0' cellspacing='2' cellpadding='0'> <tr><td align='right'><label for='loginUsername'>User</label>:</td><td><input type='text' name='loginUsername' id='loginUsername' size='20' style='width:100px;' placeholder='Username' /></td></tr> <tr><td align='right'><label for='loginPassword'>Pass</label>:</td><td><input type='password' name='loginPassword' id='loginPassword' size='20' style='width:100px;' placeholder='Password' /></td></tr> <tr><td colspan='2' style='text-align:center;'><input type='submit' value='Login' /></td></tr> </table> </form>\n"); } echo("<h4>Menu</h4> <ul>\n"); foreach($LOGIN->getMenuSections() as $sectionId=>$sectionName) { echo("<li><a href='" . $_SERVER["SCRIPT_NAME"] . "?cmd=" . $sectionId . "'>" . $sectionName . "</a></li>\n"); } echo("</ul> <div id='systemVersion'>Ver. " . BasicTable::showVersion() . "</div> </div></div><div id='main'>" . $PAGE_CONTENT . "</div></body>
</html>");?>