Commit 4b5f487f authored by changi67's avatar changi67

[MOD] Identation + Copyright

parent 9b9273a7
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-lastchanges.php,v 1.19.2.1 2007-11-08 21:31:12 ricks99 Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
// $Id: /cvsroot/tikiwiki/tiki/tiki-lastchanges.php,v 1.19.2.1 2007-11-08 21:31:12 ricks99 Exp $
$section = 'wiki page';
require_once ('tiki-setup.php');
include_once ('lib/wiki/histlib.php');
$auto_query_args = array('sort_mode', 'offset', 'find', 'days');
$smarty->assign('headtitle',tra('Last Changes'));
$smarty->assign('headtitle', tra('Last Changes'));
if ($prefs['feature_wiki'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_wiki");
$smarty->assign('msg', tra("This feature is disabled") . ": feature_wiki");
$smarty->display("error.tpl");
die;
}
if ($prefs['feature_lastChanges'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_lastChanges");
$smarty->assign('msg', tra("This feature is disabled") . ": feature_lastChanges");
$smarty->display("error.tpl");
die;
}
if($tiki_p_view != 'y') {
if ($tiki_p_view != 'y') {
$smarty->assign('errortype', 401);
$smarty->assign('msg',tra("Permission denied you cannot view this page"));
$smarty->assign('msg', tra("Permission denied you cannot view this page"));
$smarty->display("error.tpl");
die;
die;
}
if (!isset($_REQUEST["find"])) {
$findwhat = '';
} else {
$findwhat = $_REQUEST["find"];
}
$smarty->assign('find', $findwhat);
if (!isset($_REQUEST["days"])) {
$days = 1;
} else {
$days = $_REQUEST["days"];
}
if (!isset($_REQUEST["sort_mode"])) {
$sort_mode = 'lastModif_desc';
} else {
$sort_mode = $_REQUEST["sort_mode"];
}
$smarty->assign_by_ref('days', $days);
$smarty->assign_by_ref('findwhat', $findwhat);
$smarty->assign_by_ref('sort_mode', $sort_mode);
if (!isset($_REQUEST["offset"])) {
$offset = 0;
} else {
$offset = $_REQUEST["offset"];
}
$smarty->assign_by_ref('offset', $offset);
// Get a list of last changes to the Wiki database
$more = 0;
$lastchanges = $histlib->get_last_changes($days, $offset, $maxRecords, $sort_mode, $findwhat);
$smarty->assign_by_ref('cant_records', $lastchanges["cant"]);
// If there're more records then assign next_offset
$cant_pages = ceil($lastchanges["cant"] / $maxRecords);
$smarty->assign_by_ref('cant_pages', $cant_pages);
$smarty->assign('actual_page', 1 + ($offset / $maxRecords));
if ($lastchanges["cant"] > ($offset + $maxRecords)) {
$smarty->assign('next_offset', $offset + $maxRecords);
} else {
$smarty->assign('next_offset', -1);
}
if ($offset > 0) {
$smarty->assign('prev_offset', $offset - $maxRecords);
} else {
$smarty->assign('prev_offset', -1);
}
$smarty->assign_by_ref('lastchanges', $lastchanges["data"]);
ask_ticket('lastchanges');
include_once ('tiki-section_options.php');
// disallow robots to index page:
$smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW');
// Display the template
$smarty->assign('mid', 'tiki-lastchanges.tpl');
$smarty->display("tiki.tpl");
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-layout_options.php,v 1.8 2007-03-06 19:29:49 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: /cvsroot/tikiwiki/tiki/tiki-layout_options.php,v 1.8 2007-03-06 19:29:49 sylvieg Exp $
//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
header("location: index.php");
exit;
if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
header("location: index.php");
exit;
}
$section_top_bar = $section . '_top_bar';
$section_bot_bar = $section . '_bot_bar';
$section_left_column = $section . '_left_column';
$section_right_column = $section . '_right_column';
......
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-likepages.php,v 1.17 2007-10-12 07:55:28 nyloth Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
// $Id: /cvsroot/tikiwiki/tiki/tiki-likepages.php,v 1.17 2007-10-12 07:55:28 nyloth Exp $
$section = 'wiki page';
require_once ('tiki-setup.php');
include_once ('lib/wiki/wikilib.php');
if ($prefs['feature_wiki'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_wiki");
$smarty->assign('msg', tra("This feature is disabled") . ": feature_wiki");
$smarty->display("error.tpl");
die;
}
if ($prefs['feature_likePages'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_likePages");
$smarty->assign('msg', tra("This feature is disabled") . ": feature_likePages");
$smarty->display("error.tpl");
die;
}
// Get the page from the request var or default it to HomePage
if (!isset($_REQUEST["page"])) {
$smarty->assign('msg', tra("No page indicated"));
$smarty->display("error.tpl");
die;
} else {
$page = $_REQUEST["page"];
$smarty->assign_by_ref('page', $_REQUEST["page"]);
}
if (!($info = $tikilib->get_page_info($page))) {
$smarty->assign('msg', tra('Page cannot be found'));
$smarty->display('error.tpl');
die;
}
// Now check permissions to access this page
$tikilib->get_perm_object( $page, 'wiki page', $info);
$tikilib->get_perm_object($page, 'wiki page', $info);
if ($tiki_p_view != 'y') {
$smarty->assign('errortype', 401);
$smarty->assign('msg', tra("Permission denied you cannot view pages like this page"));
$smarty->display("error.tpl");
die;
}
$likepages = $wikilib->get_like_pages($page);
// If the page doesn't exist then display an error
if (!$tikilib->page_exists($page)) {
if(count($likepages) == 1 ) {
header ("Status: 402 Found"); /* PHP3 */
header ("HTTP/1.0 402 Found"); /* PHP4 */
header("Location: tiki-index.php?page=$likepages[0]");
die;
}
$smarty->assign('page_exists', 'n');
if( count($likepages) <1 ) {
header ("Status: 404 Not Found"); /* PHP3 */
header ("HTTP/1.0 404 Not Found"); /* PHP4 */
$smarty->assign('headtitle',tra("Page cannot be found"));
$smarty->assign('errortitle',tra("Page cannot be found")." (404)");
$smarty->assign('errortype', '404');
$smarty->display("error.tpl");
die;
}
if (count($likepages) == 1) {
header("Status: 402 Found"); /* PHP3 */
header("HTTP/1.0 402 Found"); /* PHP4 */
header("Location: tiki-index.php?page=$likepages[0]");
die;
}
$smarty->assign('page_exists', 'n');
if (count($likepages) < 1) {
header("Status: 404 Not Found"); /* PHP3 */
header("HTTP/1.0 404 Not Found"); /* PHP4 */
$smarty->assign('headtitle', tra("Page cannot be found"));
$smarty->assign('errortitle', tra("Page cannot be found") . " (404)");
$smarty->assign('errortype', '404');
$smarty->display("error.tpl");
die;
}
}
$smarty->assign_by_ref('likepages', $likepages);
ask_ticket('likepages');
// disallow robots to index page:
$smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW');
include_once ('tiki-section_options.php');
// Display the template
$smarty->assign('mid', 'tiki-likepages.tpl');
$smarty->display("tiki.tpl");
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_articles.php,v 1.38.2.2 2008-03-21 23:06:51 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_articles.php,v 1.38.2.2 2008-03-21 23:06:51 sylvieg Exp $
$section = 'cms';
require_once ('tiki-setup.php');
include_once ('lib/articles/artlib.php');
$smarty->assign('headtitle',tra('List Articles'));
$smarty->assign('headtitle', tra('List Articles'));
if ($prefs['feature_articles'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_articles");
$smarty->assign('msg', tra("This feature is disabled") . ": feature_articles");
$smarty->display("error.tpl");
die;
}
// Now check permissions to access this page
if($tiki_p_read_article != 'y') {
if ($tiki_p_read_article != 'y') {
$smarty->assign('errortype', 401);
$smarty->assign('msg',tra("Permission denied you cannot view pages"));
$smarty->assign('msg', tra("Permission denied you cannot view pages"));
$smarty->display("error.tpl");
die;
die;
}
if (isset($_REQUEST["remove"])) {
if ($tiki_p_remove_article != 'y') {
$smarty->assign('errortype', 401);
$smarty->assign('msg', tra("Permission denied you cannot remove articles"));
$smarty->display("error.tpl");
die;
}
$area = 'delarticle';
if ($prefs['feature_ticketlib2'] != 'y' or (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"]))) {
key_check($area);
$area = 'delarticle';
if ($prefs['feature_ticketlib2'] != 'y' or (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"]))) {
key_check($area);
$artlib->remove_article($_REQUEST["remove"]);
} else {
key_get($area);
}
} else {
key_get($area);
}
}
// This script can receive the thresold
// for the information as the number of
// days to get in the log 1,3,4,etc
......@@ -56,9 +44,7 @@ if (!isset($_REQUEST["sort_mode"])) {
} else {
$sort_mode = $_REQUEST["sort_mode"];
}
$smarty->assign_by_ref('sort_mode', $sort_mode);
// If offset is set use it if not then use offset =0
// use the maxRecords php variable to set the limit
// if sortMode is not set then use lastModif_desc
......@@ -74,37 +60,31 @@ if (!empty($_REQUEST['maxRecords'])) {
$maxRecords = $maxRecords;
}
$smarty->assign_by_ref('maxRecords', $maxRecords);
if( ($tiki_p_admin == 'y') || ($tiki_p_admin_cms == 'y') ) {
$date_max = '';
} elseif(isset($_SESSION["thedate"])) {
if($_SESSION["thedate"]<$tikilib->now) {
// If the session is older then set it to today
// so you can list articles
$date_max = $tikilib->now;
} else {
$date_max = $_SESSION["thedate"];
}
if (($tiki_p_admin == 'y') || ($tiki_p_admin_cms == 'y')) {
$date_max = '';
} elseif (isset($_SESSION["thedate"])) {
if ($_SESSION["thedate"] < $tikilib->now) {
// If the session is older then set it to today
// so you can list articles
$date_max = $tikilib->now;
} else {
$date_max = $_SESSION["thedate"];
}
} else {
$date_max = $tikilib->now;
}
if (isset($_REQUEST["find"])) {
$find = $_REQUEST["find"];
} else {
$find = '';
}
$smarty->assign('find', $find);
if (!isset($_REQUEST["type"])) {
$_REQUEST["type"] = '';
}
if (!isset($_REQUEST["topic"])) {
$_REQUEST["topic"] = '';
}
if (!isset($_REQUEST["categId"])) {
$_REQUEST["categId"] = '';
}
......@@ -115,27 +95,23 @@ $smarty->assign('find_topic', $_REQUEST["topic"]);
$smarty->assign('find_type', $_REQUEST["type"]);
$smarty->assign('find_categId', $_REQUEST["categId"]);
$smarty->assign('find_lang', $_REQUEST['lang']);
$visible_only='y';
if( ($tiki_p_admin == 'y') || ($tiki_p_admin_cms == 'y') ) { $visible_only="n"; }
$visible_only = 'y';
if (($tiki_p_admin == 'y') || ($tiki_p_admin_cms == 'y')) {
$visible_only = "n";
}
// Get a list of last changes to the Wiki database
$listpages = $tikilib->list_articles($offset, $maxRecords, $sort_mode, $find, 0, $date_max, $user, $_REQUEST["type"], $_REQUEST["topic"], $visible_only, '', $_REQUEST["categId"], '', '', $_REQUEST['lang']);
// If there're more records then assign next_offset
$smarty->assign_by_ref('cant', $listpages['cant']);
$smarty->assign_by_ref('listpages', $listpages["data"]);
//print_r($listpages["data"]);
$topics = $artlib->list_topics();
$smarty->assign_by_ref('topics', $topics);
$types = $artlib->list_types();
$smarty->assign_by_ref('types', $types);
if ($prefs['feature_categories'] == 'y') {
global $categlib; include_once ('lib/categories/categlib.php');
global $categlib;
include_once ('lib/categories/categlib.php');
$categories = $categlib->get_all_categories_ext();
$smarty->assign_by_ref('categories', $categories);
}
......@@ -144,25 +120,20 @@ if ($prefs['feature_multilingual'] == 'y') {
$languages = $tikilib->list_languages(false, 'y');
$smarty->assign_by_ref('languages', $languages);
}
if ($tiki_p_edit_article != 'y' && $tiki_p_remove_article != 'y') { //check one editable
foreach ($listpages['data'] as $page) {
foreach($listpages['data'] as $page) {
if ($page['author'] == $user && $page['creator_edit'] == 'y') {
$smarty->assign('oneEditPage', 'y');
break;
}
}
}
include_once ('tiki-section_options.php');
if ($prefs['feature_mobile'] =='y' && isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'mobile') {
if ($prefs['feature_mobile'] == 'y' && isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'mobile') {
include_once ("lib/hawhaw/hawtikilib.php");
HAWTIKI_list_articles($listpages, $tiki_p_read_article, $offset, $maxRecords, $listpages["cant"]);
}
ask_ticket('list-articles');
// Display the template
$smarty->assign('mid', 'tiki-list_articles.tpl');
$smarty->display("tiki.tpl");
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_banners.php,v 1.16 2007-10-12 07:55:28 nyloth Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_banners.php,v 1.16 2007-10-12 07:55:28 nyloth Exp $
require_once ('tiki-setup.php');
include_once ('lib/banners/bannerlib.php');
if (!isset($bannerlib)) {
$bannerlib = new BannerLib($dbTiki);
}
// CHECK FEATURE BANNERS HERE
if ($prefs['feature_banners'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_banners");
$smarty->assign('msg', tra("This feature is disabled") . ": feature_banners");
$smarty->display("error.tpl");
die;
}
// IF NOT LOGGED aND NOT ADMIN BAIL OUT
if ($tiki_p_admin != 'y') {
$smarty->assign('errortype', 401);
......@@ -30,7 +22,6 @@ if ($tiki_p_admin != 'y') {
$smarty->display("error.tpl");
die;
}
if (isset($_REQUEST["remove"])) {
if ($tiki_p_admin_banners != 'y') {
$smarty->assign('errortype', 401);
......@@ -38,15 +29,14 @@ if (isset($_REQUEST["remove"])) {
$smarty->display("error.tpl");
die;
}
$area = 'delbanner';
if ($prefs['feature_ticketlib2'] != 'y' or (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"]))) {
key_check($area);
$area = 'delbanner';
if ($prefs['feature_ticketlib2'] != 'y' or (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"]))) {
key_check($area);
$bannerlib->remove_banner($_REQUEST["remove"]);
} else {
key_get($area);
}
} else {
key_get($area);
}
}
// This script can receive the thresold
// for the information as the number of
// days to get in the log 1,3,4,etc
......@@ -56,9 +46,7 @@ if (!isset($_REQUEST["sort_mode"])) {
} else {
$sort_mode = $_REQUEST["sort_mode"];
}
$smarty->assign_by_ref('sort_mode', $sort_mode);
// If offset is set use it if not then use offset =0
// use the maxRecords php variable to set the limit
// if sortMode is not set then use lastModif_desc
......@@ -67,26 +55,19 @@ if (!isset($_REQUEST["offset"])) {
} else {
$offset = $_REQUEST["offset"];
}
$smarty->assign_by_ref('offset', $offset);
if (isset($_REQUEST["find"])) {
$find = $_REQUEST["find"];
} else {
$find = '';
}
$smarty->assign('find', $find);
// Get a list of last changes to the Wiki database
$who = 'admin';
$listpages = $bannerlib->list_banners($offset, $maxRecords, $sort_mode, $find, $who);
$smarty->assign_by_ref('cant_pages', $listpages["cant"]);
$smarty->assign_by_ref('listpages', $listpages["data"]);
ask_ticket('list-banners');
// Display the template
$smarty->assign('mid', 'tiki-list_banners.tpl');
$smarty->display("tiki.tpl");
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_blogs.php,v 1.30.2.1 2007-11-08 21:38:33 ricks99 Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_blogs.php,v 1.30.2.1 2007-11-08 21:38:33 ricks99 Exp $
$section = 'blogs';
require_once ('tiki-setup.php');
include_once ('lib/blogs/bloglib.php');
$smarty->assign('headtitle',tra('Blogs'));
$smarty->assign('headtitle', tra('Blogs'));
if ($prefs['feature_categories'] == 'y') {
include_once ('lib/categories/categlib.php');
}
if ($prefs['feature_blogs'] != 'y') {
$smarty->assign('msg', tra("This feature is disabled").": feature_blogs");
$smarty->assign('msg', tra("This feature is disabled") . ": feature_blogs");
$smarty->display("error.tpl");
die;
}
if ($tiki_p_read_blog != 'y') {
$smarty->assign('errortype', 401);
$smarty->assign('msg', tra("Permission denied you can not view this section"));
$smarty->display("error.tpl");
die;
}
if (isset($_REQUEST["remove"])) {
// Check if it is the owner
$data = $tikilib->get_blog($_REQUEST["remove"]);
if ($data["user"] != $user) {
if ($tiki_p_blog_admin != 'y') {
$smarty->assign('errortype', 401);
......@@ -46,16 +33,14 @@ if (isset($_REQUEST["remove"])) {
die;
}
}
$area = 'delblog';
if ($prefs['feature_ticketlib2'] != 'y' or (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"]))) {
key_check($area);
$area = 'delblog';
if ($prefs['feature_ticketlib2'] != 'y' or (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"]))) {
key_check($area);
$bloglib->remove_blog($_REQUEST["remove"]);
} else {
key_get($area);
}
} else {
key_get($area);
}
}
// This script can receive the thresold
// for the information as the number of
// days to get in the log 1,3,4,etc
......@@ -65,9 +50,7 @@ if (!isset($_REQUEST["sort_mode"])) {
} else {
$sort_mode = $_REQUEST["sort_mode"];
}
$smarty->assign_by_ref('sort_mode', $sort_mode);
// If offset is set use it if not then use offset =0
// use the maxRecords php variable to set the limit
// if sortMode is not set then use lastModif_desc
......@@ -76,42 +59,32 @@ if (!isset($_REQUEST["offset"])) {
} else {
$offset = $_REQUEST["offset"];
}
$smarty->assign_by_ref('offset', $offset);
if (isset($_REQUEST["find"])) {
$find = $_REQUEST["find"];
} else {
$find = '';
}
$smarty->assign('find', $find);
// Get a list of last changes to the Wiki database
$listpages = $tikilib->list_blogs($offset, $maxRecords, $sort_mode, $find);
$temp_max = count($listpages["data"]);
for ($i = 0; $i < $temp_max; $i++) {
if ($userlib->object_has_one_permission($listpages["data"][$i]["blogId"], 'blog')) {
$listpages["data"][$i]["individual"] = 'y';
// blogs that user cannot read are not displayed at all
$listpages["data"][$i]["individual_tiki_p_read_blog"] = 'y';
if ($userlib->object_has_permission($user, $listpages["data"][$i]["blogId"], 'blog', 'tiki_p_blog_post')) {
$listpages["data"][$i]["individual_tiki_p_blog_post"] = 'y';
} else {
$listpages["data"][$i]["individual_tiki_p_blog_post"] = 'n';
}
if ($userlib->object_has_permission($user, $listpages["data"][$i]["blogId"], 'blog', 'tiki_p_create_blogs')) {
$listpages["data"][$i]["individual_tiki_p_create_blogs"] = 'y';
} else {
$listpages["data"][$i]["individual_tiki_p_create_blogs"] = 'n';
}
if ($tiki_p_admin == 'y' || $userlib->object_has_permission($user, $listpages["data"][$i]["blogId"], 'blog', 'tiki_p_blog_admin'))
{
if ($tiki_p_admin == 'y' || $userlib->object_has_permission($user, $listpages["data"][$i]["blogId"], 'blog', 'tiki_p_blog_admin')) {
$listpages["data"][$i]["individual_tiki_p_create_blogs"] = 'y';
$listpages["data"][$i]["individual_tiki_p_blog_post"] = 'y';
}
......@@ -119,19 +92,14 @@ for ($i = 0; $i < $temp_max; $i++) {
$listpages["data"][$i]["individual"] = 'n';
}
}
$smarty->assign_by_ref('listpages', $listpages["data"]);
$smarty->assign_by_ref('cant', $listpages["cant"]);
include_once ('tiki-section_options.php');
if ($prefs['feature_mobile'] =='y' && isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'mobile') {
if ($prefs['feature_mobile'] == 'y' && isset($_REQUEST['mode']) && $_REQUEST['mode'] == 'mobile') {
include_once ("lib/hawhaw/hawtikilib.php");
HAWTIKI_list_blogs($listpages, $tiki_p_read_blog);
}
ask_ticket('list-blogs');
// Display the template
$smarty->assign('mid', 'tiki-list_blogs.tpl');
$smarty->display("tiki.tpl");
<?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_cache.php,v 1.14 2007-10-12 07:55:28 nyloth Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// (c) Copyright 2002-2009 by authors of the Tiki Wiki/CMS/Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization
// $Id: /cvsroot/tikiwiki/tiki/tiki-list_cache.php,v 1.14 2007-10-12 07:55:28 nyloth Exp $
require_once ('tiki-setup.php');
if ($tiki_p_admin != 'y') {
$smarty->assign('errortype', 401);
$smarty->assign('msg', tra("You do not have permission to use this feature"));
$smarty->display("error.tpl");
die;
}