// $Id$ //this script may only be included - so its better to die if called directly. if (strpos($_SERVER['SCRIPT_NAME'], basename(__FILE__)) !== false) { header('location: index.php'); exit; } $list = new Tiki_Profile_List(); $sources = $list->getSources(); $parserlib = TikiLib::lib('parser'); $show_details_for = ""; if (isset($_REQUEST['show_details_for'])) { $show_details_for = $_REQUEST['show_details_for']; } $smarty->assign('show_details_for', $show_details_for); if ($prefs['profile_unapproved'] == 'y') { Tiki_Profile::enableDeveloperMode(); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { check_ticket('admin-inc-profiles'); if (isset($_POST['forget'], $_POST['pp'], $_POST['pd'])) { $profile = Tiki_Profile::fromNames($_POST['pd'], $_POST['pp']); $profile->removeSymbols(); $data = array(); foreach ($_POST as $key => $value) { if ($key != 'url' && $key != 'forget') { $data[$key] = $value; } } set_time_limit(0); $transaction = $tikilib->begin(); $installer = new Tiki_Profile_Installer();