Zainstalowalem skrypt Puma Psywerx do rejestracji i logowania. Mam taki oto problem
Kod
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/index.html:75) in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/login/new_install/index.php on line 19
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/index.html:75) in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/login/new_install/index.php on line 19
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/index.html:75) in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/login/new_install/index.php on line 19
A tutaj macie plik index.php niecaly zaledwie poczatek:
Kod
<?php
/////////////////////////////////////////////////////////////////////////////////////
// what is: PSYWERX PUMA (Protection & User MAnagement)
// who did: PSYWERX php TEAM
// version: 1.0.RC2
// build: 180204.1940.RC2.00.09.00
/////////////////////////////////////////////////////////////////////////////////////
// TODO:
// 1. - Fix \' PM issue
/////////////////////////////////////////////////////////////////////////////////////
/*
if(!function_exists('session_cache_limiter'))
@session_cache_limiter("public, must-revalidate");
set_magic_quotes_runtime(0);
*/
session_save_path();
session_start();
// PUMA version
$curver = "1.0.RC2";
$build = "180204.1940.RC2.00.09.00";
function rpath(){
$path = dirname(__FILE__);
return str_replace("\\", "/", $path)."/";
}
$fpath = rpath();
// Config file
require("config.php");
// Functions file
require_once("functions.php");
error_reporting(E_ALL ^ E_NOTICE);
global $_GET;
if(!isset($_GET["id"])){ $id = "";}else{$id = $_GET["id"];}
if(!isset($_GET["page"])){ $page = "";}else{$page = $_GET["page"];}
if(!isset($_GET["pm"])){ $pm = "";}else{$pm = $_GET["pm"];}
// Logout
if($id == logout){
// Records Logout time
if($cookies == 2){
$MyUsrn = $_SESSION["publicusrn"];
}else{
$MyUsrn = $_COOKIE["publicusrn"];
}
$MyUsrn = md5($MyUsrn);
$filename = $fpath."userdata/$MyUsrn/pm.php";
$data = file($filename);
foreach($data as $value){
list($unempowered,$logt,$sndt) = explode("{|}",$value);
}
$fd = fopen ($filename, "w");
$logt = time();
$pmn = ("<?php die(\"ACCESS DENIED\");?>{|}$logt{|}$sndt");
fputs($fd, $pmn);
fclose($fd);
if($cookies == 2){
session_destroy();
header("Location: ./index.php");
}else{
setcookie("publicuser", "", time() - 3600, "/");
setcookie("publicusrn", "", time() - 3600, "/");
setcookie("publicpass", "", time() - 3600, "/");
setcookie("publicsuper", "", time() - 3600, "/");
setcookie("publicnormal", "", time() - 3600, "/");
setcookie("publicrank", "", time() - 3600, "/");
header("Location: ./index.php");
}
}
/////////////////////////////////////////////////////////////////////////////////////
// what is: PSYWERX PUMA (Protection & User MAnagement)
// who did: PSYWERX php TEAM
// version: 1.0.RC2
// build: 180204.1940.RC2.00.09.00
/////////////////////////////////////////////////////////////////////////////////////
// TODO:
// 1. - Fix \' PM issue
/////////////////////////////////////////////////////////////////////////////////////
/*
if(!function_exists('session_cache_limiter'))
@session_cache_limiter("public, must-revalidate");
set_magic_quotes_runtime(0);
*/
session_save_path();
session_start();
// PUMA version
$curver = "1.0.RC2";
$build = "180204.1940.RC2.00.09.00";
function rpath(){
$path = dirname(__FILE__);
return str_replace("\\", "/", $path)."/";
}
$fpath = rpath();
// Config file
require("config.php");
// Functions file
require_once("functions.php");
error_reporting(E_ALL ^ E_NOTICE);
global $_GET;
if(!isset($_GET["id"])){ $id = "";}else{$id = $_GET["id"];}
if(!isset($_GET["page"])){ $page = "";}else{$page = $_GET["page"];}
if(!isset($_GET["pm"])){ $pm = "";}else{$pm = $_GET["pm"];}
// Logout
if($id == logout){
// Records Logout time
if($cookies == 2){
$MyUsrn = $_SESSION["publicusrn"];
}else{
$MyUsrn = $_COOKIE["publicusrn"];
}
$MyUsrn = md5($MyUsrn);
$filename = $fpath."userdata/$MyUsrn/pm.php";
$data = file($filename);
foreach($data as $value){
list($unempowered,$logt,$sndt) = explode("{|}",$value);
}
$fd = fopen ($filename, "w");
$logt = time();
$pmn = ("<?php die(\"ACCESS DENIED\");?>{|}$logt{|}$sndt");
fputs($fd, $pmn);
fclose($fd);
if($cookies == 2){
session_destroy();
header("Location: ./index.php");
}else{
setcookie("publicuser", "", time() - 3600, "/");
setcookie("publicusrn", "", time() - 3600, "/");
setcookie("publicpass", "", time() - 3600, "/");
setcookie("publicsuper", "", time() - 3600, "/");
setcookie("publicnormal", "", time() - 3600, "/");
setcookie("publicrank", "", time() - 3600, "/");
header("Location: ./index.php");
}
}
Licze na waszą pomoc, a jak zrobić zeby to logowanie bylo po prawej stronie przez komende include cala strona sie lekko mówiac psuje, jak chcecie zobaczyc (teraz to wzialem na srodek i tak jest źle) to prosze, ..::click::..
Zmienilem z login/new_install/index.php i chce zobaczyc co bedzie jak zmienie na login.php i wyszlo takie coś na tym loginie
Kod
Warning: main(login/new_install/login.php) [function.main]: failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/index.html on line 134
Warning: main() [function.include]: Failed opening 'login/new_install/login.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/index.html on line 134
Warning: main() [function.include]: Failed opening 'login/new_install/login.php' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/gimnazjum/index.html on line 134
Prosze o pomoc.