Revisions for jonah/lib/Jonah.php

Location: [ Horde ] / jonah / lib / Jonah.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.135 (+7 -7 lines) 08/21/2008 05:50 PM Jan Schneider jan

Fix return value, again. But add some salt of magic this time.

Tags: JONAH_2008_08_22

1.134 (+6 -2 lines) 08/11/2008 01:42 PM Ben Klang bklang

* Make sure the perms tree is properly constructed so we can populate all branches
* Make sure that Jonah::checkPermission returns true if the user is an administrator and there are no channel IDs specified

1.133 (+2 -2 lines) 08/06/2008 06:07 AM Jan Schneider jan

Fix return type.

1.132 (+11 -26 lines) 07/29/2008 01:58 AM Chuck Hagenbuch chuck

put New Story in the menu bar like in other horde apps; get rid of the unused
tabset. Also give the "N" accesskey to New Story, since that should be much more
common than creating a new feed.

1.131 (+8 -3 lines) 07/29/2008 01:52 AM Chuck Hagenbuch chuck

Consistent perms checking. Don't show links that the user isn't authorized
for. Let users with delete permissions to a channel delete stories from that
channel.

1.130 (+1 -3 lines) 06/29/2008 07:17 PM Chuck Hagenbuch chuck

remove jonah-specific proxy config; just rely on the global Horde one

1.129 (+2 -2 lines) 08/30/2007 09:08 AM Jan Schneider jan

It makes more sense IMO to keep the news ordered by publish date than update date.

1.128 (+1 -2 lines) 08/30/2007 01:09 AM Chuck Hagenbuch chuck

remove vague todo

1.127 (+8 -1 lines) 03/12/2007 01:02 AM Michael Rubinsky mrubinsk

First stab at supporting ordering story lists by read count (comment count still to come).  Obviously for internal channels only.
Also new block that displays stories ordered by read count.

Thoughts / Comments / 'What the heck were you thinking' welcome.

1.126 (+3 -3 lines) 11/25/2006 10:56 PM Chuck Hagenbuch chuck

Just the !empty check should be sufficient here.

1.125 (+5 -2 lines) 11/25/2006 08:59 PM Chuck Hagenbuch chuck

Use the Horde-level proxy setting if it's there.

1.124 (+5 -3 lines) 09/11/2006 01:12 AM Chuck Hagenbuch chuck

[cjh] Detect charset information from XML prologue as well as the
Content-Type header (s_gatterbauer@idlm.net, Bug #4340).

1.123 (+8 -2 lines) 08/17/2006 08:22 AM Jan Schneider jan

Nice, the php xml parser it not able to detect the charset from the 'encoding' attribute. Charset conversion in Jonah only used to work because the UI accidentally had the same charset like the displayed feeds for most users.

1.122 (+2 -7 lines) 01/25/2006 11:35 AM Chuck Hagenbuch chuck

update menu

1.121 (+6 -7 lines) 01/07/2006 02:42 PM Chuck Hagenbuch chuck

Consistent terminology and some tweaks.

1.120 (+18 -41 lines) 01/06/2006 10:46 PM Chuck Hagenbuch chuck

[cjh] Use Horde_Block_Layout_View for the My News page.

1.119 (+4 -3 lines) 12/25/2005 02:37 PM Chuck Hagenbuch chuck

[cjh] Add jonah:admin permission (tevans@tachometry.com, Bug #2571).
[cjh] Add internal template type for internal stories (tevans@tachometry.com,
Bug #2571).

1.118 (+3 -2 lines) 09/12/2005 01:01 PM Matt Selsky selsky

array_shift() needs a variable.

1.117 (+4 -8 lines) 07/24/2005 08:59 PM Chuck Hagenbuch chuck

Lots of little updates. Re-use html delivery page instead of
JONAH_SHOW_CHANNEL code. Have an alternate RSS link on the HTML
delivery page. Hopefully more intuitive names for kinds of
channels. HTML cleanups.

1.116 (+2 -4 lines) 07/02/2005 10:57 PM Matt Selsky selsky

"@access public" is redundant.
Wrapping.
Use proper types in phpdoc.
Specify "@access private" correctly in phpdoc.

1.115 (+6 -5 lines) 06/21/2005 05:36 PM Chuck Hagenbuch chuck

- html cleanup
- don't instantiate $template variable in base.php
- menu item cleanups and accesskeys
- lots of htmlspecialchars fixes

1.114 (+35 -10 lines) 05/31/2005 11:29 PM Matt Selsky selsky

Clean up phpdoc for constants.

1.113 (+2 -2 lines) 03/26/2005 01:22 PM Chuck Hagenbuch chuck

yet another menu fix

1.112 (+3 -3 lines) 03/19/2005 11:58 PM Chuck Hagenbuch chuck

this should nail down the menu selection logic

1.111 (+3 -5 lines) 03/19/2005 10:30 PM Chuck Hagenbuch chuck

Small HTML cleanup, use menuSpacer, and show My Content as selected on
index.php.

1.110 (+21 -9 lines) 11/17/2004 10:01 AM Chuck Hagenbuch chuck

New menu.

Bug: 832

1.109 (+5 -5 lines) 10/19/2004 04:11 AM mdjukic

first lot being moved from gif to png

1.108 (+5 -5 lines) 10/18/2004 06:47 AM mdjukic

change getParam('graphics') to getImageDir()

1.107 (+7 -2 lines) 08/19/2004 01:47 PM Jan Schneider jan

Composite channels.

1.106 (+6 -4 lines) 07/11/2004 01:06 PM Jan Schneider jan

Don't show My Content in menu for guest, redirect guests to delivery page.

1.105 (+7 -2 lines) 05/14/2004 11:22 AM Jan Schneider jan

Add support for aggregated channels, like "Planet [insert your favourite project here]".

1.104 (+6 -7 lines) 05/13/2004 03:06 PM Jan Schneider jan

Simplify a bit.

1.103 (+7 -2 lines) 04/30/2004 12:30 PM Jan Schneider jan

Add proxy support.

1.102 (+4 -4 lines) 04/07/2004 10:43 AM Chuck Hagenbuch chuck

No more HORDE_LIBS.

1.101 (+2 -19 lines) 03/06/2004 09:04 AM mdjukic

not needed now, prefs ui can now deal with menu arrays

1.100 (+19 -2 lines) 03/05/2004 03:26 PM mdjukic

seems like prefs still uses this, put patch it for now, but prefs should be able to handle an array menu being returned to it too?

1.99 (+48 -2 lines) 03/04/2004 12:27 PM mdjukic

add functions to fetch body types and to figure out a default body type

1.98 (+2 -14 lines) 03/02/2004 08:00 PM mdjukic

menu.inc template no longer needed

1.97 (+3 -3 lines) 03/02/2004 12:08 PM mdjukic

shorten menu item

1.96 (+3 -3 lines) 03/02/2004 11:17 AM mdjukic

change admin path to point to channels

1.95 (+22 -2 lines) 02/29/2004 09:42 PM mdjukic

add menu

1.94 (+3 -3 lines) 02/11/2004 05:17 PM Chuck Hagenbuch chuck

move Menu.php to a framework package.

1.93 (+3 -3 lines) 02/04/2004 09:33 PM mdjukic

do some checking of the previous level in perms

1.92 (+28 -12 lines) 02/04/2004 09:01 PM mdjukic

clean up a bit, add a function to map between channel type and perm name

1.91 (+41 -2 lines) 02/04/2004 01:02 PM mdjukic

add a function to check permissions

1.90 (+5 -124 lines) 01/21/2004 12:10 PM Chuck Hagenbuch chuck

Remove stocks code from Jonah - it's moving to Juno.

1.89 (+2 -160 lines) 01/20/2004 10:21 PM Chuck Hagenbuch chuck

Remove the last of the weather code from Jonah.

1.88 (+3 -3 lines) 01/18/2004 06:58 PM Jan Schneider jan

Show notifications only from the requested message stack.

1.87 (+4 -4 lines) 12/12/2003 05:07 PM Michael M Slusarz slusarz

Move Horde_Serialize to framework.
Remove gettext dependancy.

1.86 (+3 -3 lines) 11/21/2003 05:33 PM Chuck Hagenbuch chuck

center the chart graphic

1.85 (+8 -10 lines) 11/04/2003 01:25 PM Chuck Hagenbuch chuck

cleaner stocks list

1.84 (+24 -2 lines) 10/14/2003 11:21 AM Chuck Hagenbuch chuck

Show total portfolio value and delta (Guil Barros <listmail@metathusalan.com>)

1.83 (+4 -13 lines) 10/05/2003 11:48 AM mdjukic

unneeded constants, comments

1.82 (+6 -6 lines) 09/16/2003 07:05 PM Jan Schneider jan

Use the new Util:: class.

1.81 (+3 -3 lines) 09/01/2003 06:22 PM Jan Schneider jan

Simplify driver instantiation even more.

1.80 (+3 -4 lines) 08/23/2003 03:21 PM Jan Schneider jan

Use new getDriverConfig() syntax and make sure that Horde's settings are
really used.

1.79 (+3 -3 lines) 08/17/2003 11:30 PM Eric Rostetter ericr

Allow any number of days in the forecast (e.g. 7-day forecast instead
of 5-day forecast)

1.78 (+3 -3 lines) 07/29/2003 10:46 PM Chuck Hagenbuch chuck

Fix section balancing in conf.xml

1.77 (+3 -3 lines) 07/29/2003 11:49 AM Eric Rostetter ericr

* Make the weather site a driver configuration option
* Add a second driver for ejse weather service (not very good yet).
* In order to use the ejse driver, you'll need a new weather.php or new
sql database, not yet included...

1.76 (+3 -3 lines) 06/12/2003 10:02 AM Chuck Hagenbuch chuck

fix column order.

1.75 (+3 -3 lines) 06/11/2003 11:30 PM Chuck Hagenbuch chuck

Play around with some UI tweaks. Forms automatically get alternating
row colors now.

1.74 (+14 -12 lines) 06/09/2003 10:56 PM Chuck Hagenbuch chuck

Add stock charts. There are a lot of options that the UI doesn't make use of yet,
and the backend could be smarter about putting them together. But it's there,
and it works.

1.73 (+3 -3 lines) 06/09/2003 09:49 AM Chuck Hagenbuch chuck

fix typo

Submitted by: Leena Heino <Leena.Heino@uta.fi>

1.72 (+123 -125 lines) 06/07/2003 02:00 PM Chuck Hagenbuch chuck

Tweaks to the weather HTML, cleaner HTML (table nesting) in many
cases, match up tags, make the content display a bit nicer overall.

1.71 (+32 -21 lines) 06/07/2003 12:14 AM Chuck Hagenbuch chuck

Optionally track a number of shares for a stock, and present the current value.

1.70 (+13 -3 lines) 06/06/2003 11:29 PM Chuck Hagenbuch chuck

Indexes are back.

1.69 (+4 -4 lines) 06/06/2003 05:49 PM Chuck Hagenbuch chuck

- Nuke arrows on second thought
- use spans instead of font color=

1.68 (+84 -155 lines) 06/06/2003 12:06 PM Chuck Hagenbuch chuck

- Update for new weather code
- remove functions that aren't needed anymore.

1.67 (+3 -3 lines) 06/05/2003 03:28 PM Chuck Hagenbuch chuck

Use the Yahoo driver by default. The Nasdaq driver works just fine, but
HTTP_Request doesn't seem to be handle the &symbol=a&symbol=b format
we need to fetch multiple quotes at once. Haven't had a chance to try and
figure out why, though.

1.66 (+4 -4 lines) 06/05/2003 03:02 PM Chuck Hagenbuch chuck

Price change direction graphics

1.65 (+3 -2 lines) 06/05/2003 02:30 PM Chuck Hagenbuch chuck

restore alternating row colors

1.64 (+13 -77 lines) 06/05/2003 02:04 PM Chuck Hagenbuch chuck

- remove code that isn't needed now
- update for new Stocks api

1.63 (+4 -25 lines) 06/04/2003 05:38 PM Chuck Hagenbuch chuck

- Inherit from new Jonah_Stocks:: base class
- Use Jonah_Stocks::singleton() for instantiation
- deprecate now unused getCachedFP() function.

1.62 (+9 -7 lines) 06/04/2003 04:15 PM Chuck Hagenbuch chuck

phpdoc

1.61 (+4 -3 lines) 06/04/2003 04:07 PM Chuck Hagenbuch chuck

Better (working) regexp (Joe Wilson <joe.wilson@mindcandy.org>).

1.60 (+41 -34 lines) 06/04/2003 04:04 PM Chuck Hagenbuch chuck

- array_key_exists() -> isset()
- gettext
- much nicer/cleaner stock display, both list and detail view.

1.59 (+3 -3 lines) 06/04/2003 02:15 AM Jan Schneider jan

Silence socket errors.

1.58 (+4 -2 lines) 06/03/2003 10:45 PM Chuck Hagenbuch chuck

Strip out potential bad data in XML.

Submitted by: Sander Dalemans <sander@gamerszone.nl>

1.57 (+2 -8 lines) 06/01/2003 02:08 PM Chuck Hagenbuch chuck

Remove index stocks until someone can explain how to get XML for them
again.

1.56 (+4 -4 lines) 06/01/2003 11:35 AM Chuck Hagenbuch chuck

better error reporting

1.55 (+5 -4 lines) 05/31/2003 09:38 PM Chuck Hagenbuch chuck

Horde::addParameter() syntax

1.54 (+14 -2 lines) 05/23/2003 09:21 AM Chuck Hagenbuch chuck

Another batch of menu.php -> ::menu() changes.

1.53 (+8 -8 lines) 05/20/2003 01:50 PM Chuck Hagenbuch chuck

use single quotes

1.52 (+13 -23 lines) 05/20/2003 12:13 PM Chuck Hagenbuch chuck

Use HTTP_Request in Jonah::_readUrl() so that we can timeout more
easily. Consolidate other url-fetching code so we always use
Jonah::_readUrl().

1.51 (+3 -3 lines) 05/20/2003 12:05 PM Chuck Hagenbuch chuck

- style
- fix PHPdoc
- remove unused class var.

1.50 (+3 -3 lines) 05/09/2003 09:10 AM mdjukic

use the smallheader

1.49 (+3 -2 lines) 05/02/2003 01:06 PM Chuck Hagenbuch chuck

Better error checking, consistent HTML.

1.48 (+5 -2 lines) 04/28/2003 03:35 PM Jan Schneider jan

Exit fatally if Cache backend can't be created (good idea?)

1.47 (+2 -69 lines) 04/28/2003 10:16 AM mdjukic

cleaning up

1.46 (+58 -81 lines) 04/28/2003 03:20 AM mdjukic

Remove news-specific functions from here and move the to the Jonah_News class.

1.45 (+19 -37 lines) 04/23/2003 08:32 PM mdjukic

the main changes in this lib:
- start moving jonah libs to separate classes/objects for news, weather and stocks, to allow for more flexibility and cleaner scripts.
- subscribed channels now use a generic prefEncode()/prefDecode() to be saved into the preferences backend using serialization/utf7, cleans up a bit of code and allows for more parameters to eventually be passed when subscribing to channels.
- NOTE: if you want to save your previous channel subscriptions there's a script: /jonah/scripts/prefchannels_b64_serialize.php which attempts to convert from the old base64 to the new serialized format.
- functions channelPrefEncode() and channelPrefDecode() have been removed.

1.44 (+7 -6 lines) 04/01/2003 10:36 PM Chuck Hagenbuch chuck

Much neater forecast display.

Submitted by: Jeff Graves <jeff@image-src.com>

1.43 (+8 -7 lines) 03/07/2003 05:57 PM Chuck Hagenbuch chuck

Better error checking in a number of places for channels which no longer exist.

1.42 (+19 -2 lines) 03/03/2003 02:10 PM Chuck Hagenbuch chuck

Nuke a lot of constants.php files.

Specific Reason: constants should be defined in the application's base
class file UNLESS constants are needed in one of the configuration
files (the case for all those remaining). Only then should you break
things out to a seperate file (and even then, we may want to just
include the app's library file).

General Reason: Including files is *very* expensive. Short files are
pointless if we can avoid them; it's much cheaper to have slightly
longer files than multiple short ones (especially when we're going to
include all the short files anyways).

1.41 (+17 -10 lines) 02/27/2003 04:19 PM Chuck Hagenbuch chuck

Weather cleanups, use HTTP_Request to fetch weather, with a timeout of
5 seconds.

1.40 (+20 -19 lines) 02/11/2003 03:58 PM Chuck Hagenbuch chuck

- Move Cache_session to Horde_SessionObjects - the semantics just
aren't the same as the rest of the Cache drivers.

- Rename Cache:: to Horde_Cache:: for consistency/packaging.

- The Horde_Cache:: API is completely revamped to be more
flexible/easy to use.

- Add Horde_Cache_zps::, which lets you use the Zend Performance Suite
output cache as your caching backend.

1.39 (+5 -86 lines) 02/07/2003 05:06 PM Chuck Hagenbuch chuck

Remove some unneeded prefs, a couple unneeded functions, clean up
HTML, etc.

1.38 (+6 -7 lines) 01/31/2003 01:53 AM Chuck Hagenbuch chuck

Add a weather block for the intercept weather.

Submitted by: Rick Emery <rick@emery.homelinux.net>

1.37 (+4 -4 lines) 01/28/2003 11:18 PM Chuck Hagenbuch chuck

- Start getting stock quotes code into one code tree
- remove unneeded old Block.php
- add stocks block to new Block api
- remove portal code, not needed anymore.

1.36 (+6 -2 lines) 01/27/2003 07:01 AM mikec

Make sure the conf array is available

1.35 (+3 -4 lines) 01/23/2003 06:42 PM Chuck Hagenbuch chuck

Clean up some of the Jonah portal code; getting close to this being
ready for real Horde use.

the Headlines block no longer uses a completely different set of code
than the standard My Content headlines.

More Horde-like HTML.

1.34 (+3 -3 lines) 01/22/2003 11:05 AM Chuck Hagenbuch chuck

- clean up channel HTML (consistent widths)
- fix up/improve templates (show story descriptions in detailed &
standards views)
- show channel name instead of key in one more place.

Only showing the 100 latest revisions. Show all revisions? (may take a while).