diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-01-26 14:30:08 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-01-26 14:30:08 +0100 |
commit | e042b7bced715a9d0d6c660df453b1b68f263316 (patch) | |
tree | 13f1bcd2f7cccf87718d92b5fc9a112d4c3ea455 /horde | |
parent | c778483fbd7829e2d41157ae6be2d7f1eef709f5 (diff) |
Drop ancient unused files.
Diffstat (limited to 'horde')
-rw-r--r-- | horde/imp4/motd.php | 55 | ||||
-rw-r--r-- | horde/imp4/servers.php | 173 | ||||
-rw-r--r-- | horde/turba2/1.x_to_1.2.sql | 18 | ||||
-rwxr-xr-x | horde/turba2/create_default_histories.php | 109 |
4 files changed, 0 insertions, 355 deletions
diff --git a/horde/imp4/motd.php b/horde/imp4/motd.php deleted file mode 100644 index 9d8e201..0000000 --- a/horde/imp4/motd.php +++ /dev/null @@ -1,55 +0,0 @@ -<!-- This file contains any "Message Of The Day" Type information --> -<!-- It will be included below the log-in form on the login page. --> - -<?php -/** - * $Horde: imp/config/motd.php.dist,v 1.8.6.3 2007/12/20 13:59:20 jan Exp $ - * - * Example code for switching between HTTP and HTTPS. - * Contributed by: James <james@james-web.net> - * To use, unncomment and modify these variables: - * - * $SERVER_SSL_PORT - Port on which your SSL server listens (Usually 443) - * $SERVER_HTTP_PORT - Port on which your HTTP server listens (Usually 80) - * $SERVER_SSL_URL - Full URL to your HTTPS server and Horde directory - * $SERVER_HTTP_URL - Full URL to your HTTP server and Horde directory - */ - -// $SERVER_SSL_PORT = 443; -// $SERVER_HTTP_PORT = 80; -// $SERVER_SSL_URL = 'https://www.example.com'; -// $SERVER_HTTP_URL = 'http://www.example.com'; -// -// $port = $_SERVER['SERVER_PORT']; -// -// echo '<br /><div align="center" class="light">'; -// -// switch ($port) { -// case $SERVER_SSL_PORT: -// echo _("You are currently using Secure HTTPS<br />"); -// break; -// -// case $SERVER_HTTP_PORT: -// echo _("You are currently using Standard HTTP<br />"); -// break; -// } -// -// echo '<a class="small" href="' . $SERVER_HTTP_URL . '" target="_parent">' . _("Click here for Standard HTTP") . '</a> - <a class="small" href="' . $SERVER_SSL_URL . '" target="_parent">' . _("Click here for Secure HTTPS") . '</a></div>'; - -?> - -<P align="center" class="light"> -Bookmark the following alternatives now, in case this site goes down one day:<BR> -<A href="https://mail.jones.dk/" target="_top" class="helpitem">dr. Jones</A>, -<A href="https://mail.homebase.dk/" target="_top" class="helpitem">Homebase</A>, -<A href="http://mail.107b.dk/" target="_top" class="helpitem">Lab</A>, -<A href="https://mail.bitbase.dk/" target="_top" class="helpitem">Bitbase</A>, -<A href="https://mail.kaospilot.no/" target="_top" class="helpitem">KaosPilotene Norge</A>, -<A href="http://mail.dgi-huset.dk/" target="_top" class="helpitem">DGI-huset</A>. -</P> -<P align="center" class="light"> -Always remember to select your home organisation at login!<BR> -</P> - -<br /> -<table width="100%"><tr><td align="center"><?php echo Horde::img('horde-power1.png', _("Powered by Horde"), '', $registry->getImageDir('horde')) ?></td></tr></table> diff --git a/horde/imp4/servers.php b/horde/imp4/servers.php deleted file mode 100644 index a530b8a..0000000 --- a/horde/imp4/servers.php +++ /dev/null @@ -1,173 +0,0 @@ -<?php -$servers['_prompt'] = array( - 'name' => 'Choose a mail server:' -); -$servers['jones'] = array( - 'name' => 'dr. Jones', -// 'server' => 'localhost', -// 'port' => 10143, -// 'hordeauth' => 'full', -// 'protocol' => 'imap/notls', - 'server' => 'mail.jones.dk', - 'port' => 993, - 'protocol' => 'imap/ssl', - 'folders' => '', - 'namespace' => '', - 'maildomain' => 'jones.dk', - 'smtphost' => 'localhost', - 'realm' => 'jones.dk', - 'quota' => array( - 'driver' => 'imap', - 'params' => array(), - ), - 'preferred' => array( - "mail.jones.dk", - "jones.mail.jones.dk", - "jones.mail.homebase.dk", - "jones.mail.107b.dk", - "jones.mail.bitbase.dk", - "jones.mail.kaospilot.no", - "jones.mail.dgi-huset.dk", - ) -); -$servers['homebase'] = array( - 'name' => 'Homebase', -// 'server' => 'localhost', -// 'port' => 10143, -// 'hordeauth' => 'full', -// 'protocol' => 'imap/notls', - 'server' => 'mail.homebase.dk', - 'port' => '993', - 'protocol' => 'imap/ssl', - 'folders' => '', - 'namespace' => '', - 'maildomain' => 'homebase.dk', - 'smtphost' => 'localhost', - 'realm' => 'homebase.dk', - 'quota' => array( - 'driver' => 'imap', - 'params' => array(), - ), - 'preferred' => array( - "mail.homebase.dk", - "homebase.mail.jones.dk", - "homebase.mail.homebase.dk", - "homebase.mail.107b.dk", - "homebase.mail.bitbase.dk", - "homebase.mail.kaospilot.no", - "homebase.mail.dgi-huset.dk", - ) -); -$servers['lab'] = array( - 'name' => 'Lab', -// 'server' => 'localhost', -// 'port' => 10143, -// 'hordeauth' => 'full', -// 'protocol' => 'imap/notls', - 'server' => '107b.dk', - 'port' => 993, - 'protocol' => 'imap/ssl', - 'folders' => '', - 'namespace' => '', - 'maildomain' => '107b.dk', - 'smtphost' => 'localhost', - 'realm' => '107b.dk', - 'quota' => array( - 'driver' => 'imap', - 'params' => array(), - ), - 'preferred' => array( - "mail.107b.dk", - "lab.mail.jones.dk", - "lab.mail.homebase.dk", - "lab.mail.107b.dk", - "lab.mail.bitbase.dk", - "lab.mail.kaospilot.no", - "lab.mail.dgi-huset.dk", - ) -); -$servers['bitbase'] = array( - 'name' => 'Bitbase', -// 'server' => 'localhost', -// 'port' => 10143, -// 'hordeauth' => 'full', -// 'protocol' => 'imap/notls', - 'server' => 'mail.bitbase.dk', - 'port' => 993, - 'protocol' => 'imap/ssl', - 'folders' => '', - 'namespace' => '', - 'maildomain' => 'bitbase.dk', - 'smtphost' => 'localhost', - 'realm' => 'bitbase.dk', - 'quota' => array( - 'driver' => 'imap', - 'params' => array(), - ), - 'preferred' => array( - "mail.bitbase.dk", - "bitbase.mail.jones.dk", - "bitbase.mail.homebase.dk", - "bitbase.mail.107b.dk", - "bitbase.mail.bitbase.dk", - "bitbase.mail.kaospilot.no", - "bitbase.mail.dgi-huset.dk", - ) -); -$servers['kpno'] = array( - 'name' => 'KaosPilotene, Norge', -// 'server' => 'localhost', -// 'port' => 10143, -// 'hordeauth' => 'full', -// 'protocol' => 'imap/notls', - 'server' => 'mail.kaospilot.no', - 'port' => 993, - 'protocol' => 'imap/ssl', - 'folders' => '', - 'namespace' => '', - 'maildomain' => 'users.kaospilot.no', - 'smtphost' => 'localhost', - 'realm' => 'kaospilot.no', - 'quota' => array( - 'driver' => 'imap', - 'params' => array(), - ), - 'preferred' => array( - "mail.kaospilot.no", - "kpno.mail.jones.dk", - "kpno.mail.homebase.dk", - "kpno.mail.107b.dk", - "kpno.mail.bitbase.dk", - "kpno.mail.kaospilot.no", - "kpno.mail.dgi-huset.dk", - ) -); -$servers['dgih'] = array( - 'name' => 'DGI-huset', -// 'server' => 'localhost', -// 'port' => 10143, -// 'hordeauth' => 'full', -// 'protocol' => 'imap/notls', - 'server' => 'mail.dgi-huset.dk', - 'port' => 993, - 'protocol' => 'imap/ssl', - 'folders' => '', - 'namespace' => '', - 'maildomain' => 'dgi-huset.dk', - 'smtphost' => 'localhost', - 'realm' => 'dgi-huset.dk', - 'quota' => array( - 'driver' => 'imap', - 'params' => array(), - ), - 'preferred' => array( - "mail.dgi-huset.dk", - "dgih.mail.jones.dk", - "dgih.mail.homebase.dk", - "dgih.mail.107b.dk", - "dgih.mail.bitbase.dk", - "dgih.mail.kaospilot.no", - "dgih.mail.dgi-huset.dk", - ) -); -?> diff --git a/horde/turba2/1.x_to_1.2.sql b/horde/turba2/1.x_to_1.2.sql deleted file mode 100644 index e10b4a3..0000000 --- a/horde/turba2/1.x_to_1.2.sql +++ /dev/null @@ -1,18 +0,0 @@ --- You can simply execute this file in your database. --- --- For MySQL run: --- --- $ mysql --user=root --password=<MySQL-root-password> <db name> < 1.x_to_1.2.sql --- --- Or, for PostgreSQL: --- --- $ psql <db name> -f 1.x_to_1.2.sql - - -ALTER TABLE turba_objects ADD COLUMN object_type VARCHAR(255) NOT NULL DEFAULT 'Object'; -ALTER TABLE turba_objects ADD COLUMN object_members BLOB; -ALTER TABLE turba_objects CHANGE object_homeAddress object_homeaddress VARCHAR(255); -ALTER TABLE turba_objects CHANGE object_workAddress object_workaddress VARCHAR(255); -ALTER TABLE turba_objects CHANGE object_homePhone object_homephone VARCHAR(25); -ALTER TABLE turba_objects CHANGE object_workPhone object_workphone VARCHAR(25); -ALTER TABLE turba_objects CHANGE object_cellPhone object_cellphone VARCHAR(25); diff --git a/horde/turba2/create_default_histories.php b/horde/turba2/create_default_histories.php deleted file mode 100755 index 5b26391..0000000 --- a/horde/turba2/create_default_histories.php +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/php -<?php -/** - * $Horde: turba/scripts/upgrades/create_default_histories.php,v 1.1.2.3 2006/04/18 16:27:10 jan Exp $ - * - * Copyright 1999-2006 Charles J. Hagenbuch <chuck@horde.org> - * - * See the enclosed file LICENSE for license information (ASL). If you - * did not receive this file, see http://www.horde.org/licenses/asl.php. - */ - -@define('AUTH_HANDLER', true); -@define('HORDE_BASE', dirname(__FILE__) . '/../../..'); -@define('TURBA_BASE', dirname(__FILE__) . '/../..'); -require_once HORDE_BASE . '/lib/core.php'; - -// Do CLI checks and environment setup first. -require_once 'Horde/CLI.php'; - -// Make sure no one runs this from the web. -if (!Horde_CLI::runningFromCLI()) { - exit("Must be run from the command line\n"); -} - -// Load the CLI environment - make sure there's no time limit, init -// some variables, etc. -Horde_CLI::init(); - -// Load Horde's base.php to ensure we have a pushed application on -// the registry stack, and to load the authentication configuration -// without having to load Turba's base.php before we are authenticated. -require_once HORDE_BASE . '/lib/base.php'; - -// Authenticate as administrator. We need to authenticate *before* we -// include Turba's base.php since Turba_Driver objects will be created -// during that script. The drivers will, of course be cached by using -// the singleton pattern, so the factory method would never be called after -// we are authenticated...which breaks the code dealing with shares in -// Turba_Driver. -if ($conf['auth']['admins']) { - $auth = Auth::singleton($conf['auth']['driver']); - $auth->setAuth($conf['auth']['admins'][0], array()); -} - -// Load Turba's base.php and get a fresh copy of cfgSources if we are -// authenticated. -require_once TURBA_BASE . '/lib/base.php'; -if ($auth->isAuthenticated()) { - require TURBA_BASE . '/config/sources.php'; -} - -$history = &Horde_History::singleton(); - -// Make sure we grab any shares. -$shares = $GLOBALS['turba_shares']->listAllShares(); - -// Run through every contact source. -$sources = Turba::permissionsFilter($cfgSources, 'source', PERMS_EDIT); - -// Add the shared sources -foreach ($shares as $share) { - $name = $share->get('sourceType') . ':' . $share->get('uid'); - if (!isset($sources[$name])) { - list($srcType, $user) = explode(':', $name, 2); - if ($user != Auth::getAuth()) { - $newSrc = $GLOBALS['cfgSources'][$srcType]; - $newSrc['title'] = $share->get('name'); - $sources[$name] = $newSrc; - $GLOBALS['cfgSources'][$name] = $newSrc; - } - } -} - -foreach ($sources as $key => $curSource) { - $driver = &Turba_Driver::singleton($key); - if (is_a($driver, 'PEAR_Error')) { - var_dump($driver); - exit; - } - - echo "Creating default histories for $key ...\n"; - - // List all contacts. - $results = $driver->search(array()); - if (is_a($results, 'PEAR_Error')) { - var_dump($results); - exit; - } - while ($object = $results->next()) { - $id = 'turba:' . ($object->getValue('__owner') ? $object->getValue('__owner') : Auth::getAuth()) . ':' . $object->getValue('__uid'); - /* Get the contact's history. */ - $log = $history->getHistory($id); - foreach ($log->getData() as $entry) - { - if ($entry['action'] == 'add') { - continue 2; - } - } - - // If there isn't an add entry, add one at the current time. - $result = $history->log($id, array('action' => 'add'), true); - if (is_a($result, 'PEAR_Error')) { - var_dump($result); - exit; - } - } -} - -echo "\n** Default histories successfully created ***\n"; |