From 7362f103ed092bee05c2aa228b55fbedfd5aa4ed Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 6 Jul 2011 00:30:57 +0200 Subject: [PATCH 01/14] only use ldap user backend when it is configured --- apps/user_ldap/user_ldap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index d6ed8c741e7..b197aaa2502 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); } From e6bc6a29b958139ce9d4a2c9d0d05380b1cf6bf4 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 6 Jul 2011 00:34:24 +0200 Subject: [PATCH 02/14] only try to create the user once --- admin/js/users.js | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/admin/js/users.js b/admin/js/users.js index 1ef02c650a0..48f3b15e3b8 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; }); From 1eb19b63adf9f83e650d6073ba8756b08c7fa1ba Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 6 Jul 2011 19:03:27 +0200 Subject: [PATCH 03/14] reworded some bits in the setup --- core/templates/installation.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/core/templates/installation.php b/core/templates/installation.php index 93c00547ab9..b592cd6533d 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.' ); ?>

/>

-

+

+

+

-

-

+
From 827eb1ae24335ceee8cce6d6c151d980cd0f05ba Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 6 Jul 2011 19:17:28 +0200 Subject: [PATCH 04/14] reactivated Upload & New Folder button icons --- files/css/files.css | 6 +++--- files/js/files.js | 6 ++---- files/templates/index.php | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/files/css/files.css b/files/css/files.css index 702ddefc19c..ed19a560ea6 100644 --- a/files/css/files.css +++ b/files/css/files.css @@ -35,12 +35,12 @@ } #file_upload_filename { - background-image:url(../../img/mimetypes/file.png); + background-image:url(../img/file.png); font-weight:bold; } #file_upload_start {opacity:0;filter: alpha(opacity = 0);} #file_newfolder_name { - background-image:url(../../img/places/folder.png); font-weight: bold; + background-image:url(../img/folder.png); font-weight:bold; width: 14em; } @@ -111,4 +111,4 @@ table td.filename a display: -moz-inline-box; /* fallback for older firefox versions*/ display: inline-block; background-image:url('../img/drop-arrow.png'); -} \ No newline at end of file +} diff --git a/files/js/files.js b/files/js/files.js index 45931b9bae3..b491b90275c 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -1,8 +1,6 @@ $(document).ready(function() { $('#file_action_panel').attr('activeAction', false); - $('#file_newfolder_name').css('width', '14em'); - $('#file_newfolder_submit').css('width', '3em'); - + // Sets browser table behaviour : $('.browser tr').hover( function() { @@ -211,4 +209,4 @@ function formatDate(date){ var monthNames = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; return monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+date.getMinutes(); -} \ No newline at end of file +} diff --git a/files/templates/index.php b/files/templates/index.php index 6eaa380506d..ee5e0900e2c 100644 --- a/files/templates/index.php +++ b/files/templates/index.php @@ -5,7 +5,7 @@ )"> " id="dir">
- )"/> + )"/>
  From bea758271a59a6aec285628195949086c0b6f64c Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 6 Jul 2011 19:31:16 +0200 Subject: [PATCH 05/14] updated search box display --- core/css/styles.css | 7 +++---- core/templates/part.searchbox.php | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 5027a6b6fe9..93d2248c6e7 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -199,6 +199,9 @@ 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; } @@ -272,7 +275,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/templates/part.searchbox.php b/core/templates/part.searchbox.php index 7465a7326ee..19b089ef84f 100644 --- a/core/templates/part.searchbox.php +++ b/core/templates/part.searchbox.php @@ -1,4 +1,4 @@ -' method='post'> - '/> - ' class='prettybutton'/> - \ No newline at end of file + From 5165e5dfcfbfa0b0c67945ee50231978997f0fd2 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 6 Jul 2011 19:36:41 +0200 Subject: [PATCH 06/14] removed search box from settings area --- core/templates/layout.admin.php | 1 - 1 file changed, 1 deletion(-) diff --git a/core/templates/layout.admin.php b/core/templates/layout.admin.php index 8668aa64fda..a97b765f953 100644 --- a/core/templates/layout.admin.php +++ b/core/templates/layout.admin.php @@ -30,7 +30,6 @@