This script can be used to convert an old $color theme to a stylesheet for use with templates. Output is sent to STDOUT.


  1. Create a .php file containing your $color theme.
  2. Run this script from a command line, giving the name of your theme file as an arguement to this script, e.g.:
/path/to/squirrelmail/templates/theme_to_css.php /path/to/mytheme.php

To send the output to a .css file, do the following:

/path/to/squirrelmail/templates/theme_to_css.php /path/to/mytheme.php > my_theme.css

  • author: Steve Brown
  • version: $Id: color_theme_to_css.php 14643 2017-01-27 20:34:08Z pdontthink $
  • copyright: 1999-2017 The SquirrelMail Project Team
  • since: 1.5.2
  • filesource: Source Code for this file
  • license: GNU Public License
include ($theme_file) (line 64)

make sure that first command line argument is set

Documentation generated on Mon, 23 Oct 2017 04:22:27 +0200 by phpDocumentor 1.4.3