function profilefields_change($uid) { $tpl = new tpl('user/profil_edit'); $q = db_query("SELECT `id`, `func` FROM `prefix_profilefields` LEFT JOIN `prefix_userfields` ON `prefix_userfields`.`fid` = `prefix_profilefields`.`id` AND `prefix_userfields`.`uid` = " . $uid . " WHERE `func` != 3 AND `func` != 2 ORDER BY `pos`"); while ($r = db_fetch_assoc($q)) { $ar = ProfilefieldRegistry::get($r["func"], $r["id"]); $ar["val"] = ProfilefieldRegistry::getUserValue($r["func"], $r["id"], $uid); ProfilefieldRegistry::renderProfile($ar); } ProfilefieldRegistry::clearStack(); }
* @copyright (C) 2000-2010 ilch.de * @version $Id$ */ defined('main') or die('no direct access'); defined('admin') or die('only admin access'); // ajax-nachladen der optionen für das profilfeld if ($menu->get(1) == "loadtype") { if ($menu->get(2) == "new") { // echo "<td class='Cmite'>hallo</td><td class='Cnorm'></td>"; $func = escape($menu->get(3), "integer"); ProfilefieldRegistry::renderAdmin(array("func" => $func)); } else { if ($menu->get(2) == "edit") { $func = escape($menu->get(4), "integer"); $id = escape($menu->get(3), "integer"); $ar = ProfilefieldRegistry::get($func, $id); ProfilefieldRegistry::renderAdmin($ar); } } // damit der rest nicht mehr ausgegeben wird die; } $design = new design('Ilch Admin-Control-Panel :: Profilfelder', '', 2); $design->header(); $_POST['show'] = @escape($_POST['show'], 'string'); $_POST['func'] = @escape($_POST['func'], 'integer'); $_POST['sid'] = @escape($_POST['sid'], 'integer'); $show = true; if (isset($_POST['sub']) and chk_antispam('adminuser_action', true)) { if (empty($_POST['sid'])) { ProfilefieldRegistry::insert($_POST);