We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/u466736518/public_html/core/init.php on line 25
guys help please.
init.php code
The text was updated successfully, but these errors were encountered:
Probably you're using older version of PHP. Probably fixed in PR: #94
Sorry, something went wrong.
No branches or pull requests
Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/u466736518/public_html/core/init.php on line 25
guys help please.
init.php code
array( 'host' => 'mysql.hostinger.ru', 'username' => 'u466736518_fles', 'password' => '643350np', 'db' => 'u466736518_fles' ), 'remember' => array( 'cookie_name' => 'hash', 'cookie_expiry' => 604800 ), 'sessions' => array( 'session_name' => 'user', 'token_name' => 'token' ) ); spl_autoload_register(function($class) { --------line 25 require_once './classes/' . $class . '.php'; }); require_once './functions/sanitize.php'; if(Cookie::exists(Config::get('remember/cookie_name')) && !Session::exists(Config::get('sessions/session_name'))) { $hash = Cookie::get(Config::get('remember/cookie_name')); $hashCheck = DB::getInstance()->get('users_session', array('hash', '=', $hash)); if($hashCheck->count()) { $user = new User($hashCheck->first()->user_id); $user->login(); } }The text was updated successfully, but these errors were encountered: