You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							151 lines
						
					
					
						
							4.4 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							151 lines
						
					
					
						
							4.4 KiB
						
					
					
				| <?php | |
| session_start(); | |
| 
 | |
| @include '../cgi-bin/conn.conn'; | |
| @include '../cgi-bin/functions'; | |
| 
 | |
| $dbConn=mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb); | |
| 
 | |
| $GLOBALS['getQ'][0]="home"; | |
| $GLOBALS['getQ'][1]=""; | |
| 
 | |
| if(@$_GET['q']){ | |
| $GLOBALS['getQ']=explode("/",$_GET['q']); | |
| } | |
| 
 | |
| 
 | |
| if($_POST['usr'] && $_POST['usr']){ | |
| $q=mysqli_query($dbConn, "SELECT * FROM users WHERE usr='".$_POST['usr']."' AND pwd='".md5($_POST['pwd'])."'"); | |
| $_SESSION['TAUTH']=mysqli_fetch_array($q); | |
| } | |
| 
 | |
| if($getQ[0]=="logout"){ | |
| $_SESSION['TAUTH']=0; | |
| unset($_SESSION['TAUTH']); | |
| session_destroy(); | |
| } | |
| 
 | |
| ?> | |
|  | |
|  | |
|  | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html><head><title>FarmaTurni</title> | |
|  | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
| <meta name="description" content="FarmaTurni"> | |
| <meta name="author" content="Token di Carmine De Rosa"> | |
| <meta name="generator" content="Kate"> | |
| <meta name="keywords" content="FarmaTurni"> | |
|  | |
| <base href="https://<?php echo $_SERVER["HTTP_HOST"];?>/turni/admin/"> | |
|  | |
| <link rel="stylesheet" href="../css/style.css"> | |
| <link rel="stylesheet" href="../css/text.css"> | |
| <link rel="stylesheet" href="../css/forms.css"> | |
| <link rel="stylesheet" href="../css/calendar.css"> | |
|  | |
| <link rel="stylesheet" href="../css/thickbox.css" type="text/css" media="screen"> | |
|  | |
|  | |
| </head><body> | |
|  | |
| <div class="overlay"></div> | |
| <center> | |
| <!-- | |
| <table border="0" cellspacing="0" cellpadding="0" width="980"> | |
| <tr><td align="center" valign="middle" height="100" bgcolor="#6DA966"> | |
| Header - FarmaTurni</td></tr><tr><td height="1"></td></tr></table> | |
| --> | |
|  | |
| <img src="../img/header.png" border="0"> | |
|  | |
|  | |
| <?php | |
| if($_SESSION['TAUTH']){ | |
| ?> | |
|  | |
|  | |
|  | |
|  | |
| <table border="0" cellspacing="0" cellpadding="0" width="980" bgcolor="#ffffff"> | |
| <tr><td align="left" valign="top" width="180" height="600" rowspan="2"> | |
| <?php | |
| @include 'menu.php'; | |
| ?> | |
| </td><td align="left" valign="middle" bgcolor="#D2DCC7" height="25" class="txt_lit_grey"> | |
|  <a href="#" class="txt_lit_grey"><b>FarmaTurni</b></a> | |
| <?php | |
| if($getQ[0]){echo " » <a href=\"".$getQ[0]."\" class=\"txt_lit_grey\">".ucfirst($getQ[0])."</a>";} | |
| if($getQ[1]){echo " » <a href=\"".$getQ[0]."/".$getQ[1]."\" class=\"txt_lit_grey\">".ucfirst($getQ[1])."</a>";} | |
| if($getQ[2]){echo " » <a href=\"".$getQ[0]."/".$getQ[1]."/".$getQ[2]."\" class=\"txt_lit_grey\">".ucfirst($getQ[2])."</a>";} | |
|  | |
| echo " "; | |
| ?> | |
| </td></tr> | |
| <tr><td align="left" valign="top" bgcolor="#E3EED7" height="575"> | |
|  | |
| <?php | |
| @include $getQ[0].".php"; | |
| ?> | |
|  | |
| <br><br> | |
|  | |
| </td></tr> | |
| </table> | |
|  | |
|  | |
| <?php | |
|  | |
| }else{ | |
|  | |
| ?> | |
|  | |
| <form method="post" action="#"> | |
| <br><br><br><br><br> | |
| <table border="0" cellspacing="4" cellpadding="2" width="500" align="center" bgcolor="#ffffff" class="border"> | |
|  | |
| <tr><td align="left" valign="middle" class="title" colspan="3">  <b>Area riservata</b></td></tr> | |
| <tr><td colspan="3"> <br><br></td></tr> | |
|  | |
| <tr><td width="175" valign="top" align="left" class="txt_lit_grey">Username:</td> | |
| <td width="175" valign="top" align="left" class="txt_lit_grey">Password: </td> | |
| <td width="150" align="right" rowspan="2"><input type="submit" class="button" value="  Accedi  " name="go"></td></tr> | |
|  | |
| <tr><td width="175" valign="top" align="left" class="txt_lit_grey"><input type="text" name="usr" style="width: 175px" value="<?php echo $r['usr']; ?>"></td> | |
| <td width="175" valign="top" align="left" class="txt_lit_grey"><input type="password" name="pwd" style="width: 175px"></td></tr> | |
|  | |
| <tr><td colspan="3"> <br><br></td></tr> | |
| </table><br><br><br><br><br> | |
| </form> | |
|  | |
|  | |
| <?php | |
| } | |
| ?> | |
|  | |
|  | |
| <table border="0" cellspacing="0" cellpadding="0" width="980"> | |
| <tr><td align="center" valign="middle" height="10" bgcolor="#6DA966" colspan="2"> | |
| </td></tr><tr><td align="left" valign="middle" height="25" class="txt_lit_grey"> | |
| Aggiornamento dei contenuti a cura dell'Ordine dei Farmacisti di della Provincia di Salerno</td> | |
| <td align="right" valign="middle" height="25" class="txt_lit_grey"> | |
| Powered by <a href="http://www.tokensys.it" class="txt_lit_grey" target="_blank"><b>Token</b></a> | |
| </td></tr></table> | |
|  | |
|  | |
| </center> | |
|  | |
|  | |
|  | |
| <script language="javascript" type="text/javascript" src="../jsc/jquery.js"></script> | |
| <script language="javascript" type="text/javascript" src="../jsc/script.js"></script> | |
| <script language="javascript" type="text/javascript" src="../jsc/thickbox.js"></script> | |
|  | |
|  | |
| </body> | |
| </html> | |
|  | |
| <?php | |
| mysqli_close($dbConn); | |
| ?>
 |