git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
28667e9
Branches
Tags
master
ticket
webinterface.git
modules
webapps
requestupdate.php
Fix not operator (!) spaces
Hanno Böck
commited
28667e9
at 2023-10-28 19:16:53
requestupdate.php
Blame
History
Raw
<?php /* This file belongs to the Webinterface of schokokeks.org Hosting Written by schokokeks.org Hosting, namely Bernd Wurst <bernd@schokokeks.org> Hanno Böck <hanno@schokokeks.org> This code is published under a 0BSD license. 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('webapp-installer.php'); require_role(ROLE_SYSTEMUSER); $section = 'webapps_freewvs'; $directory = $_GET['dir']; if (!in_homedir($directory)) { system_failure('Pfad nicht im Homedir oder ungültige Zeichen im Pfad'); } $app = $_GET['app']; verify_input_identifier($app); $sure = user_is_sure(); if ($sure === null) { 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?"); } elseif ($sure === true) { request_update($app, $directory, get_url_for_dir($directory)); if (!$debugmode) { header("Location: waitforupdate"); } } elseif ($sure === false) { if (!$debugmode) { header("Location: freewvs"); } }