<?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-blog
* @version 1.XX
*/
xs2Fetch(array('mod'=>'users', 'met'=>'lib'));
xs2Fetch(array('mod'=>'blog', 'met'=>'lib'));
// Обработка формы поиска блога - переход к блогу, если он найден
if ($_POST['action'] == 'findBlog') {
$NName = $_POST['NName'];
$blog = array_shift(xs2GetNodes(array('condition'=>"NName='$NName'",
'NType'=>'blog',
'fields'=>'NodId, NName')));
if ($blog) {
header('location: '.xs2href(array('mod'=>'blog', 'obj'=>'blog',
'met'=>'show', 'atr'=> $blog['NodId'])));
exit();
}
}
?>
|
|