0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
[
Home
]
File: group_tracker_ajax.php
<?php // (c) Copyright 2002-2011 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: group_tracker_ajax.php 34341 2011-05-10 12:02:58Z sept_7 $ require_once('tiki-setup.php'); include_once ('lib/wiki-plugins/wikiplugin_tracker.php'); $json_data = array(); $re = $userlib->get_group_info(isset($_REQUEST['chosenGroup']) ? $_REQUEST['chosenGroup'] : 'Registered'); if (!empty($re['usersTrackerId']) && !empty($re['registrationUsersFieldIds'])) { $json_data['res'] = wikiplugin_tracker('', array('trackerId' => $re['usersTrackerId'], 'fields' => $re['registrationUsersFieldIds'], 'showdesc' => 'y', 'showmandatory' => 'y', 'embedded' => 'y', 'action' => tra('Register'), 'registration' => 'n', 'formtag'=>'n')); } else { $json_data['res'] = $_REQUEST['chosenGroup']; $json_data['debug'] = $re; } header( 'Content-Type: application/json' ); $access->output_serialized($json_data);