File: view.php

package info (click to toggle)
kronolith2 2.3.4%2Bdebian0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 8,844 kB
  • ctags: 3,624
  • sloc: php: 14,808; xml: 2,112; sql: 553; makefile: 80; sh: 26
file content (21 lines) | stat: -rw-r--r-- 839 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
<?php
/**
 * $Horde: kronolith/view.php,v 1.8.2.4 2009/01/06 15:24:43 jan Exp $
 *
 * Copyright 2005-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 Chuck Hagenbuch <chuck@horde.org>
 */

require_once dirname(__FILE__) . '/lib/base.php';

$view = Kronolith::getView(Util::getFormData('view'));
if ($view) {
    $print_view = false;
    Kronolith::tabs(strtolower(str_replace('kronolith_view_', '', String::lower(get_class($view)))));
    $view->html();
    echo '<div style="display:none" id="view_vars" view="' . htmlspecialchars(Util::getFormData('view')) . '" timestamp="' . Kronolith::currentTimestamp() . '" print="' . Util::addParameter($view->link(), 'print', 1) . '">';
}