| 1 |
marcusb-guest |
79 |
<?php
|
| 2 |
|
|
|
| 3 |
|
|
// $Header: /cvsroot/tikiwiki/tiki/tiki-admin_include_directory.php,v 1.7.2.3 2005/04/03 16:52:49 ohertel 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 |
|
|
//this script may only be included - so its better to die if called directly.
|
| 10 |
|
|
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
|
| 11 |
|
|
header("location: index.php");
|
| 12 |
|
|
exit;
|
| 13 |
|
|
}
|
| 14 |
|
|
|
| 15 |
|
|
if (isset($_REQUEST["directory"])) {
|
| 16 |
|
|
check_ticket('admin-inc-directory');
|
| 17 |
|
|
if (isset($_REQUEST["directory_validate_urls"]) && $_REQUEST["directory_validate_urls"] == "on") {
|
| 18 |
|
|
$tikilib->set_preference('directory_validate_urls', 'y');
|
| 19 |
|
|
$smarty->assign('directory_validate_urls', 'y');
|
| 20 |
|
|
} else {
|
| 21 |
|
|
$tikilib->set_preference('directory_validate_urls', 'n');
|
| 22 |
|
|
$smarty->assign('directory_validate_urls', 'n');
|
| 23 |
|
|
}
|
| 24 |
|
|
|
| 25 |
|
|
if (isset($_REQUEST["directory_cool_sites"]) && $_REQUEST["directory_cool_sites"] == "on") {
|
| 26 |
|
|
$tikilib->set_preference('directory_cool_sites', 'y');
|
| 27 |
|
|
$smarty->assign('directory_cool_sites', 'y');
|
| 28 |
|
|
} else {
|
| 29 |
|
|
$tikilib->set_preference('directory_cool_sites', 'n');
|
| 30 |
|
|
$smarty->assign('directory_cool_sites', 'n');
|
| 31 |
|
|
}
|
| 32 |
|
|
|
| 33 |
|
|
$tikilib->set_preference('directory_columns', $_REQUEST["directory_columns"]);
|
| 34 |
|
|
$tikilib->set_preference('directory_links_per_page', $_REQUEST["directory_links_per_page"]);
|
| 35 |
|
|
$tikilib->set_preference('directory_open_links', $_REQUEST["directory_open_links"]);
|
| 36 |
|
|
$smarty->assign('directory_columns', $_REQUEST['directory_columns']);
|
| 37 |
|
|
$smarty->assign('directory_links_per_page', $_REQUEST['directory_links_per_page']);
|
| 38 |
|
|
$smarty->assign('directory_open_links', $_REQUEST['directory_open_links']);
|
| 39 |
|
|
}
|
| 40 |
|
|
ask_ticket('admin-inc-directory');
|
| 41 |
|
|
?>
|