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 8require_once('tiki-setup.php'); 9$access->check_permission('tiki_p_admin'); 10include_once('lib/directory/dirlib.php'); 11$tmp1 = isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : ""; 12$tmp2 = isset($_SERVER["PHP_SELF"]) ? $_SERVER["PHP_SELF"] : ""; 13// concat all, remove the // between server and path and then 14// remove the name of the script itself: 15$url = $tmp1 . dirname($tmp2); 16$info = []; 17$info["name"] = $prefs['browsertitle']; 18$info["description"] = ''; 19$info["url"] = $url; 20$info["country"] = 'None'; 21$info["isValid"] = 'n'; 22$smarty->assign_by_ref('info', $info); 23$countries = $tikilib->get_flags(); 24$smarty->assign_by_ref('countries', $countries); 25// Display the template 26$smarty->assign('mid', 'tiki-register_site.tpl'); 27$smarty->display("tiki.tpl"); 28