* @package ZenTaoPMS * @version $Id: login.html.php 5084 2013-07-10 01:31:38Z wyd621@gmail.com $ */ include '../../common/view/header.lite.html.php'; if(empty($config->notMd5Pwd))js::import($jsRoot . 'md5.js'); ?>

welcome, $app->company->name);?>

user->account;?>
user->password;?>
user->keepLogin, $keepLogin);?>
login, '', 'btn btn-primary'); if($app->company->guest) echo html::linkButton($lang->user->asGuest, $this->createLink($config->default->module)); echo html::hidden('referer', $referer); echo html::hidden('verifyRand', $rand); echo html::a(inlink('reset'), $lang->user->resetPassword); ?>
user->loginWithDemoUser;?> $demoUser) { if($demoUser->password != $password) continue; echo html::a($link . "account={$demoAccount}&password=" . md5($password . $this->session->rand), $demoUser->realname, 'hiddenwin'); } ?>
checkVersion):?>
config->webRoot}|") !== false) { $databases = array('zentao' => 'zentao', 'zentaopro' => 'zentaopro', 'zentaobiz' => 'zentaobiz', 'zentaoep' => 'zentaoep'); if($this->config->webRoot == '/zentao/') unset($databases['zentao']); if($this->config->webRoot == '/pro/') unset($databases['zentaopro']); if($this->config->webRoot == '/biz/') { unset($databases['zentaobiz']); unset($databases['zentaoep']); } $users = array(); foreach($databases as $database) { try { $webRoot = "/{$database}/"; if($database == 'zentao') $webRoot = '/zentao/'; if($database == 'zentaopro') $webRoot = '/pro/'; if($database == 'zentaobiz') $webRoot = '/biz/'; if($database == 'zentaoep') $webRoot = '/biz/'; $user = $this->dbh->query("select * from {$database}.`zt_user` where account = 'admin' and password='" . md5('123456') . "'")->fetch(); if($user) $users[$webRoot] = true; } catch(Exception $e){} } if($users) { $sysURL = common::getSysURL(); $links = array(); foreach($users as $webRoot => $user) $links[] = $sysURL . $webRoot; $notice = sprintf($lang->user->notice4Safe, join('
', $links)); echo << \$(function() { bootbox.alert('$notice'); }) EOD; } } ?>