mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-16 21:13:59 +02:00
[=] Fix modal classes
This commit is contained in:
22
compiler.php
22
compiler.php
@@ -11,9 +11,10 @@ chdir( realpath( dirname( __FILE__ ) ) );
|
||||
// output files and common attrs
|
||||
define( "IFM_CDN", true );
|
||||
define( "IFM_VERSION", "<a href='https://github.com/cryol/ifm/tree/2.6.0' target=_blank>v2.6.0</a>" );
|
||||
define( "IFM_STANDALONE", "dist/ifm.php" );
|
||||
define( "IFM_STANDALONE_GZ", "dist/ifm.min.php" );
|
||||
define( "IFM_LIB", "dist/libifm.php" );
|
||||
define( "IFM_RELEASE_DIR", "dist/");
|
||||
define( "IFM_STANDALONE", "ifm.php" );
|
||||
define( "IFM_STANDALONE_GZ", "ifm.min.php" );
|
||||
define( "IFM_LIB", "libifm.php" );
|
||||
|
||||
if( IFM_CDN ){
|
||||
$IFM_ASSETS = "src/assets.cdn.part";
|
||||
@@ -56,6 +57,7 @@ foreach( $IFM_SRC_PHP as $phpfile ) {
|
||||
$compiled = array_merge( $compiled, $lines );
|
||||
}
|
||||
$compiled = join( $compiled );
|
||||
|
||||
$compiled = str_replace( "IFM_ASSETS", file_get_contents( $IFM_ASSETS ), $compiled );
|
||||
/**
|
||||
* Process file includes
|
||||
@@ -92,13 +94,13 @@ foreach( $includes as $var )
|
||||
|
||||
$compiled = str_replace( 'IFM_VERSION', IFM_VERSION, $compiled );
|
||||
|
||||
if (!is_dir('dist/')){
|
||||
mkdir('dist');
|
||||
if (!is_dir(IFM_RELEASE_DIR)){
|
||||
mkdir(IFM_RELEASE_DIR);
|
||||
}
|
||||
|
||||
// build standalone ifm
|
||||
file_put_contents( IFM_STANDALONE, $compiled );
|
||||
file_put_contents( IFM_STANDALONE, '
|
||||
file_put_contents( IFM_RELEASE_DIR . (IFM_CDN ? 'cdn.' : 'simple.') . IFM_STANDALONE, $compiled );
|
||||
file_put_contents( IFM_RELEASE_DIR . (IFM_CDN ? 'cdn.' : 'simple.') . IFM_STANDALONE, '
|
||||
/**
|
||||
* start IFM
|
||||
*/
|
||||
@@ -108,9 +110,9 @@ $ifm->run();
|
||||
|
||||
// build compressed ifm
|
||||
file_put_contents(
|
||||
IFM_STANDALONE_GZ,
|
||||
IFM_RELEASE_DIR . (IFM_CDN ? 'cdn.' : 'simple.') . IFM_STANDALONE_GZ,
|
||||
'<?php eval( gzdecode( file_get_contents( __FILE__, false, null, 85 ) ) ); exit(0); ?>'
|
||||
. gzencode( file_get_contents( "./dist/ifm.php", false, null, 5 ) )
|
||||
. gzencode( file_get_contents( IFM_RELEASE_DIR . (IFM_CDN ? 'cdn.' : 'simple.') .IFM_STANDALONE, false, null, 5 ) )
|
||||
);
|
||||
// build lib
|
||||
file_put_contents( IFM_LIB, $compiled );
|
||||
file_put_contents( IFM_RELEASE_DIR . (IFM_CDN ? 'cdn.' : 'simple.') . IFM_LIB, $compiled );
|
||||
|
Reference in New Issue
Block a user