Index: BUGS =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/BUGS,v retrieving revision 1.2 retrieving revision 1.3 diff -r1.2 -r1.3 5,8d4 < Well, actually,.... < After rewriteing the whole thing in php5 Class the < search/page thingy is gone. < Index: CHANGELOG =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/CHANGELOG,v retrieving revision 1.6 retrieving revision 1.8 diff -r1.6 -r1.8 3a4,6 > * added search and paging in userlist again > > [0.2.0] 10c13 < [0.1.0] --- > [0.1.0] 14c17 < [0.0.3] --- > [0.0.3] Index: README =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/README,v retrieving revision 1.6 retrieving revision 1.7 diff -r1.6 -r1.7 43c43 < All in a Class now --- > Search and pages in userlist* Index: index.php =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 307,308c307,308 < $all_users = $a->get_all_users(); < $usernr = count($all_users); --- > $all_users = $a->get_all_users($search, $start); > $usernr = $a->get_nr_users($search); 333c333 < if ($start && $start+$a->settings["page_size"]<$usernr) { --- > if ($start || $start+$a->settings["page_size"]<$usernr) { 353c353 < ?> \ No newline at end of file --- > ?> Index: pureuserclass.php =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/pureuserclass.php,v retrieving revision 1.3 retrieving revision 1.5 diff -r1.3 -r1.5 42a43 > //{{{ 56c57 < --- > //}}} 64a66 > //{{{ 75c77 < --- > //}}} 84a87 > //{{{ 108,109c111,112 < gen_error("We dont support database system $sql_type"); < exit(); --- > //gen_error("We dont support database system $sql_type"); > //exit(); 111a115 > //}}} 118a123 > //{{{ 127a133 > //}}} 134a141 > //{{{ 143a151 > //}}} 152a161 > //{{{ 159,160c168,169 < $this->settings["admin_email"] = "you@domain.tld"; < $this->settings["ftp_hostname"]= "your.ftp.server"; --- > $this->settings["admin_email"] = "%%ADMIN_MAIL"; > $this->settings["ftp_hostname"]= "%%SERVER"; 162,166c171,175 < $this->settings["sql_type"] = "mysql"; // PureFTPd only supports MySQL and PostgreSQL (mysql and postgres) < $this->settings["sql_server"] = "127.0.0.1"; < $this->settings["sql_user"] = "ftpdaemon"; < $this->settings["sql_pass"] = "showmethelogins"; < $this->settings["sql_dbase"] = "ftp_users"; --- > $this->settings["sql_type"] = "%%DB_TYPE"; // PureFTPd only supports MySQL and PostgreSQL (mysql and postgres) > $this->settings["sql_server"] = "%%DB_SERVER"; > $this->settings["sql_user"] = "%%DB_USER"; > $this->settings["sql_pass"] = "%%DB_PASS"; > $this->settings["sql_dbase"] = "%%DB_DB"; 189a199 > //}}} 197a208 > //{{{ 256a268 > //}}} 264a277 > //{{{ 270c283 < --- > //}}} 277a291 > //{{{ 284c298 < --- > //}}} 287a302,304 > * @param string $search Searchstring to limit results. > * @param integer $start Record in database to start output. > * @param integer $pagesize Number of users to show on a page. 291,292c308,316 < public function get_all_users() { < $sql = "SELECT * FROM ".$this->settings["sql_table"]." ORDER BY ".$this->settings["field_user"]; --- > //{{{ > public function get_all_users($search = "", $start = 0, $pagesize = 0) { > if (!$pagesize) { $pagesize = $this->settings["page_size"]; } > if ($search) { > $q = " WHERE ".$this->settings["field_user"]." LIKE '%$search%' OR ".$this->settings["field_dir"]." LIKE '%$search%'"; > } else { > $q = ""; > } > $sql = "SELECT * FROM ".$this->settings["sql_table"]."$q ORDER BY ".$this->settings["field_user"]." LIMIT $start, $pagesize"; 300c324,346 < --- > //}}} > > /** > * Get number of users in the database. > * $nr_users = $instance->get_nr_users(); > * @param string $search Searchstring to limit results. > * @return integer Number of users in the database. > * @access public > */ > //{{{ > public function get_nr_users($search = "") { > if ($search) { > $q = " WHERE ".$this->settings["field_user"]." LIKE '%$search%' OR ".$this->settings["field_dir"]." LIKE '%$search%'"; > } else { > $q = ""; > } > $sql = "SELECT COUNT(*) FROM ".$this->settings["sql_table"]."$q"; > $res = sql_query($sql); > $count = sql_result($res,0); > return $count; > } > //}}} > 309a356 > //{{{ 335a383 > //}}} 338c386 < ?> \ No newline at end of file --- > ?> Index: docs/classtrees_PureUserAdmin.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/classtrees_PureUserAdmin.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 46c46 < Documentation generated on Sun, 3 Oct 2004 21:52:29 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/elementindex.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/elementindex.html,v retrieving revision 1.3 retrieving revision 1.4 diff -r1.3 -r1.4 112a113,114 >
get_nr_users
>
in file pureuserclass.php, method pureuseradmin::get_nr_users()
    Get number of users in the database.
242c244 < Documentation generated on Sun, 3 Oct 2004 21:52:29 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/elementindex_PureUserAdmin.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/elementindex_PureUserAdmin.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 139a140,141 >
get_nr_users
>
in file pureuserclass.php, method pureuseradmin::get_nr_users()
    Get number of users in the database.
259c261 < Documentation generated on Sun, 3 Oct 2004 21:52:29 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/errors.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/errors.html,v retrieving revision 1.3 retrieving revision 1.4 diff -r1.3 -r1.4 73c73 < duplicate function element "sql_trigger_error" in file /var/www/workspace/pureuseradmin/functions_postgres.php will be ignored. --- > duplicate function element "sql_query" in file /var/www/workspace/pureuseradmin/functions_postgres.php will be ignored. 76c76 < duplicate function element "sql_query" in file /var/www/workspace/pureuseradmin/functions_postgres.php will be ignored. --- > duplicate function element "sql_trigger_error" in file /var/www/workspace/pureuseradmin/functions_postgres.php will be ignored. 94c94 < Warning on line 337 - File "/var/www/workspace/pureuseradmin/pureuserclass.php" has no page-level DocBlock, use @package in the first DocBlock to create one
--- > Warning on line 394 - File "/var/www/workspace/pureuseradmin/pureuserclass.php" has no page-level DocBlock, use @package in the first DocBlock to create one
97c97 < Documentation generated on Sun, 3 Oct 2004 21:52:31 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:14 +0200 by phpDocumentor 1.3.0RC3 Index: docs/index.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/index.html,v retrieving revision 1.3 retrieving revision 1.4 diff -r1.3 -r1.4 60c60 < Documentation generated on Sun, 3 Oct 2004 21:52:29 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/li_PureUserAdmin.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/li_PureUserAdmin.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 60c60 < Documentation generated on Sun, 3 Oct 2004 21:52:29 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/ric_CHANGELOG.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/ric_CHANGELOG.html,v retrieving revision 1.3 retrieving revision 1.4 diff -r1.3 -r1.4 43a44,46 > * added search and paging in userlist again > > [0.2.0] <mvanbaak (at) users (dot) sourceforge (dot) net> 50c53 < [0.1.0] <mvanbaak (ay) users (dot) sourceforge (dot) net> --- > [0.1.0] <mvanbaak (at) users (dot) sourceforge (dot) net> 54c57 < [0.0.3] <mvanbaak (ay) users (dot) sourceforge (dot) net> --- > [0.0.3] <mvanbaak (at) users (dot) sourceforge (dot) net> 67c70 < Documentation generated on Sun, 3 Oct 2004 21:52:30 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/ric_INSTALL.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/ric_INSTALL.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 71c71 < Documentation generated on Sun, 3 Oct 2004 21:52:30 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/ric_README.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/ric_README.html,v retrieving revision 1.3 retrieving revision 1.4 diff -r1.3 -r1.4 83c83 < All in a Class now --- > Search and pages in userlist* 227c227 < Documentation generated on Sun, 3 Oct 2004 21:52:30 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/PureUserAdmin/_functions_mysql_php.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/PureUserAdmin/_functions_mysql_php.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 467c467 < Documentation generated on Sun, 3 Oct 2004 21:52:30 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:13 +0200 by phpDocumentor 1.3.0RC3 Index: docs/PureUserAdmin/_functions_postgres_php.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/PureUserAdmin/_functions_postgres_php.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 69c69 < Documentation generated on Sun, 3 Oct 2004 21:52:30 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:14 +0200 by phpDocumentor 1.3.0RC3 Index: docs/PureUserAdmin/_index_php.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/PureUserAdmin/_index_php.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 148c148 < Documentation generated on Sun, 3 Oct 2004 21:52:31 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:14 +0200 by phpDocumentor 1.3.0RC3 Index: docs/PureUserAdmin/_pureuserclass_php.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/PureUserAdmin/_pureuserclass_php.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 74c74 < Documentation generated on Sun, 3 Oct 2004 21:52:31 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:14 +0200 by phpDocumentor 1.3.0RC3 Index: docs/PureUserAdmin/pureuseradmin.html =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/docs/PureUserAdmin/pureuseradmin.html,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 111a112 >
  • get_nr_users
  • 255c256 <

    constructor __construct [line 153]

    --- >

    constructor __construct [line 162]

    281c282 <

    method changeSetting [line 198]

    --- >

    method changeSetting [line 218]

    324c325 <

    method check_access [line 310]

    --- >

    method check_access [line 366]

    376c377 <

    method db_init [line 65]

    --- >

    method db_init [line 67]

    402c403 <

    method delete_user [line 265]

    --- >

    method delete_user [line 287]

    442c443 <

    method get_all_users [line 291]

    --- >

    method get_all_users [line 318]

    447c448,451 < ) --- > [string > $search = ""], [integer > $start = 0], [integer > $pagesize = 0]) 466a471,530 >

    Parameters:

    >
    > > > > > > > > > > > > > > > > >
    string  $search  Searchstring to limit results.
    integer  $start  Record in database to start output.
    integer  $pagesize  Number of users to show on a page.
    >

    >
    [ Top ]
    > >
    > >

    method get_nr_users [line 343]

    >
    >
    >
    > integer get_nr_users( > [string > $search = ""]) >
    >

    > > Get number of users in the database.

    1. $nr_users = $instance->get_nr_users();
    2. >




    >

    Tags:

    >
    > > > > > > > >
    return:  Number of users in the database.
    access:  public
    >
    >

    > > >

    Parameters:

    >
    > > > > > > >
    string  $search  Searchstring to limit results.
    >

    471c535 <

    method get_user [line 278]

    --- >

    method get_user [line 301]

    511c575 <

    method load_gids [line 135]

    --- >

    method load_gids [line 142]

    540c604 <

    method load_sql [line 85]

    --- >

    method load_sql [line 88]

    577c641 <

    method load_uids [line 119]

    --- >

    method load_uids [line 124]

    606c670 <

    method mkpass [line 43]

    --- >

    method mkpass [line 44]

    646c710 <

    method save_user [line 209]

    --- >

    method save_user [line 229]

    701c765 < Documentation generated on Sun, 3 Oct 2004 21:52:31 +0200 by phpDocumentor 1.3.0RC3 --- > Documentation generated on Sat, 16 Oct 2004 12:28:14 +0200 by phpDocumentor 1.3.0RC3