diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/classes.php | 4 | ||||
-rw-r--r-- | includes/functions.php | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/includes/classes.php b/includes/classes.php index 33794c2..0042c95 100644 --- a/includes/classes.php +++ b/includes/classes.php @@ -68,13 +68,13 @@ class BayonetForm echo "<input type=\"reset\" value=\"{$value}\" />\n";
}
- function textField($extern_name, $value = NULL, $isPassword = false)
+ function textField($extern_name, $value = NULL, $isPassword = false, $size = NULL, $max = NULL)
{
$type = 'text';
if($isPassword) $type = 'password';
$value = filter_var($value, FILTER_SANITIZE_STRING);
- echo "<input type=\"{$type}\" name=\"{$extern_name}\" value=\"$value\" />\n";
+ echo "<input type=\"{$type}\" name=\"{$extern_name}\" value=\"$value\" size=\"{$size}\" maxLength=\"{$max}\" />\n";
}
function radioButton($extern_name, $value, $isChecked = false)
diff --git a/includes/functions.php b/includes/functions.php index 09fc456..3f1c3d2 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -54,7 +54,8 @@ function bbcode_format ($str) '/\[img\=(.*?)\](.*?)\[\/img\]/is', '/\[img align\=(.+?)\](.+?)\[\/img\]/is', '/\[mail\](.*?)\[\/mail\]/is', - '/\[mail\=(.*?)\](.*?)\[\/mail\]/is' + '/\[mail\=(.*?)\](.*?)\[\/mail\]/is', + '/\[list\](.*?)\[\/list\]/is' ); $simple_replace = array( @@ -77,10 +78,10 @@ function bbcode_format ($str) '<img src="$1" alt="$2"/>', '<img src=\"$2\" align=\"$1\" />', '<a href="mailto:$1">$1</a>', - '<a href="mailto:$1">$2</a>' + '<a href="mailto:$1">$2</a>', + '<li style="list-style-position: inside; padding:10px">$1</li>' ); - $str = preg_replace ($simple_search, $simple_replace, $str); $str = nl2br($str); return $str; @@ -313,7 +314,7 @@ if(!defined("CALLED_FROM_ADMIN")) function OpenTable($width = "100%") { //width="100%" is important. Otherwise all of our tables will be text width. - echo "<table width=\"{$width}\" align=\"center\" class=\"cleartable\">\n"; + echo "<table width=\"{$width}\" align=\"center\">\n"; } /** |