[geeklog-cvs] geeklog-1.3/public_html usersettings.php,1.48,1.49
dhaun at internal.geeklog.net
dhaun at internal.geeklog.net
Sun Jan 5 16:35:09 EST 2003
Update of /usr/cvs/geeklog/geeklog-1.3/public_html
In directory internal.geeklog.net:/tmp/cvs-serv4510
Modified Files:
usersettings.php
Log Message:
Some beautifying of the language selection and some filtering for Javascript ..
Index: usersettings.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-1.3/public_html/usersettings.php,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** usersettings.php 1 Jan 2003 18:54:46 -0000 1.48
--- usersettings.php 5 Jan 2003 21:35:07 -0000 1.49
***************
*** 86,90 ****
. '<tr valign="top">' . LB
. '<td align="right"><b>' . $LANG04[6] . ':</b><br><small>' . $LANG04[36] . '</small></td>' . LB
! . '<td><input type="text" name="homepage" size="60" maxlength="96" value="' . $A['homepage'] . '"></td>' . LB
. '</tr>' . LB
. '<tr valign="top">' . LB
--- 86,90 ----
. '<tr valign="top">' . LB
. '<td align="right"><b>' . $LANG04[6] . ':</b><br><small>' . $LANG04[36] . '</small></td>' . LB
! . '<td><input type="text" name="homepage" size="60" maxlength="96" value="' . COM_killJS ($A['homepage']) . '"></td>' . LB
. '</tr>' . LB
. '<tr valign="top">' . LB
***************
*** 212,215 ****
--- 212,225 ----
$language_options .= 'selected="SELECTED"';
}
+ $uscore = strpos ($file, '_');
+ if ($uscore !== false) {
+ $lngname = substr ($file, 0, $uscore);
+ $lngadd = substr ($file, $uscore + 1);
+ $lngname = strtoupper ($lngname{0}) . substr ($lngname, 1);
+ $lngadd = strtoupper ($lngadd{0}) . substr ($lngadd, 1);
+ $file = $lngname . ' (' . $lngadd . ')';
+ } else {
+ $file = strtoupper ($file{0}) . substr ($file, 1);
+ }
$language_options .= '>' . $file . '</option>' . LB;
}
***************
*** 440,444 ****
$A['fullname'] = strip_tags (COM_stripslashes ($A['fullname']));
$A['email'] = strip_tags (COM_stripslashes ($A['email']));
! $A['homepage'] = strip_tags (COM_stripslashes ($A['homepage']));
$A['sig'] = strip_tags (COM_stripslashes ($A['sig']));
$A['about'] = strip_tags (COM_stripslashes ($A['about']));
--- 450,454 ----
$A['fullname'] = strip_tags (COM_stripslashes ($A['fullname']));
$A['email'] = strip_tags (COM_stripslashes ($A['email']));
! $A['homepage'] = COM_killJS(strip_tags (COM_stripslashes ($A['homepage'])));
$A['sig'] = strip_tags (COM_stripslashes ($A['sig']));
$A['about'] = strip_tags (COM_stripslashes ($A['about']));
More information about the geeklog-cvs
mailing list