Jump to content

Error login.php


PauLee

Recommended Posts

Pri prihlasovani sa mi zobrazi tento error

Nastala 1 chyba

Path is not the same between your browser and you server :

- Server:
obchod/admin432/login.php

- Browser:
test/obchod/admin432/login.php

nasiel som taketo reisenie ze treba prepisat v login.php v admin sekcii tento riadok

// Checking path
$pathUser = preg_replace('!^/!', '', str_replace('\\', '/', $_SERVER['PHP_SELF']));
$pathServer = preg_replace('!^/!', '', str_replace('\\', '/', str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_FILENAME'])));

na tento riadok

// Checking path
$pathUser = preg_replace('!^/!', '', str_replace('\\', '/', $_SERVER['PHP_SELF']));
$pathServer = preg_replace('!^/!', '', str_replace('\\', '/', str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['PHP_SELF'])));

je to dobre riesenie alebo mi doporucite ine ? dik

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...