diff --git a/core/user.class.php b/core/user.class.php index e2b30a1d..662300cd 100644 --- a/core/user.class.php +++ b/core/user.class.php @@ -140,19 +140,6 @@ class User { } } - /** - * @param int $offset - * @param int $limit - * @return array - */ - public static function by_list(/*int*/ $offset, /*int*/ $limit=50) { - assert('is_numeric($offset)', var_export($offset, true)); - assert('is_numeric($limit)', var_export($limit, true)); - global $database; - $rows = $database->get_all("SELECT * FROM users WHERE id >= :start AND id < :end", array("start"=>$offset, "end"=>$offset+$limit)); - return array_map("_new_user", $rows); - } - /* useful user object functions start here */ diff --git a/core/util.inc.php b/core/util.inc.php index 81582cdf..6b0e081c 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -555,7 +555,15 @@ function make_http(/*string*/ $link) { */ function make_form($target, $method="POST", $multipart=False, $form_id="", $onsubmit="") { global $user; - $auth = $user->get_auth_html(); + if($method == "GET") { + $link = html_escape($target); + $target = make_link($target); + $extra_inputs = ""; + } + else { + $extra_inputs = $user->get_auth_html(); + } + $extra = empty($form_id) ? '' : 'id="'. $form_id .'"'; if($multipart) { $extra .= " enctype='multipart/form-data'"; @@ -563,7 +571,7 @@ function make_form($target, $method="POST", $multipart=False, $form_id="", $onsu if($onsubmit) { $extra .= ' onsubmit="'.$onsubmit.'"'; } - return '