<?php
/**
* XS2:
*
* This file is developed by Solutecs, LLC for the purpose of the company
* and is provided together with XS2 Framework as and inherent part of the
* system. This file can be used on the terms of License Agreement.
*
* +7 (495) 585-0833 / 13 Rusakovskaya street, Moscow 107140 Russia
*
* @link http://www.solutecs.com
* @copyright ©1998-2007 Solutecs, LLC
* @package XS2-MODCOM
* @subpackage proc-dating
* @version 1.XX
*/
// Подключаем работу с пользователями
xs2Fetch(array('mod'=>'users', 'met'=>'lib'));
if ($currentUser['NodId']) {
$formId = xs2InsertNode(array('About' => '',
'Subject' => '',
'subjAgeBegin' => 0,
'subjAgeEnd' => 0,
'subjSex' => 0,
'NName' => $currentUser['NName'],
'NType' => 'form',
'NFlag' => 1,
'ParId'=>1,
'User'=>array($currentUser['NodId'])));
if ($formId) {
header('location: '.xs2Href(array('mod'=>$_THE['QUE']['MOD'],
'obj'=>$_THE['QUE']['OBJ'],
'met'=>'edit',
'atr'=>$formId)));
}
else {
header('location: '.xs2Href(array('mod'=>$_THE['QUE']['MOD'],
'mod'=>$_THE['QUE']['OBJ'],
'met'=>'index')));
}
}
?>
|
|