Skip to content

QUIQQER console file erstellen

Damit die quiqqer console nicht immer über php quiqqer.php sondern kann als ./console ausgeführt werden

außerdem sollte das Script noch prüfen ob der ausführende Nutzer der fileowner ist, wenn nicht eine Warnen ausgeben und fragen ob QUIQQER als anderer Nutzer ausgeführt werden soll (diese prüfung kann in die quiqqer/quiqqer.php). Dies erledigt dann das Rechte problem wenn ein Update oder Setup als falscher Nutzer ausgeführt wird.

https://www.php.net/manual/de/function.fileowner.php

und

https://www.php.net/manual/de/function.get-current-user.php

#!/usr/bin/env php(VERSION)
<?php

 /**
  * This file is part of QUIQQER.
  *
  * (c) Henning Leutz <leutz@pcsg.de>
  * Moritz Scholz <scholz@pcsg.de>
  *
  * For the full copyright and license information, please view the LICENSE
  * file that was distributed with this source code.
  *
  *  _______          _________ _______  _______  _______  _______
  * (  ___  )|\     /|\__   __/(  ___  )(  ___  )(  ____ \(  ____ )
  * | (   ) || )   ( |   ) (   | (   ) || (   ) || (    \/| (    )|
  * | |   | || |   | |   | |   | |   | || |   | || (__    | (____)|
  * | |   | || |   | |   | |   | |   | || |   | ||  __)   |     __)
  * | | /\| || |   | |   | |   | | /\| || | /\| || (      | (\ (
  * | (_\ \ || (___) |___) (___| (_\ \ || (_\ \ || (____/\| ) \ \__
  * (____\/_)(_______)\_______/(____\/_)(____\/_)(_______/|/   \__/
  *
  * Generated File via QUIQQER
  * Date: 2020-01-29 11:13:44
  *
  */

define('CMS_DIR', 'PATH_TO_QUQQER_ROOT');
require 'PATH_TO_QUQQER_PACKAGE/quiqqer.php';