Commit 5364195a authored by sylvieg's avatar sylvieg

[FIX] move section setting before setup

parent 1e5ec692
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors. // 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. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
$section = 'user_messages';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/messu/messulib.php'); include_once ('lib/messu/messulib.php');
...@@ -161,7 +162,6 @@ if ($prefs['messu_sent_size']>0) { ...@@ -161,7 +162,6 @@ if ($prefs['messu_sent_size']>0) {
$smarty->assign('cellsize', $cellsize); $smarty->assign('cellsize', $cellsize);
$smarty->assign('percentage', $percentage); $smarty->assign('percentage', $percentage);
$section = 'user_messages';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
include_once ('tiki-mytiki_shared.php'); include_once ('tiki-mytiki_shared.php');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'calendar';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/calendar/calendarlib.php'); include_once ('lib/calendar/calendarlib.php');
...@@ -195,7 +196,6 @@ $smarty->assign_by_ref('calendars', $calendars["data"]); ...@@ -195,7 +196,6 @@ $smarty->assign_by_ref('calendars', $calendars["data"]);
// $cat_type = 'calendar'; // $cat_type = 'calendar';
// $cat_objid = $_REQUEST["calendarId"]; // $cat_objid = $_REQUEST["calendarId"];
// include_once ("categorize_list.php"); // include_once ("categorize_list.php");
$section = 'calendar';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('admin-calendars'); ask_ticket('admin-calendars');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'newsletters';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/newsletters/nllib.php'); include_once ('lib/newsletters/nllib.php');
...@@ -284,7 +285,6 @@ $cat_type='newsletter'; ...@@ -284,7 +285,6 @@ $cat_type='newsletter';
$cat_objid = $_REQUEST["nlId"]; $cat_objid = $_REQUEST["nlId"];
include_once("categorize_list.php"); include_once("categorize_list.php");
*/ */
$section = 'newsletters';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('admin-nl-subsriptions'); ask_ticket('admin-nl-subsriptions');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'newsletters';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/newsletters/nllib.php'); include_once ('lib/newsletters/nllib.php');
...@@ -196,7 +197,6 @@ $cat_type='newsletter'; ...@@ -196,7 +197,6 @@ $cat_type='newsletter';
$cat_objid = $_REQUEST["nlId"]; $cat_objid = $_REQUEST["nlId"];
include_once("categorize_list.php"); include_once("categorize_list.php");
*/ */
$section = 'newsletters';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('admin-nl'); ask_ticket('admin-nl');
......
<?php <?php
// $Header$ // $Header$
$section = 'file_galleries';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/filegals/filegallib.php'); include_once ('lib/filegals/filegallib.php');
...@@ -302,7 +303,6 @@ for ($i = 0; $i < $temp_max; $i++) { ...@@ -302,7 +303,6 @@ for ($i = 0; $i < $temp_max; $i++) {
$smarty->assign_by_ref('galleries', $galleries["data"]); $smarty->assign_by_ref('galleries', $galleries["data"]);
$section = 'galleries';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
// disallow robots to index page: // disallow robots to index page:
......
...@@ -6,11 +6,8 @@ ...@@ -6,11 +6,8 @@
// All Rights Reserved. See copyright.txt for details and a complete list of authors. // 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. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'categories';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/categories/categlib.php'); include_once ('lib/categories/categlib.php');
...@@ -166,7 +163,6 @@ if ($offset > 0) { ...@@ -166,7 +163,6 @@ if ($offset > 0) {
$smarty->assign('prev_offset', -1); $smarty->assign('prev_offset', -1);
} }
$section = 'categories';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('browse-categories'); ask_ticket('browse-categories');
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
// Initialization // Initialization
$section = 'freetags';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/freetag/freetaglib.php'); include_once ('lib/freetag/freetaglib.php');
...@@ -168,7 +169,6 @@ if ($offset > 0) { ...@@ -168,7 +169,6 @@ if ($offset > 0) {
$smarty->assign('prev_offset', -1); $smarty->assign('prev_offset', -1);
} }
$section = 'freetags';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('browse-freetags'); ask_ticket('browse-freetags');
......
...@@ -273,7 +273,6 @@ if ($resultscale) { ...@@ -273,7 +273,6 @@ if ($resultscale) {
} }
$smarty->assign_by_ref('scaleinfo',$scaleinfo); $smarty->assign_by_ref('scaleinfo',$scaleinfo);
$section = 'galleries';
include_once('tiki-section_options.php'); include_once('tiki-section_options.php');
if ($prefs['feature_theme_control'] == 'y') { if ($prefs['feature_theme_control'] == 'y') {
......
...@@ -323,7 +323,6 @@ if($prefs['feature_user_watches'] == 'y' && $user && count($_SESSION['CalendarVi ...@@ -323,7 +323,6 @@ if($prefs['feature_user_watches'] == 'y' && $user && count($_SESSION['CalendarVi
} }
$section = 'calendar';
if ($prefs['feature_theme_control'] == 'y' and isset($_REQUEST['calIds'])) { if ($prefs['feature_theme_control'] == 'y' and isset($_REQUEST['calIds'])) {
$cat_type = "calendar"; $cat_type = "calendar";
$cat_objid = $_REQUEST['calIds'][0]; $cat_objid = $_REQUEST['calIds'][0];
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'calendar';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
require_once ('lib/calendar/calendarlib.php'); require_once ('lib/calendar/calendarlib.php');
...@@ -30,7 +31,6 @@ if (isset($_REQUEST["import"]) && isset($_REQUEST["calendarId"]) && isset($_FILE ...@@ -30,7 +31,6 @@ if (isset($_REQUEST["import"]) && isset($_REQUEST["calendarId"]) && isset($_FILE
$calendars = $calendarlib->list_calendars(); // no check perm as p_admin only $calendars = $calendarlib->list_calendars(); // no check perm as p_admin only
$smarty->assign_by_ref('calendars', $calendars['data']); $smarty->assign_by_ref('calendars', $calendars['data']);
$section = 'calendar';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
// disallow robots to index page: // disallow robots to index page:
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section='directory';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/directory/dirlib.php'); include_once ('lib/directory/dirlib.php');
...@@ -218,7 +219,6 @@ usort($countries, 'country_sort'); ...@@ -218,7 +219,6 @@ usort($countries, 'country_sort');
$smarty->assign_by_ref('countries', $countries); $smarty->assign_by_ref('countries', $countries);
// This page should be displayed with Directory section options // This page should be displayed with Directory section options
$section='directory';
include_once('tiki-section_options.php'); include_once('tiki-section_options.php');
ask_ticket('dir-add-site'); ask_ticket('dir-add-site');
......
<?php <?php
// Initialization // Initialization
$section = 'directory';
require_once('tiki-setup.php'); require_once('tiki-setup.php');
include_once('lib/directory/dirlib.php'); include_once('lib/directory/dirlib.php');
...@@ -70,7 +71,6 @@ $smarty->assign_by_ref('info',$info); ...@@ -70,7 +71,6 @@ $smarty->assign_by_ref('info',$info);
$countries = $tikilib->get_flags(); $countries = $tikilib->get_flags();
$smarty->assign_by_ref('countries',$countries); $smarty->assign_by_ref('countries',$countries);
$section = 'directory';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
$smarty->assign('save','y'); $smarty->assign('save','y');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'directory';
require_once('tiki-setup.php'); require_once('tiki-setup.php');
include_once('lib/directory/dirlib.php'); include_once('lib/directory/dirlib.php');
...@@ -147,7 +148,6 @@ if ($categ_info['allowSites'] == 'y') { ...@@ -147,7 +148,6 @@ if ($categ_info['allowSites'] == 'y') {
$smarty->assign_by_ref('items', $items["data"]); $smarty->assign_by_ref('items', $items["data"]);
} }
$section = 'directory';
include_once('tiki-section_options.php'); include_once('tiki-section_options.php');
// Related categs // Related categs
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'directory';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/directory/dirlib.php'); include_once ('lib/directory/dirlib.php');
...@@ -72,7 +73,6 @@ if ($offset > 0) { ...@@ -72,7 +73,6 @@ if ($offset > 0) {
$smarty->assign_by_ref('items', $items["data"]); $smarty->assign_by_ref('items', $items["data"]);
$smarty->assign_by_ref('cant', $items["cant"]); $smarty->assign_by_ref('cant', $items["cant"]);
$section = 'directory';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('dir-ranking'); ask_ticket('dir-ranking');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'directory';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/directory/dirlib.php'); include_once ('lib/directory/dirlib.php');
...@@ -75,7 +76,6 @@ if ($offset > 0) { ...@@ -75,7 +76,6 @@ if ($offset > 0) {
$smarty->assign_by_ref('items', $items["data"]); $smarty->assign_by_ref('items', $items["data"]);
$section = 'directory';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
// Display the template // Display the template
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'cms';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/articles/artlib.php'); include_once ('lib/articles/artlib.php');
...@@ -448,7 +449,6 @@ $smarty->assign('showtags', 'n'); ...@@ -448,7 +449,6 @@ $smarty->assign('showtags', 'n');
$smarty->assign('qtcycle', ''); $smarty->assign('qtcycle', '');
ask_ticket('edit-submission'); ask_ticket('edit-submission');
$section = 'cms';
$smarty->assign('section', $section); $smarty->assign('section', $section);
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
......
<?php <?php
// $Id: /cvsroot/tikiwiki/tiki/tiki-edit_topic.php,v 1.9 2007-10-12 07:55:27 nyloth Exp $ // $Id: /cvsroot/tikiwiki/tiki/tiki-edit_topic.php,v 1.9 2007-10-12 07:55:27 nyloth Exp $
$section = 'cms';
require_once('tiki-setup.php'); require_once('tiki-setup.php');
include_once('lib/articles/artlib.php'); include_once('lib/articles/artlib.php');
...@@ -63,7 +64,6 @@ if(isset($_REQUEST["edittopic"])) { ...@@ -63,7 +64,6 @@ if(isset($_REQUEST["edittopic"])) {
$smarty->assign_by_ref('errors', $errors); $smarty->assign_by_ref('errors', $errors);
} }
} }
$section = 'cms';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
// disallow robots to index page: // disallow robots to index page:
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'sheet';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
require_once ('lib/sheet/grid.php'); require_once ('lib/sheet/grid.php');
...@@ -98,7 +99,6 @@ $cat_type = 'sheet'; ...@@ -98,7 +99,6 @@ $cat_type = 'sheet';
$cat_objid = $_REQUEST["sheetId"]; $cat_objid = $_REQUEST["sheetId"];
include_once ("categorize_list.php"); include_once ("categorize_list.php");
$section = 'sheet';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('sheet'); ask_ticket('sheet');
// Display the template // Display the template
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors. // 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. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
$section = 'file_galleries';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/filegals/filegallib.php'); include_once ('lib/filegals/filegallib.php');
...@@ -109,7 +110,6 @@ $gal_info = array_merge($gal_info, array( ...@@ -109,7 +110,6 @@ $gal_info = array_merge($gal_info, array(
)); ));
$smarty->assign_by_ref('gal_info', $gal_info); $smarty->assign_by_ref('gal_info', $gal_info);
$section = 'file_galleries';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
if ($prefs['feature_theme_control'] == 'y') { if ($prefs['feature_theme_control'] == 'y') {
......
...@@ -78,7 +78,6 @@ if ($tiki_p_admin_forum != 'y') { ...@@ -78,7 +78,6 @@ if ($tiki_p_admin_forum != 'y') {
} }
$smarty->assign_by_ref('forum_info', $forum_info); $smarty->assign_by_ref('forum_info', $forum_info);
$section = 'forums';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
if ($prefs['feature_theme_control'] == 'y') { if ($prefs['feature_theme_control'] == 'y') {
......
...@@ -78,7 +78,6 @@ if ($tiki_p_admin_forum != 'y') { ...@@ -78,7 +78,6 @@ if ($tiki_p_admin_forum != 'y') {
} }
$smarty->assign_by_ref('forum_info', $forum_info); $smarty->assign_by_ref('forum_info', $forum_info);
$section = 'forums';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
if ($prefs['feature_theme_control'] == 'y') { if ($prefs['feature_theme_control'] == 'y') {
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'sheet';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
require_once ('lib/sheet/grid.php'); require_once ('lib/sheet/grid.php');
...@@ -46,7 +47,6 @@ while( $row = $result->fetchRow() ) ...@@ -46,7 +47,6 @@ while( $row = $result->fetchRow() )
$smarty->assign_by_ref( 'history', $data ); $smarty->assign_by_ref( 'history', $data );
$section = 'sheet';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('sheet'); ask_ticket('sheet');
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'sheet';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
require_once ('lib/sheet/grid.php'); require_once ('lib/sheet/grid.php');
...@@ -114,7 +115,6 @@ $cat_type = 'sheet'; ...@@ -114,7 +115,6 @@ $cat_type = 'sheet';
$cat_objid = $_REQUEST["sheetId"]; $cat_objid = $_REQUEST["sheetId"];
include_once ("categorize_list.php"); include_once ("categorize_list.php");
$section = 'sheet';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('sheet'); ask_ticket('sheet');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'wiki page';
require_once('tiki-setup.php'); require_once('tiki-setup.php');
if ($prefs['feature_ajax'] == "y") { if ($prefs['feature_ajax'] == "y") {
include_once('lib/ajax/ajaxlib.php'); include_once('lib/ajax/ajaxlib.php');
...@@ -247,7 +248,6 @@ if (empty($info["user"])) { ...@@ -247,7 +248,6 @@ if (empty($info["user"])) {
$smarty->assign_by_ref('lastUser', $info["user"]); $smarty->assign_by_ref('lastUser', $info["user"]);
$smarty->assign_by_ref('description', $info["description"]); $smarty->assign_by_ref('description', $info["description"]);
$section = 'wiki';
include_once('tiki-section_options.php'); include_once('tiki-section_options.php');
$smarty->assign('wiki_extras', 'y'); $smarty->assign('wiki_extras', 'y');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'wiki page';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/structures/structlib.php'); include_once ('lib/structures/structlib.php');
...@@ -167,7 +168,6 @@ if ($prefs['feature_wiki_comments'] == 'y') { ...@@ -167,7 +168,6 @@ if ($prefs['feature_wiki_comments'] == 'y') {
include_once ("comments.php"); include_once ("comments.php");
} }
$section = 'wiki';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('index-raw'); ask_ticket('index-raw');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'file_galleries';
require_once('tiki-setup.php'); require_once('tiki-setup.php');
if ( $prefs['feature_file_galleries'] != 'y' ) { if ( $prefs['feature_file_galleries'] != 'y' ) {
...@@ -736,7 +737,6 @@ $smarty->assign_by_ref('options_sortorder', $options_sortorder); ...@@ -736,7 +737,6 @@ $smarty->assign_by_ref('options_sortorder', $options_sortorder);
// Set section config // Set section config
$section = 'file_galleries';
include_once('tiki-section_options.php'); include_once('tiki-section_options.php');
// Theme control // Theme control
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
*/ */
// Initialization // Initialization
$section = 'games';
require_once('tiki-setup.php'); require_once('tiki-setup.php');
include_once('lib/games/gamelib.php'); include_once('lib/games/gamelib.php');
...@@ -255,7 +256,6 @@ if (isset($_REQUEST["remove"]) && $tiki_p_admin_games == 'y') { ...@@ -255,7 +256,6 @@ if (isset($_REQUEST["remove"]) && $tiki_p_admin_games == 'y') {
} }
} }
$section = 'games';
include_once('tiki-section_options.php'); include_once('tiki-section_options.php');
ask_ticket('list-games'); ask_ticket('list-games');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'cms';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/articles/artlib.php'); include_once ('lib/articles/artlib.php');
...@@ -123,7 +124,6 @@ if ($offset > 0) { ...@@ -123,7 +124,6 @@ if ($offset > 0) {
$smarty->assign('prev_offset', -1); $smarty->assign('prev_offset', -1);
} }
$section = 'cms';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
$smarty->assign_by_ref('listpages', $listpages["data"]); $smarty->assign_by_ref('listpages', $listpages["data"]);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'surveys';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/surveys/surveylib.php'); include_once ('lib/surveys/surveylib.php');
...@@ -103,7 +104,6 @@ if ($offset > 0) { ...@@ -103,7 +104,6 @@ if ($offset > 0) {
$smarty->assign_by_ref('channels', $channels["data"]); $smarty->assign_by_ref('channels', $channels["data"]);
$section = 'surveys';
include_once ('tiki-section_options.php'); include_once ('tiki-section_options.php');
ask_ticket('list-surveys'); ask_ticket('list-surveys');
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'trackers';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/trackers/trackerlib.php'); include_once ('lib/trackers/trackerlib.php');
...@@ -101,7 +102,6 @@ if ($offset > 0) { ...@@ -101,7 +102,6 @@ if ($offset > 0) {
$smarty->assign('prev_offset', -1); $smarty->assign('prev_offset', -1);
} }
$section = 'trackers';
include_once('tiki-section_options.php'); include_once('tiki-section_options.php');
$smarty->assign_by_ref('channels', $channels["data"]); $smarty->assign_by_ref('channels', $channels["data"]);
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// Initialization // Initialization
$section = 'quizzes';
require_once ('tiki-setup.php'); require_once ('tiki-setup.php');
include_once ('lib/quizzes/quizlib.php'); include_once ('lib/quizzes/quizlib.php');
...@@ -86,7 +87,6 @@ $smarty->assign_by_ref('result', $result); ...@@ -86,7 +87,6 @@ $smarty->assign_by_ref('result', $result);
$questions = $quizlib->get_user_quiz_questions($_REQUEST["userResultId"]); $questions = $quizlib->get_user_quiz_questions($_REQUEST["userResultId"]);
$smarty->assign('questions', $questions); $smarty->assign('questions', $questions);