/[pkg-tikiwiki]/trunk/tiki-page.php
ViewVC logotype

Contents of /trunk/tiki-page.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11 - (show annotations) (download)
Tue Jul 11 06:27:24 2006 UTC (6 years, 10 months ago) by marcusb-guest
File size: 1685 byte(s)
Imported into trunk (integration branch).
1 <?php
2
3 // $Header: /cvsroot/tikiwiki/tiki/tiki-page.php,v 1.9.2.3 2005/08/04 22:15:59 franck Exp $
4
5 // Copyright (c) 2002-2005, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
6 // All Rights Reserved. See copyright.txt for details and a complete list of authors.
7 // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
8
9 // Initialization
10 require_once ('tiki-setup.php');
11
12 include_once ('lib/htmlpages/htmlpageslib.php');
13 include_once ('lib/stats/statslib.php');
14
15 if ($feature_html_pages != 'y') {
16 $smarty->assign('msg', tra("This feature is disabled").": feature_html_pages");
17
18 $smarty->display("error.tpl");
19 die;
20 }
21
22 if ($tiki_p_view_html_pages != 'y') {
23 $smarty->assign('msg', tra("You do not have permission to use this feature"));
24
25 $smarty->display("error.tpl");
26 die;
27 }
28
29 if (!isset($_REQUEST["pageName"])) {
30 $smarty->assign('msg', tra("No page indicated"));
31
32 $smarty->display("error.tpl");
33 die;
34 }
35
36 $page_data = $htmlpageslib->get_html_page($_REQUEST["pageName"]);
37 $smarty->assign('type', $page_data["type"]);
38 $smarty->assign('refresh', $page_data["refresh"]);
39 $smarty->assign('pageName', $_REQUEST["pageName"]);
40 $parsed = $htmlpageslib->parse_html_page($_REQUEST["pageName"], $page_data["content"]);
41 $smarty->assign_by_ref('parsed', $parsed);
42
43 $section = 'html_pages';
44 include_once ('tiki-section_options.php');
45 if ($feature_theme_control == 'y') {
46 $cat_type = 'html page';
47 $cat_objid = $_REQUEST['pageName'];
48 include ('tiki-tc.php');
49 }
50
51 ask_ticket('html-page');
52 //add a hit
53 $statslib->stats_hit($_REQUEST['pageName'],"html_pages");
54
55 // Display the template
56 $smarty->assign('mid', 'tiki-page.tpl');
57 $smarty->display("tiki.tpl");
58
59 ?>

  ViewVC Help
Powered by ViewVC 1.1.5