Various Horde 4 fixes
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 05:13:53 +0000 (23:13 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 05:22:31 +0000 (23:22 -0600)
131 files changed:
ansel/browse.php
ansel/browse_edit.php
ansel/config/conf.xml
ansel/config/hooks.php.dist
ansel/config/prefs.php.dist
ansel/config/styles.php.dist
ansel/disclamer.php
ansel/edit_dates.php
ansel/faces/custom.php
ansel/faces/gallery.php
ansel/faces/search/all.php
ansel/faces/search/image.php
ansel/faces/search/image_define.php
ansel/faces/search/image_save.php
ansel/faces/search/image_search.php
ansel/faces/search/img.php
ansel/faces/search/name.php
ansel/faces/search/named.php
ansel/faces/search/owner.php
ansel/gallery.php
ansel/gallery/captions.php
ansel/gallery/delete.php
ansel/gallery/sort.php
ansel/group.php
ansel/image.php
ansel/img/download.php
ansel/img/ecard.php
ansel/img/full.php
ansel/img/index.php
ansel/img/mini.php
ansel/img/prettythumb.php
ansel/img/screen.php
ansel/img/thumb.php
ansel/img/upload.php
ansel/img/upload_preview.php
ansel/js/src/googlemap.js
ansel/js/src/slideshow.js
ansel/lib/Ajax/Imple/EditCaption.php
ansel/lib/Ajax/Imple/GallerySlugCheck.php
ansel/lib/Ajax/Imple/LocationAutoCompleter.php
ansel/lib/Ajax/Imple/TagActions.php
ansel/lib/Ajax/Imple/ToggleGalleryActions.php
ansel/lib/Ajax/Imple/ToggleOtherGalleries.php
ansel/lib/Ansel.php
ansel/lib/Block/cloud.php
ansel/lib/Block/gallery.php
ansel/lib/Block/my_galleries.php
ansel/lib/Block/random_photo.php
ansel/lib/Block/recent_comments.php
ansel/lib/Block/recently_added.php
ansel/lib/Block/recently_added_geodata.php
ansel/lib/Exif.php
ansel/lib/Exif/canon.php
ansel/lib/Exif/panasonic.php
ansel/lib/Forms/Ecard.php
ansel/lib/Forms/Image.php
ansel/lib/Forms/ImageDate.php
ansel/lib/Forms/Upload.php
ansel/lib/Forms/Watermark.php
ansel/lib/GalleryMode/Date.php
ansel/lib/GalleryMode/Normal.php
ansel/lib/GalleryMode/RemoteVimeo.php
ansel/lib/ImageView.php
ansel/lib/ImageView/mini.php
ansel/lib/ImageView/plainstack.php
ansel/lib/ImageView/polaroidstack.php
ansel/lib/ImageView/polaroidthumb.php
ansel/lib/ImageView/prettythumb.php
ansel/lib/ImageView/roundedstack.php
ansel/lib/ImageView/screen.php
ansel/lib/ImageView/shadowsharpthumb.php
ansel/lib/ImageView/thumb.php
ansel/lib/ImageView/vimeothumb.php
ansel/lib/Report.php
ansel/lib/Report/letter.php
ansel/lib/Report/mail.php
ansel/lib/Report/tickets.php
ansel/lib/Search.php
ansel/lib/Search/exif.php
ansel/lib/Tags.php
ansel/lib/Tile/DateGallery.php
ansel/lib/Tile/Gallery.php
ansel/lib/Tile/Image.php
ansel/lib/Views/Abstract.php
ansel/lib/Views/Embedded.php
ansel/lib/Views/EmbeddedRenderers/Carousel.php
ansel/lib/Views/EmbeddedRenderers/GalleryLink.php
ansel/lib/Views/EmbeddedRenderers/Mini.php
ansel/lib/Views/EmbeddedRenderers/Slideshow.php
ansel/lib/Views/Gallery.php
ansel/lib/Views/GalleryRenderer.php
ansel/lib/Views/GalleryRenderers/Gallery.php
ansel/lib/Views/GalleryRenderers/GalleryLightbox.php
ansel/lib/Views/GalleryRenderers/GalleryVimeo.php
ansel/lib/Views/Image.php
ansel/lib/Views/List.php
ansel/lib/Views/Results.php
ansel/lib/Views/Slideshow.php
ansel/lib/Widget/Actions.php
ansel/lib/Widget/Base.php
ansel/lib/Widget/Geodata.php
ansel/lib/XPPublisher.php
ansel/lib/api.php
ansel/lib/base.php
ansel/lib/prefs.php
ansel/locale/en_US/help.xml
ansel/locale/es_ES/help.xml
ansel/locale/fi_FI/help.xml
ansel/map_edit.php
ansel/perms.php
ansel/preview.php
ansel/protect.php
ansel/report.php
ansel/rss.php
ansel/scripts/all_images_exif_to_tags.php
ansel/scripts/ansel.php
ansel/scripts/garbage_collection.php
ansel/scripts/recursive_import.php
ansel/scripts/remote_import.php
ansel/scripts/sql/ansel.pgsql.sql
ansel/scripts/sql/ansel.sql
ansel/scripts/upgrades/1.0_to_1.1.php
ansel/scripts/upgrades/2008-09-16_add_original_date_values.php
ansel/scripts/upgrades/2008-12-5_add_geolocation_tables.sql
ansel/scripts/upgrades/2009-06-14_fix_geolocation_values.php
ansel/scripts/upgrades/2009-06-22_move_geolocation_values.php
ansel/templates/image/upload.inc
ansel/test.php
ansel/themes/screen.css
ansel/view.php
ansel/xppublish.php

index 72dd3f8..265b2dd 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/browse.php,v 1.12 2009/01/06 17:48:49 jan Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,7 +8,6 @@
 
 require_once dirname(__FILE__) . '/lib/base.php';
 require_once ANSEL_BASE . '/lib/Tags.php';
-require_once 'Horde/Block/Layout/View.php';
 
 Horde::addScriptFile('prototype.js', 'horde', true);
 $layout = new Horde_Block_Layout_View(
index f31ac71..76a2a41 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/browse_edit.php,v 1.8 2009/06/10 00:33:01 mrubinsk Exp $
- *
  * Copyright 1999-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -9,12 +7,10 @@
  */
 
 require_once dirname(__FILE__) . '/lib/base.php';
-require_once 'Horde/Block/Collection.php';
-require_once 'Horde/Block/Layout/Manager.php';
 
 // Instantiate the blocks objects.
-$blocks = &Horde_Block_Collection::singleton('myphotos', array('ansel'));
-$layout = &Horde_Block_Layout_Manager::singleton('myphotos', $blocks, @unserialize($prefs->getValue('myansel_layout')));
+$blocks = Horde_Block_Collection::singleton('myphotos', array('ansel'));
+$layout = Horde_Block_Layout_Manager::singleton('myphotos', $blocks, @unserialize($prefs->getValue('myansel_layout')));
 
 // Handle requested actions.
 $layout->handle(Horde_Util::getFormData('action'),
index 7326e03..dd587c3 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0"?>
-<!-- $Horde: ansel/config/conf.xml,v 1.60 2009/05/15 19:44:03 mrubinsk Exp $ -->
 <configuration>
 
  <configtab name="menu" desc="General Settings and Menu">
index 761c4ef..1262313 100644 (file)
@@ -5,15 +5,13 @@
  * THE HOOKS PROVIDED IN THIS FILE ARE EXAMPLES ONLY.  DO NOT ENABLE THEM
  * BLINDLY IF YOU DO NOT KNOW WHAT YOU ARE DOING.  YOU HAVE TO CUSTOMIZE THEM
  * TO MATCH YOUR SPECIFIC NEEDS AND SYSTEM ENVIRONMENT.
- *
- * $Horde: ansel/config/hooks.php.dist,v 1.8 2009/07/27 14:52:51 mrubinsk Exp $
  */
 
 class Ansel_Hooks
 {
     /**
      * Here is an example _ansel_hook_user_age(). is called to get the user age
-     * when he/she tries to view an age limited content. This function must 
+     * when he/she tries to view an age limited content. This function must
      * return an integer value of user age
      */
 //    function user_age()
index 73b775b..4901d60 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/config/prefs.php.dist,v 1.72 2009/01/26 17:29:23 mrubinsk Exp $
- *
  * See horde/config/prefs.php for documentation on the structure of this file.
  */
 $prefGroups['display'] = array(
@@ -266,4 +264,4 @@ $_prefs['exif_tags'] = array(
     'desc' => _("Which EXIF fields should we automatically add as photo tags during upload?"),
     'enum' => array('DateTimeOriginal' => _("Date Photo Taken"),
                     'ExposureTime' => _("Exposure Time"))
-);
\ No newline at end of file
+);
index 2e827cf..9fe03c3 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/config/styles.php.dist,v 1.8 2009/06/15 16:01:33 mrubinsk Exp $
- *
  * Configuration for the available gallery style
  *
  * Each entry *must* have:
@@ -42,6 +40,8 @@
  * falback                   -   Fall back to this gallery style if unable to
  *                               use this style (like if we don't have PNG
  *                               support)
+ *
+ * $Id$
  */
 
 // Just a time saver...
index 0023b2b..3191870 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/disclamer.php,v 1.6 2009/06/10 00:33:01 mrubinsk Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -11,7 +9,6 @@
  */
 
 require_once dirname(__FILE__) . '/lib/base.php';
-require_once 'Horde/Form.php';
 
 $vars = Horde_Variables::getDefaultVariables();
 $gallery = $ansel_storage->getGallery($vars->get('gallery'));
index f729e93..1c8ddf7 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/edit_dates.php,v 1.8 2009/07/13 17:18:38 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,8 +8,7 @@
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
 
 $images = Horde_Util::getFormData('image', array());
 $actionID = Horde_Util::getFormData('actionID');
@@ -59,7 +56,6 @@ if ($actionID == 'edit_dates') {
                     continue;
                 }
             }
-            require_once 'Horde/Date.php';
             $newDate = new Horde_Date($vars->get('image_originalDate'));
             $image->originalDate = (int)$newDate->timestamp();
             $image->save();
index 65b725b..95fdc0f 100644 (file)
@@ -64,7 +64,6 @@ $width = $y2 - $y1;
 
 $title = _("Create a new face");
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('builder.js');
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('controls.js', 'horde', true);
index abf85ad..36909c3 100644 (file)
@@ -48,7 +48,6 @@ $pager = new Horde_UI_Pager(
 $pager->preserve('gallery',  $gallery_id);
 
 $title = sprintf(_("Searching for faces in %s"), Horde::link(Ansel::getUrlFor('view', array('gallery' => $gallery_id, 'view' => 'Gallery'))) . $gallery->get('name') . '</a>');
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('stripe.js', 'horde', true);
 require ANSEL_TEMPLATES . '/common-header.inc';
 require ANSEL_TEMPLATES . '/menu.inc';
index bf1e6b6..332b36a 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Process an single image (to be called by ajax)
  *
- * $Horde: ansel/faces/search/all.php,v 1.5 2009/06/10 00:33:02 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index cc54b73..9cfe651 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Process an single image (to be called by ajax)
  *
- * $Horde: ansel/faces/search/image.php,v 1.11 2009/07/08 18:28:41 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -76,4 +74,4 @@ if (empty($name)) {
     }
 }
 
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
index c083f81..35f60f6 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Process an single image (to be called by ajax)
  *
- * $Horde: ansel/faces/search/image_define.php,v 1.8 2009/07/08 18:28:41 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -48,7 +46,6 @@ if (count($faces) > 1) {
 $height = $x2 - $x1;
 $width = $y2 - $y1;
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('scriptaculous.js', 'horde', true);
 Horde::addScriptFile('builder.js', 'ansel', true);
 Horde::addScriptFile('cropper.js', 'ansel', true);
@@ -58,4 +55,4 @@ require ANSEL_TEMPLATES . '/common-header.inc';
 require ANSEL_TEMPLATES . '/menu.inc';
 require ANSEL_TEMPLATES . '/faces/define.inc';
 
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
index 08e8e1d..c34e4f1 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Process an single image
  *
- * $Horde: ansel/faces/search/image_save.php,v 1.12 2009/07/08 18:28:41 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -82,4 +80,4 @@ if (file_put_contents($path, $signature)) {
 
 $notification->push(_("Cannot save photo signature"));
 header('Location: ' . Horde::applicationUrl('faces/search/image.php'));
-exit;
\ No newline at end of file
+exit;
index 52a2f74..d3775ff 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Image search
  *
- * $Horde: ansel/faces/search/image_search.php,v 1.6 2009/07/08 18:28:41 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -50,4 +48,4 @@ $pager = new Horde_UI_Pager(
 require ANSEL_TEMPLATES . '/common-header.inc';
 require ANSEL_TEMPLATES . '/menu.inc';
 require ANSEL_TEMPLATES . '/faces/search.inc';
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
index 8d6cb57..2590b7f 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Process an single image (to be called by ajax)
  *
- * $Horde: ansel/faces/search/img.php,v 1.8 2009/07/08 18:28:41 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -23,4 +21,4 @@ $tmp = Horde::getTempDir();
 $path = $tmp . '/search_face_' . ($thumb ? 'thumb_' : '') .  Horde_Auth::getAuth() . Ansel_Faces::getExtension();
 
 header('Content-type: image/' . $conf['image']['type']);
-readfile($path);
\ No newline at end of file
+readfile($path);
index 6232782..6c10f09 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Process an single image (to be called by ajax)
  *
- * $Horde: ansel/faces/search/name.php,v 1.4 2009/06/10 00:33:02 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -48,4 +46,4 @@ require ANSEL_TEMPLATES . '/menu.inc';
 
 include ANSEL_TEMPLATES . '/faces/faces.inc';
 
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
index fee95b6..3bae697 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Show all named faces.
  *
- * $Horde: ansel/faces/search/named.php,v 1.5 2009/06/10 00:33:02 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index cf3e97d..715efaf 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Process an single image (to be called by ajax)
  *
- * $Horde: ansel/faces/search/owner.php,v 1.6 2009/07/08 18:28:41 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -44,4 +42,4 @@ require ANSEL_TEMPLATES . '/menu.inc';
 
 include ANSEL_TEMPLATES . '/faces/faces.inc';
 
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
index 6656f72..0b4fbe9 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/gallery.php,v 1.148 2009/07/30 18:02:13 mrubinsk Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 585c994..9aa3744 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/gallery/captions.php,v 1.19 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,8 +8,7 @@
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__) . '/..');
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/../lib/base.php';
 
 $galleryId = Horde_Util::getFormData('gallery');
 if (!$galleryId) {
index 243e8b4..b94e7e4 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/gallery/delete.php,v 1.23 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,8 +8,7 @@
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__) . '/..');
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/../lib/base.php';
 
 // Delete/empty the gallery if we're provided with a valid galleryId.
 $actionID = Horde_Util::getPost('action');
@@ -69,4 +66,4 @@ if ($galleryId) {
                                   true));
         exit;
     }
-}
\ No newline at end of file
+}
index 2187c29..66129ba 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/gallery/sort.php,v 1.31 2009/07/13 17:18:39 mrubinsk Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,8 +8,7 @@
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__) . '/..');
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/../lib/base.php';
 
 /* If we aren't provided with a gallery, redirect to the gallery
  * list. */
@@ -58,7 +55,6 @@ case 'Sort':
     exit;
 }
 
-Horde::addScriptFile('prototype.js', 'horde', true);
 Horde::addScriptFile('effects.js', 'horde', true);
 Horde::addScriptFile('dragdrop.js', 'horde', true);
 $title = sprintf(_("%s :: Sort"), $gallery->get('name'));
index 0d13ed9..621f6ed 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/group.php,v 1.23 2009/06/10 00:33:01 mrubinsk Exp $
- *
  * Copyright 2005-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -11,8 +9,7 @@
  * @author Ben Chavet <ben@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
 
 // check for grouping
 $groupby = basename(Horde_Util::getFormData('groupby', $prefs->getValue('groupby')));
@@ -71,7 +68,6 @@ default:
 }
 
 // Set up pager.
-require_once 'Horde/UI/Pager.php';
 $vars = Horde_Variables::getDefaultVariables();
 $group_pager = new Horde_UI_Pager('gbpage', $vars,
                                   array('num' => $num_groups,
index 0a9692d..db64b0f 100644 (file)
@@ -3,8 +3,6 @@
  * Responsible for making changes to image properties as well as making,
  * previewing and saving changes to the image.
  *
- * $Horde: ansel/image.php,v 1.176 2009/07/08 18:28:40 slusarz Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -14,8 +12,7 @@
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
 require_once 'Horde/Form/Renderer.php';
 
 /* Get all the form data */
@@ -32,7 +29,7 @@ $date = Ansel::getDateParameter();
 /* Are we watermarking the image? */
 if ($watermark) {
     require_once 'Horde/Identity.php';
-    $identity = &Identity::singleton();
+    $identity = Identity::singleton();
     $name = $identity->getValue('fullname');
     if (empty($name)) {
         $name = Horde_Auth::getAuth();
@@ -213,7 +210,6 @@ case 'save':
         $image->caption = $vars->get('image_desc');
         $image->setTags(explode(',' , $vars->get('image_tags')));
 
-        require_once 'Horde/Date.php';
         $newDate = new Horde_Date($vars->get('image_originalDate'));
         $image->originalDate = (int)$newDate->timestamp();
 
@@ -319,7 +315,6 @@ case 'resizeedit':
         $y2 = $geometry['height'];
 
         /* js and css files */
-        Horde::addScriptFile('prototype.js');
         Horde::addScriptFile('builder.js');
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('controls.js', 'horde', true);
@@ -330,7 +325,6 @@ case 'resizeedit':
         /* js and css files */
         // TODO: Combine these cases
         $geometry = $image->getDimensions('full');
-        Horde::addScriptFile('prototype.js');
         Horde::addScriptFile('builder.js');
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('slider.js', 'horde', true);
index bea9252..fab3bad 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/download.php,v 1.15 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index b7ce91f..f5fcb8a 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/ecard.php,v 1.20 2009/07/13 14:29:03 mrubinsk Exp $
- *
  * Copyright 2004-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -106,7 +104,6 @@ $form = new EcardForm($vars, $title);
 $renderer = new Horde_Form_Renderer();
 
 if ($browser->hasFeature('rte')) {
-    require_once 'Horde/Editor.php';
     $editor = Horde_Editor::factory('xinha', array('id' => 'ecard_comments'));
     $vars->set('rtemode', 1);
     $form->addHidden('', 'rtemode', 'text', false);
index cb60ff2..3d4a93d 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/full.php,v 1.19 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index cdeceb6..17791fe 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/index.php,v 1.16 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 638ce00..b90aedb 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/mini.php,v 1.21 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 24e7258..22dbbd3 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/prettythumb.php,v 1.16 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 691a006..2ee835b 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/screen.php,v 1.20 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 28bf484..33a6553 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/thumb.php,v 1.21 2009/07/08 18:28:42 slusarz Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 480f3be..70e2c0b 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/upload.php,v 1.46 2009/07/27 14:52:52 mrubinsk Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -43,7 +41,6 @@ if ($form->validate($vars)) {
             filesize($info['file' . $i]['file'])) {
 
             /* Check for a compressed file. */
-            require_once 'Horde/Mime/Magic.php';
             if (in_array($info['file' . $i]['type'],
                          array('x-extension/zip',
                                'application/x-compressed',
@@ -112,7 +109,6 @@ if ($form->validate($vars)) {
                     $data = file_get_contents($info['file' . $i]['file']);
 
                     /* Get the list of files in the zipfile. */
-                    require_once 'Horde/Compress.php';
                     $zip = Horde_Compress::factory('zip');
                     $files = $zip->decompress($data, array('action' => Horde_Compress::ZIP_LIST));
 
index d8fe9eb..2282a6c 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/img/upload_preview.php,v 1.9 2009/07/13 17:18:39 mrubinsk Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index fb7689d..3719779 100644 (file)
@@ -3,8 +3,6 @@
  *
  * Copyright 2009 The Horde Project (http://www.horde.org/)
  *
- * $Horde: ansel/js/src/googlemap.js,v 1.36 2009/07/30 18:02:13 mrubinsk Exp $
- *
  * See the enclosed file COPYING for license information (GPL). If you
  * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
  *
@@ -321,7 +319,7 @@ Ansel_GMap.prototype = {
 
                 // Cache the location locally?
                 if (update) {
-                    new Ajax.Request(this.options['updateEndpoint'], 
+                    new Ajax.Request(this.options['updateEndpoint'],
                                     {
                                         method: 'post',
                                         parameters: {
index 0c6a474..6c47e54 100755 (executable)
@@ -1,7 +1,5 @@
 /**
  * You can only have one SlideController on a page.
- *
- * $Horde: ansel/js/src/slideshow.js,v 1.30 2008/06/29 15:31:03 mrubinsk Exp $
  */
 var SlideController = {
 
index 4da0207..f991ce1 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_Ajax_Imple_EditCaption:: class for performing Ajax setting of image
  * captions
  *
- * $Horde: ansel/lib/Ajax/Imple/EditCaption.php,v 1.2 2009/07/30 18:02:14 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
index b4717c1..2b3a6e9 100644 (file)
@@ -13,7 +13,6 @@ class Ansel_Ajax_Imple_GallerySlugCheck extends Horde_Ajax_Imple_Base
     public function attach()
     {
         // Include the js
-        Horde::addScriptFile('prototype.js', 'horde');
         Horde::addScriptFile('slugcheck.js');
 
         $url = $this->_getUrl('GallerySlugCheck', 'ansel', array('input' => 'slug'));
index bb46145..ec69f66 100644 (file)
@@ -25,7 +25,6 @@ class Ansel_Ajax_Imple_LocationAutoCompleter extends Horde_Ajax_Imple_Base
 
     public function attach()
     {
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('autocomplete.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
 
index 34bb4a5..36d561f 100644 (file)
@@ -13,7 +13,6 @@ class Ansel_Ajax_Imple_TagActions extends Horde_Ajax_Imple_Base
     public function attach()
     {
         // Include the js
-        Horde::addScriptFile('prototype.js', 'horde');
         Horde::addScriptFile('tagactions.js');
 
         $url = $this->_getUrl('TagActions', 'ansel', array('input' => 'tags',
index 9f019cd..260cb12 100644 (file)
@@ -13,7 +13,6 @@ class Ansel_Ajax_Imple_ToggleGalleryActions extends Horde_Ajax_Imple_Base
     public function attach()
     {
         // Include the js
-        Horde::addScriptFile('prototype.js', 'horde');
         Horde::addScriptFile('togglewidget.js');
 
         $url = $this->_getUrl('ToggleGalleryActions', 'ansel', array('input' => 'pref_value', 'sessionWrite' => true));
index 885c8d6..3ceaced 100644 (file)
@@ -13,7 +13,6 @@ class Ansel_Ajax_Imple_ToggleOtherGalleries extends Horde_Ajax_Imple_Base
     public function attach()
     {
         // Include the js
-        Horde::addScriptFile('prototype.js', 'horde');
         Horde::addScriptFile('togglewidget.js');
 
         $url = $this->_getUrl('ToggleOtherGalleries', 'ansel', array('input' => 'pref_value', 'sessionWrite' => true));
index 5157a9b..cea2ba0 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/lib/Ansel.php,v 1.628 2009/07/30 18:02:14 mrubinsk Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -41,10 +39,9 @@ class Ansel {
      */
     function &getDb()
     {
-        require_once 'MDB2.php';
         $config = $GLOBALS['conf']['sql'];
         unset($config['charset']);
-        $mdb = &MDB2::singleton($config);
+        $mdb = MDB2::singleton($config);
         if (is_a($mdb, 'PEAR_Error')) {
             return $mdb;
         }
@@ -77,8 +74,7 @@ class Ansel {
                          __FILE__, __LINE__);
         }
         if ($v_params['type'] != 'none') {
-            require_once 'VFS.php';
-            $vfs = &VFS::singleton($v_params['type'], $v_params['params']);
+            $vfs = VFS::singleton($v_params['type'], $v_params['params']);
         }
         if (empty($vfs) || is_a($vfs, 'PEAR_ERROR')) {
             Horde::fatal(_("You must configure a VFS backend to use Ansel."),
@@ -113,7 +109,6 @@ class Ansel {
                              $ignore = null)
     {
         global $ansel_storage;
-        require_once 'Horde/Tree.php';
         $galleries = $ansel_storage->listGalleries($perm, $attributes, $parent,
                                                    $allLevels, $from, $count);
         $tree = Horde_Tree::factory('gallery_tree', 'select');
@@ -254,7 +249,6 @@ class Ansel {
                             !is_a($i, 'PEAR_Error') &&
                             $g->get('view_mode') == 'Date') {
 
-                            require_once 'Horde/Date.php';
                             $imgDate = new Horde_Date($i->originalDate);
                             $data['year'] = $imgDate->year;
                             $data['month'] = $imgDate->month;
@@ -521,7 +515,6 @@ class Ansel {
     function getImageObject($params = array())
     {
         global $conf;
-        require_once 'Horde/Image.php';
         $context = array('tmpdir' => Horde::getTempDir());
         if (!empty($conf['image']['convert'])) {
             $context['convert'] = $conf['image']['convert'];
@@ -551,7 +544,6 @@ class Ansel {
         global $conf;
 
         // Get the mime type of the file (and make sure it's an image).
-        require_once 'Horde/Mime/Magic.php';
         $mime_type = Horde_Mime_Magic::analyzeFile($file, isset($conf['mime']['magic_db']) ? $conf['mime']['magic_db'] : null);
         if (strpos($mime_type, 'image') === false) {
             return PEAR::raiseError(sprintf(_("Can't get unknown file type \"%s\"."), $file));
@@ -715,13 +707,13 @@ class Ansel {
             if ($owner == Horde_Auth::getAuth()) {
                 $owner_title = _("My Galleries");
             } elseif (!empty($GLOBALS['conf']['gallery']['customlabel'])) {
-                $uprefs = &Prefs::singleton($GLOBALS['conf']['prefs']['driver'],
-                                            'ansel',
-                                            $owner, '', null, false);
+                $uprefs = Prefs::singleton($GLOBALS['conf']['prefs']['driver'],
+                                           'ansel',
+                                           $owner, '', null, false);
                 $fullname = $uprefs->getValue('grouptitle');
                 if (!$fullname) {
                     require_once 'Horde/Identity.php';
-                    $identity = &Identity::singleton('none', $owner);
+                    $identity = Identity::singleton('none', $owner);
                     $fullname = $identity->getValue('fullname');
                     if (!$fullname) {
                         $fullname = $owner;
@@ -1494,7 +1486,7 @@ class Ansel_Gallery extends Horde_Share_Object_sql_hierarchical {
     function getOwner()
     {
         require_once 'Horde/Identity.php';
-        $identity = &Identity::singleton('none', $this->data['share_owner']);
+        $identity = Identity::singleton('none', $this->data['share_owner']);
         return $identity;
     }
 
@@ -1743,7 +1735,6 @@ class Ansel_Gallery extends Horde_Share_Object_sql_hierarchical {
      * Returns this gallery's tags.
      */
     function getTags() {
-        require_once ANSEL_BASE . '/lib/Tags.php';
         if ($this->hasPermission(Horde_Auth::getAuth(), PERMS_READ)) {
             return Ansel_Tags::readTags($this->id, 'gallery');
         } else {
@@ -1758,7 +1749,6 @@ class Ansel_Gallery extends Horde_Share_Object_sql_hierarchical {
      */
     function setTags($tags)
     {
-        require_once ANSEL_BASE . '/lib/Tags.php';
         if ($this->hasPermission(Horde_Auth::getAuth(), PERMS_EDIT)) {
             return Ansel_Tags::writeTags($this->id, $tags, 'gallery');
         } else {
@@ -2156,7 +2146,6 @@ class Ansel_Image {
 
         if ($view == 'full' && $this->type) {
             $type = strpos($this->type, '/') === false ? 'image/' . $this->type : $this->type;
-            require_once 'Horde/Mime/Magic.php';
             if ($ext = Horde_Mime_Magic::mimeToExt($type)) {
                 $vfsname .= '.' . $ext;
             }
@@ -2535,8 +2524,6 @@ class Ansel_Image {
      */
     function _exifToTags($fields = array())
     {
-        require_once 'Horde/Date.php';
-
         $tags = array();
         foreach ($fields as $field) {
             if (!empty($this->_exif[$field])) {
@@ -2734,7 +2721,6 @@ class Ansel_Image {
 
         $filename = $this->filename;
         if ($view != 'full') {
-            require_once 'Horde/Mime/Magic.php';
             if ($ext = Horde_Mime_Magic::mimeToExt('image/' . $conf['image']['type'])) {
                 $filename .= '.' . $ext;
             }
@@ -2864,7 +2850,7 @@ class Ansel_Image {
 
         if (empty($watermark)) {
             require_once 'Horde/Identity.php';
-            $identity = &Identity::singleton();
+            $identity = Identity::singleton();
             $name = $identity->getValue('fullname');
             if (empty($name)) {
                 $name = Horde_Auth::getAuth();
@@ -2923,7 +2909,6 @@ class Ansel_Image {
         if (count($this->_tags)) {
             return $this->_tags;
         }
-        require_once ANSEL_BASE . '/lib/Tags.php';
         $gallery = $ansel_storage->getGallery($this->gallery);
         if (is_a($gallery, 'PEAR_Error')) {
             return $gallery;
@@ -2950,8 +2935,6 @@ class Ansel_Image {
     {
         global $ansel_storage;
 
-        require_once ANSEL_BASE . '/lib/Tags.php';
-
         $gallery = $ansel_storage->getGallery(abs($this->gallery));
         if ($gallery->hasPermission(Horde_Auth::getAuth(), PERMS_EDIT)) {
             // Clear the local cache.
@@ -2975,8 +2958,6 @@ class Ansel_Image {
     function getTile($parent = null, $style = null, $mini = false,
                      $params = array())
     {
-        require_once ANSEL_BASE . '/lib/Tile/Image.php';
-
         if (!is_null($parent) && is_null($style)) {
             $style = $parent->getStyle();
         } else {
@@ -3219,7 +3200,7 @@ class Ansel_Storage {
 
             if ($perms) {
                 require_once 'Horde/Group.php';
-                $groups = &Group::singleton();
+                $groups = Group::singleton();
                 $group_list = $groups->getGroupMemberships(Horde_Auth::getAuth());
                 if (!is_a($group_list, 'PEAR_Error') && count($group_list)) {
                     foreach ($group_list as $group_id => $group_name) {
@@ -3660,8 +3641,6 @@ class Ansel_Storage {
     */
     function listCategories($perm = PERMS_SHOW, $from = 0, $count = 0)
     {
-        require_once 'Horde/Array.php';
-
         $sql = 'SELECT DISTINCT attribute_category FROM '
                . $this->shares->_table;
         $results = $this->shares->_db->query($sql);
@@ -3840,7 +3819,6 @@ class Ansel_Storage {
         }
 
         if (count($json)) {
-            require_once 'Horde/Serialize.php';
             return Horde_Serialize::serialize($json, Horde_Serialize::JSON, Horde_Nls::getCharset());
         } else {
             return '';
index afa4b65..5b64b40 100644 (file)
@@ -5,8 +5,6 @@ $block_name = _("Tag Cloud");
 /**
  * Display Tag Cloud
  *
- * $Horde: ansel/lib/Block/cloud.php,v 1.15 2009/01/06 17:48:52 jan Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -35,9 +33,7 @@ class Horde_Block_ansel_cloud extends Horde_Block {
 
     function _content()
     {
-        require_once 'Horde/UI/TagCloud.php';
         require_once dirname(__FILE__) . '/../base.php';
-        require_once ANSEL_BASE . '/lib/Tags.php';
 
         global $registry;
 
index c59d682..91e3d41 100644 (file)
@@ -6,8 +6,6 @@ $block_name = _("Gallery");
  * This file provides a selected Ansel gallery through the Horde_Blocks, by
  * extending the Horde_Blocks class.
  *
- * $Horde: ansel/lib/Block/gallery.php,v 1.56 2009/07/30 18:02:14 mrubinsk Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index b45a582..32758b3 100644 (file)
@@ -5,8 +5,6 @@ $block_name = _("My Galleries");
 /**
  * Display summary information on top level galleries.
  *
- * $Horde: ansel/lib/Block/my_galleries.php,v 1.28 2009/07/09 08:17:49 slusarz Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 306f86a..352bf40 100644 (file)
@@ -6,8 +6,6 @@ $block_name = _("Random photo");
  * This file provides a random photo through the Horde_Blocks, by extending
  * the Horde_Blocks class.
  *
- * $Horde: ansel/lib/Block/random_photo.php,v 1.39 2009/07/22 21:08:09 mrubinsk Exp $
- *
  * Copyright 2003-2007 Duck <duck@obla.net>
  *
  * See the enclosed file COPYING for license information (GPL). If you
index b57b79b..cdf80b2 100644 (file)
@@ -8,8 +8,6 @@ if ($GLOBALS['registry']->call('images/hasComments') &&
 /**
  * Display most recent image comments for galleries.
  *
- * $Horde: ansel/lib/Block/recent_comments.php,v 1.34 2009/07/09 08:17:49 slusarz Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 4c8d6a3..c93fc1e 100644 (file)
@@ -5,8 +5,6 @@ $block_name = _("Recently Added Photos");
 /**
  * Display most recently added images.
  *
- * $Horde: ansel/lib/Block/recently_added.php,v 1.43 2009/07/09 08:17:49 slusarz Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index d47aa6d..d2a883a 100644 (file)
@@ -5,8 +5,6 @@ $block_name = _("Recently Geotagged");
 /**
  * Display most recently geotagged images.
  *
- * $Horde: ansel/lib/Block/recently_added_geodata.php,v 1.4 2009/07/30 16:19:00 mrubinsk Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -54,7 +52,6 @@ class Horde_Block_ansel_recently_added_geodata extends Horde_Block {
     {
         require_once dirname(__FILE__) . '/../base.php';
 
-        Horde::addScriptFile('prototype.js', 'horde');
         Horde::addExternalScriptFile('http://maps.google.com/maps?file=api&v=2&sensor=false&key=' . $GLOBALS['conf']['api']['googlemaps'], 'ansel');
         Horde::addExternalScriptFile('http://gmaps-utility-library.googlecode.com/svn/trunk/markermanager/1.1/src/markermanager.js', 'ansel');
         Horde::addScriptFile('googlemap.js');
index 27fb8ff..1f92d26 100644 (file)
@@ -5,8 +5,6 @@
  * Works equally well with either the built in php exif functions (if PHP
  * compiled with exif support) or the (slower) bundled exif library.
  *
- * $Horde: ansel/lib/Exif.php,v 1.58 2009/07/13 14:29:04 mrubinsk Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
index f2ec75c..250e4c4 100644 (file)
@@ -3,8 +3,6 @@
  *   Exifer
  *   Extracts EXIF information from digital photos.
  *
- *   $Horde: ansel/lib/Exif/canon.php,v 1.11 2008/12/30 22:51:17 mrubinsk Exp $
- *
  *   Copyright 2003 Jake Olefsky
  *   http://www.offsky.com/software/exif/index.php
  *   jake@olefsky.com
@@ -529,4 +527,4 @@ function parseCanon($block, &$result, $seek, $globalOffset)
         $result['SubIFD']['MakerNote'][$tag_name] = $formated_data;
     }
 
-}
\ No newline at end of file
+}
index e846224..bf34123 100644 (file)
@@ -3,8 +3,6 @@
  *   Exifer
  *   Extracts EXIF information from digital photos.
  *
- *   $Horde: ansel/lib/Exif/panasonic.php,v 1.4 2008/12/30 18:30:25 mrubinsk Exp $
- *
  *   Copyright 2003 Jake Olefsky
  *   http://www.offsky.com/software/exif/index.php
  *   jake@olefsky.com
@@ -400,4 +398,4 @@ function parsePanasonic($block, &$result)
         $result['SubIFD']['MakerNote'][$tag_name] = $formated_data;
     }
 
-}
\ No newline at end of file
+}
index 155e96d..6fc69a3 100644 (file)
@@ -1,14 +1,5 @@
 <?php
 /**
- * $Horde: ansel/lib/Forms/Ecard.php,v 1.3 2009/07/28 20:16:18 jan Exp $
- *
- * @package Ansel
- */
-
-/** Horde_Form */
-require_once 'Horde/Form.php';
-
-/**
  * Ecard generator.
  *
  * @package Ansel
@@ -33,7 +24,7 @@ class EcardForm extends Horde_Form {
             $this->addVariable(_("Use the following return address:"), 'ecard_retaddr', 'text', true);
         } else {
             require_once 'Horde/Identity.php';
-            $identity = &Identity::singleton();
+            $identity = Identity::singleton();
             $from_addr = $identity->getDefaultFromAddress();
             $vars->set('ecard_retaddr', $from_addr);
             $this->addHidden('', 'ecard_retaddr', 'text', true);
index e8cab6a..416a16f 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/lib/Forms/Image.php,v 1.8 2009/01/06 17:48:53 jan Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -9,10 +7,6 @@
  *
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
-
-/** Horde_Form **/
-require_once 'Horde/Form.php';
-
 class ImageForm extends Horde_Form {
 
     var $_useFormToken = false;
@@ -70,4 +64,4 @@ class ImageForm extends Horde_Form {
         return round($size, 2) . ' '  . $val;
     }
 
-}
\ No newline at end of file
+}
index e3d99f2..a0944fd 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/lib/Forms/ImageDate.php,v 1.3 2009/01/06 17:48:53 jan Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -9,10 +7,6 @@
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
-
-/** Horde_Form **/
-require_once 'Horde/Form.php';
-
 class ImageDateForm extends Horde_Form {
 
     var $_useFormToken = false;
@@ -34,4 +28,4 @@ class ImageDateForm extends Horde_Form {
                            array('start_year' => 1900));
     }
 
-}
\ No newline at end of file
+}
index 20c8e74..d165a30 100644 (file)
@@ -1,14 +1,5 @@
 <?php
 /**
- * $Horde: ansel/lib/Forms/Upload.php,v 1.12 2008/12/14 18:54:19 mrubinsk Exp $
- *
- * @package Ansel
- */
-
-/** Horde_Form */
-require_once 'Horde/Form.php';
-
-/**
  * Image uploader. Provides 3 different options - single images,
  * multiple images, and zip file.
  *
index 22ba50b..ae1f89e 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/lib/Forms/Watermark.php,v 1.2 2009/01/06 17:48:53 jan Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -9,10 +7,6 @@
  *
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
-
-/** Horde_Form **/
-require_once 'Horde/Form.php';
-
 class WatermarkForm extends Horde_Form {
 
     var $_useFormToken = false;
@@ -57,4 +51,4 @@ class WatermarkForm extends Horde_Form {
         $wva->setDefault($prefs->getValue('watermark_vertical'));
     }
 
-}
\ No newline at end of file
+}
index cd1a523..1c8f164 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 /**
- * $Horde: ansel/lib/GalleryMode/Date.php,v 1.29 2009/07/13 14:29:04 mrubinsk Exp $
+ * Ansel_GalleryMode_Date:: Class for encapsulating gallery methods that
+ * depend on the current display mode of the gallery being Date.
  *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
@@ -9,14 +10,6 @@
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
-
-/** Horde_Date **/
-require_once 'Horde/Date.php';
-
-/**
- * Ansel_GalleryMode_Date:: Class for encapsulating gallery methods that
- * depend on the current display mode of the gallery being Date.
- */
 class Ansel_GalleryMode_Date {
 
     /**
@@ -555,7 +548,6 @@ class Ansel_GalleryMode_Date {
 
         /* Clear the image's faces */
         if ($image->facesCount) {
-            require_once ANSEL_BASE . '/lib/Faces.php';
             Ansel_Faces::delete($image);
         }
 
@@ -715,7 +707,6 @@ class Ansel_Gallery_Date {
      */
     function _setModeHelper()
     {
-        require_once ANSEL_BASE . '/lib/GalleryMode/Date.php';
         $this->_modeHelper = new Ansel_GalleryMode_Date($this);
     }
 
@@ -788,7 +779,6 @@ class Ansel_Gallery_Date {
     function getTile($parent = null, $style = null, $mini = false,
                      $params = array())
     {
-        require_once ANSEL_BASE . '/lib/Tile/DateGallery.php';
         if (!is_null($parent) && is_null($style)) {
             $style = $parent->getStyle();
         } else {
index 732aa95..f3ac1b7 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_Gallery_Mode_Normal:: Class for encapsulating gallery methods that
  * depend on the current display mode of the gallery.
  *
- * $Horde: ansel/lib/GalleryMode/Normal.php,v 1.17 2009/07/17 17:26:40 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -257,7 +255,6 @@ class Ansel_GalleryMode_Normal {
 
         /* Clear the image's faces */
         if ($image->facesCount) {
-            require_once ANSEL_BASE . '/lib/Faces.php';
             Ansel_Faces::delete($image);
         }
 
index c4b25e3..94245bd 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_Gallery_Mode_Normal:: Class for encapsulating gallery methods that
  * depend on the current display mode of the gallery.
  *
- * $Horde: ansel/lib/GalleryMode/Normal.php,v 1.9 2009/01/06 17:48:53 jan Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -256,4 +254,4 @@ class Ansel_GalleryMode_RemoteVimeo {
         return count($this->_thumbs);
     }
 
-}
\ No newline at end of file
+}
index 7e9f67b..55d2902 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Class to abstract the creation of various image views.
  *
- * $Horde: ansel/lib/ImageView.php,v 1.8 2009/01/06 17:48:51 jan Exp $
- *
  * Copyright 2007-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.
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
- *
  * @package Ansel
  */
-
 class Ansel_ImageView {
 
     /**
@@ -167,4 +163,4 @@ class Ansel_ImageView {
         return array_reverse($images);
     }
 
-}
\ No newline at end of file
+}
index bc9b166..7056587 100755 (executable)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the mini view.
  *
- * $Horde: ansel/lib/ImageView/mini.php,v 1.2 2007/11/14 16:11:27 chuck Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index d2c8edc..b4bbf10 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the gallery image stacks.
  *
- * $Horde: ansel/lib/ImageView/plainstack.php,v 1.10 2009/05/27 18:07:28 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index 03db508..4c0d251 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the gallery polaroid stacks.
  *
- * $Horde: ansel/lib/ImageView/polaroidstack.php,v 1.11 2009/05/27 18:07:28 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index 1de49ff..7d4572e 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the shadowsharpthumb view (sharp corners, shadowed)
  *
- * $Horde: ansel/lib/ImageView/polaroidthumb.php,v 1.4 2009/05/27 18:07:28 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index 79a2f7c..7f3cf7e 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the prettythumb view (rounded, shadowed thumbnails).
  *
- * $Horde: ansel/lib/ImageView/prettythumb.php,v 1.7 2009/05/27 18:07:28 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index 361fefe..2a64672 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the gallery image stacks.
  *
- * $Horde: ansel/lib/ImageView/roundedstack.php,v 1.11 2009/05/27 18:07:28 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  *
index 0612f4c..255cf82 100755 (executable)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the screen view - image sized for slideshow view.
  *
- * $Horde: ansel/lib/ImageView/screen.php,v 1.2 2007/11/13 06:24:11 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index 6e759c3..1b77699 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the shadowsharpthumb view (sharp corners, shadowed)
  *
- * $Horde: ansel/lib/ImageView/shadowsharpthumb.php,v 1.7 2009/05/27 18:07:28 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index 098c539..8865df0 100755 (executable)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the thumb view (plain, resized thumbnails).
  *
- * $Horde: ansel/lib/ImageView/thumb.php,v 1.2 2007/11/14 16:11:27 chuck Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index 5c838f7..ed1de22 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * ImageView to create the shadowsharpthumb view (sharp corners, shadowed)
  *
- * $Horde: ansel/lib/ImageView/shadowsharpthumb.php,v 1.6 2008/01/16 01:30:58 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index dc34f7f..f252f15 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Reporting abstraction class
  *
- * $Horde: ansel/lib/Report.php,v 1.12 2009/07/14 00:25:28 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -34,7 +32,6 @@ class Ansel_Report {
             $params = $GLOBALS['conf']['report_content'];
         }
 
-        require_once ANSEL_BASE . '/lib/Report/' . $driver  . '.php';
         $class_name = 'Ansel_Report_' . $driver;
         if (!class_exists($class_name)) {
             return PEAR::RaiseError(_("Report driver does not exist."));
@@ -61,7 +58,7 @@ class Ansel_Report {
         require_once 'Horde/Identity.php';
 
         // Get user email
-        $identity = &Identity::singleton('none', $user);
+        $identity = Identity::singleton('none', $user);
         return $identity->getValue('from_addr');
     }
 
index 6a4f277..59e1321 100755 (executable)
@@ -2,8 +2,6 @@
 /**
  * Report by letter api class
  *
- * $Horde: ansel/lib/Report/letter.php,v 1.5 2008/07/03 04:13:35 mrubinsk Exp $
- *
  * @author  Duck <duck@obala.net>
  * @package Ansel
  */
index e24d94c..cf32e9b 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Report by email class
  *
- * $Horde: ansel/lib/Report/mail.php,v 1.10 2009/02/04 23:51:08 jan Exp $
- *
  * @author  Duck <duck@obala.net>
  * @package Ansel
  */
index 70c93c6..3c91be9 100755 (executable)
@@ -2,8 +2,6 @@
 /**
  * Report using tickets
  *
- * $Horde: ansel/lib/Report/tickets.php,v 1.3 2008/05/07 01:45:56 chuck Exp $
- *
  * @author  Duck <duck@obala.net>
  * @package Ansel
  */
index 2423f2b..0d7b6cb 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_Search:: Provides a generic interface for various types of image
  * searches that are to be displayed in a paged results view.
  *
- * $Horde: ansel/lib/Search.php,v 1.2 2009/01/06 17:48:51 jan Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -102,4 +100,4 @@ class Ansel_Search {
     {
     }
 
-}
\ No newline at end of file
+}
index af9bda7..773275c 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Ansel_Search_exif Provides an interface for searching image exif data.
  *
- * $Horde: ansel/lib/Search/exif.php,v 1.2 2009/01/06 17:48:53 jan Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -43,4 +41,4 @@ class Ansel_Search_exif {
     {
     }
 
-}
\ No newline at end of file
+}
index be5ad1f..0d8d355 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Classes for dealing with tags within Ansel
  *
- * $Horde: ansel/lib/Tags.php,v 1.96 2009/07/09 08:17:49 slusarz Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 4d79191..6b168dc 100644 (file)
@@ -3,15 +3,9 @@
  * Ansel_Tile_DateGallery:: class wraps display of thumbnail tile for the
  * DateGallery psuedo gallery.
  *
- * $Horde: ansel/lib/Tile/DateGallery.php,v 1.15 2009/07/13 14:29:05 mrubinsk Exp $
- *
  * @author Michael Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
-
-/** Horde_Date **/
-require_once 'Horde/Date.php';
-
 class Ansel_Tile_DateGallery {
 
     /**
index fd9cb40..33d760c 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_Tile_Gallery:: class wraps display of thumbnail 'tiles' displayed
  * for a gallery on the Ansel_View_Gallery view.
  *
- * $Horde: ansel/lib/Tile/Gallery.php,v 1.43 2009/07/13 17:18:40 mrubinsk Exp $
- *
  * @author Michael Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index ae99724..d25a8f8 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_Tile_Image:: class wraps display of thumbnails displayed
  * for a image on the Ansel_View_Gallery view.
  *
- * $Horde: ansel/lib/Tile/Image.php,v 1.55 2009/07/29 03:08:44 mrubinsk Exp $
- *
  * @author Michael Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index beb9b32..acbf521 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * The Ansel_View_Abstract:: Parent class for the various Ansel_View classes
  *
- * $Horde: ansel/lib/Views/Abstract.php,v 1.46 2009/07/13 14:29:05 mrubinsk Exp $
- *
  * @author  Chuck Hagenbuch <chuck@horde.org>
  * @author  Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
@@ -176,7 +174,6 @@ class Ansel_View_Abstract {
             $json[] = $data;
         }
 
-        require_once 'Horde/Serialize.php';
         return Horde_Serialize::serialize($json, Horde_Serialize::JSON, Horde_Nls::getCharset());
     }
 
index 1b6bfbd..7d303df 100644 (file)
@@ -7,8 +7,6 @@
  * EmbeddedRenderers/*.php files which are called from the Ajax_Imple_Embed
  * class when it handles the request.
  *
- * $Horde: ansel/lib/Views/Embedded.php,v 1.16 2009/07/30 18:02:14 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index ea55826..730ff52 100644 (file)
@@ -6,8 +6,6 @@ require_once ANSEL_BASE . '/lib/Views/Gallery.php';
 /**
  * Ansel_View_EmbeddedRenderer_Carousel
  *
- * $Horde: ansel/lib/Views/EmbeddedRenderers/Carousel.php,v 1.2 2009/01/06 17:48:54 jan Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -45,4 +43,4 @@ class Ansel_View_EmbeddedRenderer_Carousel extends Ansel_View_Gallery {
 
     }
 
-}
\ No newline at end of file
+}
index 998e623..34799fc 100644 (file)
@@ -6,8 +6,6 @@ require_once ANSEL_BASE . '/lib/Views/Gallery.php';
 /**
  * Ansel_View_EmbeddedRenderer_GalleryLink
  *
- * $Horde: ansel/lib/Views/EmbeddedRenderers/GalleryLink.php,v 1.10 2009/07/30 18:02:15 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -149,4 +147,4 @@ EOT;
         return $html;
     }
 
-}
\ No newline at end of file
+}
index e2227e6..2abaf40 100644 (file)
@@ -6,8 +6,6 @@ require_once ANSEL_BASE . '/lib/Views/Gallery.php';
 /**
  * Ansel_View_EmbeddedRenderer_Mini
  *
- * $Horde: ansel/lib/Views/EmbeddedRenderers/Mini.php,v 1.18 2009/07/08 18:28:45 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index e2fa5cb..9a624fe 100644 (file)
@@ -6,8 +6,6 @@ require_once ANSEL_BASE . '/lib/Views/Gallery.php';
 /**
  * Ansel_View_EmbeddedRenderer_Slideshow
  *
- * $Horde: ansel/lib/Views/EmbeddedRenderers/Slideshow.php,v 1.2 2009/01/06 17:48:54 jan Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -45,4 +43,4 @@ class Ansel_View_EmbeddedRenderer_Slideshow extends Ansel_View_Gallery {
 
     }
 
-}
\ No newline at end of file
+}
index f3e57f1..a08559e 100644 (file)
@@ -1,19 +1,11 @@
 <?php
 /**
  * @package Ansel
- *
- * $Horde: ansel/lib/Views/Gallery.php,v 1.130 2009/07/08 18:28:45 slusarz Exp $
  */
 
 /** Ansel_View_Abstract */
 require_once ANSEL_BASE . '/lib/Views/Abstract.php';
 
-/** Tags **/
-require_once ANSEL_BASE . '/lib/Tags.php';
-
-/** Horde_UI_Pager */
-require_once 'Horde/UI/Pager.php';
-
 /**
  * The Ansel_View_Gallery:: class wraps display of individual images.
  *
@@ -167,7 +159,6 @@ class Ansel_View_Gallery extends Ansel_View_Abstract {
         }
         /* Load the helper */
         $classname = 'Ansel_View_GalleryRenderer_' . basename($renderer);
-        require_once dirname(__FILE__) . '/GalleryRenderers/' . basename($renderer) . '.php';
         $view->_renderer = new $classname($view);
         $view->_renderer->init();
 
index a290309..3056fd4 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Ansel_View_GalleryRenderer::  Base class for all gallery renderers.
  *
- * $Horde: ansel/lib/Views/GalleryRenderer.php,v 1.14 2009/07/13 14:29:05 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -147,8 +145,6 @@ class Ansel_View_GalleryRenderer {
 
         /* Include any widgets */
         if (!empty($this->style['widgets'])) {
-            require_once ANSEL_BASE . '/lib/Widget.php';
-
             /* Special case widgets - these are built in */
             if (array_key_exists('Actions', $this->style['widgets'])) {
                 /* Don't show action widget if no actions */
index 54fe20a..af87d82 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_View_GalleryRenderer_Gallery:: Class wraps display of the traditional
  * Gallery View.
  *
- * $Horde: ansel/lib/Views/GalleryRenderers/Gallery.php,v 1.29 2009/07/08 18:28:45 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 330c3e2..3e8e855 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_View_GalleryRenderer_GalleryLightbox:: Class wraps display of the lightbox
  * style gallery views.
  *
- * $Horde: ansel/lib/Views/GalleryRenderers/GalleryLightbox.php,v 1.33 2009/07/08 18:28:45 slusarz Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -31,7 +29,6 @@ class Ansel_View_GalleryRenderer_GalleryLightbox extends Ansel_View_GalleryRende
         // Attach the script and CSS files here if we aren't being called via the api
         if (empty($this->view->_params['api'])) {
             Ansel::attachStylesheet('lightbox.css');
-            Horde::addScriptFile('prototype.js', 'horde', true);
             Horde::addScriptFile('effects.js', 'horde', true);
             Horde::addScriptFile('lightbox.js', 'ansel', true);
         }
@@ -141,7 +138,6 @@ class Ansel_View_GalleryRenderer_GalleryLightbox extends Ansel_View_GalleryRende
             Ansel::attachStylesheet('lightbox.css', true);
             $includes = new Horde_Script_Files();
             $includes->disableAutoloadHordeJS();
-            $includes->_add('prototype.js', 'horde', true, true);
             $includes->_add('accesskeys.js', 'horde', true, true);
             $includes->_add('effects.js', 'horde', true, true);
             $includes->_add('lightbox.js', 'ansel', true, true);
index 87d9520..db06024 100644 (file)
@@ -5,8 +5,6 @@
  * video service, and displays them as a gallery. The videos are viewed in a
  * redbox overlay when the thumbnails are clicked.
  *
- * $Horde: $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -33,7 +31,6 @@ class Ansel_View_GalleryRenderer_GalleryVimeo extends Ansel_View_GalleryRenderer
     {
         // Attach the script and CSS files here if we aren't being called via the api
         if (empty($this->view->_params['api'])) {
-            Horde::addScriptFile('prototype.js', 'horde', true);
             Horde::addScriptFile('effects.js', 'horde', true);
             Horde::addScriptFile('redbox.js', 'horde', true);
         }
@@ -167,7 +164,6 @@ class Ansel_View_GalleryRenderer_GalleryVimeo extends Ansel_View_GalleryRenderer
         if (!empty($this->view->_params['api'])) {
             $includes = new Horde_Script_Files();
             $includes->disableAutoloadHordeJS();
-            $includes->_add('prototype.js', 'horde', true, true);
             $includes->_add('redbox.js', 'horde', true, true);
             $includes->includeFiles();
         }
index 523c35f..69a1168 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * The Ansel_View_Image:: class wraps display of individual images.
  *
- * $Horde: ansel/lib/Views/Image.php,v 1.86 2009/07/30 13:15:10 mrubinsk Exp $
- *
  * @author  Chuck Hagenbuch <chuck@horde.org>
  * @package Ansel
  */
@@ -11,9 +9,6 @@
 /** Ansel_View_Abstract */
 require_once ANSEL_BASE . '/lib/Views/Abstract.php';
 
-/** Tags **/
-require_once ANSEL_BASE . '/lib/Tags.php';
-
 class Ansel_View_Image extends Ansel_View_Abstract {
 
     /**
@@ -108,7 +103,6 @@ class Ansel_View_Image extends Ansel_View_Abstract {
 
         /* Any script files we may need if not calling via the api */
         if (empty($view->_params['api'])) {
-            Horde::addScriptFile('prototype.js', 'horde', true);
             Horde::addScriptFile('effects.js', 'horde', true);
             Horde::addScriptFile('stripe.js', 'horde', true);
         }
@@ -341,8 +335,6 @@ class Ansel_View_Image extends Ansel_View_Abstract {
         /* These items currently don't work when viewing through the api */
         if (empty($this->_params['api'])) {
             /* Add the widgets */
-            require_once ANSEL_BASE . '/lib/Widget.php';
-
             // Tag widget
             $this->addWidget(Ansel_Widget::factory('Tags', array('view' => 'image')));
 
index 1a2402e..7882bf2 100644 (file)
@@ -1,22 +1,11 @@
 <?php
 /**
  * @package Ansel
- *
- * $Horde: ansel/lib/Views/List.php,v 1.41 2009/07/08 18:28:45 slusarz Exp $
  */
 
 /** Ansel_View_Abstract */
 require_once ANSEL_BASE . '/lib/Views/Abstract.php';
 
-/** Tags **/
-require_once ANSEL_BASE . '/lib/Tags.php';
-
-/** Gallery Tiles **/
-require_once ANSEL_BASE . '/lib/Tile/Gallery.php';
-
-/** Horde_UI_Pager */
-require_once 'Horde/UI/Pager.php';
-
 /**
  * The Ansel_View_Gallery:: class wraps display of individual images.
  *
index f60a009..8af8b08 100644 (file)
@@ -6,16 +6,11 @@
  *
  * @author Michael J. Rubinsky (mrubinsk@horde.org)
  * @package Ansel
- *
- * $Horde: ansel/lib/Views/Results.php,v 1.40 2009/07/08 18:28:45 slusarz Exp $
  */
 
 /** Ansel_View_Abstract */
 require_once ANSEL_BASE . '/lib/Views/Abstract.php';
 
-/** Horde_UI_Pager */
-require_once 'Horde/UI/Pager.php';
-
 /**
  * The Ansel_View_Results:: class wraps display of images/galleries from
  * multiple parent sources..
@@ -46,8 +41,6 @@ class Ansel_View_Results extends Ansel_View_Abstract {
      */
     function Ansel_View_Results()
     {
-        require_once ANSEL_BASE . '/lib/Tags.php';
-
         $this->_owner = Horde_Util::getFormData('owner', null);
         $this->_search = Ansel_Tags::getSearch(null, $this->_owner);
     }
index f0f8019..038a5f8 100644 (file)
@@ -2,11 +2,8 @@
 /**
  * The Ansel_View_Slideshow:: class wraps display of the gallery slideshow.
  *
- * $Horde: ansel/lib/Views/Slideshow.php,v 1.16 2009/06/16 00:34:39 mrubinsk Exp $
- *
  * @author  Chuck Hagenbuch <chuck@horde.org>
  * @author  Michael J. Rubinsky <mrubinsk@horde.org>
- *
  * @package Ansel
  */
 
@@ -97,7 +94,6 @@ class Ansel_View_Slideshow extends Ansel_View_Abstract {
         }
 
 
-        Horde::addScriptFile('prototype.js', 'horde', true);
         Horde::addScriptFile('effects.js', 'horde', true);
         Horde::addScriptFile('stripe.js', 'horde', true);
         Horde::addScriptFile('slideshow.js', 'ansel', true);
index 06b7269..af30393 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Ansel_Widget_Actions:: class to wrap the display of gallery actions
  *
- * $Horde: ansel/lib/Widget/Actions.php,v 1.54 2009/07/27 17:07:34 mrubinsk Exp $
- *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
index ae33827..126f47f 100644 (file)
@@ -3,8 +3,6 @@
  * Ansel_Widget:: class wraps the display of widgets to be displayed in various
  * Ansel_Views.
  *
- * $Horde: ansel/lib/Widget.php,v 1.10 2009/06/19 22:32:18 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 364705e..3164d97 100644 (file)
@@ -41,7 +41,6 @@ class Ansel_Widget_Geodata extends Ansel_Widget_Base
     {
         global $ansel_storage;
 
-        Horde::addScriptFile('prototype.js', 'horde');
         Horde::addScriptFile('popup.js', 'horde');
 
         $geodata = $ansel_storage->getImagesGeodata($this->_params['images']);
index d38f2b4..313fde9 100644 (file)
@@ -1,17 +1,10 @@
 <?php
 /**
  * XPPublisher Wizard
- *
- * $Horde: ansel/lib/XPPublisher.php,v 1.3 2009/01/14 19:22:06 mrubinsk Exp $
- *
- * @package Ansel
- */
-
-/**
  * Builds a "Publish this file/folder to the web" handler for Windows XP+.
  *
  * @package Ansel
- * @author Chuck Hagenbuch <chuck@horde.org>
+ * @author  Chuck Hagenbuch <chuck@horde.org>
  */
 class Horde_XPPublisher {
 
@@ -39,7 +32,6 @@ class Horde_XPPublisher {
      */
     function sendRegFile($appKey, $displayName, $description, $href, $icon)
     {
-        require_once 'Horde/Browser.php';
         $browser = Horde_Browser::singleton();
         $browser->downloadHeaders('install_registry.reg', 'application/octet-stream');
 
index 2511c3a..cdfe0b3 100644 (file)
@@ -2,17 +2,14 @@
 /**
  * Ansel external API interface.
  *
- * $Horde: ansel/lib/api.php,v 1.139 2009/07/28 20:16:50 jan Exp $
- *
  * Copyright 2004-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.
  *
- * @author Jan Schneider <jan@horde.org>
- * @author Chuck Hagenbuch <chuck@horde.org>
- * @author Michael J. Rubinsky <mrubinsk@horde.org>
- *
+ * @author  Jan Schneider <jan@horde.org>
+ * @author  Chuck Hagenbuch <chuck@horde.org>
+ * @author  Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
 
index 87ba99b..3f0cd10 100644 (file)
@@ -20,12 +20,20 @@ require_once dirname(__FILE__) . '/base.load.php';
 // Load the Horde Framework core, and set up inclusion paths.
 require_once HORDE_BASE . '/lib/core.php';
 
-// Registry
-$registry = Horde_Registry::singleton();
+// Registry.
+$s_ctrl = 0;
+switch (Horde_Util::nonInputVar('imp_session_control')) {
+case 'readonly':
+    $s_ctrl = Horde_Registry::SESSION_READONLY;
+    break;
+}
+$registry = Horde_Registry::singleton($s_ctrl);
+
+// Authentication
 try {
     $registry->pushApp('ansel', array('check_perms' => (Horde_Util::nonInputVar('ansel_authentication') != 'none'), 'logintasks' => true));
 } catch (Horde_Exception $e) {
-        Horde_Auth::authenticationFailureRedirect('ansel', $e);
+    Horde_Auth::authenticationFailureRedirect('ansel', $e);
 }
 $conf = $GLOBALS['conf'];
 define('ANSEL_TEMPLATES', $registry->get('templates'));
@@ -34,9 +42,6 @@ define('ANSEL_TEMPLATES', $registry->get('templates'));
 $GLOBALS['notification'] = Horde_Notification::singleton();
 $GLOBALS['notification']->attach('status');
 
-// Ansel base libraries.
-require_once ANSEL_BASE . '/lib/Ansel.php';
-
 // Create a cache object if we need it.
 if ($conf['ansel_cache']['usecache']) {
     $GLOBALS['cache'] = Horde_Cache::singleton($conf['cache']['driver'],
index 533dc8e..75b739e 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/lib/prefs.php,v 1.4 2009/06/10 00:33:03 mrubinsk Exp $
- *
  * Copyright 2008-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 298849f..c6484d3 100755 (executable)
@@ -1,5 +1,4 @@
 <?xml version="1.0" ?>
-<!-- $Horde: ansel/locale/en_US/help.xml,v 1.5 2006/10/29 18:02:19 chuck Exp $ -->
 <help>
 
 <entry id="overview">
index a98ee94..f1d22b7 100755 (executable)
@@ -1,5 +1,4 @@
 <?xml version="1.0" ?>
-<!-- $Horde: ansel/locale/es_ES/help.xml,v 1.1 2008/03/21 00:28:27 jan Exp $ -->
 <help>
 
 <entry id="overview">
index 05d513f..83e950d 100755 (executable)
@@ -1,5 +1,4 @@
 <?xml version="1.0"?>
-<!-- $Horde: ansel/locale/fi_FI/help.xml,v 1.2 2008/02/22 13:35:50 jan Exp $ -->
 <help>
   <entry id="overview" md5="df2fe059a57c3b7fb286dd279e155bad" state="uptodate">
   <title>Yleiskuva</title>
index 3313b10..4eb0b29 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/map_edit.php,v 1.30 2009/07/30 16:18:59 mrubinsk Exp $
- *
  * Copyright 2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -9,14 +7,13 @@
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
-@define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+
+require_once dirname(__FILE__) . '/lib/base.php';
 
 /* Script includes */
 Horde::addExternalScriptFile('http://maps.google.com/maps?file=api&v=2&sensor=false&key=' . $GLOBALS['conf']['api']['googlemaps'], 'ansel');
-Horde::addScriptFile('prototype.js', 'horde');
-Horde::addScriptFile('googlemap.js');
-Horde::addScriptFile('googlemap_edit.js');
+Horde::addScriptFile('googlemap.js', 'ansel');
+Horde::addScriptFile('googlemap_edit.js', 'ansel');
 
 $image_id = Horde_Util::getFormData('image');
 
index 540d2e1..36a5335 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/perms.php,v 1.27 2009/07/08 18:28:40 slusarz Exp $
- *
  * Copyright 2002-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
 
-$fieldsList['show'] = 0;
-$fieldsList['read'] = 1;
-$fieldsList['edit'] = 2;
-$fieldsList['delete'] = 3;
+$fieldsList = array(
+    'show' => 0,
+    'read' => 1,
+    'edit' => 2,
+    'delete' => 3
+);
 
-define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
 require_once 'Horde/Group.php';
 
-$groups = &Group::singleton();
+$groups = Group::singleton();
 $auth = Horde_Auth::singleton($conf['auth']['driver']);
 
 $form = null;
index c989427..3760849 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/preview.php,v 1.20 2009/07/13 17:18:38 mrubinsk Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,8 +8,7 @@
  * @author Michael Rubinsky <mrubinsk@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
 $imageId = Horde_Util::getFormData('image');
 $image = &$ansel_storage->getImage($imageId);
 if (is_a($image, 'PEAR_Error')) {
index 337c166..db7e481 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/protect.php,v 1.4 2009/06/10 05:24:00 slusarz Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 3b82a1c..6c35fe0 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * Report offensive content
  *
- * $Horde: ansel/report.php,v 1.7 2009/06/10 00:33:01 mrubinsk Exp $
- *
  * Copyright 2007-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
index 6b4118b..f6bbcc6 100644 (file)
@@ -4,15 +4,13 @@
  * and not a prettythumb since we have no way of knowing what the client
  * requesting this will be viewing the image on.
  *
- * $Horde: ansel/rss.php,v 1.55 2009/07/11 20:25:54 mrubinsk Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  * @package Ansel
  */
 
-$session_control = 'readonly';
+$ansel_session_control = 'readonly';
 require_once dirname(__FILE__) . '/lib/base.php';
 require_once ANSEL_BASE . '/lib/version.php';
 
@@ -143,7 +141,7 @@ if (empty($rss)) {
             $images = $ansel_storage->getRecentImages($galleries);
             if (!is_a($images, 'PEAR_Error') && count($images)) {
                 require_once('Horde/Identity.php');
-                $owner = &Identity::singleton('none', $id);
+                $owner = Identity::singleton('none', $id);
                 $name = $owner->getValue('fullname');
                 $author = $owner->getValue('from_addr');
                 if (!$name) {
@@ -173,7 +171,6 @@ if (empty($rss)) {
         break;
 
     case 'tag':
-        require_once ANSEL_BASE . '/lib/Tags.php';
         $tag_id = array_values(Ansel_Tags::getTagIds(array($id)));
         $images = Ansel_Tags::searchTagsById($tag_id, 10, 0, 'images');
         $tag_id = array_pop($tag_id);
index 8c67bf2..0deb7a9 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/env php
 <?php
 /**
-* $Horde: ansel/scripts/all_images_exif_to_tags.php,v 1.9 2009/07/08 18:28:47 slusarz Exp $
-*
 * Bare bones script to auto append an image's exif fields to it's tags.
 *
 * See the enclosed file COPYING for license information (GPL). If you
@@ -10,11 +8,9 @@
 *
 * @author Michael J. Rubinsky <mrubinsk@horde.org>
 */
-@define('AUTH_HANDLER', true);
-@define('HORDE_BASE', dirname(__FILE__) . '/../..');
-@define('ANSEL_BASE', HORDE_BASE . '/ansel');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/../../lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
@@ -24,10 +20,9 @@ if (!Horde_Cli::runningFromCLI()) {
 
 // Load the CLI environment.
 Horde_Cli::init();
-$cli = &Horde_Cli::singleton();
+$cli = Horde_Cli::singleton();
 
 /* Command line options */
-require_once 'Console/Getopt.php';
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:f:',
                               array('help', 'username=', 'password=', 'fields='));
 
@@ -67,6 +62,7 @@ foreach ($opts as $opt) {
     }
 }
 
+$ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
 
 // Login to horde if username & password are set.
index 260dd52..9568c7e 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/php
 <?php
 /**
-* $Horde: ansel/scripts/ansel.php,v 1.29 2009/07/30 19:50:16 mrubinsk Exp $
-*
 * This script interfaces with Ansel via the command-line
 *
 * See the enclosed file COPYING for license information (GPL). If you
@@ -10,10 +8,9 @@
 *
 * @author Vijay Mahrra <webmaster@stain.net>
 */
-@define('HORDE_BASE', dirname(__FILE__) . '/../..');
-@define('ANSEL_BASE', HORDE_BASE . '/ansel');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/../../lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
@@ -23,14 +20,13 @@ if (!Horde_Cli::runningFromCLI()) {
 
 // Load the CLI environment.
 Horde_Cli::init();
-$cli = &Horde_Cli::singleton();
+$cli = Horde_Cli::singleton();
 
 // Load Ansel.
 $ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
 
 // We accept the user name on the command-line.
-require_once 'Console/Getopt.php';
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(),
                               'hu:p:lc:g:a:d:t:',
                               array('help', 'username=', 'password=', 'list',
index 9a104a0..bc08260 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/php
 <?php
 /**
- * $Horde: ansel/scripts/garbage_collection.php,v 1.8 2009/07/30 19:50:16 mrubinsk Exp $
- *
  * This script looks for images in the VFS that have no pointer in the
  * database. Any non-referenced images it finds get moved to a garbage
  * folder in Ansel's VFS directory.
@@ -10,10 +8,9 @@
  * Make sure to run this as a user who has full permissions on the VFS
  * directory.
  */
-@define('ANSEL_BASE', dirname(__FILE__) . '/..');
-@define('HORDE_BASE', ANSEL_BASE . '/..');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/../../lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
@@ -27,8 +24,6 @@ Horde_Cli::init();
 
 $ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
-require_once 'VFS.php';
-require_once 'Console/Getopt.php';
 
 // Default arguments.
 $move = false;
@@ -55,7 +50,7 @@ foreach ($opts as $opt) {
     }
 }
 
-$vfs = &VFS::singleton($conf['vfs']['type'], Horde::getDriverConfig('vfs', $conf['vfs']['type']));
+$vfs = VFS::singleton($conf['vfs']['type'], Horde::getDriverConfig('vfs', $conf['vfs']['type']));
 $vfspath = '.horde/ansel/';
 $garbagepath = $vfspath . 'garbage/';
 
index e79cbf1..0aa22e5 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/php -q
 <?php
 /**
-* $Horde: ansel/scripts/recursive_import.php,v 1.15 2009/07/30 19:50:16 mrubinsk Exp $
-*
 * This script interfaces with Ansel via the command-line
 *
 * See the enclosed file COPYING for license information (GPL). If you
@@ -10,10 +8,9 @@
 *
 * @author Vijay Mahrra <webmaster@stain.net>
 */
-@define('HORDE_BASE', dirname(__FILE__) . '/../..');
-@define('ANSEL_BASE', HORDE_BASE . '/ansel');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/../../lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
@@ -23,14 +20,13 @@ if (!Horde_Cli::runningFromCLI()) {
 
 // Load the CLI environment.
 Horde_Cli::init();
-$cli = &Horde_Cli::singleton();
+$cli = Horde_Cli::singleton();
 
 // Load Ansel.
 $ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
 
 // We accept the user name on the command-line.
-require_once 'Console/Getopt.php';
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:lc:g:a:d:k',
                               array('help', 'username=', 'password=', 'dir=', 'keep'));
 
index 3033ea3..34c041b 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/env php
 <?php
 /**
-* $Horde: ansel/scripts/remote_import.php,v 1.16 2009/06/10 19:57:52 slusarz Exp $
-*
 * This script allows for adding images to an Ansel install using an RPC
 * interface. This script requires Horde's CLI and RPC libraries along with
 * PEAR's Console_Getopt library.  You will need to make sure that those
 * @author Michael J. Rubinsky <mrubinsk@horde.org>
 */
 
-/* Edit this to include your horde libs if they are not in your path */
-ini_set('include_path', '/var/www/pear' . PATH_SEPARATOR . ini_get('include_path'));
-
-/* Horde autoloading */
-require_once 'Horde/Autoloader.php';
+require_once dirname(__FILE__) . '/../lib/base.load.php';
+require_once HORDE_BASE . '/lib/core.php';
 
 /* Horde_CLI */
 if (!Horde_Cli::runningFromCLI()) {
     exit("Must be run from the command line\n");
 }
 Horde_Cli::init();
-$cli = &Horde_Cli::singleton();
+$cli = Horde_Cli::singleton();
 
 /* Command line options */
 $ret = Console_Getopt::getopt(Console_Getopt::readPHPArgv(), 'hu:p:g:s:d:kr:zl',
index f1194f9..7679857 100644 (file)
@@ -1,5 +1,3 @@
--- $Horde: ansel/scripts/sql/ansel.pgsql.sql,v 1.11 2009/07/06 19:55:20 mrubinsk Exp $
-
 CREATE TABLE ansel_images (
     image_id             INT NOT NULL,
     gallery_id           INT NOT NULL,
index 22fbc42..af7444a 100644 (file)
@@ -1,5 +1,3 @@
--- $Horde: ansel/scripts/sql/ansel.sql,v 1.38 2009/07/07 17:13:50 mrubinsk Exp $
-
 CREATE TABLE ansel_images (
     image_id             INT NOT NULL,
     gallery_id           INT NOT NULL,
index eb8bb4a..ad09895 100644 (file)
@@ -8,13 +8,10 @@
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
-@define('AUTH_HANDLER', true);
-@define('HORDE_BASE', dirname(__FILE__) . '/../../../');
-@define('ANSEL_BASE', HORDE_BASE . '/ansel');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/../../lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
-require_once 'Horde/CLI.php';
 
 // Make sure no one runs this from the web.
 if (!Horde_CLI::runningFromCLI()) {
@@ -23,8 +20,9 @@ if (!Horde_CLI::runningFromCLI()) {
 
 // Load the CLI environment.
 Horde_CLI::init();
-$cli = &Horde_CLI::singleton();
+$cli = Horde_CLI::singleton();
 
+$ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
 
 // First update the tables
index b1ff722..b962db2 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/env php
 <?php
 /**
-* $Horde: ansel/scripts/upgrades/2008-09-16_add_original_date_values.php,v 1.3 2009/07/30 19:50:16 mrubinsk Exp $
-*
 * Bare bones script to populate the ansel_images.image_original_date field with
 * either the exif DateTimeOriginal field, or the
 * ansel_images.image_uploaded_date value if the exif field is not present.
 *
 * @author Michael J. Rubinsky <mrubinsk@horde.org>
 */
-@define('HORDE_BASE', dirname(__FILE__) . '/../../../');
-@define('ANSEL_BASE', HORDE_BASE . '/ansel');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/../../lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
@@ -25,7 +22,7 @@ if (!Horde_Cli::runningFromCLI()) {
 
 // Load the CLI environment.
 Horde_Cli::init();
-$cli = &Horde_Cli::singleton();
+$cli  Horde_Cli::singleton();
 
 $ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
index e69bf93..c57f8d2 100644 (file)
@@ -1,5 +1,3 @@
--- $Horde: ansel/scripts/upgrades/2008-12-5_add_geolocation_tables.sql,v 1.1 2008/12/05 19:42:23 mrubinsk Exp $
-
 CREATE TABLE ansel_images_geolocation (
     image_id INT NOT NULL,
     image_latitude varchar(32),
index 9453599..cd88494 100755 (executable)
@@ -8,10 +8,9 @@
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
-@define('HORDE_BASE', dirname(__FILE__) . '/../../../');
-@define('ANSEL_BASE', HORDE_BASE . '/ansel');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/../../base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
@@ -21,7 +20,7 @@ if (!Horde_Cli::runningFromCLI()) {
 
 // Load the CLI environment.
 Horde_Cli::init();
-$cli = &Horde_Cli::singleton();
+$cli = Horde_Cli::singleton();
 
 $ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
@@ -47,4 +46,4 @@ foreach ($results as $image) {
 // Add the location column.
 $sql = 'ALTER TABLE ansel_images_geolocation ADD COLUMN image_location VARCHAR(255)';
 $ansel_db->exec($sql);
-$cli->message('Done.', 'cli.success');
\ No newline at end of file
+$cli->message('Done.', 'cli.success');
index d9d73df..85b4b33 100644 (file)
@@ -8,10 +8,9 @@
  *
  * @author Michael J. Rubinsky <mrubinsk@horde.org>
  */
-@define('HORDE_BASE', dirname(__FILE__) . '/../../../');
-@define('ANSEL_BASE', HORDE_BASE . '/ansel');
 
 // Do CLI checks and environment setup first.
+require_once dirname(__FILE__) . '/lib/base.load.php';
 require_once HORDE_BASE . '/lib/core.php';
 
 // Make sure no one runs this from the web.
@@ -21,7 +20,7 @@ if (!Horde_Cli::runningFromCLI()) {
 
 // Load the CLI environment.
 Horde_Cli::init();
-$cli = &Horde_Cli::singleton();
+$cli = Horde_Cli::singleton();
 
 $ansel_authentication = 'none';
 require_once ANSEL_BASE . '/lib/base.php';
index b239320..11eaf7d 100644 (file)
@@ -8,7 +8,6 @@ if ($browser->getPlatform() == 'win' && Horde::showService('help')) {
 }
 
 if (!empty($haveImages)) {
-    Horde::addScriptFile('prototype.js', 'horde', true);
     Horde::addScriptFile('effects.js', 'horde', true);
     Horde::addScriptFile('carousel.js', 'ansel', true);
 }
@@ -177,4 +176,4 @@ Event.observe(window, "resize", resized);
 }
 
 </style>
-<?php endif;?>
\ No newline at end of file
+<?php endif;?>
index 5de965b..5ac1597 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/test.php,v 1.27 2009/07/13 20:39:08 mrubinsk Exp $
- *
  * Copyright 2003-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -11,7 +9,8 @@
  */
 
 /* Include Horde's core.php file. */
-include_once '../lib/core.php';
+require_once dirname(__FILE__) . '/lib/base.load.php';
+include_once HORDE_BASE . '/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
@@ -22,16 +21,16 @@ if (!class_exists('Horde_String')) {
 }
 
 /* Initialize the Horde_Test:: class. */
-if (!is_readable('../lib/Test.php')) {
+if (!is_readable(HORDE_BASE . '/lib/Test.php')) {
     echo 'ERROR: You must install Horde before running this script.';
     exit;
 }
-require_once '../lib/Test.php';
+require_once HORDE_BASE . '/lib/Test.php';
 $horde_test = new Horde_Test;
 
 /* Ansel version. */
 $module = 'Ansel';
-require_once './lib/version.php';
+require_once ANSEL_BASE . '/lib/version.php';
 $module_version = ANSEL_VERSION;
 
 /* Ansel configuration files. */
@@ -46,8 +45,8 @@ require TEST_TEMPLATES . 'version.inc';
 /* Display versions of other Horde applications. */
 $app_list = array(
     'horde' => array(
-        'error' => 'Ansel requires at least Horde 3.2.2',
-        'version' => '3.2.2'
+        'error' => 'Ansel requires at least Horde 4.0',
+        'version' => '4.0'
     ),
     'agora' => array(
         'error' => 'Agora provides the ability for users to comment on images.',
@@ -75,7 +74,7 @@ $module_list = array(
     'zip' => array(
         'descrip' => 'Zip Support',
         'required' => false,
-        'error' => 'Ansel can make use of PHP\'s Zip extension for more efficiently processing uploaded ZIP files..'
+        'error' => 'Ansel can make use of PHP\'s Zip extension for more efficiently processing uploaded ZIP files.'
     ),
     'opencv' => array(
         'descrip' => 'OpenCV Library',
index 2710d00..9d94b7a 100644 (file)
@@ -1,7 +1,3 @@
-/**
- * $Horde: ansel/themes/screen.css,v 1.82 2009/07/16 19:20:55 mrubinsk Exp $
- */
-
 /* Table CSS. */
 th {
     text-align: left;
index a5e52ac..1d7eab1 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/view.php,v 1.111 2009/06/10 00:33:01 mrubinsk Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,8 +8,7 @@
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
 
-@define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+require_once dirname(__FILE__) . '/lib/base.php';
 
 $viewname = basename(Horde_Util::getFormData('view', 'Gallery'));
 include_once ANSEL_BASE . '/lib/Views/' . $viewname . '.php';
index 1817249..d23efa4 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 /**
- * $Horde: ansel/xppublish.php,v 1.50 2009/07/08 18:28:40 slusarz Exp $
- *
  * Copyright 2001-2009 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
@@ -10,9 +8,8 @@
  * @author Chuck Hagenbuch <chuck@horde.org>
  */
 
-@define('AUTH_HANDLER', true);
-@define('ANSEL_BASE', dirname(__FILE__));
-require_once ANSEL_BASE . '/lib/base.php';
+$ansel_authentication = 'none';
+require_once dirname(__FILE__) . '/lib/base.php';
 require_once ANSEL_BASE . '/lib/XPPublisher.php';
 
 $cmd = Horde_Util::getFormData('cmd');