...

View Full Version : Plugin includer



Pcfr43k
07-26-2010, 12:01 PM
Includes plugins that you place in the same folder.
Creates div's from them for CSS markup.


<?php

//Open directory
$location=opendir("./");

//List items in directory
while(($directory=readdir($location)) !== false) {

//Directory filter
if($directory!= '.' && $directory!= '..'){
if(is_dir($directory)){

//Include index files from directories
echo "<div id='".$directory."'>"; include($directory.'/index.php'); echo "</div>\n";}}}
closedir($location);

?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum