Current time: 05-18-2024, 08:20 PM Hello There, Guest! (LoginRegister)


Post Reply 
--== Software Installer -> NEW VERSION RC4 Realese==-- NICHT FÜR 1.0.7 RC
Author Message
fragger Offline
Junior Member
*

Posts: 89
Joined: Jun 2009
Reputation: 2
Post: #447
RE: ispCP Software Installer -> NEW VERSION RC2 Realese
Bash Datei:
Code:
<?php
/**
* Database configuration
*
* Please see the MyBB Wiki for advanced
* database configuration for larger installations
* http://wiki.mybboard.net/
*/

$config['database']['type'] = 'mysql';

?>
EOF

        sed -i "3 a\\\$config['database']['database'] = \'$sw_database\';" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\$config['database']['table_prefix'] = \'$sw_software_prefix\';" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\$config['database']['hostname'] = \'localhost\';" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\$config['database']['username'] = \'$sw_database_user\';" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\$config['database']['password'] = \'$sw_database_pass_clear\';" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\/**" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * Admin CP directory" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  For security reasons, it is recommended you" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  rename your Admin CP directory. You then need" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  to adjust the value below to point to the" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  new directory." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ */" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\$config['admin_dir'] = 'admin';" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\/**" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * Hide all Admin CP links" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  If you wish to hide all Admin CP links" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  on the front end of the board after" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  renaming your Admin CP directory, set this" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  to 1." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ */" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\$config['hide_admin_links'] = 0;" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\/**" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * Data-cache configuration" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  The data cache is a temporary cache" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  of the most commonly accessed data in MyBB." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  By default, the database is used to store this data." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  If you wish to use the file system (cache/ directory), MemCache or eAccelerator" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  you can change the value below to 'files', 'memcache' or 'eaccelerator' from 'db'." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ */" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\$config['cache_store'] = 'db';" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\/**" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * Memcache configuration" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  If you are using memcache as your data-cache," $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  you need to configure the hostname and port" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  of your memcache server below." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * If not using memcache, ignore this section." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ */" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\$config['memcache_host'] = 'localhost';" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\$config['memcache_port'] = 11211;" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\/**" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * Super Administrators" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  A comma separated list of user IDs who cannot" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  be edited, deleted or banned in the Admin CP." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  The administrator permissions for these users" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  cannot be altered either." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ */" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\$config['super_admins'] = '1';" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\/**" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * Database Encoding" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  If you wish to set an encoding for MyBB uncomment " $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  the line below (if it isn't already) and change" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  the current value to the mysql charset:" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  http://dev.mysql.com/doc/refman/5.1/en/charset-mysql.html" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ */" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\$config['database']['encoding'] = 'utf8';" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\/**" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ * Automatic Log Pruning" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  The MyBB task system can automatically prune" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  various log files created by MyBB." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  To enable this functionality for the logs below, set the" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  the number of days before each log should be pruned." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ *  If you set the value to 0, the logs will not be pruned." $sw_dest_path/inc/$config_file
        sed -i "3 a\\\ */" $sw_dest_path/inc/$config_file

        sed -i "3 a\\\$config['log_pruning'] = array(" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\    'admin_logs' => 365, // Administrator logs" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\    'mod_logs' => 365, // Moderator logs" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\    'task_logs' => 30, // Scheduled task logs" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\    'mail_logs' => 180, // Mail error logs" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\    'user_mail_logs' => 180, // User mail logs" $sw_dest_path/inc/$config_file
        sed -i "3 a\\\    'promotion_logs' => 180 // Promotion logs" $sw_dest_path/inc/$config_file

Das Ergebnis:
PHP Code:
<?php
/**
 * Database configuration
    'promotion_logs' => 180 // Promotion logs
    'user_mail_logs' => 180, // User mail logs
    'mail_logs' => 180, // Mail error logs
    'task_logs' => 30, // Scheduled task logs
    'mod_logs' => 365, // Moderator logs
    'admin_logs' => 365, // Administrator logs
$config['log_pruning'] = array(
 */
 
*  If you set the value to 0the logs will not be pruned.
 *  
the number of days before each log should be pruned.
 *  
To enable this functionality for the logs belowset the
 
*  various log files created by MyBB.
 *  
The MyBB task system can automatically prune
 
Automatic Log Pruning
/**
$config['database']['encoding'] = 'utf8';
 */
 
*  http://dev.mysql.com/doc/refman/5.1/en/charset-mysql.html
 
*  the current value to the mysql charset:
 *  
the line below (if it isn't already) and change
 *  If you wish to set an encoding for MyBB uncomment 
 * Database Encoding
/**
$config['
super_admins'] = '1';
 */
 *  cannot be altered either.
 *  The administrator permissions for these users
 *  be edited, deleted or banned in the Admin CP.
 *  A comma separated list of user IDs who cannot
 * Super Administrators
/**
$config['
memcache_port'] = 11211;
$config['
memcache_host'] = 'localhost';
 */
 * If not using memcache, ignore this section.
 *
 *  of your memcache server below.
 *  you need to configure the hostname and port
 *  If you are using memcache as your data-cache,
 * Memcache configuration
/**
$config['
cache_store'] = 'db';
 */
 *  you can change the value below to '
files', 'memcache' or 'eaccelerator' from 'db'.
 *  If you wish to use the file system (cache/ directory), MemCache or eAccelerator
 *
 *  By default, the database is used to store this data.
 *  of the most commonly accessed data in MyBB.
 *  The data cache is a temporary cache
 * Data-cache configuration
/**
$config['
hide_admin_links'] = 0;
 */
 *  to 1.
 *  renaming your Admin CP directory, set this
 *  on the front end of the board after
 *  If you wish to hide all Admin CP links
 * Hide all Admin CP links
/**
$config['
admin_dir'] = 'admin';
 */
 *  new directory.
 *  to adjust the value below to point to the
 *  rename your Admin CP directory. You then need
 *  For security reasons, it is recommended you
 * Admin CP directory
/**
$config['
database']['password'] = 'test';
$config['
database']['username'] = 'test';
$config['
database']['hostname'] = 'localhost';
$config['
database']['table_prefix'] = 'mybb';
$config['
database']['database'] = 'test';
 *
 * Please see the MyBB Wiki for advanced
 * database configuration for larger installations
 * http://wiki.mybboard.net/
 */

$config['
database']['type'] = 'mysql';

?>
02-01-2010 04:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: ispCP Software Installer *BETA* - ZooL - 11-25-2009, 04:53 AM
RE: ispCP Software Installer *BETA* - ZooL - 11-25-2009, 01:40 PM
RE: ispCP Software Installer *BETA* - Juz - 11-26-2009, 02:13 AM
RE: ispCP Software Installer -> NEW VERSION RC1 - Nuxwin - 12-19-2009, 02:53 AM
RE: ispCP Software Installer -> NEW VERSION RC2 Realese - fragger - 02-01-2010 04:54 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)