View Single Post
Old 08-26-2008, 04:11 AM   #4 (permalink)
oscargodson
The Wanderer
 
Join Date: Jun 2008
Posts: 19
Thanks: 0
oscargodson is on a distinguished road
Default Fixed it

I finally fixed it. It was pretty simple and here is the code. I removed some of the extra code such as the css and images code.

PHP Code:
if(isset($_GET['jquery'])) {
    
$jquery_plugins '';
    foreach(
$pluginData->plugin as $plugin){
        
$name $plugin->name;
        
$filename $plugin->name['filename'];
        
$dir $plugin->dir;
        
$css $plugin->css;
        
$images $plugin->images;
        
        if(isset(
$_GET["jquery_plugin_$name"])){
            
exec("cp -r files/JavaScript/jQuery/plugins/$dir/$filename $deploy_download/js/$filename");
            
$jquery_plugins $jquery_plugins."\n\t<script type=\"text/javascript\" src=\"js/$filename\"></script>";
            if(isset(
$css)){

            }
            if(isset(
$images)){

            }
        }
    }
}
else {
    
$jquery_plugins '';

oscargodson is offline  
Reply With Quote