Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding site awareness to CLI mode #5

Merged
merged 7 commits into from
May 15, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/test_cli.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

define('EXCEPTION_LOG_FILE', 'error_log');
//domain of your site here:
//$_SERVER['SERVER_NAME'] = '';
require_once('/var/www/ember/system/include/common.inc.php');

Debug::enable();
Expand Down
2 changes: 2 additions & 0 deletions system/class/Debug.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class Debug implements iSession
const LOG_GLOBALS = 'LOG_GLOBALS';
const LOG_PAGELOAD_TIME = 'LOG_PAGE_LOAD_TIME';
const LOG_CODEBASE = 'LOG_CODEBASE';
const LOG_REQUEST = 'LOG_REQUEST';
/**
* Used by validate options
* @var array of avalable options
Expand All @@ -79,6 +80,7 @@ class Debug implements iSession
self::LOG_PERMISSION,
self::LOG_SMARTY,
self::LOG_FILEDISPATCHER,
self::LOG_REQUEST,
);

//Display modes
Expand Down
6 changes: 6 additions & 0 deletions system/class/DomainHost.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

class DomainHost
{
//Place holder for DB based domain management of sites
}
5 changes: 3 additions & 2 deletions system/class/FileDispatcher.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ private static function scandirRecursive($path)
return $tree;
}
else
throw new exception('Not a dir');
//throw new exception('Not a dir');
return array();
}

/**
Expand All @@ -392,4 +393,4 @@ public static function http404($die = TRUE)
if($die)
die;
}
}
}
Loading