Код: Выделить всё
define('K_PATH_HOST', 'http://localhost');). Но когда я хотел бы изменить его на IP, я вообще не мог войти в него, а также не отображается ошибка. Например: < /p>
Код: Выделить всё
define('K_PATH_HOST', 'http://192.168.5.101');Я смотрю в коды tcexam. Кажется, что все $ _Sessions теряются при входе в систему, затем перенаправляйте на одну страницу, затем все еще показывают страницу входа в систему: < /p>
Код: Выделить всё
File /tcexam/public/code/index.php includes tce_authorization.php file
// Here is some parts of tce_authorization.php that i think has issue
....
if (! isset($pagelevel)) {
// set default page level
$pagelevel = 0;
}
.....
// check user's level
// pagelevel=0 means access to anonymous user
// pagelevel >= 1 // default 0 in this case
// $_SESSION['session_user_level'] is lost change, always 0, should 10
if ($pagelevel && $_SESSION['session_user_level'] < $pagelevel) {
//check user level
// To gain access to a specific resource, the user's level must be equal or greater to the one specified for the requested resource.
F_login_form();
//display login form
}
Кажется, что на самом деле проблема Но я еще не нашел способ добавить обходное решение для решения проблемы. < /p>
Кто -нибудь может помочь в этом? Quang.
Подробнее здесь: https://stackoverflow.com/questions/794 ... ead-domain
Мобильная версия