pushApp() public method

pushApp() also reads the application's configuration file and sets up its global $conf hash.
public pushApp ( string $app, array $options = [] ) : boolean
$app string The name of the application to push.
$options array Additional options: - check_perms: (boolean) Make sure that the current user has permissions to the application being loaded. Should ONLY be disabled by system scripts (cron jobs, etc.) and scripts that handle login. DEFAULT: true - logintasks: (boolean) Perform login tasks? Only performed if 'check_perms' is also true. System tasks are always peformed if the user is authorized. DEFAULT: false - notransparent: (boolean) Do not attempt transparent authentication. DEFAULT: false
return boolean Whether or not the _appStack was modified.
Exemplo n.º 1
0
/**
 * Folks base application file.
 *
 *
 * This file brings in all of the dependencies that every Folks script will
 * need, and sets up objects that all scripts use.
 */
// Check for a prior definition of HORDE_BASE (perhaps by an auto_prepend_file
// definition for site customization).
if (!defined('HORDE_BASE')) {
    define('HORDE_BASE', __DIR__ . '/../..');
}
// Load the Horde Framework core, and set up inclusion paths and autoloading.
require_once HORDE_BASE . '/lib/core.php';
// Registry.
$registry = new Horde_Registry();
$registry->pushApp('folks', array('check_perms' => Horde_Util::nonInputVar('folks_authentication') != 'none'));
$conf =& $GLOBALS['conf'];
// Define the base file path of Folks.
if (!defined('FOLKS_BASE')) {
    define('FOLKS_BASE', __DIR__ . '/..');
}
$GLOBALS['folks_driver'] = Folks_Driver::factory();
// Cache
$GLOBALS['cache'] = $injector->getInstance('Horde_Cache');
// Update user online status
$GLOBALS['folks_driver']->updateOnlineStatus();
// Start output compression.
if (!Horde_Util::nonInputVar('no_compress')) {
}