-
+
3. Instructions: Please fill out the below fields to connect to
your database.
@@ -207,6 +204,7 @@
if (data.percentage == 100) {
clearInterval(intervalId);
jQuery(".btn-box").show();
+ jQuery('.ui-progressbar-value').css("background-image", "url(images/pbar.gif)");
}
});
}
diff --git a/umbraco/presentation/install/steps/defaultUser.ascx b/umbraco/presentation/install/steps/defaultUser.ascx
index 99d89dd9dd..ed403d35a9 100644
--- a/umbraco/presentation/install/steps/defaultUser.ascx
+++ b/umbraco/presentation/install/steps/defaultUser.ascx
@@ -25,41 +25,39 @@
-
Username:
+
Username:
-
+
-
Password:
+
Password:
-
+
Confirm Password:
-
-
-
-
+
+
+
-
Sign up for our monthly newsletter
+
Sign up for our monthly newsletter
diff --git a/umbraco/presentation/install/steps/skinning.ascx b/umbraco/presentation/install/steps/skinning.ascx
index b92126cbfb..e6dd460934 100644
--- a/umbraco/presentation/install/steps/skinning.ascx
+++ b/umbraco/presentation/install/steps/skinning.ascx
@@ -64,6 +64,7 @@
if (data.percentage == 100) {
clearInterval(intervalId);
jQuery(".btn-box").show();
+ jQuery('.ui-progressbar-value').css("background-image", "url(images/pbar.gif)");
}
});
}
diff --git a/umbraco/presentation/umbraco/dashboard.aspx.cs b/umbraco/presentation/umbraco/dashboard.aspx.cs
index 815953631c..14f5cd8b62 100644
--- a/umbraco/presentation/umbraco/dashboard.aspx.cs
+++ b/umbraco/presentation/umbraco/dashboard.aspx.cs
@@ -3,6 +3,7 @@ using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
+using System.Reflection;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
@@ -88,6 +89,27 @@ namespace umbraco.cms.presentation
{
Control c = LoadControl(path);
+ // set properties
+ Type type = c.GetType();
+ if (type != null)
+ {
+ foreach (XmlAttribute att in uc.Attributes)
+ {
+ string attributeName = att.Name;
+ string attributeValue = parseControlValues(att.Value).ToString(); // parse special type of values
+
+
+ PropertyInfo prop = type.GetProperty(attributeName);
+ if (prop == null)
+ {
+ continue;
+ }
+
+ prop.SetValue(c, Convert.ChangeType(attributeValue, prop.PropertyType), null);
+
+ }
+ }
+
//resolving files from dashboard config which probably does not map to a virtual fi
tab.Controls.Add(AddPanel(uc, c));
}
@@ -135,6 +157,37 @@ namespace umbraco.cms.presentation
}
}
+ private object parseControlValues(string value)
+ {
+ if (!String.IsNullOrEmpty(value))
+ {
+ if (value.StartsWith("[#"))
+ {
+ value = value.Substring(2, value.Length - 3).ToLower();
+ switch (value)
+ {
+ case "usertype":
+ return BusinessLogic.User.GetCurrent().UserType.Alias;
+ case "username":
+ return BusinessLogic.User.GetCurrent().Name;
+ case "userlogin":
+ return BusinessLogic.User.GetCurrent().LoginName;
+ case "usercontentstartnode":
+ return BusinessLogic.User.GetCurrent().StartNodeId;
+ break;
+ case "usermediastartnode":
+ return BusinessLogic.User.GetCurrent().StartMediaId;
+ break;
+ default:
+ return value;
+ break;
+ }
+ }
+ }
+
+ return value;
+ }
+
private Control AddPanel(XmlNode node, Control c)
{
LiteralControl hide = AddShowOnceLink(node);
diff --git a/umbraco/presentation/web.config b/umbraco/presentation/web.config
index 49c948647f..3eb293a29d 100644
--- a/umbraco/presentation/web.config
+++ b/umbraco/presentation/web.config
@@ -33,8 +33,8 @@
-
-
+
+
diff --git a/umbraco/presentation/web.config.UMBRACOELISE.xslt b/umbraco/presentation/web.config.UMBRACOELISE.xslt
index 20e07d1d59..a5b4e0831b 100644
--- a/umbraco/presentation/web.config.UMBRACOELISE.xslt
+++ b/umbraco/presentation/web.config.UMBRACOELISE.xslt
@@ -4,7 +4,7 @@
- server=.\sqlexpress;database=41RC;user id=DBUSER;password=DBPASSWORD
+ server=.\sqlexpress;database=CNUG;user id=DBUSER;password=DBPASSWORD