#!/usr/bin/perl # # $Id: configure.pl,v 1.3 2006/01/23 21:39:30 ddoughty Exp $ # # Source File: configure.pl # Get config require 'sitecfg.pl'; &app_initialize; print "Content-Type: text/html\n\n"; if (&get_session($FORM{'tid'})) { if ($FORM{'lang'} ne $SESSION{'lang'}) { &set_session($FORM{'tid'},'lang',$FORM{'lang'});} &get_client_configuration(); $SESSION{'lang'} = ($SYSTEM{'DEFAULTLANG'} eq '') ? "enu" : $SYSTEM{'DEFAULTLANG'}; $SESSION{'lang'} = ($FORM{'lang'} eq '') ? $SESSION{'lang'} : $FORM{'lang'}; &LoadLanguage($SESSION{'lang'}); &log_entry($SESSION{'clid'}, $SESSION{'uid'}, "3", "DDL $FORM{'dbfilepath'}"); print "\n"; print "
\n"; &put_client_configuration(); &get_client_configuration(); if ($SESSION{'uac'} eq 'gadmin') { $cfgfile = join($pathsep, $cfgroot, "sitecfg.pl"); # $chmodok = chmod 0766, $cfgfile; # if ($chmodok != 0) { open (CFGFILE, "<$cfgfile"); @lines =