|
1
FIND - Line 3
function frontend_handle( &$this )
{
global $data;
global $_langs;
// geometric sizes
$this->assign( 'content_width', 600 );
$this->assign( 'content_cellspacing', 0 );
$this->assign( 'content_cellpadding', 5 );
$this->assign( 'page_width', 605 );
$this->assign( 'page_height', 360 );
$this->assign( 'member_console_width', 160 );
$this->assign( 'member_console_height', 350 );
// Register functions
$this->register_function( 'search_rows_iam_weare', 'search_rows_iam_weare', true );
$this->register_function( 'search_select_age_start', 'search_select_age_start', true );
$this->register_function( 'search_select_age_end', 'search_select_age_end', true );
$this->register_function( 'profile_field_display', 'profile_field_display', true );
$this->register_function( 'lang_switch', 'lang_switch', true );
$this->register_function( 'nav_menu', 'nav_menu', true );
$this->register_function( 'last_activity', 'last_activity', true );
$this->register_function( 'last_activity_string', 'last_activity_string', true );
$this->register_function( 'fields_display', 'fields_display', true );
$this->register_function( 'folders_list', 'folders_list', true );
$this->register_function( 'messages_list', 'messages_list', true );
$this->register_function( 'search_field_entry', 'search_field_entry', true );
$this->register_block( 'form_signin', 'block_form_signin', true );
$this->register_block( 'form_sendmsg', 'block_form_sendmsg', true );
$this->register_block( 'form_profile_edit', 'block_form_profile_edit', true );
$this->register_block( 'form_search', 'block_form_search', true );
$this->register_function( 'show_units', 'show_units', true );
$this->register_function( 'news_block', 'news_block', true );
$this->register_function( 'comment_block', 'comment_block', true );
$this->register_function( 'print_npages', 'print_npages', true );
$this->register_function( 'print_abpages', 'print_abpages', true );
$this->register_function( 'article_modify_links', 'article_modify_links', true );
$this->register_function( 'exp_page_block', 'exp_page_block', true );
$this->register_function( 'article_page_form', 'article_page_form', true );
$this->register_function( 'display_ads', 'display_ads', true );
$this->register_function( 'print_perpages', 'print_perpages', true );
$this->register_function( 'print_artpages', 'print_artpages', true );
$this->register_function( 'print_percrits', 'print_percrits', true );
$this->register_function( 'trunc_desc', 'trunc_desc', true );
if( count( $_langs ) > 1 )
$this->assign( 'show_lang_switch', 1 );
}
AND REPLACE WITH
function frontend_handle( &$handle )
{
global $data;
global $_langs;
// geometric sizes
$handle->assign( 'content_width', 600 );
$handle->assign( 'content_cellspacing', 0 );
$handle->assign( 'content_cellpadding', 5 );
$handle->assign( 'page_width', 605 );
$handle->assign( 'page_height', 360 );
$handle->assign( 'member_console_width', 160 );
$handle->assign( 'member_console_height', 350 );
// Register functions
$handle->register_function( 'search_rows_iam_weare', 'search_rows_iam_weare', true );
$handle->register_function( 'search_select_age_start', 'search_select_age_start', true );
$handle->register_function( 'search_select_age_end', 'search_select_age_end', true );
$handle->register_function( 'profile_field_display', 'profile_field_display', true );
$handle->register_function( 'lang_switch', 'lang_switch', true );
$handle->register_function( 'nav_menu', 'nav_menu', true );
$handle->register_function( 'last_activity', 'last_activity', true );
$handle->register_function( 'last_activity_string', 'last_activity_string', true );
$handle->register_function( 'fields_display', 'fields_display', true );
$handle->register_function( 'folders_list', 'folders_list', true );
$handle->register_function( 'messages_list', 'messages_list', true );
$handle->register_function( 'search_field_entry', 'search_field_entry', true );
$handle->register_block( 'form_signin', 'block_form_signin', true );
$handle->register_block( 'form_sendmsg', 'block_form_sendmsg', true );
$handle->register_block( 'form_profile_edit', 'block_form_profile_edit', true );
$handle->register_block( 'form_search', 'block_form_search', true );
$handle->register_function( 'show_units', 'show_units', true );
$handle->register_function( 'news_block', 'news_block', true );
$handle->register_function( 'comment_block', 'comment_block', true );
$handle->register_function( 'print_npages', 'print_npages', true );
$handle->register_function( 'print_abpages', 'print_abpages', true );
$handle->register_function( 'article_modify_links', 'article_modify_links', true );
$handle->register_function( 'exp_page_block', 'exp_page_block', true );
$handle->register_function( 'article_page_form', 'article_page_form', true );
$handle->register_function( 'display_ads', 'display_ads', true );
$handle->register_function( 'print_perpages', 'print_perpages', true );
$handle->register_function( 'print_artpages', 'print_artpages', true );
$handle->register_function( 'print_percrits', 'print_percrits', true );
$handle->register_function( 'trunc_desc', 'trunc_desc', true );
if( count( $_langs ) > 1 )
$handle->assign( 'show_lang_switch', 1 );
}
2
FIND - Line 377
function admin_handle( &$this )
{
$this->assign( 'dirs_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Categories`WHERE`Status`='2'" ) ) );
$this->assign( 'links_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Links`WHERE`Status`='2'" ) ) );
$this->assign( 'admin', 1 );
$this->assign( 'no_inv0', 1 );
$this->assign( 'no_bottom_stuff', 1 );
$this->assign( 'show_lang_switch', 0 );
}
AND REPLACE WITH
function admin_handle( &$handle )
{
$handle->assign( 'dirs_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Categories`WHERE`Status`='2'" ) ) );
$handle->assign( 'links_count', current( db_arr( "SELECT COUNT(*) FROM`m_Directory_Links`WHERE`Status`='2'" ) ) );
$handle->assign( 'admin', 1 );
$handle->assign( 'no_inv0', 1 );
$handle->assign( 'no_bottom_stuff', 1 );
$handle->assign( 'show_lang_switch', 0 );
}
|