28667e96bdcc072a7485ff50021f54f555c59ea3
bernd * alle internen Links sinnv...

bernd authored 15 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

5) Written by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) 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.
12) */
13) 
bernd * alle internen Links sinnv...

bernd authored 15 years ago

14) require_once('session/start.php');
15) require_once('webapp-installer.php');
16) 
17) require_role(ROLE_SYSTEMUSER);
18) 
bernd Menü richtig aufgeklappt la...

bernd authored 14 years ago

19) $section = 'webapps_freewvs';
bernd * alle internen Links sinnv...

bernd authored 15 years ago

20) $directory = $_GET['dir'];
21) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

22) if (!in_homedir($directory)) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

23)     system_failure('Pfad nicht im Homedir oder ungültige Zeichen im Pfad');
24) }
bernd * alle internen Links sinnv...

bernd authored 15 years ago

25) 
26) $app = $_GET['app'];
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

27) verify_input_identifier($app);
bernd * alle internen Links sinnv...

bernd authored 15 years ago

28) 
29) 
30) $sure = user_is_sure();
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

31) if ($sure === null) {
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

32)     are_you_sure("dir={$directory}&app=".filter_output_html($app), "Möchten Sie ein Update der Anwendung »".filter_output_html($app)."« im Verzeichnis »{$directory}« automatisch durchführen lassen?");
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

33) } elseif ($sure === true) {
34)     request_update($app, $directory, get_url_for_dir($directory));
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

35)     if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

36)         header("Location: waitforupdate");
37)     }
38) } elseif ($sure === false) {
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

39)     if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

40)         header("Location: freewvs");
41)     }