#!/ibin/vtcl

# VTCL: script to let the user know we've changed their ini file

proc okCB {cbs } {
 VtClose
 exit 0
}

set progTitle "php.ini file changed"
set appRoot [VtOpen IniChanged]
set mainForm [VtMessageDialog $appRoot.IniChanged \
  -title $progTitle -ok -okCallback okCB -message "\n\
  The update you are installing contains a significantly newer  \n\
  version of the PHP Hyptertext Processor. Your system has a    \n\
  modified /usr/lib/php/php.ini file. This installation will    \n\
  preserve your existing configuration file by copying it to    \n\
  /usr/lib/php/php.ini-old. After this installation completes   \n\
  you should merge any local changes you made to that file into \n\
  the new /usr/lib/php/php.ini file.                            \n\
\n\
  Please also be aware that with this version of PHP there are  \n\
  extra configuration files located in the directory            \n\
  /usr/lib/php/cf.d. Sample configuration fragments suitable    \n\
  for putting into that directory can be found by looking in    \n\
  /usr/lib/php/sample-ini.                                      \n" \
  ]

VtShow $mainForm
VtMainLoop
