rowcolor1; $themeRowColor2=$hDisplay->rowcolor2; $lang=new language(); ?>

 $lang->config

$lang->configurationWelcomeMessage

"; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; echo " "; ?>


$lang->companyName

$lang->address:

$lang->phoneNumber:

$lang->email:

global $cfg_adminAutoSignin; global $cfg_mechAutoSignin; global $cfg_administratorTitle; global $cfg_mechanicTitle;

$lang->fax:

$lang->website:

$lang->other:

$lang->theme:

$lang->taxRate:
 ($lang->inPercent)

$lang->currencySymbol:

$lang->numberToUseForBarcode:

$lang->usePaidMembership

$lang->membershipItemID:

$lang->sellToNonMembers

$lang->emailFromAddress

$lang->dailyLateFee

$

$lang->mailmanLocation

http:///mailman/

$lang->mailmanListName #1

$lang->mailmanListName #2

$lang->mailmanListName #3

$lang->mailmanPass

$lang->adminAutoSignin

$lang->mechAutoSignin

$lang->administratorTitle

$lang->mechanicTitle

$lang->mustOpen

>

language ?>:

"; } function updateSettings($companyname,$companyaddress,$companyphone,$companyemail,$companyfax,$companywebsite,$companyother,$theme,$taxrate,$currencySymbol,$numberForBarcode,$language,$reqmembership,$membershipID,$selltononmembers,$emailFromAddress,$dailyLateFee,$mailmanLocation,$mailmanListName1,$mailmanListName2,$mailmanListName3,$mailmanPass,$adminAutoSignin,$mechAutoSignin,$administratorTitle,$mechanicTitle,$mustOpen) { include("../settings.php"); $lang=new language(); $writeConfigurationFile=""; @unlink("../settings.php"); $hWriteConfiguration = @fopen("../settings.php", "w+" ) or die ("


$lang->configUpdatedUnsucessfully
"); fputs( $hWriteConfiguration, $writeConfigurationFile); fclose( $hWriteConfiguration ); } // --------------------- Code starts here -----------------------// $lang=new language(); $dbf=new db_functions($cfg_server,$cfg_username,$cfg_password,$cfg_database,$cfg_tableprefix,$cfg_theme,$lang); $sec=new security_functions($dbf,'Admin',$lang); $hDisplay=new display($dbf,$cfg_theme,$cfg_currency_symbol,$lang); if(!$sec->isLoggedIn()) { header ("location: ../login.php"); exit(); } if(isset($_POST['submitChanges'])) { if($_POST['companyName']!="" && $_POST['companyPhone']!="" && $_POST['taxRate']!="" && $_POST['currencySymbol']!="") { updateSettings($_POST['companyName'],$_POST['companyAddress'],$_POST['companyPhone'], $_POST['companyEmail'],$_POST['companyFax'],$_POST['companyWebsite'],$_POST['companyOther'],$_POST['themeSelected'],$_POST['taxRate'],$_POST['currencySymbol'],$_POST['numberForBarcode'],$_POST['language'],$_POST[reqmembership],$_POST[membershipID],$_POST[selltononmembers],$_POST['emailFromAddress'],$_POST['dailyLateFee'],$_POST['mailmanLocation'],$_POST['mailmanListName1'],$_POST['mailmanListName2'],$_POST['mailmanListName3'],$_POST['mailmanPass'],$_POST['adminAutoSignin'],$_POST['mechAutoSignin'],$_POST['administratorTitle'],$_POST['mechanicTitle'],$_POST['mustOpen']); echo "


$lang->configUpdatedSuccessfully
"; } else { echo "$lang->forgottenFields"; } } elseif (isset($_POST['cancelChanges'])) { header("Location: ../home.php"); } else { displayUpdatePage(getFormFields()); } $dbf->closeDBlink(); ?>