1 --- /home/soltesz/zabbix-1.6.1/frontends/php/index.php 2008-12-05 17:27:03.000000000 -0500
2 +++ index.php 2008-12-22 16:26:28.000000000 -0500
7 - $_REQUEST['name'] = 'Admin'
9 + $_REQUEST['enter'] = 'Enter';
10 + $_REQUEST['name'] = 'Admin';
11 $_REQUEST['password'] = 'zabbix';
14 if(isset($_REQUEST['enter'])&&($_REQUEST['enter']=='Enter')){
16 $name = get_request('name','');
18 $row["url"] = get_profile('web.menu.view.last','index.php');
21 + if ( array_key_exists('url', $_GET) )
23 + $row['url'] = urldecode($_GET['url']);
25 + if ( $row['url'] == 'index.php' ) {
26 + $row['url'] = 'dashboard.php';
28 redirect($row["url"]);
31 --- /home/soltesz/zabbix-1.6.1/frontends/php/include/perm.inc.php 2008-11-04 16:45:02.000000000 -0500
32 +++ include/perm.inc.php 2008-12-22 16:09:48.000000000 -0500
35 DBexecute('UPDATE users SET attempt_failed=0 WHERE userid='.$login['userid']);
38 + if ( ! $_GET['redirect'] ) {
39 + $_GET['redirect'] = true;
40 + $_GET['url'] = $_SERVER['REQUEST_URI'];
41 + $url = http_build_query($_GET);
42 + header("Location: index.php?$url");
52 \ No newline at end of file