[Feed-collector-svn] SF.net SVN: feed-collector: [112] trunk
Status: Beta
Brought to you by:
c167
|
From: <C1...@us...> - 2007-05-20 11:42:49
|
Revision: 112
http://feed-collector.svn.sourceforge.net/feed-collector/?rev=112&view=rev
Author: C167
Date: 2007-05-20 04:42:45 -0700 (Sun, 20 May 2007)
Log Message:
-----------
added default-entrys to login-fields and changed the style-detection
Modified Paths:
--------------
trunk/inc/styles.php
trunk/page_login.php
Modified: trunk/inc/styles.php
===================================================================
--- trunk/inc/styles.php 2007-05-20 10:42:07 UTC (rev 111)
+++ trunk/inc/styles.php 2007-05-20 11:42:45 UTC (rev 112)
@@ -1,14 +1,14 @@
<?php
if(!empty($_GET['style'])) {
$style_prop = $_GET['style'];
-} elseif(!empty(HTTP_Session :: get('style'))) {
+} elseif(!is_null(HTTP_Session :: get('style', null))) {
$style_prop = HTTP_Session :: get('style');
} elseif(!empty($_POST['style'])) {
$style_prop = $_POST['style'];
} else {
$style_prop = "default";
}
-if(true === is_valid_design($style_prop])) {
+if(true === is_valid_design($style_prop)) {
$style= $style_prop;
} else {
$style = "default";
Modified: trunk/page_login.php
===================================================================
--- trunk/page_login.php 2007-05-20 10:42:07 UTC (rev 111)
+++ trunk/page_login.php 2007-05-20 11:42:45 UTC (rev 112)
@@ -149,11 +149,11 @@
" </tr>\n" .
" <tr>\n" .
" <td class=\"formElem\">%s</td>\n" .
- " <td class=\"formField\"><input type=\"text\" name=\"username\" size=\"30\" maxlength=\"30\" /></td>\n" .
+ " <td class=\"formField\"><input type=\"text\" name=\"username\" size=\"30\" maxlength=\"30\" onfocus=\"if (this.value=='Login') this.value=''\" /></td>\n" .
" </tr>\n" .
" <tr>\n" .
" <td class=\"formElem\">%s</td>\n" .
- " <td class=\"formField\"><input type=\"password\" name=\"passwd\" size=\"30\" maxlength=\"30\" /></td>\n" .
+ " <td class=\"formField\"><input type=\"password\" name=\"passwd\" size=\"30\" maxlength=\"30\" onfocus=\"if (this.value=='Passwordezz') this.value=''\" /></td>\n" .
" </tr>\n" .
" <tr id=\"formButtons\">\n" .
" <td colspan=\"2\"><input type=\"submit\" value=\"%s\" name=\"submit\" /><input type=\"reset\" value=\"%s\" /></td>\n" .
@@ -179,4 +179,4 @@
return $inhalt;
}
-?>
\ No newline at end of file
+?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|