yellow/yellow.php

19 lines
573 B
PHP
Raw Normal View History

2013-06-07 20:01:12 +00:00
<?php
2014-07-10 08:42:32 +00:00
// Yellow is for people who make websites. http://datenstrom.se/yellow
// This file may be used and distributed under the terms of the public license.
2013-08-28 10:01:46 +00:00
2016-09-04 12:22:53 +00:00
version_compare(PHP_VERSION, "5.3", '>=') || die("Yellow requires PHP 5.3 or higher!");
2015-10-06 12:19:11 +00:00
require_once("system/plugins/core.php");
2016-07-20 09:02:13 +00:00
if(PHP_SAPI!="cli")
2013-06-07 20:01:12 +00:00
{
2015-10-06 12:19:11 +00:00
$yellow = new YellowCore();
2017-01-03 13:17:11 +00:00
$yellow->load();
2013-06-07 20:01:12 +00:00
$yellow->request();
} else {
2015-10-06 12:19:11 +00:00
$yellow = new YellowCore();
2017-01-03 13:17:11 +00:00
$yellow->load();
2016-06-27 13:29:50 +00:00
$statusCode = $yellow->command($argv[1], $argv[2], $argv[3], $argv[4], $argv[5], $argv[6], $argv[7]);
2015-09-06 22:09:22 +00:00
exit($statusCode<400 ? 0 : 1);
2013-06-07 20:01:12 +00:00
}
?>