Location: PHPKode > projects > Buzzword > buzzword-0.8.12/gallery/config.inc
<?php

/*
 * buzzword
 * Copyright (c) 2003 Jon Tai
 *
 * $Id: config.inc 360 2004-04-28 20:26:18Z jon $
 *
 * This file is part of buzzword.
 *
 * buzzword is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * buzzword is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with buzzword; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

if (!isset($BUZZWORD_PAGE_TITLE))
    $BUZZWORD_PAGE_TITLE = 'gallery';

if (!isset($BUZZWORD_BREADCRUMBS))
    $BUZZWORD_BREADCRUMBS[] = "<a href=\"index.php\">$BUZZWORD_PAGE_TITLE</a>";

$BUZZWORD_HOOKS['stylesheet'][] = array(300, '../gallery/style.css');
$BUZZWORD_HOOKS['javascript'][] = array(300, '../gallery/scripts.js');
$BUZZWORD_HOOKS['navigation'][] = array(300, '../gallery/index.php', 'gallery');
$BUZZWORD_HOOKS['toolbar'][] = array(300, 'gallery_toolbar_hook');
$BUZZWORD_HOOKS['longtext'][] = array(300, 'gallery_longtext_hook');
$BUZZWORD_HOOKS['relevance'][] = array(300, 'gallery_gallery', 'galleries');
$BUZZWORD_HOOKS['relevance'][] = array(301, 'gallery_image', 'images');

// common configuration
require_once '../includes/config.inc';

// paths to jhead, imagemagick, and the images directory
set_default_pref('gallery_jhead_path', 's', '/usr/bin/jhead');
set_default_pref('gallery_convert_path', 's', '/usr/bin/convert');
set_default_pref('gallery_image_path', 's', '../gallery/galleries');

// image/thumbnail size/quality
set_default_pref('gallery_image_width', 'i', 480);
set_default_pref('gallery_image_quality', 'i', 85);
set_default_pref('gallery_thumb_width', 'i', 120);
set_default_pref('gallery_thumb_quality', 'i', 45);

// slideshow speed (in ms)
set_default_pref('gallery_slideshow_speed', 'i', 3000);

// common functions
require_once '../gallery/common.inc';

// schema
require_once '../gallery/schema.inc';

// "gallery_gallery" object
require_once '../gallery/gallery.inc';

// "gallery_image" object
require_once '../gallery/image.inc';

// "gallery_image_comment" object
require_once '../gallery/image-comment.inc';

// sidebar functions
require_once '../gallery/sidebar.inc';

?>
Return current item: Buzzword