yellow/yellow.php

17 lines
503 B
PHP
Raw Normal View History

2013-06-07 20:01:12 +00:00
<?php
2013-08-28 10:01:46 +00:00
// Yellow is a CMS for people who make websites. https://github.com/markseu/yellowcms
// For more information see Yellow documentation. Have fun making your website.
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();
2013-12-01 11:59:07 +00:00
$statusCode = $yellow->plugin("commandline", $argv[1], $argv[2], $argv[3], $argv[4], $argv[5]);
exit($statusCode<=200 ? 0 : 1);
2013-06-07 20:01:12 +00:00
}
?>