yellow/yellow.php

19 lines
681 B
PHP
Raw Normal View History

2013-06-07 20:01:12 +00:00
<?php
// Datenstrom Yellow is for people who make websites, https://datenstrom.se/yellow/
// Copyright (c) 2013-2020 Datenstrom, https://datenstrom.se
2014-07-10 08:42:32 +00:00
// This file may be used and distributed under the terms of the public license.
2013-08-28 10:01:46 +00:00
version_compare(PHP_VERSION, "5.6", ">=") || die("Datenstrom Yellow requires PHP 5.6 or higher!");
require_once("system/extensions/core.php");
if (PHP_SAPI!="cli") {
$yellow = new YellowCore();
$yellow->load();
$yellow->request();
2013-06-07 20:01:12 +00:00
} else {
$yellow = new YellowCore();
$yellow->load();
$statusCode = $yellow->command($argv[1], $argv[2], $argv[3], $argv[4], $argv[5], $argv[6], $argv[7]);
exit($statusCode<400 ? 0 : 1);
2013-06-07 20:01:12 +00:00
}