[Pureuseradmin-cvs] PureUserAdmin functions_mysql.php,1.2,1.3 README,1.5,1.6 BUGS,1.1.1.1,1.2 CHANGE
Status: Abandoned
Brought to you by:
mvanbaak
|
From: Michiel v. B. <mva...@us...> - 2004-10-03 19:20:10
|
Update of /cvsroot/pureuseradmin/PureUserAdmin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6993 Modified Files: functions_mysql.php README BUGS CHANGELOG Log Message: new release Index: README =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/README,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** README 13 Jun 2004 15:12:50 -0000 1.5 --- README 3 Oct 2004 19:18:48 -0000 1.6 *************** *** 39,43 **** Deleting ftp accounts Check access rights on homedir ! Notify users with their ftp info * 3. Requirements. --- 39,45 ---- Deleting ftp accounts Check access rights on homedir ! Notify users with their ftp info ! PHP5 support ! All in a Class now 3. Requirements. *************** *** 47,52 **** * A http server ! * PHP4, with mysql.so module (or build in support). ! * MySQL daemon. * PureFTPd with mysql/postgresql auth config * A webbrowser --- 49,54 ---- * A http server ! * PHP5, with mysql.so/psql.so module (or build in support). ! * MySQL/PostgreSQL daemon. * PureFTPd with mysql/postgresql auth config * A webbrowser *************** *** 64,68 **** Just unpack it somewhere in your www root. ! Edit pc.php to reflect your system. 5. Project goals. --- 66,70 ---- Just unpack it somewhere in your www root. ! Edit index.php to reflect your system. 5. Project goals. *************** *** 174,177 **** --- 176,180 ---- Nancy (my wonderful wife) - she came up with the name The drupal xtemplate crew - interface ideas + Ferry Boender - for pointing me to doxygen. since this is not really php5 friendly I used phpdoc And of course all the others who helped me. Index: functions_mysql.php =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/functions_mysql.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** functions_mysql.php 3 Oct 2004 16:07:45 -0000 1.2 --- functions_mysql.php 3 Oct 2004 19:18:48 -0000 1.3 *************** *** 1,3 **** --- 1,21 ---- <? + /** + * Mysql function lib for PureFTPd. + * + * This file holds all the mysql funtions used in the class file + * @version 0.2.0 + * @license http://www.gnu.org/licenses/gpl.html GPL + * @link http://pureuseradmin.sourceforge.net Project home. + * @author Michiel van Baak <mva...@us...> + * @copyright Copyright 2004, Michiel van Baak + */ + + /** + * Error handler. + * @param string $query The query sent to the database server. + * @param string $err User supplied extra error info. + * @return string Error page with backtrace. + * @access private + */ function sql_trigger_error($query, $err){ if (pureuseradmin::DEBUG){ *************** *** 37,40 **** --- 55,64 ---- } + /** + * Send query to database server. + * @param string $query The query sent to the database server. + * @return resource Mysql result resource. + * @access public + */ function sql_query($query) { $result = mysql_query($query) or sql_trigger_error($query, mysql_error()); *************** *** 42,57 **** --- 66,107 ---- } + /** + * Fetch a result row as an associative array, a numeric array, or both. + * @param resource $result The result resource from a previous sql_query call. + * @return array Returns an array that corresponds to the fetched row, or FALSE if there are no more rows. + * @access public + */ function sql_fetch_array($result) { return mysql_fetch_array($result); } + /** + * Get a result row as an enumerated array. + * @param resource $result The result resource from a previous sql_query call. + * @return array Returns an array that corresponds to the fetched row, or FALSE if there are no more rows. + * @access public + */ function sql_fetch_row($result) { return mysql_fetch_row($result); } + /** + * Fetch a result row as an associative array. + * @param resource $result The result resource from a previous sql_query call. + * @return array Returns an associative array that corresponds to the fetched row, or FALSE if there are no more rows. + * @access public + */ function sql_fetch_assoc($result) { return mysql_fetch_assoc($result); } + /** + * Get result data. + * @param resource $result The result resource from a previous sql_query call. + * @param integer $pos The offset - optional. + * @param string $field The field in the result array - optional. + * @return mixed The contents of one cell from a MySQL result set. + * @access public + */ function sql_result($result, $pos=0, $field="") { if ($field) { *************** *** 63,82 **** --- 113,159 ---- } + /** + * Get number of rows in result. + * @param resource $result The result resource from a previous sql_query call - optional. + * @return integer The number of rows in a result set. + * @access public + */ function sql_num_rows($result="") { return mysql_num_rows($result); } + /** + * Get number of affected rows in previous MySQL operation. + * @param resource $result The result resource from a previous sql_query call - optional. + * @return integer The number of rows affected by the last INSERT, UPDATE or DELETE query. + * @access public + */ function sql_affected_rows($result="") { return mysql_affected_rows(); } + /** + * Move internal result pointer. + * @param resource $result The result resource from a previous sql_query call. + * @param integer Position in data set + * @return boolean TRUE on success or FALSE on failure. + * @access public + */ function sql_data_seek($result, $pos) { return mysql_data_seek($result, $pos); } + /** + * Get the ID generated from the previous INSERT operation. + * @return integer The ID generated for an AUTO_INCREMENT column by the previous INSERT query. + * @access public + */ function sql_insert_id() { return mysql_insert_id(); } + /** + * Obsolete error handler. It's still here for backward compatability + */ function sql_error($filename, $linenumber, $query="") { return 1; Index: BUGS =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/BUGS,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** BUGS 3 Jun 2004 17:34:08 -0000 1.1.1.1 --- BUGS 3 Oct 2004 19:18:48 -0000 1.2 *************** *** 2,5 **** --- 2,10 ---- We have no bugs that we know of ;) + + Well, actually,.... + After rewriteing the whole thing in php5 Class the + search/page thingy is gone. + If you find a bug or have a feature request please file it at sf.net Index: CHANGELOG =================================================================== RCS file: /cvsroot/pureuseradmin/PureUserAdmin/CHANGELOG,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CHANGELOG 13 Jun 2004 15:12:50 -0000 1.4 --- CHANGELOG 3 Oct 2004 19:18:48 -0000 1.5 *************** *** 2,5 **** --- 2,11 ---- [%%VERSION] <%%EMAIL> + * php5 support + * dropped php4 support + * all is in a class now + * phpdoc comments + + [0.1.0] <mvanbaak (ay) users (dot) sourceforge (dot) net> * added welcome screen * added email notification |