2012-05-31 Miguel de Dios <miguel.dedios@artica.es>
* mobile/include/user.class.php: added option to get from url a "autologin" with the user and the password for this action. * mobile/index.php: cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6395 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4ebdcee15d
commit
ae9a37262b
|
@ -1,3 +1,10 @@
|
|||
2012-05-31 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* mobile/include/user.class.php: added option to get from url a
|
||||
"autologin" with the user and the password for this action.
|
||||
|
||||
* mobile/index.php: cleaned source code style.
|
||||
|
||||
2012-05-31 Santiago Munin <burning1@gmail.com>
|
||||
|
||||
* include/functions_tags.php: Added a method to get all tags.
|
||||
|
|
|
@ -40,11 +40,20 @@ class User {
|
|||
//hack to compatibility with pandora
|
||||
global $config;
|
||||
$config['id_user'] = $this->user;
|
||||
$this->system->setSessionBase('id_usuario', $this->user);
|
||||
$this->system->setSessionBase('id_usuario', $this->user);
|
||||
}
|
||||
}
|
||||
|
||||
public function isLogged() {
|
||||
$autologin = $this->system->getRequest('autologin', false);
|
||||
if ($autologin) {
|
||||
$user = $this->system->getRequest('user', null);
|
||||
$password = $this->system->getRequest('password', null);
|
||||
if ($this->checkLogin($user, $password)) {
|
||||
$this->hackinjectConfig();
|
||||
}
|
||||
}
|
||||
|
||||
return $this->logged;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
//Set character encoding to UTF-8 - fixes a lot of multibyte character headaches
|
||||
if (function_exists ('mb_internal_encoding')) {
|
||||
mb_internal_encoding ("UTF-8");
|
||||
mb_internal_encoding ("UTF-8");
|
||||
}
|
||||
|
||||
ob_start ();
|
||||
|
|
Loading…
Reference in New Issue