Dringend probleempje :( PHP

Gestart doorThomlamp8 reacties54 weergaven

9 berichten · pagina 1 van 1

Thomlamp

Lid · Topicstarter

Berichten
576
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ey! Ik heb nu een CLS Caners login systeem,
Ik heb nu een probleem ik kan dus gewoon op ledenpagina.php kijken endan staat er dat je niet ingelogt bent en je kan dus wel op het ledenmenu kijken enzo, Ik wil dat de hele ledenpagina dan word afgeschermd
Beloning: 0.1

(IK WIL DUS EIGELUK DAT HIJ NAAR EEN ANDERE SITE LINKT VAN B.V NIETINGELOGT.PHP)
ALS JE NIET INGELOGT BENT

Code van beveiliging:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]style.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uid[/COLOR][COLOR= #007700]])) {[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U bent niet ingelogd.[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Deze tekst kan je wijzigen via pagina.php. Let op dat alleen ingelogde leden deze tekst zien!
<a href="uitloggen.php" title="logout">Uitloggen</a> <br />
[/COLOR][COLOR= #007700]; 
}[/COLOR]
?>


En code van mijn Ledenpagina:

<!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" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Hacks voor alle Soorten Games!" />
<meta name="Keywords" content="Hacks, Cheats, Games, Leuk, Hacks, website" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />


<script type="text/javascript">
function toggleDiv(div_id)
{
    
    var status = document.getElementById(div_id).style.display;
    
    if (status == none)
    {
        
        document.getElementById(div_id).style.display = block;
        
    }else{
        
        document.getElementById(div_id).style.display = none;
        
    }
    
}
</script>

<link rel="stylesheet" href="images/Underground.css" type="text/css" />            

<title>Home | Thom Beta</title>    

</head>

<body>
<!-- wrap starts here -->
<div id="wrap">

        <!-- header -->
        <div id="header">            
                    
            <span id="slogan"> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/slogan.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </span>
            
            <!-- tabs -->
            <ul>
            [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/bigmenu.php[/COLOR][COLOR= #007700]);[/COLOR] ?>        
            </ul>
                                            
        </div>
        
        <div id="header-logo">            
            
            <div id="logo"> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/bigslogan.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </div>        
            
                        
        </div>
        

        <div id="sidebar" >                            
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/ledentitel.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <ul class="sidemenu">
                <p>
    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/ledenmenu.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
                                    </p>            
                </ul>    
            </div>
                
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/titel2.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <p> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/hack.php[/COLOR][COLOR= #007700]);[/COLOR] ?> <br />
                
            </div>    
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/titel3.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <p> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/menu2.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </div>        
                
        </div>        
        
                            
        <div id="main">                
            
            <a name="Advertentie"></a>
            <h1>Advertentie</h1>
                
            <p><center> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/advertentie.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </center></p>    
                
            <a name="Content"></a>
            <h1>Nieuws 1</h1>
            Nieuws 2 <br />
    
    <br /><h1>Nieuws 2</h1>Hier Nieuws 2 <br />
                                             
        </div>            
        
<!-- wrap ends here -->
</div>
        
<!-- footer starts here -->
<div class="footer">
    
        <p>    
        [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/copyright.php[/COLOR][COLOR= #007700]);[/COLOR] ?> &nbsp;&nbsp;                
        </p>
            
</div>    
</body>

</html>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
<!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" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Hacks voor alle Soorten Games!" />
<meta name="Keywords" content="Hacks, Cheats, Games, Leuk, Hacks, website" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />


<script type="text/javascript">
function toggleDiv(div_id)
{
    
    var status = document.getElementById(div_id).style.display;
    
    if (status == none)
    {
        
        document.getElementById(div_id).style.display = block;
        
    }else{
        
        document.getElementById(div_id).style.display = none;
        
    }
    
}
</script>

<link rel="stylesheet" href="images/Underground.css" type="text/css" />            

<title>Home | Thom Beta</title>    

</head>

<body>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uid[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Niet ingelogd"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// en eventueel zet je er een scriptje in die linkt naar andere pagina.[/COLOR]
[COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<!-- wrap starts here -->
<div id="wrap">

        <!-- header -->
        <div id="header">            
                    
            <span id="slogan"> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/slogan.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </span>
            
            <!-- tabs -->
            <ul>
            [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/bigmenu.php[/COLOR][COLOR= #007700]);[/COLOR] ?>        
            </ul>
                                            
        </div>
        
        <div id="header-logo">            
            
            <div id="logo"> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/bigslogan.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </div>        
            
                        
        </div>
        

        <div id="sidebar" >                            
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/ledentitel.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <ul class="sidemenu">
                <p>
    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/ledenmenu.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
                                    </p>            
                </ul>    
            </div>
                
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/titel2.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <p> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/hack.php[/COLOR][COLOR= #007700]);[/COLOR] ?> <br />
                
            </div>    
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/titel3.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <p> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/menu2.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </div>        
                
        </div>        
        
                            
        <div id="main">                
            
            <a name="Advertentie"></a>
            <h1>Advertentie</h1>
                
            <p><center> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/advertentie.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </center></p>    
                
            <a name="Content"></a>
            <h1>Nieuws 1</h1>
            Nieuws 2 <br />
    
    <br /><h1>Nieuws 2</h1>Hier Nieuws 2 <br />
                                             
        </div>            
        
<!-- wrap ends here -->
</div>
        
<!-- footer starts here -->
<div class="footer">
    
        <p>    
        [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/copyright.php[/COLOR][COLOR= #007700]);[/COLOR] ?> &nbsp;&nbsp;                
        </p>
            
</div>    
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</body>

</html>
0
Thomlamp

Lid · Topicstarter

Berichten
576
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hij werkt helemaal niet
sorry @ Dubbel post sadley
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ik zie al

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"style.php"[/COLOR][COLOR= #007700]);[/COLOR]
?>
<!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" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Hacks voor alle Soorten Games!" />
<meta name="Keywords" content="Hacks, Cheats, Games, Leuk, Hacks, website" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />


<script type="text/javascript">
function toggleDiv(div_id)
{
    
    var status = document.getElementById(div_id).style.display;
    
    if (status == none)
    {
        
        document.getElementById(div_id).style.display = block;
        
    }else{
        
        document.getElementById(div_id).style.display = none;
        
    }
    
}
</script>

<link rel="stylesheet" href="images/Underground.css" type="text/css" />            

<title>Home | Thom Beta</title>    

</head>

<body>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uid[/COLOR][COLOR= #007700]])) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Niet ingelogd"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// en eventueel zet je er een scriptje in die linkt naar andere pagina.[/COLOR]
[COLOR= #007700]}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
?>
<!-- wrap starts here -->
<div id="wrap">

        <!-- header -->
        <div id="header">            
                    
            <span id="slogan"> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/slogan.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </span>
            
            <!-- tabs -->
            <ul>
            [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/bigmenu.php[/COLOR][COLOR= #007700]);[/COLOR] ?>        
            </ul>
                                            
        </div>
        
        <div id="header-logo">            
            
            <div id="logo"> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/bigslogan.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </div>        
            
                        
        </div>
        

        <div id="sidebar" >                            
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/ledentitel.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <ul class="sidemenu">
                <p>
    [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/ledenmenu.php[/COLOR][COLOR= #007700]);[/COLOR] ?>
                                    </p>            
                </ul>    
            </div>
                
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/titel2.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <p> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/hack.php[/COLOR][COLOR= #007700]);[/COLOR] ?> <br />
                
            </div>    
            
            <h1> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/titel3.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </h1>
            <div class="left-box">
                <p> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/menu2.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </div>        
                
        </div>        
        
                            
        <div id="main">                
            
            <a name="Advertentie"></a>
            <h1>Advertentie</h1>
                
            <p><center> [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/advertentie.php[/COLOR][COLOR= #007700]);[/COLOR] ?> </center></p>    
                
            <a name="Content"></a>
            <h1>Nieuws 1</h1>
            Nieuws 2 <br />
    
    <br /><h1>Nieuws 2</h1>Hier Nieuws 2 <br />
                                             
        </div>            
        
<!-- wrap ends here -->
</div>
        
<!-- footer starts here -->
<div class="footer">
    
        <p>    
        [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/copyright.php[/COLOR][COLOR= #007700]);[/COLOR] ?> &nbsp;&nbsp;                
        </p>
            
</div>    
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>
</body>

</html>


Je moet config include...
0
Berichten
262
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
volgens mj moet je dan even bifgmenu.php kijken
regel 52 (van je eerste script)

want neem aan dat je die op elke pagina include??

zoek je de link leden op.
maak vervolgens dit van

[COLOR= #0000BB]<?php[/COLOR]
     [COLOR= #FF8000]// kijk of men ook is inglogt [/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uid[/COLOR][COLOR= #007700]])) {[/COLOR]
     [COLOR= #FF8000]// niet ingelogd of iets dergelijks[/COLOR]
     [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<a href="link naar inloggen.php">inloggen</a>[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
     [COLOR= #FF8000]// link als men is ingelogd[/COLOR]
     [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href="je link naar leden.php">leden</a>[/COLOR][COLOR= #007700]:
}[/COLOR]
?>


zo zou het moeten werken.
als je voor de zorgt dat de config waar de $_SESSSION word aan gemaakt maar eerst komt. anders kun je niet checken of men wel of niet is ingelogd.
succes
0
Thomlamp

Lid · Topicstarter

Berichten
576
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Snap je niet en jesse check
www.thomhost.co.cc/ledenpagina.php nogsteeds niks sadleyhij doet het nu wel maar is voor iedereen zichtbaar
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Bij mij doet hij het gewoon hoor..
Alleen je moet de layout er nog goed inzetten wink
0
Berichten
262
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
sorry ik jouw verkeert begrepenbloos.
als je dat wou zou je better je bestand ander op kunnen maken. of door sturen naar een pagina waar in staat dat ze moeten inloggen. zo dat je wel je opmaak er om heen houd. want dat mis je nu eigelijk. en is men weer snel vertokken van je websitewink
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren