Ejemplo n.º 1
0
#=============================
define('IN_HD', 1);
ini_set('display_errors', 0);
#=============================
# Define Our Paths
#=============================
define("TD_PATH", "../");
define('TD_INC', TD_PATH . "includes/");
define('TD_SRC', TD_PATH . "sources/");
define('TD_SKIN', TD_PATH . "skin/");
define('TD_DEBUG', false);
#=============================
# Main Class
#=============================
require_once TD_INC . "trellis.php";
$trellis = new trellis(1);
$trellis->load_lang('global');
$trellis->load_lang('tickets');
#=============================
# Pre-Checks
#=============================
if (!$trellis->cache->data['settings']['tickets']['new_tickets']) {
    exit;
}
#=============================
# Grab Incoming Email
#=============================
$raw_email = "";
$email = array();
if ($fd = @fopen("php://stdin", 'r')) {
    while (!feof($fd)) {
Ejemplo n.º 2
0
}
#=============================
# Define Our Paths
#=============================
define("TD_PATH", str_replace('//', '/', dirname(__FILE__) . '/'));
define('TD_INC', TD_PATH . "includes/");
define('TD_CLASS', TD_PATH . "includes/classes/class_");
define('TD_FUNC', TD_PATH . "includes/functions/func_");
define('TD_SRC', TD_PATH . "sources/");
define('TD_SKIN', TD_PATH . "skins/");
# TODO: TD_LANG contstant?
#=============================
# Main Class
#=============================
require_once TD_INC . "trellis.php";
$trellis = new trellis();
$trellis->initialize();
#=============================
# Other Junk
#=============================
$choice = array('kb' => 'knowledgebase', 'account' => 'account', 'feed' => 'feed', 'dashboard' => 'dashboard', 'pages' => 'pages', 'news' => 'news', 'register' => 'register', 'tickets' => 'tickets');
#=============================
# Require & Run
#=============================
$required = $choice[$trellis->input['page']];
if (!isset($required)) {
    $required = 'dashboard';
}
require_once TD_SRC . $required . ".php";
$required_class = 'td_source_' . $required;
$run = new $required_class();