p?= systeem.

Gestart doorSanderc21 reacties35 weergaven

22 berichten · pagina 1 van 2

Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Weet iemand hoe ik dat systeem van p?= doe?
Ik heb scriptje maar ik weet niet hoe dat moet etc

Je moet me gewoon uitleggen hoe en wat ik er mee moet doen etc.

Bedankt
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sowieso is het ?p= emoMaargoed, bij de meeste van die scripts staat dat stukje code in de index.php en je paginas in een map pages. Als je in de map pages een bestand bier.php hebt staan kun je dat bereiken door naar index.php?p=bier te gaan
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maar ik wil zo dat ik gewoon in 1 bestand (index.php) de layout moet invoeren, en dan dat als ik bij pages ben gewoon bv

Welkom

moet ivoeren en dat komt automatish in de layout?
Zoals bij Whear systeem.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat is je ?p= script?
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]])){[/COLOR]

                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700])){[/COLOR]

                  [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700]);
                    
              }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]

                  [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]404.php[/COLOR][COLOR= #007700]);

              }

            }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]

                  [URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]index.php[/COLOR][COLOR= #007700]);

          }[/COLOR]
?>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
html, header enzo
[COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pages/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700]))[/COLOR]
            [URL="http://www.php.net/require"]require[/URL] [COLOR= #DD0000]pages[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700];[/COLOR]
        
        [URL="http://www.php.net/else"]else[/URL]
            [URL="http://www.php.net/require"]require[/URL] [COLOR= #DD0000]pages/404.php[/COLOR][COLOR= #007700];
        
    }[/COLOR]
    [URL="http://www.php.net/else"]else[/URL]
        [URL="http://www.php.net/require"]require[/URL] [COLOR= #DD0000]pages/home.php[/COLOR][COLOR= #007700];[/COLOR]
?>
footer


Ik heb hem iets aangepast. Deze code zet je in index.php
Op de plek van html, header enzo zet je de header e.d. neer, footer de footer.
Je hebt een map pages nodig. Daarin moet je minimaal deze bestanden hebben: 404.php (als de pagina niet bestaat) en home.php (hier kom je standaard op uit)
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik heb het al via een systeempje van Maartenl gedaan.
Maar nog 1 ding is er dat niet lukt, ik heb nu dit:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]boven.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$maintenance[/COLOR][COLOR= #007700]) {[/COLOR]
 [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR]checklogin[COLOR= #007700]()) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"
<h1> Inloggen</h1>
<form method="[/COLOR]POST[COLOR= #DD0000]" action="">
  <h1>Inloggen</h1>
  <table border="[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #DD0000]" cellpadding="[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #DD0000]" cellspacing="[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #DD0000]" width="[/COLOR][COLOR= #0000BB]361[/COLOR][COLOR= #DD0000]">
  <tr>
    <td width="[/COLOR][COLOR= #0000BB]73[/COLOR][COLOR= #DD0000]">Gebruikersnaam:</td>
    <td width="[/COLOR][COLOR= #0000BB]284[/COLOR][COLOR= #DD0000]"><input type="[/COLOR]text[COLOR= #DD0000]" name="[/COLOR]username[COLOR= #DD0000]" size="[/COLOR][COLOR= #0000BB]20[/COLOR][COLOR= #DD0000]"></td>
  </tr>
  <tr>
    <td width="[/COLOR][COLOR= #0000BB]73[/COLOR][COLOR= #DD0000]">Wachtwoord: </td>
    <td width="[/COLOR][COLOR= #0000BB]284[/COLOR][COLOR= #DD0000]"><input type="[/COLOR]password[COLOR= #DD0000]" name="[/COLOR]password[COLOR= #DD0000]" size="[/COLOR][COLOR= #0000BB]20[/COLOR][COLOR= #DD0000]"></td>
  </tr>
  <tr>
    <td width="[/COLOR][COLOR= #0000BB]73[/COLOR][COLOR= #DD0000]">Sessie:</td>
    <td width="[/COLOR][COLOR= #0000BB]284[/COLOR][COLOR= #DD0000]"><select size="[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #DD0000]" name="[/COLOR]sessiontime[COLOR= #DD0000]">
        <option value="[/COLOR][COLOR= #0000BB]3600[/COLOR][COLOR= #DD0000]">1 uur</option>
        <option value="[/COLOR][COLOR= #0000BB]43200[/COLOR][COLOR= #DD0000]">12 uur</option>
        <option value="[/COLOR][COLOR= #0000BB]86400[/COLOR][COLOR= #DD0000]">1 dag</option>
        <option value="[/COLOR][COLOR= #0000BB]604800[/COLOR][COLOR= #DD0000]">1 week</option>
        <option value="[/COLOR][COLOR= #0000BB]2592000[/COLOR][COLOR= #DD0000]">1 maand</option>
        <option value="[/COLOR][COLOR= #0000BB]31104000[/COLOR][COLOR= #DD0000]">1 jaar</option>
      </select></td>
  </tr>
  </table>
  <p><input type="[/COLOR]submit[COLOR= #DD0000]" value="[/COLOR]Inloggen[COLOR= #DD0000]" name="[/COLOR]login[COLOR= #DD0000]">
  </p>
</form>
<div style="[/COLOR]color[COLOR= #007700]:[/COLOR]red[COLOR= #DD0000]"><?php echo $bericht; ?></div>
<sub>&copy; Clayweb 2009, MultiSess <?php echo $version; ?></sub>
"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]onder.php[/COLOR][COLOR= #007700]);[/COLOR]
?>


Resultaat: http://anti-cheat.nl/login.php

Sinds ik het inlog systeemje er bij in de echo zette, werkte het niet meer. Daarvoor wel?
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]boven.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$maintenance[/COLOR][COLOR= #007700]) {[/COLOR]
 [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR]checklogin[COLOR= #007700]()) {[/COLOR]
?>
<h1> Inloggen</h1>
<form method="POST" action="">
  <h1>Inloggen</h1>
  <table border="0" cellpadding="0" cellspacing="0" width="361">
  <tr>
    <td width="73">Gebruikersnaam:</td>
    <td width="284"><input type="text" name="username" size="20"></td>
  </tr>
  <tr>
    <td width="73">Wachtwoord: </td>
    <td width="284"><input type="password" name="password" size="20"></td>
  </tr>
  <tr>
    <td width="73">Sessie:</td>
    <td width="284"><select size="1" name="sessiontime">
        <option value="3600">1 uur</option>
        <option value="43200">12 uur</option>
        <option value="86400">1 dag</option>
        <option value="604800">1 week</option>
        <option value="2592000">1 maand</option>
        <option value="31104000">1 jaar</option>
      </select></td>
  </tr>
  </table>
  <p><input type="submit" value="Inloggen" name="login">
  </p>
</form>
<div style="color:red">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700];[/COLOR] ?></div>
<sub>&copy; Clayweb 2009, MultiSess [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$version[/COLOR][COLOR= #007700];[/COLOR] ?></sub>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]onder.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jponsen schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]boven.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$maintenance[/COLOR][COLOR= #007700]) {[/COLOR]
 [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR]checklogin[COLOR= #007700]()) {[/COLOR]
?>
<h1> Inloggen</h1>
<form method="POST" action="">
  <h1>Inloggen</h1>
  <table border="0" cellpadding="0" cellspacing="0" width="361">
  <tr>
    <td width="73">Gebruikersnaam:</td>
    <td width="284"><input type="text" name="username" size="20"></td>
  </tr>
  <tr>
    <td width="73">Wachtwoord: </td>
    <td width="284"><input type="password" name="password" size="20"></td>
  </tr>
  <tr>
    <td width="73">Sessie:</td>
    <td width="284"><select size="1" name="sessiontime">
        <option value="3600">1 uur</option>
        <option value="43200">12 uur</option>
        <option value="86400">1 dag</option>
        <option value="604800">1 week</option>
        <option value="2592000">1 maand</option>
        <option value="31104000">1 jaar</option>
      </select></td>
  </tr>
  </table>
  <p><input type="submit" value="Inloggen" name="login">
  </p>
</form>
<div style="color:red">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700];[/COLOR] ?></div>
<sub>&copy; Clayweb 2009, MultiSess [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$version[/COLOR][COLOR= #007700];[/COLOR] ?></sub>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]onder.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
Ook al geprobeerd:
Parse error: syntax error, unexpected $end in /home/jchoman/domains/anti-cheat.nl/public_html/login.php on line 39
0
Berichten
5.897
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jponsen schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]boven.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$maintenance[/COLOR][COLOR= #007700]) {[/COLOR]
 [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR]checklogin[COLOR= #007700]()) {[/COLOR]
?>
<h1> Inloggen</h1>
<form method="POST" action="">
  <h1>Inloggen</h1>
  <table border="0" cellpadding="0" cellspacing="0" width="361">
  <tr>
    <td width="73">Gebruikersnaam:</td>
    <td width="284"><input type="text" name="username" size="20"></td>
  </tr>
  <tr>
    <td width="73">Wachtwoord: </td>
    <td width="284"><input type="password" name="password" size="20"></td>
  </tr>
  <tr>
    <td width="73">Sessie:</td>
    <td width="284"><select size="1" name="sessiontime">
        <option value="3600">1 uur</option>
        <option value="43200">12 uur</option>
        <option value="86400">1 dag</option>
        <option value="604800">1 week</option>
        <option value="2592000">1 maand</option>
        <option value="31104000">1 jaar</option>
      </select></td>
  </tr>
  </table>
  <p><input type="submit" value="Inloggen" name="login">
  </p>
</form>
<div style="color:red">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700];[/COLOR] ?></div>
<sub>&copy; Clayweb 2009, MultiSess [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$version[/COLOR][COLOR= #007700];[/COLOR] ?></sub>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]onder.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
Include je niet beter eerst de config ivm. session_start();
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nog steeds die error:
Parse error: syntax error, unexpected $end in /home/jchoman/domains/anti-cheat.nl/public_html/login.php on line 39
Ook als ik incluce verwissel.
0
Berichten
832
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]boven.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]"functions.php"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR][COLOR= #0000BB]$maintenance[/COLOR][COLOR= #007700]) {[/COLOR]
 [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR]checklogin[COLOR= #007700]()) {[/COLOR]
?>
<h1> Inloggen</h1>
<form method="POST" action="">
  <h1>Inloggen</h1>
  <table border="0" cellpadding="0" cellspacing="0" width="361">
  <tr>
    <td width="73">Gebruikersnaam:</td>
    <td width="284"><input type="text" name="username" size="20"></td>
  </tr>
  <tr>
    <td width="73">Wachtwoord: </td>
    <td width="284"><input type="password" name="password" size="20"></td>
  </tr>
  <tr>
    <td width="73">Sessie:</td>
    <td width="284"><select size="1" name="sessiontime">
        <option value="3600">1 uur</option>
        <option value="43200">12 uur</option>
        <option value="86400">1 dag</option>
        <option value="604800">1 week</option>
        <option value="2592000">1 maand</option>
        <option value="31104000">1 jaar</option>
      </select></td>
  </tr>
  </table>
  <p><input type="submit" value="Inloggen" name="login">
  </p>
</form>
<div style="color:red">[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700];[/COLOR] ?></div>
<sub>&copy; Clayweb 2009, MultiSess [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$version[/COLOR][COLOR= #007700];[/COLOR] ?></sub>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]onder.php[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt Guillamos!

Dat werkt!

http://anti-cheat.nl/login.php

Kan je ook even uitleggen wat er aan mis was? Zo leer ik er uit wink
0
Berichten
832
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kijk, je had een if en die was niet afgesloten. Ifs moeten altijd afgesloten worden.
Ook raad ik je aan om een goede editor te nemen, zoals PHPDesigner
Ik gebruik deze ook en deze zegt je gelijk wat er fout is en heeft ook ingebouwde documentatie over functies enz.
0
Sanderc

Lid · Topicstarter

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ow oke. Maar ik heb daar een Test account in dat systeem eh.

Usernaam: Test
Pass: Test

Maar als je dan inlogd zijn er terug errors?
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