示例#1
0
        $table->construct_header($lang->controls, array("colspan" => 2, "class" => "align_center", "width" => 300));
        if (empty($a_plugins)) {
            $table->construct_cell($lang->no_active_plugins, array('colspan' => 3));
            $table->construct_row();
        } else {
            build_plugin_list($a_plugins);
        }
        $table->output($lang->active_plugin);
        $table = new Table();
        $table->construct_header($lang->plugin);
        $table->construct_header($lang->controls, array("colspan" => 2, "class" => "align_center", "width" => 300));
        if (empty($i_plugins)) {
            $table->construct_cell($lang->no_inactive_plugins, array('colspan' => 3));
            $table->construct_row();
        } else {
            build_plugin_list($i_plugins);
        }
        $table->output($lang->inactive_plugin);
    } else {
        // No plugins
        $table = new Table();
        $table->construct_header($lang->plugin);
        $table->construct_header($lang->controls, array("colspan" => 2, "class" => "align_center", "width" => 300));
        $table->construct_cell($lang->no_plugins, array('colspan' => 3));
        $table->construct_row();
        $table->output($lang->plugins);
    }
    $page->output_footer();
}
function get_plugins_list()
{
示例#2
0
/*********************************************************************************
 * Description:  
 ********************************************************************************/
require_once 'include/workflow/plugin_utils.php';
global $beanFiles;
global $mod_strings;
global $db;
function remove_workflow_dir($dir)
{
    if ($elements = glob($dir . "/*")) {
        foreach ($elements as $element) {
            is_dir($element) ? remove_workflow_dir($element) : unlink($element);
        }
    }
}
$workflow_object = BeanFactory::getBean('WorkFlow');
$module_array = $workflow_object->get_module_array();
foreach ($module_array as $key => $module) {
    $dir = "custom/modules/" . $module . "/workflow";
    if (file_exists($dir)) {
        remove_workflow_dir($dir);
        //end if directory does exist
    }
    //end foreach loop
}
//clean workflow cache..rebuilt done.
echo $mod_strings['LBL_REBUILD_WORKFLOW_CACHE'];
$workflow_object->repair_workflow();
echo $mod_strings['LBL_DONE'] . '<BR>';
build_plugin_list();
echo $mod_strings['LBL_REBUILD_WORKFLOW_COMPILING'] . $mod_strings['LBL_DONE'];