Ignore:
Timestamp:
02/22/06 00:17:37 (7 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2004-10-24 19:52:00 by anonymous]

  • Quota automatique Step 2 :
  • Ajout de la gestion des quotas multiples ($name)
  • Patch de m_quota

Original author: anonymous
Date: 2004-10-24 19:52:00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bureau/class/m_mysql.php

    r427 r428  
    11<?php 
    22/* 
    3  $Id: m_mysql.php,v 1.18 2004/10/24 19:05:14 anonymous Exp $ 
     3 $Id: m_mysql.php,v 1.19 2004/10/24 19:52:00 anonymous Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    348348  /* ----------------------------------------------------------------- */ 
    349349  /** 
    350    * AlternC's standard function that returns a user's qutoa 
    351    */ 
    352   function alternc_get_quota() { 
     350   * Returns the used quota for the $name service for the current user. 
     351   * @param $name string name of the quota 
     352   * @return integer the number of service used or false if an error occured 
     353   * @access private 
     354   */ 
     355  function alternc_get_quota($name) { 
    353356    global $err,$db,$cuid; 
    354     $err->log("mysql","alternc_get_quota"); 
    355     $c=$this->get_dblist(); 
    356     if (is_array($c)) { 
    357       return count($c); 
    358     } else { 
    359       return 0; 
    360     } 
     357    if ($name=="mysql") { 
     358      $err->log("mysql","alternc_get_quota"); 
     359      $c=$this->get_dblist(); 
     360      if (is_array($c)) { 
     361        return count($c); 
     362      } else { 
     363        return 0; 
     364      } 
     365    } else return false; 
    361366  } 
    362367 
Note: See TracChangeset for help on using the changeset viewer.