Jonah
-Version 0.1
What is Jonah?
--------------
LICENSE - Jonah's license
README - This file
docs/CHANGES - A list of changes by release
-docs/CREDITS - Who developed this
+docs/CREDITS - Who developed this
docs/HELP - How you can help
docs/INSTALL - Installation instructions and notes
/**
* Copyright 2004-2009 The Horde Project (http://www.horde.org/)
*
- * $Horde: jonah/channels/aggregate.php,v 1.19 2009/11/24 04:15:37 chuck Exp $
- *
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://cvs.horde.org/co.php/jonah/LICENSE.
*
* @author Jan Schneider <jan@horde.org>
*/
-@define('JONAH_BASE', dirname(__FILE__) . '/..');
-require_once dirname(__FILE__) . '/../lib/Application.php';
+require_once dirname(__FILE__) . '/lib/Application.php';
$jonah = Horde_Registry::appInit('jonah');
function _getLinks($id, $subid, $name, $title)
* @author Marko Djukic <marko@oblo.com>
*/
-define('JONAH_BASE', dirname(__FILE__) . '/..');
-require_once dirname(__FILE__) . '/../lib/Application.php';
+require_once dirname(__FILE__) . '/lib/Application.php';
$jonah = Horde_Registry::appInit('jonah');
require_once 'Horde/Form.php';
require_once 'Horde/Form/Renderer.php';
* @author Marko Djukic <marko@oblo.com>
*/
-@define('JONAH_BASE', dirname(__FILE__) . '/..');
-require_once dirname(__FILE__) . '/../lib/Application.php';
+require_once dirname(__FILE__) . '/lib/Application.php';
$jonah = Horde_Registry::appInit('jonah');
require_once JONAH_BASE . '/lib/Forms/Feed.php';
require_once 'Horde/Form/Renderer.php';
* @author Marko Djukic <marko@oblo.com>
*/
-require_once dirname(__FILE__) . '/../lib/Application.php';
+require_once dirname(__FILE__) . '/lib/Application.php';
$jonah = Horde_Registry::appInit('jonah');
if (!Jonah::checkPermissions('jonah:news', Horde_Perms::EDIT)) {
<?xml version="1.0"?>
-<!-- $Horde: jonah/config/conf.xml,v 1.37 2008/06/29 23:17:13 chuck Exp $ -->
+<!-- $Id$ -->
<configuration>
<configsection name="news">
<?php
/**
- * $Horde: jonah/config/templates.php.dist,v 1.15 2007/10/10 03:49:00 mrubinsk Exp $
- *
* This file stores the templates used to generate different views of
* news channels.
+ *
+ * $Id$
*/
$templates['standard'] = array('name' => _("Standard"),
/**
* Script to handle requests for html delivery of stories.
*
- * $Horde: jonah/delivery/html.php,v 1.24 2009/06/10 05:24:47 slusarz Exp $
- *
* Copyright 2004-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you did not
* @author Jan Schneider <jan@horde.org>
*/
-$session_control = 'readonly';
-@define('AUTH_HANDLER', true);
-require_once dirname(__FILE__) . '/lib/Application.php';
-$jonah = Horde_Registry::appInit('jonah');
+require_once dirname(__FILE__) . '/../lib/Application.php';
+$jonah = Horde_Registry::appInit('jonah', array(
+ 'authentication' => 'none',
+ 'session_control' => 'readonly'
+));
require JONAH_BASE . '/config/templates.php';
// TODO - check if a user, have button to add channel to their
if (strpos($part, '.') !== false) {
$deliveryType = substr($part, strrpos($part, '.') + 1);
$part = substr($part, 0, strrpos($part, '.'));
-
}
switch($part) {
<?php
/**
- * $Horde: jonah/delivery/rss.php,v 1.41 2010/01/04 02:23:14 chuck Exp $
- *
* Copyright 2003-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you did
* @author Chuck Hagenbuch <chuck@horde.org>
*/
-$session_control = 'readonly';
-@define('AUTH_HANDLER', true);
-require_once dirname(__FILE__) . '/lib/Application.php';
-$jonah = Horde_Registry::appInit('jonah');
-require_once JONAH_BASE . '/lib/version.php';
+require_once dirname(__FILE__) . '/../lib/Application.php';
+$jonah = Horde_Registry::appInit('jonah', array(
+ 'authentication' => 'none',
+ 'session_control' => 'readonly'
+));
$news = Jonah_News::factory();
$template = new Horde_Template();
$template->set('charset', Horde_Nls::getCharset());
-$template->set('jonah', 'Jonah ' . JONAH_VERSION . ' (http://www.horde.org/jonah/)');
+$template->set('jonah', 'Jonah ' . $registry->getVersion() . ' (http://www.horde.org/jonah/)');
$template->set('xsl', $registry->get('themesuri') . '/feed-rss.xsl');
if (!empty($criteria['tag_id'])) {
$template->set('channel_name', sprintf(_("Stories tagged with %s in %s"), $tag_name, @htmlspecialchars($channel['channel_name'], ENT_COMPAT, Horde_Nls::getCharset())));
*
* @author Ben Klang <ben@alkaloid.net>
*/
-$session_control = 'readonly';
-@define('AUTH_HANDLER', true);
-require_once dirname(__FILE__) . '/lib/Application.php';
+
+require_once dirname(__FILE__) . '/../lib/Application.php';
+$jonah = Horde_Registry::appInit('jonah', array(
+ 'authentication' => 'none',
+ 'session_control' => 'readonly'
+));
$jonah = Horde_Registry::appInit('jonah');
+
require JONAH_BASE . '/config/templates.php';
// Grab, and hopefully match, the URL
+--------
+v1.0-git
+--------
+
+[bak/mjr/mms] Converted to H4.
+
+
----
v0.1
----
-==========================
-|| INSTALLING Jonah 0.1 ||
-==========================
+======================
+|| INSTALLING Jonah ||
+======================
This document contains instructions for installing the Jonah software
on your system.
QQQQBVbaoX2v2dWQQQQQQQQQQQQQQQQQQWQQQQQQQQQQQQWQQQQWQQQQQQWQQQQQWQQWQQQQWQQWQQQ
QP5###Z#XXoSZLJQQQQQQQQWQQWQQQWQQQQQWQQQWQQQWQQQQQQQQQWQWQQQQQWQQQQQQQWQQQQQQQQ
===============================================================================
-
-$Horde: jonah/docs/INSTALL,v 1.21 2007/06/19 09:56:35 jan Exp $
+++ /dev/null
-=============================
- Jonah Development TODO List
-=============================
-
-:Last update: $Date: 2007/12/14 18:31:17 $
-:Revision: $Revision: 1.7 $
-:Contact: dev@lists.horde.org
-
-$Horde: jonah/docs/TODO,v 1.7 2007/12/14 18:31:17 mrubinsk Exp $
/**
* Script to handle requests for html delivery of stories.
*
- * $Horde: jonah/feed.php,v 1.6 2009/06/10 05:24:46 slusarz Exp $
- *
* Copyright 2004-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you did not
* @author Jan Schneider <jan@horde.org>
*/
-$session_control = 'readonly';
-@define('AUTH_HANDLER', true);
require_once dirname(__FILE__) . '/lib/Application.php';
+$jonah = Horde_Registry::appInit('jonah', array(
+ 'authentication' => 'none',
+ 'session_control' => 'readonly'
+));
$jonah = Horde_Registry::appInit('jonah');
+
require JONAH_BASE . '/config/templates.php';
/* Get the id and format of the feed to display. */
<?php
/**
- * $Horde: jonah/index.php,v 1.39 2009/07/17 20:30:28 chuck Exp $
- *
* Copyright 1999-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* @author Chuck Hagenbuch <chuck@horde.org>
*/
-@define('JONAH_BASE', dirname(__FILE__));
-$jonah_configured = (is_readable(JONAH_BASE . '/config/conf.php') &&
- is_readable(JONAH_BASE . '/config/templates.php'));
-
-if (!$jonah_configured) {
- require JONAH_BASE . '/../lib/Test.php';
- Horde_Test::configFilesMissing('Jonah', JONAH_BASE,
- array('conf.php'),
- array('templates.php' => 'This file defines the HTML (or other) templates that are used to generate different views of the news channels that Jonah provides.'));
-}
-
-require JONAH_BASE . '/channels/index.php';
+require dirname(__FILE__) . '/channels/index.php';
/**
* Jonah external API interface.
*
- * $Horde: jonah/lib/Api.php,v 1.1 2009/11/11 01:32:03 mrubinsk Exp $
- *
* This file defines Jonah's external API interface. Other
* applications can interact with Jonah through this API.
*
return $results;
}
-}
\ No newline at end of file
+}
*
* @package Jonah
*/
+
if (!defined('JONAH_BASE')) {
define('JONAH_BASE', dirname(__FILE__). '/..');
}
return Jonah::getMenu();
}
-}
\ No newline at end of file
+}
/**
* Display Tag Cloud
*
- * $Horde: jonah/lib/Block/cloud.php,v 1.11 2009/12/10 17:42:36 jan Exp $
- *
* Copyright 2007-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* This class extends Horde_Block:: to provide a list of deliverable internal
* channels.
*
- * $Horde: jonah/lib/Block/delivery.php,v 1.22 2009/06/10 05:24:47 slusarz Exp $
- *
* Copyright 2004-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* This class extends Horde_Block:: to provide the api to embed news
* in other Horde applications.
*
- * $Horde: jonah/lib/Block/latest.php,v 1.24 2009/07/09 08:18:26 slusarz Exp $
- *
* Copyright 2002-2007 Roel Gloudemans <roel@gloudemans.info>
*
* See the enclosed file LICENSE for license information (BSD). If you
* This class extends Horde_Block:: to provide an api to embed news
* in other Horde applications.
*
- * $Horde: jonah/lib/Block/news.php,v 1.49 2009/07/09 08:18:26 slusarz Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
function _params()
{
- require_once dirname(__FILE__) . '/../../lib/Application.php';
+ require_once dirname(__FILE__) . '/../Application.php';
require JONAH_BASE . '/config/templates.php';
$params['source'] = array('name' => _("Feed"),
return _("No feed specified.");
}
- require_once 'Horde/Template.php';
$news = Jonah_News::factory();
$params = $this->_params();
* This class extends Horde_Block:: to provide an api to embed news
* in other Horde applications.
*
- * $Horde: jonah/lib/Block/news_popular.php,v 1.9 2009/07/09 08:18:26 slusarz Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
return _("No feed specified.");
}
- require_once 'Horde/Template.php';
$news = Jonah_News::factory();
$params = $this->_params();
* This class extends Horde_Block:: to provide the api to embed news
* in other Horde applications.
*
- * $Horde: jonah/lib/Block/story.php,v 1.11 2009/07/09 08:18:26 slusarz Exp $
- *
* Copyright 2002-2007 Roel Gloudemans <roel@gloudemans.info>
*
* See the enclosed file LICENSE for license information (BSD). If you
$block_type = 'tree';
/**
- * $Horde: jonah/lib/Block/tree_menu.php,v 1.7 2009/12/03 15:28:22 chuck Exp $
- *
* @package Horde_Block
*/
class Horde_Block_jonah_tree_menu extends Horde_Block {
<?php
/**
- * @package Jonah
- */
-
-/** Horde_Array */
-require_once 'Horde/Array.php';
-
-/**
* Jonah_Driver:: is responsible for storing, searching, sorting and filtering
* locally generated and managed articles. Aggregation is left to Hippo.
*
- * $Horde: jonah/lib/Driver.php,v 1.7 2009/07/09 08:18:26 slusarz Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you did not
* The table structure can be created by the scripts/db/jonah_news.sql
* script. The needed tables are jonah_channels and jonah_stories.
*
- * $Horde: jonah/lib/Driver/sql.php,v 1.10 2010/02/01 10:32:04 jan Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you did not
*/
function listTagInfo($tags = array(), $channel_id = null)
{
- require_once 'Horde/Cache.php';
-
if (is_a(($result = $this->_connect()), 'PEAR_Error')) {
return $result;
}
}
/* Connect to the SQL server using the supplied parameters. */
- require_once 'DB.php';
$this->_db = &DB::connect($this->_params,
array('persistent' => !empty($this->_params['persistent'])));
if (is_a($this->_db, 'PEAR_Error')) {
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
- * $Horde: jonah/lib/FeedParser.php,v 1.23 2009/06/10 05:24:47 slusarz Exp $
- *
* @author Chuck Hagenbuch <chuck@horde.org>
* @package Jonah
*/
* This class extends Horde_Form to provide the form to add/edit
* feeds.
*
- * $Horde: jonah/lib/Forms/Feed.php,v 1.16 2009/06/10 05:24:48 slusarz Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* This class extends Horde_Form to provide the form to add/edit
* stories.
*
- * $Horde: jonah/lib/Forms/Story.php,v 1.14 2009/02/16 16:47:03 chuck Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
/**
* Jonah Base Class.
*
- * $Horde: jonah/lib/Jonah.php,v 1.141 2009/11/24 04:15:37 chuck Exp $
- *
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Eric Rechlin <eric@hpcalc.org>
* @package Jonah
*/
class Jonah {
-
/**
* Internal Jonah channel.
*/
$options = array_merge($options, $conf['http']['proxy']);
}
- require_once 'HTTP/Request.php';
$http = new HTTP_Request($url, $options);
@$http->sendRequest();
if ($http->getResponseCode() != 200) {
<?php
/**
- * @package Jonah
- */
-
-/** Horde_Array */
-require_once 'Horde/Array.php';
-
-/**
* Jonah_News:: is the main class for handling news headlines for Jonah both
* from internal Jonah generated news sources and external channels.
*
- * $Horde: jonah/lib/News.php,v 1.164 2010/02/01 10:32:05 jan Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you did not
*/
function fetchExternalStories($channel_id, $url, $interval)
{
- require_once 'Horde/Cache.php';
- require_once 'Horde/Serialize.php';
-
$cache = $GLOBALS['injector']->getInstance('Horde_Cache');
$timestamp = time();
if (is_a($cache, 'Horde_Cache') && ($stories = $cache->get($url, $interval))) {
* The table structure can be created by the scripts/db/jonah_news.sql
* script. The needed tables are jonah_channels and jonah_stories.
*
- * $Horde: jonah/lib/News/sql.php,v 1.119 2010/02/01 10:32:04 jan Exp $
- *
* Copyright 2002-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you did not
*/
function listTagInfo($tags = array(), $channel_id = null)
{
- require_once 'Horde/Cache.php';
-
if (is_a(($result = $this->_connect()), 'PEAR_Error')) {
return $result;
}
}
/* Connect to the SQL server using the supplied parameters. */
- require_once 'DB.php';
$this->_db = &DB::connect($this->_params,
array('persistent' => !empty($this->_params['persistent'])));
if (is_a($this->_db, 'PEAR_Error')) {
--- /dev/null
+<?php
+/**
+ * This class provides the Jonah configuration for the test script.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @author Michael Slusarz <slusarz@horde.org>
+ * @package Jonah
+ */
+class Jonah_Test extends Horde_Test
+{
+ /**
+ * The module list
+ *
+ * @var array
+ */
+ protected $_moduleList = array(
+ 'gettext' => array(
+ 'descrip' => 'Gettext Support',
+ 'error' => 'Jonah will not run without gettext support. Compile php <code>--with-gettext</code> before continuing.'
+ ),
+ 'xml' => array(
+ 'descrip' => 'XML Support',
+ 'error' => 'Without XML support, Jonah WILL NOT WORK. You must fix this before going any further.'
+ )
+ );
+
+ /**
+ * PHP settings list.
+ *
+ * @var array
+ */
+ protected $_settingsList = array();
+
+ /**
+ * PEAR modules list.
+ *
+ * @var array
+ */
+ protected $_pearList = array();
+
+ /**
+ * Required configuration files.
+ *
+ * @var array
+ */
+ protected $_fileList = array(
+ 'config/conf.php' => null
+ );
+
+ /**
+ * Inter-Horde application dependencies.
+ *
+ * @var array
+ */
+ protected $_appList = array();
+
+ /**
+ * Any application specific tests that need to be done.
+ *
+ * @return string HTML output.
+ */
+ public function appTests()
+ {
+ }
+
+}
+++ /dev/null
-<?php define('JONAH_VERSION', 'H4 (1.0-cvs)') ?>
#!/usr/bin/php -q
<?php
/**
- * $Horde: jonah/scripts/feed_tester.php,v 1.7 2009/07/09 06:08:48 slusarz Exp $
- *
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://cvs.horde.org/co.php/jonah/LICENSE.
*/
-// Find the base file path of Horde.
-@define('HORDE_BASE', dirname(__FILE__) . '/../..');
-
-// Find the base file path of Jonah.
-@define('JONAH_BASE', dirname(__FILE__) . '/..');
-
-// Do CLI checks and environment setup first.
-require_once HORDE_BASE . '/lib/core.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();
-$cli = &Horde_Cli::singleton();
-
-// Now load the Registry and setup conf, etc.
-$registry = Horde_Registry::singleton();
-$registry->pushApp('jonah', false);
-
-// Include needed libraries.
-require_once JONAH_BASE . '/lib/Jonah.php';
-require_once JONAH_BASE . '/lib/FeedParser.php';
-
-/* Make sure there's no compression. */
-@ob_end_clean();
+require_once dirname(__FILE__) . '/../lib/Application.php';
+Horde_Registry::appInit('jonah', array('authentication' => 'none', 'cli' => true));
if (empty($argv[1]) || !file_exists($argv[1])) {
exit("Need a valid filename.\n");
--- $Horde: jonah/scripts/sql/jonah.mssql.sql,v 1.9 2009/10/20 21:28:29 jan Exp $
-
CREATE TABLE jonah_channels (
channel_id INT NOT NULL,
channel_slug VARCHAR(64) NOT NULL,
--- $Horde: jonah/scripts/sql/jonah.sql,v 1.17 2009/10/20 21:28:30 jan Exp $
-
CREATE TABLE jonah_channels (
channel_id INT NOT NULL,
channel_slug VARCHAR(64) NOT NULL,
---
--- $Horde: jonah/scripts/upgrades/2008-08-22_add_channel_slugs.sql,v 1.1 2008/08/23 02:02:37 bklang Exp $
---
ALTER TABLE jonah_channels ADD COLUMN `channel_slug` VARCHAR(64);
UPDATE jonah_channels SET channel_slug=channel_id;
ALTER TABLE jonah_channels CHANGE channel_slug channel_slug VARCHAR(64) NOT NULL;
---
--- $Horde: jonah/scripts/upgrades/2008-08-22_add_story_authors.sql,v 1.1 2008/08/23 02:48:34 bklang Exp $
---
ALTER TABLE jonah_stories ADD COLUMN story_author VARCHAR(255);
UPDATE jonah_stories SET story_author='Anonymous';
ALTER TABLE jonah_stories CHANGE COLUMN story_author story_author VARCHAR(255) NOT NULL;
---
--- $Horde: jonah/scripts/upgrades/2008-12-17_add_full_feed.sql,v 1.2 2009/10/20 21:28:30 jan Exp $
---
ALTER TABLE jonah_channels ADD COLUMN `channel_full_feed` SMALLINT;
UPDATE jonah_channels SET channel_full_feed = 0;
ALTER TABLE jonah_channels CHANGE channel_full_feed channel_full_feed SMALLINT DEFAULT 0 NOT NULL;
<?php
/**
- * $Horde: jonah/stories/delete.php,v 1.40 2009/11/24 04:15:38 chuck Exp $
- *
* Copyright 2003-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
/**
* Copyright 2003-2009 The Horde Project (http://www.horde.org/)
*
- * $Horde: jonah/stories/index.php,v 1.70 2009/11/24 04:15:38 chuck Exp $
- *
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://cvs.horde.org/co.php/jonah/LICENSE.
*
<?php
/**
- * $Horde: jonah/stories/pdf.php,v 1.8 2009/06/10 17:20:11 slusarz Exp $
- *
* Copyright 2003-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
exit;
}
-$session_control = 'readonly';
-@define('AUTH_HANDLER', true);
require_once dirname(__FILE__) . '/../lib/Application.php';
-$jonah = Horde_Registry::appInit('jonah');
-require_once 'File/PDF.php';
+$jonah = Horde_Registry::appInit('jonah', array(
+ 'authentication' => 'none',
+ 'session_control' => 'readonly'
+));
$news = Jonah_News::factory();
/**
* Display list of articles that match a tag query from an internal
* channel.
- *
- * $Horde: jonah/stories/results.php,v 1.5 2009/11/24 04:15:38 chuck Exp $
*/
+
require_once dirname(__FILE__) . '/../lib/Application.php';
$jonah = Horde_Registry::appInit('jonah');
global $conf;
/* Create the MIME message. */
- require_once JONAH_BASE . '/lib/version.php';
$mail = new Horde_Mime_Mail(array('subject' => $subject,
'to' => $recipients,
'from' => $from,
'charset' => Horde_Nls::getCharset()));
- $mail->addHeader('User-Agent', 'Jonah ' . JONAH_VERSION);
+ $mail->addHeader('User-Agent', 'Jonah ' . $GLOBALS['registry']->getVersion());
/* If a note has been provided, add it to the message as a text part. */
if (strlen($note) > 0) {
return $mail->send(Horde::getMailerConfig());
}
-$session_control = 'readonly';
-@define('AUTH_HANDLER', true);
require_once dirname(__FILE__) . '/../lib/Application.php';
-$jonah = Horde_Registry::appInit('jonah');
+$jonah = Horde_Registry::appInit('jonah', array(
+ 'authentication' => 'none',
+ 'session_control' => 'readonly'
+));
+
require_once 'Horde/Form.php';
require_once 'Horde/Form/Renderer.php';
<?php
/**
- * $Horde: jonah/stories/view.php,v 1.57 2009/12/10 17:42:36 jan Exp $
- *
* Copyright 2003-2009 The Horde Project (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* @author Chuck Hagenbuch <chuck@horde.org>
*/
-@define('AUTH_HANDLER', true);
-@define('JONAH_BASE', dirname(__FILE__) . '/..');
require_once dirname(__FILE__) . '/../lib/Application.php';
-$jonah = Horde_Registry::appInit('jonah');
+$jonah = Horde_Registry::appInit('jonah', array(
+ 'authentication' => 'none'
+));
$news = Jonah_News::factory();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
-<!-- Jonah: Copyright 1999-2009 The Horde Project. Jonah is under a Horde license. -->
-<!-- Horde Project: http://www.horde.org/ | Jonah: http://www.horde.org/jonah/ -->
-<!-- Horde Licenses: http://www.horde.org/licenses/ -->
<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') . '">' : '<html>' ?>
<head>
<?php
+++ /dev/null
-<?php
-/**
- * $Horde: jonah/test.php,v 1.30 2009/11/11 01:30:59 mrubinsk Exp $
- *
- * Copyright 1999-2009 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file COPYING for license information (GPL). If you
- * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
- */
-
-/* Include Horde's core.php file. */
-include_once '../lib/core.php';
-
-/* We should have loaded the String class, from the Horde_Util
- * package, in core.php. If Horde_String:: isn't defined, then we're not
- * finding some critical libraries. */
-if (!class_exists('Horde_String')) {
- echo '<br /><h2 style="color:red">The Horde_Util package was not found. If PHP\'s error_reporting setting is high enough and display_errors is on, there should be error messages printed above that may help you in debugging the problem. If you are simply missing these files, then you need to get the <a href="http://cvs.horde.org/cvs.php/framework">framework</a> module from <a href="http://www.horde.org/source/">Horde CVS</a>, and install the packages in it with the install-packages.php script.</h2>';
- exit;
-}
-
-/* Initialize the Horde_Test:: class. */
-if (!is_readable('../lib/Test.php')) {
- echo 'ERROR: You must install Horde before running this script.';
- exit;
-}
-require_once '../lib/Test.php';
-$horde_test = new Horde_Test();
-
-/* Jonah definitions. */
-$module = 'Jonah';
-require_once dirname(__FILE__) . '/lib/Application.php';
-$app = new Jonah_Application();
-$module_version = $app->version;
-
-
-/* PHP module capabilities. */
-$module_list = array(
- 'gettext' => array(
- 'descrip' => 'Gettext Support',
- 'error' => 'Jonah will not run without gettext support. Compile php <code>--with-gettext</code> before continuing.'
- ),
- 'xml' => array(
- 'descrip' => 'XML Support',
- 'error' => 'Without XML support, Jonah WILL NOT WORK. You must fix this before going any further.'
- )
-);
-
-/* Jonah configuration files. */
-$file_list = array(
- 'config/conf.php' => 'The file <code>./config/conf.php</code> appears to be missing. You probably just forgot to copy <code>./config/conf.php.dist</code> over. While you do that, take a look at the settings and make sure they are appropriate for your site.'
-);
-
-require TEST_TEMPLATES . 'header.inc';
-require TEST_TEMPLATES . 'version.inc';
-
-/* Display PHP Version information. */
-$php_info = $horde_test->getPhpVersionInformation();
-require TEST_TEMPLATES . 'php_version.inc';
-
-?>
-
-<h1>PHP Modules</h1>
-<ul>
- <?php echo $horde_test->phpModuleCheck($module_list) ?>
-</ul>
-
-<h1>Jonah Configuration Files</h1>
-<ul>
- <?php echo $horde_test->requiredFileCheck($file_list) ?>
-</ul>
-
-<?php
-require TEST_TEMPLATES . 'footer.inc';
-/**
- * $Horde: jonah/themes/screen.css,v 1.9 2008/05/26 21:33:11 chuck Exp $
- */
-
.storySubtitle {
font-style: italic;
font-size: 90%;