// (as opposed to one on top of the other).
   // But for more than two languages, side by
   // side is not possible, cause not enough real estate
   $show_langs_side_by_side = true;
}


foreach ( array_reverse($pages) as $id => $info ) {
	$page = $info['pageName'];
	$section = 'wiki page';

	$renderer = new WikiRenderer($info, $user);
	$renderer->applyPermissions();

	if ( $tiki_p_view == 'y' ) {
		$renderer->runSetups();

		$contents[] = $smarty->fetch('tiki-show_page.tpl');

		if ( $id === count($pages) - 1 )
			$renderer->restoreAll();
	}
}

$contents = array_reverse($contents);

$smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW');
$smarty->assign('side_by_side', $show_langs_side_by_side);
$smarty->assign('excluded', $excluded);
$smarty->assign('content', $contents);
$smarty->assign('mid', 'tiki-all_languages.tpl');
Example #2
0
    $smarty->assign('lock', false);
}
// If not locked and last version is user version then can undo
$smarty->assign('canundo', 'n');
if ($info["flag"] != 'L' && ($tiki_p_edit == 'y' && $info["user"] == $user || $tiki_p_remove == 'y')) {
    $smarty->assign('canundo', 'y');
}
if ($tiki_p_admin_wiki == 'y') {
    $smarty->assign('canundo', 'y');
}
if (isset($_REQUEST['pagenum']) && $_REQUEST['pagenum'] > 0) {
    $pageRenderer->setPageNumber((int) $_REQUEST['pagenum']);
}
$pageRenderer->useRaw();
include_once 'tiki-section_options.php';
$pageRenderer->runSetups();
ask_ticket('index-raw');
// Display the Index Template
$smarty->assign('dblclickedit', 'y');
// If the url has the param "download", ask the browser to download it (instead of displaying it)
if (isset($_REQUEST['download']) && $_REQUEST['download'] !== 'n') {
    if (isset($_REQUEST["filename"])) {
        $filename = $_REQUEST['filename'];
    } else {
        $filename = $page;
    }
    $filename = str_replace(array('?', "'", '"', ':', '/', '\\'), '_', $filename);
    // clean some bad chars
    header("Content-type: text/plain; charset=utf-8");
    header("Content-Disposition: attachment; filename=\"{$filename}\"");
}