PCP website Help
#1

Fatal error: Call to undefined function sec_session_start() in C:\xampp\htdocs\pcp\header.php on line 3

can u help me? website desaigner or developer?
Reply
#2

Hello.
post your header.php
Reply
#3

PHP код:
<?php
include_once("includes/connect.inc.php");
sec_session_start(); // Our custom secure way of starting a PHP session.
if (login_check($mysqli) == true) {
    
$logged 'in';
    include_once(
'includes/playerstats.php');
    
$query2"SELECT * FROM bans WHERE user_banned='$plname' ";
    
$result2 mysqli_query($mysqli,$query2);
    if(
mysqli_num_rows($result2) == 0) {
    
$isbanned 0;
    }
    else
    {
    
$isbanned 1;
    }
} else {
    
    
$logged 'out';
    
$isbanned 0;
}
$version "Xtreme Stunt Freeroam build 33"//description title
?>    
<!DOCTYPE html>
<html>
<head>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' />
    
    <link href='<? echo "$domainname"?>/assets/stylesheets/bootstrap/bootstrap.css' media='all' rel='stylesheet' type='text/css' />
    <link href='<? echo "$domainname"?>/assets/stylesheets/bootstrap/bootstrap-responsive.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / jquery ui -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/jquery_ui/jquery-ui-1.10.0.custom.css' media='all' rel='stylesheet' type='text/css' />
    <link href='<? echo "$domainname"?>/assets/stylesheets/jquery_ui/jquery.ui.1.10.0.ie.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / switch buttons -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/bootstrap_switch/bootstrap-switch.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / xeditable -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/xeditable/bootstrap-editable.css' media='all' rel='stylesheet' type='text/css' />
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/common/bootstrap-wysihtml5.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / wysihtml5 (wysywig) -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/common/bootstrap-wysihtml5.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / jquery file upload -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/jquery_fileupload/jquery.fileupload-ui.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / full calendar -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/fullcalendar/fullcalendar.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / select2 -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/select2/select2.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / mention -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/mention/mention.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / tabdrop (responsive tabs) -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/tabdrop/tabdrop.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / jgrowl notifications -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/jgrowl/jquery.jgrowl.min.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / datatables -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/datatables/bootstrap-datatable.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / dynatrees (file trees) -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/dynatree/ui.dynatree.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / color picker -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/bootstrap_colorpicker/bootstrap-colorpicker.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / datetime picker -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/bootstrap_datetimepicker/bootstrap-datetimepicker.min.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / daterange picker) -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/bootstrap_daterangepicker/bootstrap-daterangepicker.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / flags (country flags) -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/flags/flags.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / slider nav (address book) -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/slider_nav/slidernav.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / fuelux (wizard) -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/fuelux/wizard.css' media='all' rel='stylesheet' type='text/css' />
    <!-- / flatty theme -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/light-theme.css' id='color-settings-body-color' media='all' rel='stylesheet' type='text/css' />
    <!-- / gallery -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/plugins/lightbox/lightbox.css' id='color-settings-body-color' media='all' rel='stylesheet' type='text/css' />
    <!-- / demo -->
    <link href='<? echo "$domainname"?>/assets/stylesheets/demo.css' media='all' rel='stylesheet' type='text/css' />
       <!-- / wysihtml -->
    <link href='<? echo "$domainname"?>/css/bootstrap-wysihtml5-0.0.2.css' media='all' rel='stylesheet' type='text/css' />
    <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">   
    <script src="http://ajax.******apis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <link rel="stylesheet" 
    href="http://cdn.datatables.net/1.10.2/css/jquery.dataTables.min.css"></style>
    <script type="text/javascript" 
    src="http://cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" 
    src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body class='fixed-header fixed-navigation contrast-fb'>
<header>
    <div class='navbar navbar-fixed-top'>
        <div class='navbar-inner'>
            <div class='container-fluid'>
                <a class='brand' href='index.php'>
                   
                </a>
                <a class='toggle-nav btn pull-left' href='#'>
                    <i class='icon-reorder'></i>
                </a>
                <ul class="nav nav-pills">
                  <li><a href="irc.php">IRC</a></li>
                  <li><a href="../forums">Forums</a></li>
                  <li><a href="premium.php">Premium</a></li>
                  <li><a href="#">Staff</a></li>
                  <li><a href="#">Downloads</a></li>
                  <li><a class="icon-ok" href="samp://77.95.226.58:7777">Play Now!</a></li>
                  
                  
                </ul>
                <ul class='nav pull-right'>
<? if($logged =='in') { 
include_once(
"includes/ago.inc.php");
?>
                
                    <li class='dropdown dark user-menu'>
                        <a class="dropdown-toggle" data-toggle="dropdown" style="height: 27px;" href="#">
                            <img width="23" height="23" alt="<? echo "$plname"?>" src="<? echo "$domainname/40skin/$saveskin.png"?>">
                             <span class="user-name hidden-phone"><? echo "$plname"?></span>
                            <b class="caret"></b>
                        </a>
                        <ul class='dropdown-menu'>
                            <li>
                                <a href=' <? echo "$domainname"?>/profile.php'>
                                    <i class='icon-user'></i>
                                    Profile
                                </a>
                            </li>
                       
                            <li class='divider'></li>
                            <li>
                                <a href='<? echo "$domainname"?>/logout.php'>
                                    <i class='icon-signout'></i>
                                    Sign out
                                </a>
                            </li>
                        </ul>
                    </li>
                    <?
                    
}
                    
?>
                    <?
                    
if($logged =='out') {
                    
?>
                
                 
                           
        
                      <li class="dropdown">
                    
                        <a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a>
                        <div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;">
                         <form action="includes/process_login.php" method="post" name="login_form"> 
                          <input id="user_username" placeholder="username" style="margin-bottom: 15px;" type="text" name="username" size="30" />
                          <input id="user_password" placeholder="password" style="margin-bottom: 15px;" type="password" name="password" id="password" size="30" />
                          <input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="commit" value="Login" />
                        </form>
                        </div>
                      </li>
        
                    
                    <?
                    
}
                    
?>
                </ul>
                </form>
            </div>
        </div>
    </div>
</header>
<div id='wrapper'>
<div id="main-nav-bg">
<div id="copy" class="visible-phone">
<img alt="Creative Commons License" src="<? echo "$domainname"?>/images/cc.png" width="30" />
</div>
</div>
<nav class='main-nav-fixed' id='main-nav'>
<div class='navigation'>
<ul class='nav nav-stacked'>
<li class=''>
    <a href='<? echo "$domainname"?>/index.php'>
        <i class='icon-home'></i>
        <span>Home</span>
    </a>
</li>
<?
if($logged == 'in') {
?>
<li class=''>
    <a href='<? echo "$domainname"?>/profile.php'>
        <i class='icon-user'></i>
        <span>My Account</span>
    </a>
</li>
<?
}
?>
                <?php
                
if($logged == 'in') {
                if ( 
$adminlevel >= )
                {
                
?>
<li class=''>
    <a class='dropdown-collapse' href='#'>
        <i class='icon-globe'></i>
        <span>Admin</span>
        <i class='icon-angle-down angle-down'></i>
    </a>
    <ul class='nav nav-stacked'>
        <li class=''>
            <a href='<? echo "$domainname"?>/admin/setarea'>
                <i class='icon-caret-right'></i>
                <span>Setarea</span>
            </a>
        </li>
        <li class=''>
            <a href='<? echo "$domainname"?>/news'>
                <i class='icon-caret-right'></i>
                <span>Add news post</span>
            </a>
        </li>
    </ul>
</li>
<?
}
}
?>
<li class=''>
    <a href='<? echo "$domainname"?>/find.php'>
        <i class='icon-list'></i>
        <span>Player stats</span>
    </a>
</li>
<li class=''>
    <a class='dropdown-collapse' href='#'>
        <i class='icon-globe'></i>
        <span>Server</span>
        <i class='icon-angle-down angle-down'></i>
    </a>
    <ul class='nav nav-stacked'>
        <li class=''>
            <a href='<? echo "$domainname"?>/public.php'>
                <i class='icon-caret-right'></i>
                <span>Ban list</span>
            </a>
        </li>
        <li class=''>
            <a href='<? echo "$domainname"?>/signatures/'>
                <i class='icon-caret-right'></i>
                <span>Signatures</span>
            </a>
        </li>
        <li class=''>
            <a href='<? echo "$domainname"?>/races.php'>
                <i class='icon-caret-right'></i>
                <span>Race List</span>
            </a>
        </li>
    </ul>
</li>
<li class=''>
    <a class='' href='<? echo "$domainname"?>/tops.php'>
        <i class='icon-trophy'></i>
        <span>Server Tops</span>
   
    </a>
    
</li>
</ul>
</div>
</nav>
<section id='content'>
    <div class='container-fluid'>
        <div class='row-fluid' id='content-wrapper'>
        <? if($isbanned == 1){
        echo 
'<div class="alert alert-danger">It appears that you are currently banned, you can make a ban appeal at our <a href="http://xsfserver.com/forums/index.php?board=7.0">forums</a></div>';
        }
        if(isset(
$error_msg)){
        echo 
"<div class='alert alert-danger'> ".$error_msg ."</div>";
        }
        
?>
Reply
#4

help me, website desaigner and developer.. pls
Reply
#5

try it like this

Код:
<?php 
include_once("includes/connect.inc.php"); 
session_start(); // Our custom secure way of starting a PHP session. 


if (login_check($mysqli) == true) { 
    $logged = 'in'; 
    include_once('includes/playerstats.php'); 
    $query2= "SELECT * FROM bans WHERE user_banned='$plname' "; 
    $result2 = mysqli_query($mysqli,$query2); 
    if(mysqli_num_rows($result2) == 0) { 
    $isbanned = 0; 
    } 
    else 
    { 
    $isbanned = 1; 
    } 
} else { 
     
    $logged = 'out'; 
    $isbanned = 0; 
} 
$version = "Xtreme Stunt Freeroam build 33"; //description title 
?>     
<!DOCTYPE html> 
<html> 
<head> 
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport' /> 
     

    <link href='<? echo "$domainname"; ?>/assets/stylesheets/bootstrap/bootstrap.css' media='all' rel='stylesheet' type='text/css' /> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/bootstrap/bootstrap-responsive.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / jquery ui --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/jquery_ui/jquery-ui-1.10.0.custom.css' media='all' rel='stylesheet' type='text/css' /> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/jquery_ui/jquery.ui.1.10.0.ie.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / switch buttons --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/bootstrap_switch/bootstrap-switch.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / xeditable --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/xeditable/bootstrap-editable.css' media='all' rel='stylesheet' type='text/css' /> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/common/bootstrap-wysihtml5.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / wysihtml5 (wysywig) --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/common/bootstrap-wysihtml5.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / jquery file upload --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/jquery_fileupload/jquery.fileupload-ui.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / full calendar --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/fullcalendar/fullcalendar.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / select2 --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/select2/select2.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / mention --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/mention/mention.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / tabdrop (responsive tabs) --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/tabdrop/tabdrop.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / jgrowl notifications --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/jgrowl/jquery.jgrowl.min.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / datatables --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/datatables/bootstrap-datatable.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / dynatrees (file trees) --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/dynatree/ui.dynatree.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / color picker --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/bootstrap_colorpicker/bootstrap-colorpicker.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / datetime picker --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/bootstrap_datetimepicker/bootstrap-datetimepicker.min.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / daterange picker) --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/bootstrap_daterangepicker/bootstrap-daterangepicker.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / flags (country flags) --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/flags/flags.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / slider nav (address book) --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/slider_nav/slidernav.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / fuelux (wizard) --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/fuelux/wizard.css' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / flatty theme --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/light-theme.css' id='color-settings-body-color' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / gallery --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/plugins/lightbox/lightbox.css' id='color-settings-body-color' media='all' rel='stylesheet' type='text/css' /> 
    <!-- / demo --> 
    <link href='<? echo "$domainname"; ?>/assets/stylesheets/demo.css' media='all' rel='stylesheet' type='text/css' /> 
       <!-- / wysihtml --> 
    <link href='<? echo "$domainname"; ?>/css/bootstrap-wysihtml5-0.0.2.css' media='all' rel='stylesheet' type='text/css' /> 
    <link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">    
    <script src="http://ajax.******apis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> 
    <link rel="stylesheet"  
    href="http://cdn.datatables.net/1.10.2/css/jquery.dataTables.min.css"></style> 
    <script type="text/javascript"  
    src="http://cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script> 
    <script type="text/javascript"  
    src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head> 
<body class='fixed-header fixed-navigation contrast-fb'> 
<header> 
    <div class='navbar navbar-fixed-top'> 
        <div class='navbar-inner'> 
            <div class='container-fluid'> 
                <a class='brand' href='index.php'> 
                    
                </a> 
                <a class='toggle-nav btn pull-left' href='#'> 
                    <i class='icon-reorder'></i> 
                </a> 
                <ul class="nav nav-pills"> 
                  <li><a href="irc.php">IRC</a></li> 
                  <li><a href="../forums">Forums</a></li> 
                  <li><a href="premium.php">Premium</a></li> 
                  <li><a href="#">Staff</a></li> 
                  <li><a href="#">Downloads</a></li> 
                  <li><a class="icon-ok" href="samp://77.95.226.58:7777">Play Now!</a></li> 
                   
                   
                </ul> 

                <ul class='nav pull-right'> 
<? if($logged =='in') {  
include_once("includes/ago.inc.php"); 
?> 
                 
                    <li class='dropdown dark user-menu'> 
                        <a class="dropdown-toggle" data-toggle="dropdown" style="height: 27px;" href="#"> 
                            <img width="23" height="23" alt="<? echo "$plname"; ?>" src="<? echo "$domainname/40skin/$saveskin.png"; ?>"> 
                             <span class="user-name hidden-phone"><? echo "$plname"; ?></span> 
                            <b class="caret"></b> 
                        </a> 
                        <ul class='dropdown-menu'> 
                            <li> 
                                <a href=' <? echo "$domainname"; ?>/profile.php'> 
                                    <i class='icon-user'></i> 
                                    Profile 
                                </a> 
                            </li> 
                        
                            <li class='divider'></li> 
                            <li> 
                                <a href='<? echo "$domainname"; ?>/logout.php'> 
                                    <i class='icon-signout'></i> 
                                    Sign out 
                                </a> 
                            </li> 
                        </ul> 
                    </li> 
                    <? 
                    } 
                    ?> 
                    <? 
                    if($logged =='out') { 
                    ?> 
                 
                  
                            
         

                      <li class="dropdown"> 
                     
                        <a class="dropdown-toggle" href="#" data-toggle="dropdown">Sign In <strong class="caret"></strong></a> 
                        <div class="dropdown-menu" style="padding: 15px; padding-bottom: 0px;"> 
                         <form action="includes/process_login.php" method="post" name="login_form">  
                          <input id="user_username" placeholder="username" style="margin-bottom: 15px;" type="text" name="username" size="30" /> 
                          <input id="user_password" placeholder="password" style="margin-bottom: 15px;" type="password" name="password" id="password" size="30" /> 
                          <input class="btn btn-primary" style="clear: left; width: 100%; height: 32px; font-size: 13px;" type="submit" name="commit" value="Login" /> 
                        </form> 
                        </div> 
                      </li> 
         
                     
                    <? 
                    } 
                    ?> 
                </ul> 
                </form> 
            </div> 
        </div> 
    </div> 
</header> 
<div id='wrapper'> 
<div id="main-nav-bg"> 
<div id="copy" class="visible-phone"> 
<img alt="Creative Commons License" src="<? echo "$domainname"; ?>/images/cc.png" width="30" /> 
</div> 

</div> 
<nav class='main-nav-fixed' id='main-nav'> 
<div class='navigation'> 
<ul class='nav nav-stacked'> 
<li class=''> 
    <a href='<? echo "$domainname"; ?>/index.php'> 
        <i class='icon-home'></i> 
        <span>Home</span> 
    </a> 
</li> 
<? 
if($logged == 'in') { 
?> 
<li class=''> 
    <a href='<? echo "$domainname"; ?>/profile.php'> 
        <i class='icon-user'></i> 
        <span>My Account</span> 
    </a> 
</li> 

<? 
} 
?> 
                <?php 
                if($logged == 'in') { 
                if ( $adminlevel >= 4 ) 
                { 
                ?> 
<li class=''> 
    <a class='dropdown-collapse' href='#'> 
        <i class='icon-globe'></i> 
        <span>Admin</span> 
        <i class='icon-angle-down angle-down'></i> 
    </a> 
    <ul class='nav nav-stacked'> 
        <li class=''> 
            <a href='<? echo "$domainname"; ?>/admin/setarea'> 
                <i class='icon-caret-right'></i> 
                <span>Setarea</span> 
            </a> 
        </li> 
        <li class=''> 
            <a href='<? echo "$domainname"; ?>/news'> 
                <i class='icon-caret-right'></i> 
                <span>Add news post</span> 
            </a> 
        </li> 
    </ul> 
</li> 
<? 
} 
} 
?> 
<li class=''> 
    <a href='<? echo "$domainname"; ?>/find.php'> 
        <i class='icon-list'></i> 
        <span>Player stats</span> 
    </a> 
</li> 
<li class=''> 
    <a class='dropdown-collapse' href='#'> 
        <i class='icon-globe'></i> 
        <span>Server</span> 
        <i class='icon-angle-down angle-down'></i> 
    </a> 
    <ul class='nav nav-stacked'> 
        <li class=''> 
            <a href='<? echo "$domainname"; ?>/public.php'> 
                <i class='icon-caret-right'></i> 
                <span>Ban list</span> 
            </a> 
        </li> 
        <li class=''> 
            <a href='<? echo "$domainname"; ?>/signatures/'> 
                <i class='icon-caret-right'></i> 
                <span>Signatures</span> 
            </a> 
        </li> 
        <li class=''> 
            <a href='<? echo "$domainname"; ?>/races.php'> 
                <i class='icon-caret-right'></i> 
                <span>Race List</span> 
            </a> 
        </li> 
    </ul> 
</li> 

<li class=''> 
    <a class='' href='<? echo "$domainname"; ?>/tops.php'> 
        <i class='icon-trophy'></i> 
        <span>Server Tops</span> 
    
    </a> 
     
</li> 


</ul> 
</div> 
</nav> 
<section id='content'> 
    <div class='container-fluid'> 
        <div class='row-fluid' id='content-wrapper'> 
        <? if($isbanned == 1){ 
        echo '<div class="alert alert-danger">It appears that you are currently banned, you can make a ban appeal at our <a href="http://xsfserver.com/forums/index.php?board=7.0">forums</a></div>'; 
        } 
        if(isset($error_msg)){ 
        echo "<div class='alert alert-danger'> ".$error_msg ."</div>"; 
        } 
        ?>
Reply
#6

eror again
Reply
#7

What error does it have?
Reply
#8

that CP might missed something or you missed something include,
cause sec_session_start is not a origin function in php,
and here is a example from http://www.wikihow.com/Create-a-Secu...-PHP-and-MySQL

PHP код:
<?php
include_once 'psl-config.php';
 
function 
sec_session_start() {
    
$session_name 'sec_session_id';   // Set a custom session name
    /*Sets the session name. 
     *This must come before session_set_cookie_params due to an undocumented bug/feature in PHP. 
     */
    
session_name($session_name);
 
    
$secure true;
    
// This stops JavaScript being able to access the session id.
    
$httponly true;
    
// Forces sessions to only use cookies.
    
if (ini_set('session.use_only_cookies'1) === FALSE) {
        
header("Location: ../error.php?err=Could not initiate a safe session (ini_set)");
        exit();
    }
    
// Gets current cookies params.
    
$cookieParams session_get_cookie_params();
    
session_set_cookie_params($cookieParams["lifetime"],
        
$cookieParams["path"], 
        
$cookieParams["domain"], 
        
$secure,
        
$httponly);
 
    
session_start();            // Start the PHP session 
    
session_regenerate_id(true);    // regenerated the session, delete the old one. 
}
so if you missed this,
might loss something like connect var or custom sessid params etc...
and got other errors,

or i'm fault cause i dont know what CP is it..
Reply
#9

Eror Again And Eror Again
I need This PCP guyss...
http://www.mediafire.com/file/ns7x84vqrcazhpq/pcp.rar
but Erors include and database connect.

PHP код:
<?php

$db_hostname 
"localhost";
$db_username "root";
$db_password "";
$db_name "nfs";

$kon=mysql_connect($db_hostname,$db_username,$db_password) or die ("gagal akses data base");
mysql_select_db($db_name,$kon) or die ("data base cannot akses");

?>
Reply
#10

Uhmm, you're not connected to the web?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)