Сек, сейчас[1131273304:1131273555] //-----------------------------------------
// REBUILD CACHES
//-----------------------------------------
$ibforums->html .= $ibforums->adskin->start_form( array( 1 => array( 'act' , 'admin' ),
2 => array( 'code' , 'cacheend' ),
) );
$ibforums->adskin->td_header[] = array( "Title" , "60%" );
$ibforums->adskin->td_header[] = array( "Size" , "20%" );
$ibforums->adskin->td_header[] = array( "Options" , "20%" );
$ibforums->html .= $ibforums->adskin->start_table( "Your Cache" );
$DB->simple_construct( array( 'select' => '*', 'from' => 'cache_store', 'order' => 'cs_key' ) );
$DB->simple_exec();
$used = array();
while ( $row = $DB->fetch_row() )
{
if ( ! in_array( $row['cs_key'], array_keys( $map ) ) )
{
continue;
}
$used[ $row['cs_key'] ] = $row['cs_key'];
$size = ceil( intval( strlen( $row['cs_value'] ) ) / 1024 );
$ibforums->html .= $ibforums->adskin->add_td_row( array( "<b>".$row['cs_key']."</b><div style='color:gray'>{$map[ $row['cs_key'] ]}</div>",
$size.' kb',
"<div align='center'>
<input type='submit' name='update_{$row['cs_key']}' value='Update' class='realbutton' />
<input type='button' onclick=\"pop_win('act=admin&code=viewcache&id={$row['cs_key']}','Preview', 400,600)\" value='View' class='realbutton' />
</div>",
) );
}
if ( count( $used ) != count( $map ) )
{
foreach( $map as $k => $v )
{
if ( in_array( $k, array_keys( $used ) ) )
{
continue;
}
else
{
$ibforums->html .= $ibforums->adskin->add_td_row( array( "<b>".$k."</b><div style='color:gray'>{$map[ $k ]}</div>",
'0 kb',
"<div align='center'>
<input type='submit' name='update_{$k}' value='Update' class='realbutton' />
<input type='button' onclick=\"pop_win('act=admin&code=viewcache&id={$k}','Preview', 400,600)\" value='View' class='realbutton' />
</div>",
) );
}
}
}
$ibforums->html .= $ibforums->adskin->end_form();
$ibforums->html .= $ibforums->adskin->end_table();
//-----------------------------------------
$ibforums->admin->output();
}
function perly_length_sort($a, $b)
{
if ( strlen($a['typed']) == strlen($b['typed']) )
{
return 0;
}
return ( strlen($a['typed']) > strlen($b['typed']) ) ? -1 : 1;
}
function perly_word_sort($a, $b)
function update_dl_cache()
{
global $ibforums, $DB, $std;
require_once( KERNEL_PATH."class_downloads.php" );
$lex = new dl_extra();
$lex->update_dl_cache();
}
{
if ( strlen($a['type']) == strlen($b['type']) )
{
return 0;
}
return ( strlen($a['type']) > strlen($b['type']) ) ? -1 : 1;
}
}
?>[1131273555:1131278316]Неужели никто помочь не может, я даже забанить тольком по айпи не могу. Прямо беда [1131278316:1131278615]Кстати та же ошибка вылезает при доступу к "Manage Ban Filters"