File: browse.php

package info (click to toggle)
ansel1 1.1%2Bdebian0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,856 kB
  • ctags: 4,405
  • sloc: php: 18,135; xml: 359; sql: 241; makefile: 66
file content (28 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
 * $Horde: ansel/browse.php,v 1.11.2.1 2009-01-06 15:22:18 jan Exp $
 *
 * Copyright 2001-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.
 */

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(
    @unserialize($prefs->getValue('myansel_layout')),
    Horde::applicationUrl('browse_edit.php'),
    Horde::applicationUrl('browse.php', true));

$layout_html = $layout->toHtml();
$title = _("Photo Galleries");
Ansel_Tags::clearSearch();
require ANSEL_BASE . '/templates/common-header.inc';
require ANSEL_TEMPLATES . '/menu.inc';
echo '<div id="menuBottom"><a href="' . Horde::applicationUrl('browse_edit.php') . '">' . _("Add Content") . '</a></div><div class="clear">&nbsp;</div>';
echo $layout_html;
require $registry->get('templates', 'horde') . '/common-footer.inc';