2010-03-16 22:25:05 +03:00
|
|
|
<?php
|
2010-03-18 23:37:25 +03:00
|
|
|
global $FIRSTRUN;
|
2010-08-12 19:30:20 +04:00
|
|
|
global $WEBROOT;
|
2010-04-19 21:46:42 +04:00
|
|
|
global $CONFIG_ERROR;
|
2010-03-16 22:25:05 +03:00
|
|
|
if(!isset($fillDB)) $fillDB=true;
|
2010-03-31 00:15:45 +04:00
|
|
|
if(!isset($CONFIG_DBHOST)) $CONFIG_DBHOST='localhost';
|
|
|
|
if(!isset($CONFIG_DBUSER)) $CONFIG_DBUSER='owncloud';
|
2010-04-22 22:08:38 +04:00
|
|
|
$newuserpassword=OC_USER::generatepassword();
|
2010-03-16 22:25:05 +03:00
|
|
|
?>
|
2010-03-31 00:15:45 +04:00
|
|
|
<script type="text/javascript">
|
2010-04-23 02:05:04 +04:00
|
|
|
changepassset=function(){
|
|
|
|
var change=document.getElementById('changepass').checked;
|
|
|
|
if(!change){
|
|
|
|
document.getElementById('new_password').style.display='none';
|
|
|
|
document.getElementById('new_password_retype').style.display='none';
|
|
|
|
}else{
|
|
|
|
document.getElementById('new_password').style.display='table-row';
|
|
|
|
document.getElementById('new_password_retype').style.display='table-row';
|
|
|
|
}
|
2010-03-31 00:15:45 +04:00
|
|
|
}
|
2010-03-16 22:25:05 +03:00
|
|
|
</script>
|
2010-08-12 19:30:20 +04:00
|
|
|
<form method="post" enctype="multipart/form-data" action="<?php echo($WEBROOT);?>/settings/#">
|
2010-06-29 19:35:04 +04:00
|
|
|
<div><input type='hidden' name='config' value='1' /></div>
|
2010-03-16 10:48:36 +03:00
|
|
|
<table cellpadding="5" cellspacing="5" border="0" class="loginform">
|
2010-03-18 23:37:25 +03:00
|
|
|
<?php
|
2010-04-19 21:46:42 +04:00
|
|
|
if(!empty($CONFIG_ERROR) and !$FIRSTRUN){
|
|
|
|
echo "<tr><td colspan='3' class='error'>$CONFIG_ERROR</td></tr>";
|
|
|
|
}
|
|
|
|
?>
|
2010-04-23 02:05:04 +04:00
|
|
|
<tr><td>enter password</td><td><input type="password" name="currentpassword" size="30" class="formstyle"></input></td></tr>
|
|
|
|
<tr><td>change password:</td><td><input onchange='changepassset()' id='changepass' type="checkbox" name="changepass" size="30" class="formstyle" value='1'></input></td></tr>
|
|
|
|
<tr style='display:none' id='new_password'><td>new password:</td><td><input type="password" name="password" size="30" class="formstyle"></input></td></tr>
|
|
|
|
<tr style='display:none' id='new_password_retype'><td>retype admin password:</td><td><input type="password" name="password2" size="30" class="formstyle"></input></td></tr>
|
2010-06-11 02:40:42 +04:00
|
|
|
<tr><td></td><td><input type='submit' value='save' class='formstyle'/></td></tr>
|
2010-04-23 02:05:04 +04:00
|
|
|
</table>
|
|
|
|
</form>
|