Current File : /home/escuelai/public_html/mantis/news_view_page.php
<?php
# MantisBT - A PHP based bugtracking system

# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.

/**
 * News View Page
 * @package MantisBT
 * @copyright Copyright 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
 * @copyright Copyright 2002  MantisBT Team - mantisbt-dev@lists.sourceforge.net
 * @link http://www.mantisbt.org
 *
 * @uses core.php
 * @uses access_api.php
 * @uses config_api.php
 * @uses constant_inc.php
 * @uses gpc_api.php
 * @uses html_api.php
 * @uses lang_api.php
 * @uses news_api.php
 * @uses print_api.php
 */

require_once( 'core.php' );
require_api( 'access_api.php' );
require_api( 'config_api.php' );
require_api( 'constant_inc.php' );
require_api( 'gpc_api.php' );
require_api( 'html_api.php' );
require_api( 'lang_api.php' );
require_api( 'news_api.php' );
require_api( 'print_api.php' );

news_ensure_enabled();

$f_news_id = gpc_get_int( 'news_id', null );

layout_page_header();

layout_page_begin( 'main_page.php' );
?>
<div class="col-md-12 col-xs-12">
<?php
if( $f_news_id !== null ) {
	$t_project_id = news_get_field( $f_news_id, 'project_id' );
	if( news_is_private( $f_news_id ) ) {
		access_ensure_project_level(	config_get( 'private_news_threshold' ),
						$t_project_id );
	} else {
		access_ensure_project_level( config_get( 'view_bug_threshold', null, null, $t_project_id ), $t_project_id );
	}

	print_news_string_by_news_id( $f_news_id );
}
?>

<div class="space-10"></div>
	<?php print_link_button( 'news_list_page.php', lang_get( 'archives' ) ); ?>
</div>

<?php
layout_page_end();