6 . /usr/share/debconf/confmodule
8 if [ "$1" != reconfigure ]; then
9 for item in leftwidth themecss; do
10 db_fget squirrelmail-cn/${item} seen
11 if [ "$RET" = "true" ]; then
17 SMDIR="/etc/squirrelmail"
18 SMCONF="$SMDIR/config.php"
22 # Check $default_left_size in SM's config.php
24 if [ -f "$SMCONF" ]; then
25 if egrep -q "^[[:space:]]*\\\$default_left_size[[:space:]]*=[[:space:]]*'220'" "$SMCONF"; then
29 if [ $change_default -eq 1 ]; then
31 # Ask user for changing $default_left_size to '220'.
32 db_input critical squirrelmail-cn/leftwidth || true
35 db_set squirrelmail-cn/leftwidth false || true
36 db_fset squirrelmail-cn/leftwidth seen true
40 # Check $theme_css in SM's config.php
42 if [ -f "$SMCONF" ]; then
43 if egrep -q "^[[:space:]]*\\\$theme_css[[:space:]]*=[[:space:]]*SM_PATH[[:space:]]*\.
44 [[:space:]]*'themes\/css\/squirrelmail-cn\.css'" "$SMCONF"; then
48 if [ $change_default -eq 1 ]; then
50 # Ask user for changing $theme_css to 'squirrelmail-cn.css'.
51 db_input critical squirrelmail-cn/themecss || true
54 db_set squirrelmail-cn/themecss false || true
55 db_fset squirrelmail-cn/themecss seen true