set_attributes( array( 'name'=>$_PLUGIN_CONFIG['LANG']['NAME'], 'description'=>$_PLUGIN_CONFIG['LANG']['DESCRIPTION'], 'author'=>$_PLUGIN_CONFIG['DATA']['author'], 'version'=>$_PLUGIN_CONFIG['DATA']['version'], 'url'=>$_PLUGIN_CONFIG['DATA']['url'] )); // Add plugin dictionary to the general dictionary unset($_PLUGIN_CONFIG['LANG']['NAME']); unset($_PLUGIN_CONFIG['LANG']['DESCRIPTION']); $Language->add($_PLUGIN_CONFIG['LANG']); // Set slug name include(PATH_PLUGINS.$dir_name.'/languages/en_US.bit'); $plugins_all[$class]->set_slug_name($_PLUGIN_CONFIG['LANG']['NAME']); // If plugin is installed, set the database and get the position if($plugins_all[$class]->init_db()) { $position = $plugins_all[$class]->get_field_db('position'); while( isset($plugins_installed[$position]) ) $position += 100; $plugins_installed[$position] = $plugins_all[$class]; $plugins_by_name[$dir_name] = $plugins_all[$class]; if($where_am_i[0]=='blog') { if($plugins_all[$class]->blog_body()) { $plugins_sidebar[$position] = $plugins_all[$class]; } } } else { // Plugins not installed array_push($plugins_not_installed, $plugins_all[$class]); } } // Sort plugins ksort($plugins_installed); ksort($plugins_sidebar); $plugins = $plugins_installed; // ===================================================================== // CLEANING // ===================================================================== unset($plugins_on_system); unset($_PLUGIN_CONFIG); unset($class); unset($position); unset($merge); ?>