Skip to content
New issue

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 #92

Open
parfenovn opened this issue Aug 17, 2015 · 1 comment
Open

Parse error: syntax error #92

parfenovn opened this issue Aug 17, 2015 · 1 comment

Comments

@parfenovn
Copy link

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(); } }
@kenorb
Copy link

kenorb commented Mar 24, 2016

Probably you're using older version of PHP.
Probably fixed in PR: #94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants