diff options
Diffstat (limited to 'includes/create_config_inc.php')
| -rwxr-xr-x[-rw-r--r--] | includes/create_config_inc.php | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/includes/create_config_inc.php b/includes/create_config_inc.php index 9ae113c..82a537d 100644..100755 --- a/includes/create_config_inc.php +++ b/includes/create_config_inc.php @@ -12,17 +12,17 @@ /** * create configuration file * - * @param string $pParamHash['gBitDbType'] - * @param string $pParamHash['gBitDbHost'] - * @param string $pParamHash['gBitDbUser'] - * @param string $pParamHash['gBitDbPassword'] - * @param string $pParamHash['gBitDbName'] - * @param numeric $pParamHash['gBitDbCaseSensitivity'] - * @param string $pParamHash['bit_db_prefix'] - * @param string $pParamHash['bit_root_url'] - * @param boolean $pParamHash['auto_bug_submit'] - * @param boolean $pParamHash['is_live'] - * @access public + * + * @param array $pParamHash + * @var string $pParamHash['gBitDbHost'] + * @var string $pParamHash['gBitDbUser'] + * @var string $pParamHash['gBitDbPassword'] + * @var string $pParamHash['gBitDbName'] + * @var numeric $pParamHash['gBitDbCaseSensitivity'] + * @var string $pParamHash['bit_db_prefix'] + * @var string $pParamHash['bit_root_url'] + * @var boolean $pParamHash['auto_bug_submit'] + * @var boolean $pParamHash['is_live'] * @return void */ function create_config( $pParamHash ) { @@ -176,20 +176,20 @@ define( 'BIT_ROOT_URL', '$bit_root_url' ); // the kernel. In the example provided below, the kernel package is processed // first, followed by the users and liberty packages. Any packages not specified // in \$gPreScan are processed in the traditional order -//\$gPreScan = array( 'kernel', 'storage', 'liberty', 'themes', 'users' ); +//\$gPreScan = [ 'kernel', 'storage', 'liberty', 'themes', 'users' ]; // \$gThumbSizes defines the image thumbnail sizes that will be autogenerated when // images are uploaded and processed. The example provided shows the default sizes // that are used. You can add as many sizes as you want if you override the default. /* -\$gThumbSizes = array( - 'extra-large' => array( 'width' => 1024, 'height' => 1024 ), - 'large' => array( 'width' => 800, 'height' => 800 ), - 'medium' => array( 'width' => 400, 'height' => 400 ), - 'small' => array( 'width' => 160, 'height' => 160 ), - 'avatar' => array( 'width' => 100, 'height' => 100 ), - 'icon' => array( 'width' => 48, 'height' => 48 ), -); +\$gThumbSizes = [ + 'extra-large' => [ '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' ) { @@ -244,13 +244,10 @@ define( 'LIBERTY_DEFAULT_MIME_HANDLER', 'mimeflatdefault' );"; // 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 ); } -} - -?> +}
\ No newline at end of file |
