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

[project @ alternc: changeset 2004-10-24 19:05:14 by anonymous]
Quota patch : 1st step : ajout de la fonction alternc_get_quota dans
les classes concernées

Original author: anonymous
Date: 2004-10-24 19:05:14

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bureau/class/m_mysql.php

    r396 r427  
    11<?php 
    22/* 
    3  $Id: m_mysql.php,v 1.17 2004/09/06 17:05:00 anonymous Exp $ 
     3 $Id: m_mysql.php,v 1.18 2004/10/24 19:05:14 anonymous Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    332332  /** 
    333333   * AlternC's standard function that check a user's qutoa 
     334   * TODO : remove this function 
    334335   */ 
    335336  function alternc_quota_check() { 
     
    344345    return true; 
    345346  } 
     347 
     348  /* ----------------------------------------------------------------- */ 
     349  /** 
     350   * AlternC's standard function that returns a user's qutoa 
     351   */ 
     352  function alternc_get_quota() { 
     353    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    } 
     361  } 
     362 
    346363 
    347364  /* ----------------------------------------------------------------- */ 
Note: See TracChangeset for help on using the changeset viewer.