Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 88 lines (78 sloc) 4.022 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
<?php
/***********************************************************************
| Cerberus Helpdesk(tm) developed by WebGroup Media, LLC.
|-----------------------------------------------------------------------
| All source code & content (c) Copyright 2007, WebGroup Media LLC
| unless specifically noted otherwise.
|
| This source code is released under the Cerberus Public License.
| The latest version of this license can be found here:
| http://www.cerberusweb.com/license.php
|
| By using this software, you acknowledge having read this license
| and agree to be bound thereby.
| ______________________________________________________________________
| http://www.cerberusweb.com http://www.webgroupmedia.com/
***********************************************************************/
/*
* IMPORTANT LICENSING NOTE from your friends on the Cerberus Helpdesk Team
*
* Sure, it would be so easy to just cheat and edit this file to use the
* software without paying for it. But we trust you anyway. In fact, we're
* writing this software for you!
*
* Quality software backed by a dedicated team takes money to develop. We
* don't want to be out of the office bagging groceries when you call up
* needing a helping hand. We'd rather spend our free time coding your
* feature requests than mowing the neighbors' lawns for rent money.
*
* We've never believed in encoding our source code out of paranoia over not
* getting paid. We want you to have the full source code and be able to
* make the tweaks your organization requires to get more done -- despite
* having less of everything than you might need (time, people, money,
* energy). We shouldn't be your bottleneck.
*
* We've been building our expertise with this project since January 2002. We
* promise spending a couple bucks [Euro, Yuan, Rupees, Galactic Credits] to
* let us take over your shared e-mail headache is a worthwhile investment.
* It will give you a sense of control over your in-box that you probably
* haven't had since spammers found you in a game of "E-mail Address
* Battleship". Miss. Miss. You sunk my in-box!
*
* A legitimate license entitles you to support, access to the developer
* mailing list, the ability to participate in betas and the warm fuzzy
* feeling of feeding a couple obsessed developers who want to help you get
* more done than 'the other guy'.
*
* - Jeff Standen, Mike Fogg, Brenan Cavish, Darren Sugita, Dan Hildebrandt
* and Joe Geck.
* WEBGROUP MEDIA LLC. - Developers of Cerberus Helpdesk
*/
require(getcwd() . '/framework.config.php');
require(DEVBLOCKS_PATH . 'Devblocks.class.php');
require(APP_PATH . '/api/Application.class.php');

header("Content-type: text/html; charset=".LANG_CHARSET_CODE);

$request = DevblocksPlatform::readRequest();

DevblocksPlatform::init();
DevblocksPlatform::setExtensionDelegate('C4_DevblocksExtensionDelegate');

$session = DevblocksPlatform::getSessionService();
$settings = CerberusSettings::getInstance();
$worker = CerberusApplication::getActiveWorker();

// Localization
DevblocksPlatform::setLocale((isset($_SESSION['locale']) && !empty($_SESSION['locale'])) ? $_SESSION['locale'] : 'en_US');
if(isset($_SESSION['timezone'])) @date_default_timezone_set($_SESSION['timezone']);

$tpl = DevblocksPlatform::getTemplateService();
$tpl->assign('translate', DevblocksPlatform::getTranslationService());
$tpl->assign('session', $_SESSION);
$tpl->assign('visit', $session->getVisit());
$tpl->assign('active_worker', $worker);
$tpl->assign('settings', $settings);
$tpl->assign('core_tpl', DEVBLOCKS_PLUGIN_PATH . 'cerberusweb.core/templates/');

if(!empty($worker)) {
$active_worker_memberships = $worker->getMemberships();
$tpl->assign('active_worker_memberships', $active_worker_memberships);

$keyboard_shortcuts = intval(DAO_WorkerPref::get($worker->id,'keyboard_shortcuts', 1));
$tpl->assign('pref_keyboard_shortcuts', $keyboard_shortcuts);
}

CerberusApplication::processRequest($request,true);

exit;
Something went wrong with that request. Please try again.