GeSHi`ed PHP code for
SERIAL_LoginForm.php 1
2
3
4
56
7
8
9
1011
12
13
14
1516
17
18
19
2021
22
23
24
25 | <?php
final class SERIAL_LoginForm
{
public function serial_formz()
{ $data = array();
$data['username'] = array(GWF_Form::STRING, '', 'Username');
$data['login'] = array(GWF_Form::SUBMIT, 'Login');
return new GWF_Form($this, $data);
}
public function execute($username)
{
$password = 'testtest'; #random
$user = new SERIAL_User($username, $password);
$serial = serialize($user);
$_COOKIE['serial_user'] = $serial;
setcookie('serial_user', $serial, time()+31536000, GWF_WEB_ROOT_NO_LANG, GWF_DOMAIN, false, true);
}
}
?> |
© 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 and 2024 by
Gizmore