- Автор темы
- Добавить закладку
- #41
Beavis
Значит ПХП скрипт там не всунуть. Вот ставь вот ентот. Там можно. Атак - низя((
Значит ПХП скрипт там не всунуть. Вот ставь вот ентот. Там можно. Атак - низя((
if ( is_array( $ibforums->cache['bbcode'] ) and count( $ibforums->cache['bbcode'] ) )
{
# XSS Clean
$t = preg_replace( "#javascript\:#is", "java script:", $t );
$t = str_replace( "`" , "`" , $t );
Скачать|Download Invision Power Board 2.1.0 Release Candidate 1 ( IPB 2.1.0 RC 1 )
Пароль: hack-all.net
Скачать|Download
Скачать|Download // ------------------------------------------------
// Are we showing the sepcial category?
// ------------------------------------------------
if( $user_cat )
{
if( $ibforums->vars['gallery_album_where'] == 'cat' )
{
$where = " AND i.album_id=0 ";
}
else if ( $ibforums->vars['gallery_album_where'] == 'album' )
{
$where = " AND i.category_id=0 ";
}
$DB->cache_add_query( 'get_cat_stats', array( 'where' => $where ), 'gallery_sql_queries' );
$DB->simple_exec();
$stats = $DB->fetch_row();
$info['name'] = $ibforums->lang['mem_gallery'];
$info['description'] = $ibforums->lang['mem_gallery_desc'];
$info['images'] = ( $stats['IMG_TOTAL'] ) ? $stats['IMG_TOTAL'] : 0;
$info['comments'] = ( $stats['COM_TOTAL'] ) ? $stats['COM_TOTAL'] : 0;
$info['img_new_post'] = ( $ibforums->member['last_activity'] < $info['date'] ) ? "<{C_ON}>" : "<{C_OFF}>";
if( ! $ibforums->member['id'] )
{
$info['img_new_post'] = "<{C_OFF}>";
}
if( $stats['LAST_PIC'] )
{
$DB->cache_add_query( 'get_last_pic_info', array( 'LAST_PIC' => $stats['LAST_PIC'] ), 'gallery_sql_queries' );
$DB->simple_exec();
$info = array_merge( $info, $DB->fetch_row() );
$info['date'] = $std->get_date( $stats['LAST_TIME'], 'LONG' );
$info['last_pic'] = "<a href='{$ibforums->base_url}act=module&module=gallery&cmd=si&img={$info['id']}'>{$info['caption']}</a>";
$info['last_poster'] = make_name_link( $info['mid'], $info['mname'] );
}
else
{
$info['date'] = $ibforums->lang['none'];
$info['last_pic'] = $ibforums->lang['none'];
$info['last_poster'] = $ibforums->lang['none'];
}
$info['link'] = "{$ibforums->base_url}act=module&module=gallery&cmd=sc&op=user";
}
if( $user_cat && $ibforums->vars['gallery_album_position'] == 'top' )
{
if( $this->check_memcat_acccess() )
{
$this->output .= $this->html->cat_row( $info );
}
}