summaryrefslogtreecommitdiff
path: root/program/steps/mail/quotadisplay.inc
blob: 223dd5824fc2becdf19704cb8ba9cef2a25fac1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

/*
 +-----------------------------------------------------------------------+
 | program/steps/mail/quotadisplay.inc                                   |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Remote call to return the quota image or text                       |
 |                                                                       |
 +-----------------------------------------------------------------------+
 | Author: Robin Elfrink <robin@15augustus.nl>                           |
 +-----------------------------------------------------------------------+

 $Id$

*/

$display = isset($_GET['_display']) ? $_GET['_display'] : 'text';
$id = isset($_GET['_id']) ? $_GET['_id'] : 'rcmquotadisplay';
$quota = rcmail_quota_content($display);
$OUTPUT->remote_response(sprintf("this.gui_objects.%s.innerHTML = '%s';\n", $id, $quota));

exit;
?>