Ejemplo n.º 1
0
        header("Location: index.php");
        exit;
    } else {
        $error_msg[] = "<font color=red><p><i>Errore di Login! Riprova</i><p></font>";
    }
}
if ($error_msg) {
    print '<div class="error_msg">
		  <h3 align="center">ERRORI nella fase di LOGIN!</h2><br />
	          <br />';
    foreach ($error_msg as $error_message) {
        print $error_message . "<br />\n";
    }
    print "<br />\n<center><a href='javascript:history.back()'>Torna Indietro</a>\n</center>\n</div>\n";
} else {
    if (check_maintenance(2) == 1) {
        print "<h3 align='center'><p><font color='#FF0000'>Il Forum è in modalità Manutenzione.</font></p></h3>";
    }
    ?>
<div class = 'path' id = 'path'>
	<table>
		<tr><td><b><a href = 'index.php'>Indice Forum</a></b></td></tr>
	</table>
</div>
<div class = 'login'>
<br /><br />
<form method = 'POST' action="login.php?login=1">
	<table align = "center">
		<tr><td>Username:</td><td><input name = 'username' type = 'text'></td></tr>
		<tr><td>Password:</td><td><input name = 'password' type = 'password'></td></tr>
		<tr><td><p><input value = 'Login' type = 'submit'></p></tr></td>
Ejemplo n.º 2
0
 * 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, see <http://www.gnu.org/licenses/>
 * =========================================================================*
 * Software:					0xBB
 * Software version:			2.0
 * Author:						KinG-InFeT
 * Copyleft:					GNU General Public License              
 * =========================================================================*
 * index.php                                                        
 ***************************************************************************/
include "kernel.php";
check_maintenance(1);
show_header();
if (@$_GET['logout']) {
    setcookie("0xBB_user", "", -1);
    setcookie("0xBB_pass", "", -1);
    header("Location: index.php");
}
show_menu();
if (check_exist_forum() == FALSE) {
    print '<br /><br /><br /><h2 align="center">Nessun Forum Creato, Entrare nell\'amministrazione e crearne uno!</h2>';
    footer();
    print "</body>" . "\n</html>";
    exit;
}
?>