Colours::bg PHP Méthode

bg() public static méthode

public static bg ( $colour )
    public static function bg($colour)
    {
        return "[" . Colours::$background[$colour] . "m";
    }

Usage Example

Exemple #1
0
if (!defined('LOGGED_IN_SALT'))   define('LOGGED_IN_SALT',   'put your unique phrase here');
if (!defined('NONCE_SALT'))       define('NONCE_SALT',       'put your unique phrase here');
if (!isset(\$table_prefix))       \$table_prefix  =          'wp_';
if (!defined('WPLANG'))           define('WPLANG',           '');
if (!defined('ABSPATH'))          define('ABSPATH', dirname(__FILE__) . '/');

{$inject}
EOF;
        file_put_contents("{$options['wp-root']}/wp-config.php", $new_wp_config);
    }
}
//
// Mush up the arguments and start the server
//
$valid_arguments = serialize($options);
echo Colours::bg("black") . Colours::fg('blue');
echo "Whippet version " . WPS_VERSION . " started at " . date('H:i:s \\o\\n d-m-Y') . "\n";
echo Colours::fg('red');
echo "\nNote: Whippet is Alpha software. We're sure it still has problems that need to be\n";
echo "fixed, and we know the install process is a bit labourious. Please do let us know\n";
echo "how you get on, or open an issue on GitHub if you have problems. Thanks!\n\n";
echo Colours::fg('white');
echo "Written and maintained by dxw. Visit http://whippet.labs.dxw.com for more information.\n";
if (WPS_LOCATION == 'root') {
    echo "Found a WordPress installation at {$options['wp-root']}\n";
} else {
    echo "Found a WordPress content directory at {$options['wp-content']}\n";
    echo "Using a WordPress core at: {$options['wp-root']}\n";
}
echo "Listening on {$options['i']}:{$options['p']}\n";
echo "Press Ctrl-C to quit.\n";