Kód: Vybrať všetko
<?php
$subor = file('dsajwas.txt');
$heslo = trim($subor[0]);
session_start();
$pass = $_POST['heslo'];
include "nicklogin.txt";
if(($pass == $heslo) or ($_SESSION['authuser'] == $blabla)){
$_SESSION['authuser'] = $blabla;
}else {
echo "<p><center>Zle zadané údaje</center></p>\n";
echo '<meta http-equiv="refresh" content="1;url=pass.php">';
exit();
}
define("DEFAULT_DIR", dirname(__file__));
include("index2.php");
$_SESSION['theme'] = 'native';
?>Kód: Vybrať všetko
$fp = fopen('nick.txt', 'w');
fwrite($fp, "$_POST[cmd]");Potrebujem hodiť SESSION pred $fp = fopen('nick.txt', 'w'); a pred fwrite($fp, "$_POST[cmd]");
dalo by sa to nejako zázračne spraviť? a tým pádom by som musel každý ten súbor hodiť do include
Kód: Vybrať všetko
include "nicklogin.txt";a teraz neviem ako tam mam hodit ten session $_SESSION['authuser'] == $blabla
Ďakujem dúfam že ste tomu pochopili...