<?php
/**
 * @version $Id: js_tags.php 281 2009-12-28 14:50:11Z roosit $
 * @package Abricos
 * @subpackage Blog
 * @copyright Copyright (C) 2008 Abricos All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @author Alexander Kuzmin (roosit@abricos.org)
 */

$query = Brick::$input->clean_gpc('p', 'query', TYPE_STR);

header('Content-type: text/plain');

$rows = CMSQBlog::TagAC(Brick::$db, $query);

while (($row = Brick::$db->fetch_array($rows))){
	print $row['ph']."\n";
}
exit;
	
?>