Bernd Wurst
Erlaube auch einen Get-Parameter für den Speicherplatz
Bernd Wurst commited 4f48729 at 2017-02-25 19:09:10
more_storage.php
<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written 2008-2014 by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
http://creativecommons.org/publicdomain/zero/1.0/
Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
*/
require_once('session/start.php');
require_once('inc/icons.php');
require_once('inc/jquery.php');
javascript('more_storage.js');
require_once('invoice.php');
require_role(ROLE_CUSTOMER);
$_SESSION['more_storage_section'] = 'invoice_current';
if (isset($_GET['section'])) {
$_SESSION['more_storage_section'] = $_GET['section'];
}
$section = $_SESSION['more_storage_section'];
title('Zusätzlichen Speicherplatz buchen');
$upcoming = upcoming_items();
$hosting = NULL;
foreach ($upcoming as $item) {
if ($item['quelle'] == 'hosting') {
$hosting = $item;
break;
}
}
if (!$hosting) {
system_failure("Die Abrechnung für das normale Hosting konnte nicht ermittelt werden. Daher können Sie diese Funktion leider nicht benutzen. Wenden Sie sich bitte an die Administratoren um mehr Speicherplatz zu bestellen.");
}
if ($hosting['brutto'] == 0) {
system_failure("Ihr Konto wird mit Nettopreisen abgerechnet. Bitte wenden Sie sich an den Support.");
}
$customerquota = get_customerquota();
$count = 1024;
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX