Location: PHPKode > projects > PHP Mafia RP > phpmafia/index.php
<?
$var= file_exists("config.php");
if ($var==false) { header ("Location: ./install/index.php"); }

include("func.php");
Conect();

$tusr=mysql_num_rows ( mysql_query ("SELECT * FROM ".TB_PREFIX."users") );
$tfam=mysql_num_rows ( mysql_query ("SELECT * FROM ".TB_PREFIX."family") );

//login\\
session_start();
if ( $_SESSION['log'] == "y" ) {
header("Location: main.php"); }

$username=$_POST['nik'];
$password=$_POST['pass'];
if ($_POST['nik']) {
	login($username,$password);

}

if ($_GET['act']=="logout") {logout();}
?>
<!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" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <!--
    Created by Artisteer v2.3.0.23326
    Base template (without user's data) checked by http://validator.w3.org : "This page is valid XHTML 1.0 Transitional"
    -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>phpmafia</title>

    <script type="text/javascript" src="script.js"></script>

    <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style.ie7.css" type="text/css" media="screen" /><![endif]-->
    <style type="text/css">
<!--
.Stile1 {
	color: #FF0000;
	font-weight: bold;
}
-->
    </style>
</head>
<body>
    <div id="art-page-background-gradient"></div>
    <div id="art-main">
        <div class="art-Sheet">
            <div class="art-Sheet-tl"></div>
            <div class="art-Sheet-tr"></div>
            <div class="art-Sheet-bl"></div>
            <div class="art-Sheet-br"></div>
            <div class="art-Sheet-tc"></div>
            <div class="art-Sheet-bc"></div>
            <div class="art-Sheet-cl"></div>
            <div class="art-Sheet-cr"></div>
            <div class="art-Sheet-cc"></div>
            <div class="art-Sheet-body">
                <div class="art-Header">
                    <div class="art-Header-jpeg"></div>
                    <div class="art-Logo">
                        <h1 id="name-text" class="art-Logo-name"><a href="#">Php Mafia</a></h1>
                        <div id="slogan-text" class="art-Logo-text">Un gioco di ruolo open source by Raffa50</div>
                    </div>
                </div>
                <div class="art-nav">
                	<div class="l"></div>
                	<div class="r"></div>
                	<ul class="art-menu">
                		<li>
                			<a href="#" class=" active"><span class="l"></span><span class="r"></span><span class="t">Home</span></a>
                		</li>
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">Menu Item</span></a>
                			<ul>
                				<li><a href="#">Menu Subitem 1</a>
                					<ul>
                						<li><a href="#">Menu Subitem 1.1</a></li>
                						<li><a href="#">Menu Subitem 1.2</a></li>
                						<li><a href="#">Menu Subitem 1.3</a></li>
                					</ul>
                				</li>
                				<li><a href="#">Menu Subitem 2</a></li>
                				<li><a href="#">Menu Subitem 3</a></li>
                			</ul>
                		</li>		
                		<li>
                			<a href="#"><span class="l"></span><span class="r"></span><span class="t">About</span></a>
                		</li>
                	</ul>
                </div>
                <div class="art-contentLayout">
                    <div class="art-content">
                        <div class="art-Post">
                            <div class="art-Post-body">
                        <div class="art-Post-inner">
                                        <div class="art-PostMetadataHeader">
                                            <h2 class="art-PostHeader">
                                                <img src="images/PostHeaderIcon.png" width="11" height="11" alt="PostHeaderIcon" />
                                                Benvenuto
                                            </h2>
                                        </div>
                                        <div class="art-PostContent">
                                            
                                            
                                            <p>Benvenuto nella famiglia! iniziarai come un gangster, potrai fare piccoli crimini fino a formare una gang, oppure una grande famiglia e controllare i racket della città. Casa aspetti? entra nella famiglia!</p>
                                            <p><span class="art-button-wrapper">
    <span class="l"> </span>
    <span class="r"> </span><form method="post" action="reg.php">
    <input class="art-button" type="submit" name="reg" value="Registrati gratis!" /></form>
  </span></p>
                                            <p>
                                            	<span class="art-button-wrapper"><span class="r"> </span>                                            	</span>                                            </p>
                                            
                              <table class="table" width="100%">
                                            	<tr>
                                            		<td width="33%" valign="top">
                                            		<div class="art-Block">
                                            			<div class="art-Block-body">
                                            				<div class="art-BlockHeader">
                                                      <div class="l"></div>
                                            				  <div class="r"></div>
                                            				  <div class="t"><center>
                                            				    Giocatori
                                            				  </center></div>
                                            			  </div>
                                            				<div class="art-BlockContent">
                                            					<div class="art-PostContent">
                                            					  <p>Registrati: <span class="Stile1"><? echo $tusr; ?></span></p>
                                                                   <p>Attivi: <span class="Stile1">0</span></p>
                                           					  </div>
                                            				</div>
                                            			</div>
                                            		</div>
                                            		</td>
                                            		<td width="33%" valign="top">
                                            		<div class="art-Block">
                                            			<div class="art-Block-body">
                                            				<div class="art-BlockHeader">
                                                      <div class="l"></div>
                                            				  <div class="r"></div>
                                            				  <div class="t"><center>
                                            				    Racket
                                            				  </center></div>
                                            			  </div>
                                            				<div class="art-BlockContent">
                                            					<div class="art-PostContent">
                                            					  <p>Totali: <span class="Stile1">0</span></p>
                                           					  </div>
                                           				  </div>
                                            			</div>
                                            		</div>
                                            		</td>
                                            		<td width="33%" valign="top">
                                            		<div class="art-Block">
                                            			<div class="art-Block-body">
                                                    <div class="art-BlockHeader">
                                                      <div class="l"></div>
                                            				  <div class="r"></div>
                                            				  <div class="t"><center>
                                            				    Famiglie
                                       				  </center></div>
                                            			  </div>
                                            				<div class="art-BlockContent">
                                            					<div class="art-PostContent">
                                            					  <p>Totali: <span class="Stile1"><? echo $tfam; ?></span></p>
                                            					  <p>Più importante:  <span class="Stile1">Nessuna</span></p>
                                           					  </div>
                                           				  </div>
                                            			</div>
                                            		</div>
                                            		</td>
                                            	</tr>
                                            </table>
                                                
                                        </div>
                                        <div class="cleared"></div>
                        </div>
                        
                        		<div class="cleared"></div>
                            </div>
                        </div>
                        <div class="art-Post"></div>
                  </div>
                    <div class="art-sidebar1">
                        <div class="art-Block">
                            <div class="art-Block-tl"></div>
                            <div class="art-Block-tr"></div>
                            <div class="art-Block-bl"></div>
                            <div class="art-Block-br"></div>
                            <div class="art-Block-tc"></div>
                            <div class="art-Block-bc"></div>
                            <div class="art-Block-cl"></div>
                            <div class="art-Block-cr"></div>
                            <div class="art-Block-cc"></div>
                            <div class="art-Block-body">
                                        <div class="art-BlockHeader">
                                            <div class="l"></div>
                                            <div class="r"></div>
                                            <div class="art-header-tag-icon">
                                                <div class="t">Login</div>
                                            </div>
                                        </div><div class="art-BlockContent">
                                            <div class="art-BlockContent-body">
                                                <div><form method="post" id="login" action="">
                                                <table width="230" border="0">
  <tr>
    <td>Nik:</td>
    <td><input type="text" value="" name="nik" id="n" style="width: 60%;" /></td>
  </tr>
  <tr>
    <td>Passsword:</td>
    <td><input type="password" value="" name="pass" id="p" style="width: 60%;" /></td>
  </tr>
  <tr>
  <td colspan="2"><div align="center"><span class="art-button-wrapper">
    <span class="l"> </span>
    <span class="r"> </span>
    <input class="art-button" type="submit" name="log" value="login" />
  </span></div></td></tr>
</table>

                                            
                                              </form></div>
                                        		<div class="cleared"></div>
                                            </div>
                                        </div>
                        		<div class="cleared"></div>
                            </div>
                        </div>
                        <div class="art-Block">
                            <div class="art-Block-tl"></div>
                            <div class="art-Block-tr"></div>
                            <div class="art-Block-bl"></div>
                            <div class="art-Block-br"></div>
                            <div class="art-Block-tc"></div>
                            <div class="art-Block-bc"></div>
                            <div class="art-Block-cl"></div>
                            <div class="art-Block-cr"></div>
                            <div class="art-Block-cc"></div>
                            <div class="art-Block-body">
                                        <div class="art-BlockHeader">
                                            <div class="l"></div>
                                            <div class="art-header-tag-icon">
                                                <div class="t">News</div>
                                            </div>
                                        </div><div class="art-BlockContent">
                                            <div class="art-BlockContent-body">
                                                <div>
                                                                  <p><b>Nessuna news</b><a href="javascript:void(0)"></a></p>
                                                                  
                                                                  </div>
                                        		<div class="cleared"></div>
                                            </div>
                                        </div>
                        		<div class="cleared"></div>
                            </div>
                        </div>
                        <div class="art-Block">
                            <div class="art-Block-tl"></div>
                            <div class="art-Block-tr"></div>
                            <div class="art-Block-bl"></div>
                            <div class="art-Block-br"></div>
                            <div class="art-Block-tc"></div>
                            <div class="art-Block-bc"></div>
                            <div class="art-Block-cl"></div>
                            <div class="art-Block-cr"></div>
                            <div class="art-Block-cc"></div>
                            <div class="art-Block-body">
                                        <div class="art-BlockHeader">
                                            <div class="l"></div>
                                            <div class="r"></div>
                                            <div class="art-header-tag-icon">
                                                <div class="t">Informazioni su phpmafia</div>
                                            </div>
                                        </div><div class="art-BlockContent">
                                            <div class="art-BlockContent-body">
                                                <div><br />
                                                <b>phpmafia.</b><br />
                                                <br />
                                                Site: <a href="https://sourceforge.net/projects/phpmafia/">phpmafia</a><br />
                                                <br />
                                                &copy; Raffa's 2010
                                                </div>
                                       		  <div class="cleared"></div>
                                            </div>
                                        </div>
                        		<div class="cleared"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="cleared"></div><div class="art-Footer">
                    <div class="art-Footer-inner">
                        <a href="#" class="art-rss-tag-icon" title="RSS"></a>
                        <div class="art-Footer-text">
                            <p>
                                Copyright &copy; Raffa's 2010 ---. All Rights Reserved.</p>
                        </div>
                    </div>
                    <div class="art-Footer-background"></div>
                </div>
        		<div class="cleared"></div>
            </div>
        </div>
        <div class="cleared"></div>
    </div>
    
</body>
</html>
Return current item: PHP Mafia RP