1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
| 1. / 2. / ...
if (!empty($cs_main['mod']))
$cs_main['def_title'] = $cs_main['def_title'] . ' - ' . ucfirst($cs_main['mod'] . ' - ' . $axx_file['view_title']);
---in die news/access.php eintragen:---
if( $cs_main['action']=='view' )
{
$cs_get = cs_get('id');
$cs_news_id = empty($cs_get['id']) ? 0 : $cs_get['id'];
$from = 'news nws INNER JOIN {pre}_categories cat ON nws.categories_id = cat.categories_id';
$select = 'nws.news_headline AS news_headline, nws.news_public AS news_public, cat.categories_access AS categories_access';
$cs_news = cs_sql_select(__FILE__,$from,$select,"news_id = '" . $cs_news_id . "'");
$pub = $cs_news['categories_access'] > $account['access_news'] ? 0 : $cs_news['news_public'];
if(!empty($pub)) {
$axx_file['view_title'] = cs_secure($cs_news['news_headline']);
}
} |