From f3f75f557a34a4b6183aa0cdf8b95f4ce5864850 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 20 Mar 2007 20:03:27 +0000 Subject: [PATCH] added some diagnostic information on admin/info git-svn-id: http://redmine.rubyforge.org/svn/trunk@359 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/admin_controller.rb | 2 ++ app/views/admin/info.rhtml | 7 ++++++- public/images/false.png | Bin 0 -> 689 bytes 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 public/images/false.png diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a9ad09ed..907c0e74 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -52,5 +52,7 @@ class AdminController < ApplicationController def info @db_adapter_name = ActiveRecord::Base.connection.adapter_name + @default_admin_changed = User.find(:first, :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil? + @file_repository_writable = File.writable?(Attachment.storage_path) end end diff --git a/app/views/admin/info.rhtml b/app/views/admin/info.rhtml index 2ea692c7..0107fe91 100644 --- a/app/views/admin/info.rhtml +++ b/app/views/admin/info.rhtml @@ -1,3 +1,8 @@

<%=l(:label_information_plural)%>

-

<%=l(:field_version)%>: redMine <%= Redmine::VERSION %> (<%= @db_adapter_name %>)

\ No newline at end of file +

<%=l(:field_version)%>: redMine <%= Redmine::VERSION %> (<%= @db_adapter_name %>)

+ + + + +
File repository writable<%= image_tag (@file_repository_writable ? 'true' : 'false'), :style => "vertical-align:bottom;" %>
Default administrator account changed<%= image_tag (@default_admin_changed ? 'true' : 'false'), :style => "vertical-align:bottom;" %>
diff --git a/public/images/false.png b/public/images/false.png new file mode 100644 index 0000000000000000000000000000000000000000..09e7d88fbd0a29ed35319feb3fc91b760fe69302 GIT binary patch literal 689 zcmV;i0#5yjP)L zk;_ZeaTLWr_va|;G^R6(4??XljKl|mG>9!)NLb)1TBSuA&8i12mFN$sMFnCjA*>dP zAue1*n+(D%5|y+?EmVH$G&ULe7$2vFj*YhTz!$z>&b{ZJd%h-#gTNENbeZKjPz4M( zNs;}9-Db6`@a3AcxQCEL58N27t6K=SwQWu`HO=*UJl7>5iI;HtZB5OX+uk0VXl#tU zGV6$QlC~ZAGBaCBL!lf?N#Sr+Rc=;E$-{oHcYS$z`Ez9`G;qA3A%No$2nPMDv$N-) znRzcue|A?$FD~{e97bkfhTre^mNhp&h`R3T(Ta+ITo-mYZ((8D#>hxI@K4~!*jWF{ z)YRS7jEwC<$Dtq)$STOrMy|UnEa3al(D+p;yeGtk&CPos2M6nGYHQ1r9A~?DaS>uM zEI%JhPDW--jE~R$URY@TFGNXnLiU@YqOZT|>J;_)6a_^=k>q6k3C&QP`M-*OSoY!cwAe3S{2e&SF{8x(8qd-i4vm3pNi+GcbG`?kvIDBk9@z$9_W%wGwuKBymq?x*m6hff0z*T9iRxFYy80Ua-3T2gFR;2`)5 XtfC;v;Zk&F00000NkvXXu0mjfB^x$% literal 0 HcmV?d00001