<?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
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(
<?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
*/
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'),
<?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">
* 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()
<?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(
'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
+);
<?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:
* 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...
<?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
*/
require_once dirname(__FILE__) . '/lib/base.php';
-require_once 'Horde/Form.php';
$vars = Horde_Variables::getDefaultVariables();
$gallery = $ansel_storage->getGallery($vars->get('gallery'));
<?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
* @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');
continue;
}
}
- require_once 'Horde/Date.php';
$newDate = new Horde_Date($vars->get('image_originalDate'));
$image->originalDate = (int)$newDate->timestamp();
$image->save();
$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);
$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';
/**
* 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
/**
* 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
}
}
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
/**
* 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
$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);
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';
/**
* 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
$notification->push(_("Cannot save photo signature"));
header('Location: ' . Horde::applicationUrl('faces/search/image.php'));
-exit;
\ No newline at end of file
+exit;
/**
* 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
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';
/**
* 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
$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);
/**
* 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
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';
/**
* 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
/**
* 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
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';
<?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
<?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
* @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) {
<?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
* @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');
true));
exit;
}
-}
\ No newline at end of file
+}
<?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
* @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. */
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'));
<?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
* @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')));
}
// 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,
* 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
* @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 */
/* 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();
$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();
$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);
/* 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);
<?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
<?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
$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);
<?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
<?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
<?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
<?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
<?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
<?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
<?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
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',
$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));
<?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
*
* 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.
*
// Cache the location locally?
if (update) {
- new Ajax.Request(this.options['updateEndpoint'],
+ new Ajax.Request(this.options['updateEndpoint'],
{
method: 'post',
parameters: {
/**
* 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 = {
* 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>
public function attach()
{
// Include the js
- Horde::addScriptFile('prototype.js', 'horde');
Horde::addScriptFile('slugcheck.js');
$url = $this->_getUrl('GallerySlugCheck', 'ansel', array('input' => 'slug'));
public function attach()
{
- Horde::addScriptFile('prototype.js', 'horde', true);
Horde::addScriptFile('autocomplete.js', 'horde', true);
Horde::addScriptFile('effects.js', 'horde', true);
public function attach()
{
// Include the js
- Horde::addScriptFile('prototype.js', 'horde');
Horde::addScriptFile('tagactions.js');
$url = $this->_getUrl('TagActions', 'ansel', array('input' => 'tags',
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));
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));
<?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
*/
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;
}
__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."),
$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');
!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;
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'];
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));
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;
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;
}
* 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 {
*/
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 {
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;
}
*/
function _exifToTags($fields = array())
{
- require_once 'Horde/Date.php';
-
$tags = array();
foreach ($fields as $field) {
if (!empty($this->_exif[$field])) {
$filename = $this->filename;
if ($view != 'full') {
- require_once 'Horde/Mime/Magic.php';
if ($ext = Horde_Mime_Magic::mimeToExt('image/' . $conf['image']['type'])) {
$filename .= '.' . $ext;
}
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();
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;
{
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.
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 {
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) {
*/
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);
}
if (count($json)) {
- require_once 'Horde/Serialize.php';
return Horde_Serialize::serialize($json, Horde_Serialize::JSON, Horde_Nls::getCharset());
} else {
return '';
/**
* 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
function _content()
{
- require_once 'Horde/UI/TagCloud.php';
require_once dirname(__FILE__) . '/../base.php';
- require_once ANSEL_BASE . '/lib/Tags.php';
global $registry;
* 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
/**
* 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
* 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
/**
* 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
/**
* 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
/**
* 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
{
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');
* 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>
* 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
$result['SubIFD']['MakerNote'][$tag_name] = $formated_data;
}
-}
\ No newline at end of file
+}
* 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
$result['SubIFD']['MakerNote'][$tag_name] = $formated_data;
}
-}
\ No newline at end of file
+}
<?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
$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);
<?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
*
* @author Chuck Hagenbuch <chuck@horde.org>
*/
-
-/** Horde_Form **/
-require_once 'Horde/Form.php';
-
class ImageForm extends Horde_Form {
var $_useFormToken = false;
return round($size, 2) . ' ' . $val;
}
-}
\ No newline at end of file
+}
<?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
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
*/
-
-/** Horde_Form **/
-require_once 'Horde/Form.php';
-
class ImageDateForm extends Horde_Form {
var $_useFormToken = false;
array('start_year' => 1900));
}
-}
\ No newline at end of file
+}
<?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.
*
<?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
*
* @author Chuck Hagenbuch <chuck@horde.org>
*/
-
-/** Horde_Form **/
-require_once 'Horde/Form.php';
-
class WatermarkForm extends Horde_Form {
var $_useFormToken = false;
$wva->setDefault($prefs->getValue('watermark_vertical'));
}
-}
\ No newline at end of file
+}
<?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/)
*
*
* @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 {
/**
/* Clear the image's faces */
if ($image->facesCount) {
- require_once ANSEL_BASE . '/lib/Faces.php';
Ansel_Faces::delete($image);
}
*/
function _setModeHelper()
{
- require_once ANSEL_BASE . '/lib/GalleryMode/Date.php';
$this->_modeHelper = new Ansel_GalleryMode_Date($this);
}
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 {
* 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
/* Clear the image's faces */
if ($image->facesCount) {
- require_once ANSEL_BASE . '/lib/Faces.php';
Ansel_Faces::delete($image);
}
* 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
return count($this->_thumbs);
}
-}
\ No newline at end of file
+}
/**
* 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 {
/**
return array_reverse($images);
}
-}
\ No newline at end of file
+}
/**
* 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
*/
/**
* 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
*/
/**
* 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
*/
/**
* 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
*/
/**
* 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
*/
/**
* 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
*
/**
* 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
*/
/**
* 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
*/
/**
* 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
*/
/**
* 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
*/
/**
* 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
$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."));
require_once 'Horde/Identity.php';
// Get user email
- $identity = &Identity::singleton('none', $user);
+ $identity = Identity::singleton('none', $user);
return $identity->getValue('from_addr');
}
/**
* 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
*/
/**
* 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
*/
/**
* 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
*/
* 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
{
}
-}
\ No newline at end of file
+}
/**
* 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
{
}
-}
\ No newline at end of file
+}
/**
* 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
* 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 {
/**
* 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
*/
* 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
*/
/**
* 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
$json[] = $data;
}
- require_once 'Horde/Serialize.php';
return Horde_Serialize::serialize($json, Horde_Serialize::JSON, Horde_Nls::getCharset());
}
* 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
/**
* 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
}
-}
\ No newline at end of file
+}
/**
* 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
return $html;
}
-}
\ No newline at end of file
+}
/**
* 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
/**
* 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
}
-}
\ No newline at end of file
+}
<?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.
*
}
/* 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();
/**
* 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
/* 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 */
* 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
* 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
// 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);
}
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);
* 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
{
// 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);
}
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();
}
/**
* 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
*/
/** 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 {
/**
/* 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);
}
/* 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')));
<?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.
*
*
* @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..
*/
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);
}
/**
* 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
*/
}
- Horde::addScriptFile('prototype.js', 'horde', true);
Horde::addScriptFile('effects.js', 'horde', true);
Horde::addScriptFile('stripe.js', 'horde', true);
Horde::addScriptFile('slideshow.js', 'ansel', true);
/**
* 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
*/
* 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
{
global $ansel_storage;
- Horde::addScriptFile('prototype.js', 'horde');
Horde::addScriptFile('popup.js', 'horde');
$geodata = $ansel_storage->getImagesGeodata($this->_params['images']);
<?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 {
*/
function sendRegFile($appKey, $displayName, $description, $href, $icon)
{
- require_once 'Horde/Browser.php';
$browser = Horde_Browser::singleton();
$browser->downloadHeaders('install_registry.reg', 'application/octet-stream');
/**
* 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
*/
// 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'));
$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'],
<?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
<?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">
<?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">
<?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>
<?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
*
* @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');
<?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;
<?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
* @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')) {
<?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
/**
* 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
* 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';
$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) {
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);
#!/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
*
* @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.
// 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='));
}
}
+$ansel_authentication = 'none';
require_once ANSEL_BASE . '/lib/base.php';
// Login to horde if username & password are set.
#!/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
*
* @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.
// 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',
#!/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.
* 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.
$ansel_authentication = 'none';
require_once ANSEL_BASE . '/lib/base.php';
-require_once 'VFS.php';
-require_once 'Console/Getopt.php';
// Default arguments.
$move = false;
}
}
-$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/';
#!/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
*
* @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.
// 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'));
#!/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',
--- $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,
--- $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,
*
* @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()) {
// 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
#!/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.
// 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';
--- $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),
*
* @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.
// 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';
// 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');
*
* @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.
// 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';
}
if (!empty($haveImages)) {
- Horde::addScriptFile('prototype.js', 'horde', true);
Horde::addScriptFile('effects.js', 'horde', true);
Horde::addScriptFile('carousel.js', 'ansel', true);
}
}
</style>
-<?php endif;?>
\ No newline at end of file
+<?php endif;?>
<?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
*/
/* 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
}
/* 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. */
/* 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.',
'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',
-/**
- * $Horde: ansel/themes/screen.css,v 1.82 2009/07/16 19:20:55 mrubinsk Exp $
- */
-
/* Table CSS. */
th {
text-align: left;
<?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
* @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';
<?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
* @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');