1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8//this script may only be included - so its better to die if called directly. 9if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) { 10 header('location: index.php'); 11 exit; 12} 13 14// Get list of available languages 15$languages = []; 16$langLib = TikiLib::lib('language'); 17$languages = $langLib->list_languages(false, null, true); 18$smarty->assign_by_ref('languages', $languages); 19 20if (isset($_SESSION['tikifeedback'])) { 21 foreach ($_SESSION['tikifeedback'] as $item) { 22 if ($item['name'] === 'available_languages' || $item['name'] === 'restrict_language') { 23 TikiLib::lib('cache')->empty_cache('temp_cache'); 24 break; 25 } 26 } 27} 28