mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
21b590d547
|
@ -27,6 +27,7 @@ include("../inc/inc.Extension.php");
|
|||
include("../inc/inc.ClassSession.php");
|
||||
include("../inc/inc.DBInit.php");
|
||||
include("../inc/inc.ClassUI.php");
|
||||
require_once("../inc/inc.ClassAccessOperation.php");
|
||||
|
||||
function _printMessage($heading, $message) {
|
||||
|
||||
|
|
|
@ -45,8 +45,6 @@ if (isset($_REQUEST["hash"]) && strlen($_REQUEST["hash"])>0) {
|
|||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'referuri'=>$referuri, 'hash'=>$hash, 'passwordstrength'=>$settings->_passwordStrength));
|
||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||
if($view) {
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view($_GET);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ if(!isset($settings))
|
|||
require_once("inc/inc.LogInit.php");
|
||||
require_once("inc/inc.Language.php");
|
||||
require_once("inc/inc.Init.php");
|
||||
require_once("inc/inc.DBInit.php");
|
||||
require_once("inc/inc.Extension.php");
|
||||
require_once("inc/inc.DBInit.php");
|
||||
require_once("inc/inc.ClassAccessOperation.php");
|
||||
|
@ -40,7 +41,6 @@ if (isset($_REQUEST["referuri"]) && strlen($_REQUEST["referuri"])>0) {
|
|||
$referrer = '';
|
||||
}
|
||||
if($view) {
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view->setParam('referrer', $referrer);
|
||||
$view($_GET);
|
||||
}
|
||||
|
|
|
@ -61,17 +61,13 @@ document.form1.newpassword.focus();
|
|||
$this->contentContainerStart();
|
||||
$this->formField(
|
||||
getMLText("password"),
|
||||
'<input class="pwd" type="password" rel="strengthbar" name="newpassword" id="password">'
|
||||
'<input class="pwd form-control" type="password" rel="strengthbar" name="newpassword" id="password">'
|
||||
);
|
||||
if($passwordstrength > 0) {
|
||||
?>
|
||||
<div class="control-group">
|
||||
<label class="control-label"><?php printMLText("password_strength");?>:</label>
|
||||
<div class="controls">
|
||||
<div id="strengthbar" class="progress" style="width: 220px; height: 30px; margin-bottom: 8px;"><div class="bar bar-danger" style="width: 0%;"></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->formField(
|
||||
getMLText("password_strength"),
|
||||
'<div id="strengthbar" class="progress" style="_width: 220px; height: 30px; margin-bottom: 8px;"><div class="bar bar-danger" style="width: 0%;"></div></div>'
|
||||
);
|
||||
}
|
||||
$this->formField(
|
||||
getMLText("confirm_pwd"),
|
||||
|
|
|
@ -93,12 +93,12 @@ $(document).ready( function() {
|
|||
);
|
||||
$this->formField(
|
||||
getMLText("new_password"),
|
||||
'<input class="pwd" type="password" rel="strengthbar" id="pwd" name="pwd" size="30">'
|
||||
'<input class="pwd form-control" type="password" rel="strengthbar" id="pwd" name="pwd">'
|
||||
);
|
||||
if($passwordstrength) {
|
||||
$this->formField(
|
||||
getMLText("password_strength"),
|
||||
'<div id="strengthbar" class="progress" style="width: 220px; height: 30px; margin-bottom: 8px;"><div class="bar bar-danger" style="width: 0%;"></div></div>'
|
||||
'<div id="strengthbar" class="progress" style="_width: 220px; height: 30px; margin-bottom: 8px;"><div class="bar bar-danger" style="width: 0%;"></div></div>'
|
||||
);
|
||||
}
|
||||
$this->formField(
|
||||
|
|
|
@ -124,7 +124,7 @@ $(document).ready( function() {
|
|||
<form class="form-horizontal" action="../op/op.Login.php" method="post" name="form1" id="form">
|
||||
<?php
|
||||
if ($refer) {
|
||||
echo "<input type='hidden' name='referuri' value='".sanitizeString($refer)."'/>";
|
||||
echo "<input type='hidden' name='referuri' value='".htmlspecialchars($refer)."'/>";
|
||||
}
|
||||
$this->formField(
|
||||
getMLText("user_login"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user