diff --git a/build/libifm.php b/build/libifm.php
index 0ae52fd..061fa74 100644
--- a/build/libifm.php
+++ b/build/libifm.php
@@ -1,5 +1,4 @@
"src/main.php",
+ 1 => "src/ifmarchive.php",
+ 2 => "src/htpasswd.php"
+);
$IFM_BUILD_STANDALONE = "ifm.php";
-$IFM_BUILD_STANDALONE_COMPRESSED = "ifm.min.php";
+$IFM_BUILD_STANDALONE_COMPRESSED = "build/ifm.min.php";
$IFM_BUILD_LIB_PHP = "build/libifm.php";
/**
- * Prepare main script
+ * Concat PHP Files
*/
-$main = file_get_contents( $IFM_SRC_MAIN );
-$includes = NULL;
-preg_match_all( "/\@\@\@([^\@]+)\@\@\@/", $main, $includes, PREG_SET_ORDER );
-foreach( $includes as $file ) {
- $main = str_replace( $file[0], file_get_contents( $file[1] ), $main );
+$compiled = array( "run();
/**
* Build library
*/
-file_put_contents( $IFM_BUILD_LIB_PHP, $main );
-file_put_contents( $IFM_BUILD_LIB_PHP, $phpincludes, FILE_APPEND );
+file_put_contents( $IFM_BUILD_LIB_PHP, $compiled );
diff --git a/ifm.php b/ifm.php
index 0101a57..812b58f 100644
--- a/ifm.php
+++ b/ifm.php
@@ -1,5 +1,4 @@
templates = $templates;
}
@@ -169,24 +169,24 @@ f00bar;
public function getCSS() {
print '
-
-
-
-
-
+
+
+
+
+
';
}
public function getJS() {
print '
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
';
}