Overview

Packages

  • None
  • Passwd

Classes

  • Passwd_Application
  • Passwd_Test
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Passwd application interface.
 4:  *
 5:  * This file brings in all of the dependencies that every Passwd script will
 6:  * need, and sets up objects that all scripts use.
 7:  *
 8:  * Copyright 2002-2012 Horde LLC (http://www.horde.org/)
 9:  *
10:  * See the enclosed file COPYING for license information (GPL). If you
11:  * did not receive this file, see http://www.horde.org/licenses/gpl.php.
12:  *
13:  * @author  Eric Rostetter <eric.rostetter@physics.utexas.edu>
14:  * @author  Ben Klang <ben@alkaloid.net>
15:  * @package Passwd
16:  */
17: 
18: if (!defined('PASSWD_BASE')) {
19:     define('PASSWD_BASE', dirname(__FILE__). '/..');
20: }
21: 
22: if (!defined('HORDE_BASE')) {
23:     /* If horde does not live directly under the app directory, the HORDE_BASE
24:      * constant should be defined in config/horde.local.php. */
25:     if (file_exists(PASSWD_BASE. '/config/horde.local.php')) {
26:         include PASSWD_BASE . '/config/horde.local.php';
27:     } else {
28:         define('HORDE_BASE', PASSWD_BASE . '/..');
29:     }
30: }
31: 
32: /* Load the Horde Framework core (needed to autoload
33:  * Horde_Registry_Application::). */
34: require_once HORDE_BASE . '/lib/core.php';
35: 
36: class Passwd_Application extends Horde_Registry_Application {
37:     /**
38:      * The version of passwd as shown in the admin view
39:      */
40:     public $version = 'H4 (4.0.2-git)';
41: 
42:     /**
43:      */
44:     public function menu($menu)
45:     {
46:         $menu->setMask(Horde_Menu::MASK_ALL & ~Horde_Menu::MASK_PREFS);
47:         $menu->add(Horde::url('', false, array('app' => 'passwd')), _("Password"), 'passwd.png');
48:     }
49: }
50: 
API documentation generated by ApiGen