]> git.donarmstrong.com Git - roundcube.git/blob - program/steps/mail/quotadisplay.inc
Imported Upstream version 0.1~rc1~dfsg
[roundcube.git] / program / steps / mail / quotadisplay.inc
1 <?php
2
3 /*
4  +-----------------------------------------------------------------------+
5  | program/steps/mail/quotadisplay.inc                                   |
6  |                                                                       |
7  | This file is part of the RoundCube Webmail client                     |
8  | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
9  | Licensed under the GNU GPL                                            |
10  |                                                                       |
11  | PURPOSE:                                                              |
12  |   Remote call to return the quota image or text                       |
13  |                                                                       |
14  +-----------------------------------------------------------------------+
15  | Author: Robin Elfrink <robin@15augustus.nl>                           |
16  +-----------------------------------------------------------------------+
17
18  $Id: quotadisplay.inc 543 2007-04-28 18:07:12Z thomasb $
19
20 */
21
22 $display = isset($_GET['_display']) ? $_GET['_display'] : 'text';
23 $id = isset($_GET['_id']) ? $_GET['_id'] : 'rcmquotadisplay';
24 $quota = rcmail_quota_content($display);
25 $OUTPUT->remote_response(sprintf("this.gui_objects.%s.innerHTML = '%s';\n", $id, $quota));
26
27 exit;
28 ?>