function plugins_init($app="code") { global $plugins_dir; global $plugins_list; global $plugins_available; global $plugins_provide; global $plugins; $plugins_list=array(); // Load conf.php of all plugins $d=opendir("$plugins_dir/"); while($plugin=readdir($d)) { if((substr($plugin, 0, 1)!=".")&&(is_dir("$plugins_dir/$plugin"))) { plugins_load_conf($plugin); } } closedir($d); // Check dependencies $plugins=plugins_check_dependencies($plugins); // Include plugins foreach($plugins as $plugin) { plugins_include($plugin, $app); } $plugins=array_keys($plugins_list); if(!plugins_check()) { print "Error loading plugins, see log for details.\n"; exit; } }
} ?> </div> <?php } ?> <?php foreach ($otherFiles as $file) { ?> <div class="miscfile"><a href="<?php echo $file["link"]; ?> "><?php echo $file["name"]; ?> </a></div> <?php } ?> <?php plugins_include("after_content.php"); ?> <p id="credit"> Generated by <a href="http://www.positon.org/bizou/">Bizou</a> </p> </body> </html>