Esempio n. 1
0
<?php

// (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project
//
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $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') {