Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body bgcolor="grey">
- <div align=center>
- <h2>Bank Krajowy nr 3</h2>
- <div>
- <?php
- session_start();
- if(!isSet($_SESSION['zalogowany'])){
- $_SESSION['komunikat'] = "Nie jesteล zalogowany!";
- include('form.php');
- exit();
- }
- $fdd=@fopen("stankonta.txt","r");
- while(!feof($fdd)){
- $linee=trim(fgets($fdd));
- $arrr=explode(";",$linee);
- if($arrr[0]== $_SESSION['user']){
- echo 'Aktualny stan konta to: '.$arrr[1].' PLN';
- }
- }
- fclose($fdd);
- if(!isSet($_SESSION['page1hits'])){
- $_SESSION['page1hits'] = 1;
- }
- else{
- $_SESSION['page1hits']++;
- }
- ?>
- <br>
- Nacisnij aby powrocic do strony glownej:<br>
- <a href="main.php">Powrot</a>
- <center><img src="bank.jpg" height="400" width="500"></center><br>
- <?php
- echo "Liczba wizyt na naszej stronie w tej sesji: ";
- echo $_SESSION['page1hits'];
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement