Changeset 1808
- Timestamp:
- 05/02/07 15:16:30 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/branches/franck-desktop/bureau/admin/menu.php
r1803 r1808 35 35 $currentMenu = "menu-" . $regs[1]; 36 36 37 // On redemande les quotas pour etre sur qu'ils sont a jour 38 $quota->getquota("", true); 39 37 40 ?> 38 41 <h3>Menu <?php echo $mem->user["login"]; ?></h3> alternc/branches/franck-desktop/bureau/class/m_quota.php
r1804 r1808 121 121 * @Return the quota used and total for this ressource (or for all ressource if unspecified) 122 122 */ 123 function getquota($ressource="" ) {123 function getquota($ressource="", $force = false) { 124 124 global $db,$err,$cuid; 125 125 $err->log("quota","getquota",$ressource); 126 127 if ($force == false && $this->quotas) 128 { 129 if ($ressource) { 130 return $this->quotas[$ressource]; 131 } else { 132 return $this->quotas; 133 } 134 } 135 126 136 $this->qlist(); // Generate the quota list. 127 137 $db->query("select * from quotas where uid='$cuid';");
