removed exmaple-files not related to lam
This commit is contained in:
parent
24eadec61e
commit
d4932ddb5f
|
@ -1,29 +0,0 @@
|
||||||
<?php
|
|
||||||
/*
|
|
||||||
* Lam Configuration File
|
|
||||||
*
|
|
||||||
* This file contains global configuration settings for lam. Values
|
|
||||||
* may be safely edited by hand. Use conf.php.dist as a reference.
|
|
||||||
*
|
|
||||||
* Strings should be enclosed in 'quotes'.
|
|
||||||
* Integers should be given literally (without quotes).
|
|
||||||
* Boolean values may be 'true' or 'false'.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
// IP or Name of the LDAP-Server which should be used
|
|
||||||
$conf['ldap']['server'] = 'ldap.example.com'
|
|
||||||
// LDAP-Port Normally 389, 636 if ssl is enabled
|
|
||||||
// If left empty the default values will be used
|
|
||||||
$conf['ldap']['port'] = '636'
|
|
||||||
// Should we use SSL to connect to the ldap-server?
|
|
||||||
$conf['ldap']['usessl'] = 'true'
|
|
||||||
|
|
||||||
// List of users with admin-right
|
|
||||||
// You also have to modify the ACL-List of your
|
|
||||||
// LDAP-Server
|
|
||||||
$conf['lam']['admin'] = array('root','admin',);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 129 B |
|
@ -1,68 +0,0 @@
|
||||||
<?php
|
|
||||||
// $Horde: nmslib/base.php,v 1.6 2002/06/19 02:31:26 chuck Exp $
|
|
||||||
// modified 2002/07/13 Tilo Lutz
|
|
||||||
/*
|
|
||||||
* NMS base inclusion file.
|
|
||||||
*
|
|
||||||
* This file brings in all of the dependencies that every NMS script
|
|
||||||
* will need, and sets up objects that all scripts use.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Find the base file path of Horde
|
|
||||||
@define('HORDE_BASE', dirname(__FILE__) . '/../..');
|
|
||||||
|
|
||||||
// Find the base file path of VACATION
|
|
||||||
@define('NMS_BASE', dirname(__FILE__) . '/..');
|
|
||||||
|
|
||||||
// Registry
|
|
||||||
require_once HORDE_BASE . '/lib/Registry.php';
|
|
||||||
$registry = &Registry::singleton();
|
|
||||||
$registry->pushApp('nms');
|
|
||||||
$conf = &$GLOBALS['conf'];
|
|
||||||
@define('NMS_TEMPLATES', $registry->getParam('templates'));
|
|
||||||
|
|
||||||
// Horde base libraries
|
|
||||||
require_once HORDE_BASE . '/lib/Horde.php';
|
|
||||||
require_once HORDE_BASE . '/lib/Auth.php';
|
|
||||||
require_once HORDE_BASE . '/lib/Secret.php';
|
|
||||||
require_once HORDE_BASE . '/lib/Text.php';
|
|
||||||
require_once HORDE_BASE . '/lib/Help.php';
|
|
||||||
|
|
||||||
// Browser detection library
|
|
||||||
require_once HORDE_BASE . '/lib/Browser.php';
|
|
||||||
$browser = new Browser();
|
|
||||||
if (isset($session_control)) {
|
|
||||||
switch ($session_control) {
|
|
||||||
case 'netscape':
|
|
||||||
if ($browser->isBrowser('mozilla')) {
|
|
||||||
session_cache_limiter('private, must-revalidate');
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'cache_ssl_downloads':
|
|
||||||
header('Vary: User-Agent');
|
|
||||||
if ($browser->hasQuirk('cache_ssl_downloads')) {
|
|
||||||
session_cache_limiter('private, must-revalidate');
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Notification system
|
|
||||||
require_once HORDE_BASE . '/lib/Notification.php';
|
|
||||||
$notification = &Notification::singleton();
|
|
||||||
$notification->attach('status');
|
|
||||||
|
|
||||||
// NMS base library
|
|
||||||
#require_once NMS_BASE . '/lib/version.php';
|
|
||||||
define('NMS_NAME', 'Horde nms module');
|
|
||||||
|
|
||||||
// Don't allow access unless there is a Horde login
|
|
||||||
// NOTE: We explicitely do not honor the guests flag here!!!
|
|
||||||
if (!Auth::getAuth()) {
|
|
||||||
header('Location: ' . Horde::url($registry->getWebRoot("horde") . '/login.php?url=' . urlencode(Horde::selfUrl()), true));
|
|
||||||
echo "\n";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
|
@ -1,39 +0,0 @@
|
||||||
<!-- $Horde: nms/templates/notconfigured.inc,v 1.2 2002/06/15 05:05:30 chuck Exp $-->
|
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title><?php echo _("Nms module is not properly configured") ?></title>
|
|
||||||
<style type="text/css">
|
|
||||||
<!--
|
|
||||||
<?php include NMS_BASE . '/templates/css.inc'; ?>
|
|
||||||
-->
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<table border="0" align="center" width="500" cellpadding="2" cellspacing="4">
|
|
||||||
<tr><td colspan="2" class="header"><b><?php echo _("Some of NMS module's configuration files are missing:") ?></b></td></tr>
|
|
||||||
|
|
||||||
<?php if (!@is_readable('./config/conf.php')): ?>
|
|
||||||
<tr>
|
|
||||||
<td align="right" class="smallheader"><b>conf.php</b></td>
|
|
||||||
<td class="light"><?php echo _("This is the main NMS module configuration file. It contains paths and options for all NMS module scripts.") ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if (!@is_readable('./config/html.php')): ?>
|
|
||||||
<tr>
|
|
||||||
<td align="right" class="smallheader"><b>html.php</b></td>
|
|
||||||
<td class="light"><?php echo _("This file controls the stylesheet that is used to set colors and fonts in addition to or overriding Horde defaults.") ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if (!@is_readable('./config/prefs.php')): ?>
|
|
||||||
<tr>
|
|
||||||
<td align="right" class="smallheader"><b>prefs.php</b></td>
|
|
||||||
<td class="light"><?php echo _("This file controls the default preferences for NMS module, and also controls which preferences users can alter.") ?></td>
|
|
||||||
</tr>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in New Issue