[ 'width' => 1024, 'height' => 1024 ], 'large' => [ 'width' => 800, 'height' => 800 ], 'medium' => [ 'width' => 400, 'height' => 400 ], 'small' => [ 'width' => 160, 'height' => 160 ], 'avatar' => [ 'width' => 100, 'height' => 100 ], 'icon' => [ 'width' => 48, 'height' => 48 ], ]; */"; if( substr( PHP_OS, 0, 3 ) == 'WIN' ) { $filetowrite .= " // Insert the absolute path to your php magic database. This is required for // us to check and verify the mime type of uploaded files. This setting is only // required on windows machines. //define( 'PHP_MAGIC_PATH', 'C:\\Program Files\\PHP\\extras\\magic.mime' );"; } $filetowrite .= " define( 'LIBERTY_DEFAULT_MIME_HANDLER', 'mimeflatdefault' );"; $filetowrite .= " /******************************************************\ *************** Debugging Options **************** \******************************************************/ // If you wish to force compiling of every page, you can set the next setting to // TRUE. this will, however, severly impact performance since every page that is // generated is generated afresh and the cache is recreated every time. \$smarty_force_compile = FALSE; // Setting TEMPLATE_DEBUG = TRUE will output in your // templates, which will allow you to track all used templates in the HTML source // of the page. This will also disable stripping of whitespace making it easier to // read the templates. You will only see the effect of the strip changes by // clearing out your cache or setting \$smarty_force_compile = TRUE; // Note: be sure to set this to FALSE and clear out the cache once done since it // will increase the page size by at least 10%. //define( 'TEMPLATE_DEBUG', TRUE ); // If you want to go a step further with template debugging then this enables // smarty's debugging console. A popup with a dump of all of the vars the // template(s) have been passed. \$smarty_debugging = FALSE; // This statement will enable you to view all database queries made //\$gDebug = TRUE; // This will turn on ADODB performance monitoring and log all queries. This should // not be enabled except when doing query analysis due to an overall performance // drop. see kernel/admin/db_performance.php for statistics //define( 'DB_PERFORMANCE_STATS', TRUE ); "; fwrite( $fw, $filetowrite ); fclose( $fw ); } else { print "UNABLE TO WRITE TO ".realpath( $config_file ); } }