diff --git a/admin/js/users.js b/admin/js/users.js index 1ef02c650a..48f3b15e3b 100644 --- a/admin/js/users.js +++ b/admin/js/users.js @@ -216,19 +216,25 @@ $(document).ready(function(){ // Create a new user $( "#createuserbutton" ) .click(function(){ - // Create the post data - var post = $( "#createuserdata" ).serialize(); - - // Ajax call - $.post( 'ajax/createuser.php', post, function(data){ - // If it says "success" then we are happy - if( data.status == "success" ){ - userCreated( data.data.username, data.data.groups ); - } - else{ - printError( data.data.message ); - } - }); + if(!$( "#createuserbutton" ).data('active')){ + $( "#createuserbutton" ).data('active',true); + + // Create the post data + var post = $( "#createuserdata" ).serialize(); + + // Ajax call + $.post( 'ajax/createuser.php', post, function(data){ + $( "#createuserbutton" ).data('active',false); + + // If it says "success" then we are happy + if( data.status == "success" ){ + userCreated( data.data.username, data.data.groups ); + } + else{ + printError( data.data.message ); + } + }); + } return false; }); diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index d6ed8c741e..b197aaa250 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -97,6 +97,9 @@ class OC_USER_LDAP extends OC_USER_BACKEND { return $entries[0]["dn"]; } public function checkPassword( $uid, $password ) { + if(!self::$configured){ + return false; + } $dn = $this->getDn( $uid ); if( !$dn ) return false; @@ -105,6 +108,9 @@ class OC_USER_LDAP extends OC_USER_BACKEND { } public function userExists( $uid ) { + if(!self::$configured){ + return false; + } $dn = $this->getDn($uid); return !empty($dn); } diff --git a/core/css/styles.css b/core/css/styles.css index 5027a6b6fe..8723fe0eaf 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -5,6 +5,7 @@ body { background:#fefefe url('../img/body_background.jpg') repeat-y left top; f #owncloud { float:left; margin:0 0 0 2em; } h1 { margin:1em 3em 1em 0; border-bottom:1px solid #666; text-transform:uppercase; font-weight:normal; font-style:italic; color:#666; } p.center { text-align:center; } +a { color:#000; text-decoration:none; } form { margin:2em 2em 2em 3em; } form#quota { max-width:600px; } @@ -17,6 +18,7 @@ form input { padding:0.2em; border:1px solid #ddd; font-size:1.2em; } form input[type="submit"] { padding:0.1em 1em; border:1px solid #999; font-weight:bold; font-size:0.9em; cursor:pointer; } form input[type="submit"]:hover, form input[type="submit"]:focus { border:1px solid #999; background-color:#999; outline:0; } form input[type="submit"]:active { outline:0; } +form input[type="button"], form input[type="text"] { font-size: 0.9em; } fieldset { padding:1em; background-color:#f7f7f7; border:1px solid #ddd; } legend { padding:0 0.5em; font-size:1.2em; } @@ -199,12 +201,16 @@ div.controls { width:91%; margin:1em 1em 1em 2em; padding:0.5em 0; background-co #metanav li a:hover, #metanav li a:focus { background:rgba(0,0,0,.5); -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; outline:0; box-shadow:#555 0 1px 0; -moz-box-shadow:#555 0 1px 0; -webkit-box-shadow:#555 0 1px 0; } #metanav li a img { vertical-align:middle; } +/* SEARCH --------------------------------------------------------------------- */ +form.searchbox { display:inline; position:fixed; top:2em; right:10em; margin:0; padding:0; } + /* NAVIGATION ------------------------------------------------------------- */ #plugins { position:fixed; top:7em; float:left; width:15.7em; padding:0; } #plugins ul { list-style-type:none; border-top:1px solid #ccc; } #plugins a { display:block; padding:0.5em 0.5em 0.5em 3em; background-position:1.5em center; background-repeat:no-repeat; border-bottom:1px solid #ddd; border-top:1px solid #fff; text-decoration:none; font-size:1.2em; color:#666; } #plugins a.active, #plugins a:hover, #plugins a:focus, #plugins a.selected { background-color:#ccc; border-top:1px solid #ccc; border-bottom:1px solid #ccc; color:#000; outline:0; } #plugins a:active { outline:0; } +#plugins .subentry { background-color:#ddd; border-top:1px solid #aaa; border-bottom:1px solid #ccc; color:#000; outline:0; } /* CONTENT ------------------------------------------------------------------ */ #content { margin:7em 0 0 16em; } @@ -272,7 +278,3 @@ p.actions a.delete, div.actions a.delete { background-image:url('../img/delete.p #logs_options input[type="submit"].nofloat { float:none; margin:0 2em 0 0; } #logs_options input[type="text"] { margin:0; padding:0; border:1px solid #ccc; text-align:right; } li.error{ list-style:none; width:640px; margin:4em auto; padding:1em 1em 1em 4em; background-color:#fee; background-image:url('../img/task-attention.png'); background-position:0.8em 0.8em; background-repeat:no-repeat; border:1px solid #ccc; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; } - -/* SEARCH --------------------------------------------------------------------- */ -form.searchbox{display:inline; position:fixed; top:1.5em; right:9em; margin:0; padding:0;}; -form.searchbox .prettybutton{font-size:1.5em !important}; \ No newline at end of file diff --git a/core/img/actions/arrow-down.png b/core/img/actions/arrow-down.png deleted file mode 100644 index 03f201428a..0000000000 Binary files a/core/img/actions/arrow-down.png and /dev/null differ diff --git a/core/img/actions/arrow-left.png b/core/img/actions/arrow-left.png deleted file mode 100644 index b56cfee03d..0000000000 Binary files a/core/img/actions/arrow-left.png and /dev/null differ diff --git a/core/img/actions/arrow-right.png b/core/img/actions/arrow-right.png deleted file mode 100644 index 0acee70bcd..0000000000 Binary files a/core/img/actions/arrow-right.png and /dev/null differ diff --git a/core/img/actions/arrow-up.png b/core/img/actions/arrow-up.png deleted file mode 100644 index 5e423213fb..0000000000 Binary files a/core/img/actions/arrow-up.png and /dev/null differ diff --git a/core/templates/installation.php b/core/templates/installation.php index 93c00547ab..c3bbe692c1 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -3,8 +3,8 @@

- t( 'Welcome to ownCloud, your personnal cloud.' ); ?>
- t( 'To finish the installation, please follow the steps below.' ); ?> + t( 'ownCloud is your personal web storage.' ); ?>
+ t( 'Finish the setup by following the steps below.' ); ?>

0): ?> @@ -23,12 +23,12 @@
- t( 'Create an admin account.' ); ?> -

-

+ t( 'Create an admin account.' ); ?> +

+

- t( 'Advanced' ); ?> '> + t( 'Advanced' ); ?> '>
t( 'Set where to store the data.' ); ?> @@ -36,11 +36,11 @@
- t( 'Configure your database.' ); ?> + t( 'Configure the database.' ); ?> -

t( 'I will use a SQLite database. You have nothing to do!' ); ?>

+

t( 'SQLite will be used for the database. You have nothing to do.' ); ?>

/>

@@ -50,17 +50,18 @@ -

t( 'I will use a MySQL database.' ); ?>

+

t( 'MySQL will be used for the database.' ); ?>

/>

-

+

+

+

-

-

+
diff --git a/core/templates/layout.admin.php b/core/templates/layout.admin.php index 8668aa64fd..026e127223 100644 --- a/core/templates/layout.admin.php +++ b/core/templates/layout.admin.php @@ -30,7 +30,6 @@