//Ask for Add-on instalation echo "<script>window.open('".$addon_id.'/releases/'.$this->xpi_file."', '_top')</script>"; echo "<script>close()</script>"; } } echo '<h1>Complex Extension builder</h1><ul>'; $dir = dirname(__FILE__).'/'; if ($dh = @opendir($dir)) { while(($file = readdir($dh)) !== false) { if( $file != "." && $file != ".." && strpos($file, '.php') === false && strpos($dir.$file, '_em/_') === false && is_dir($file) && !is_dir(dirname(__FILE__).'/'.$file.'/_dev/chrome') ) $XPIs[] = "<li><a href=\"?XPI=".$file."\">".$file."</a></li>"; } @chdir(".."); } echo implode("", $XPIs); $addon = new addons(); if($_GET[XPI]!='') $addon->build_package_sin_jar($_GET[XPI]); ?>