yellow/yellow.php

17 lines
498 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
2013-06-07 20:01:12 +00:00
require_once("system/core/core.php");
if(PHP_SAPI != "cli")
{
$yellow = new Yellow();
$yellow->plugins->load();
$yellow->request();
} else {
$yellow = new Yellow();
$yellow->plugins->load();
2014-07-10 08:42:32 +00:00
$statusCode = $yellow->command("commandline", $argv[1], $argv[2], $argv[3], $argv[4], $argv[5], $argv[6]);
2015-09-06 22:09:22 +00:00
exit($statusCode<400 ? 0 : 1);
2013-06-07 20:01:12 +00:00
}
?>