Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, November 13, 2026

Diff for Metafox/db.inc.php between version 1.64 and 1.65

version 1.64, 2012/05/15 17:47:56 version 1.65, 2012/06/06 10:19:41
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/db.inc.php,v 1.63 2012-05-14 14:53:43 igor Exp $ */  /* $Platon: Metafox/db.inc.php,v 1.64 2012-05-15 17:47:56 igor Exp $ */
   
 /*  /*
  * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002   * updates: 23/5/2001, 29/7/2001, 11/10/2001, 2/11/2001, 11/1/2002, 23/7/2002
Line 1004  function ezin_insert_author($data) /* {{
Line 1004  function ezin_insert_author($data) /* {{
 } /* }}} */  } /* }}} */
   
 /*  /*
    * ezin_get_users()
    */
   function ezin_get_users($count = 0) {
           global $ezin_sys;
           global $ezin_cfg;
           global $ezin_db_handle;
   
           $count = intval($count);
           $ret_row = array();
   
           if ($count == 0) {
                   $query = sprintf('SELECT * FROM %s ORDER BY username',
                                   $ezin_sys['db']['tables']['users']);
           } else {
                   $query = sprintf('SELECT * FROM %s ORDER BY username LIMIT %d',
                                   $ezin_sys['db']['tables']['users'], $count);
           }
           $result = @mysql_query($query, $ezin_db_handle)
                   or ezin_db_error('ezin_get_users() [1]');
           while (($row = @mysql_fetch_array($result, MYSQL_ASSOC)) != false) {
                   $ret_row[] = $row;
           }
           @mysql_free_result($result);
   
           return $ret_row;
   }
   
   /*
    * ezin_get_roles()
    */
   function ezin_get_roles($count = 0) {
           global $ezin_sys;
           global $ezin_cfg;
           global $ezin_db_handle;
   
           $count = intval($count);
           $ret_row = array();
   
           if ($count == 0) {
                   $query = sprintf('SELECT * FROM %s ORDER BY name',
                                   $ezin_sys['db']['tables']['roles']);
           } else {
                   $query = sprintf('SELECT * FROM %s ORDER BY name LIMIT %d',
                                   $ezin_sys['db']['tables']['roles'], $count);
           }
           $result = @mysql_query($query, $ezin_db_handle)
                   or ezin_db_error('ezin_get_roles() [1]');
           while (($row = @mysql_fetch_array($result, MYSQL_ASSOC)) != false) {
                   $ret_row[] = $row;
           }
           @mysql_free_result($result);
   
           return $ret_row;
   }
   
   /*
  * COUNTS MANIPULATION FUNCTIONS   * COUNTS MANIPULATION FUNCTIONS
  */   */
   

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top