0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
vtiger
/
5.0.4
/
standard
/
htdocs
/
modules
/
Settings
/
[
Home
]
File: SaveCurrencyInfo.php
<?php /********************************************************************************* ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. * ********************************************************************************/ require_once('include/database/PearDatabase.php'); global $adb; $db = new PearDatabase(); $currency_name = $_REQUEST['currency_name']; $currency_code= $_REQUEST['currency_code']; $currency_symbol= $_REQUEST['currency_symbol']; $conversion_rate= $_REQUEST['conversion_rate']; if(isset($_REQUEST['currency_status']) && $_REQUEST['currency_status'] != '') $currency_status= $_REQUEST['currency_status']; else $currency_status= 'Active'; if(isset($_REQUEST['record']) && $_REQUEST['record']!='') { $sql = "update vtiger_currency_info set currency_name =?, currency_code =?, currency_symbol =?, conversion_rate =?,currency_status=? where id =?"; $params = array($currency_name, $currency_code, $currency_symbol, $conversion_rate, $currency_status, $_REQUEST['record']); } else { $sql = "insert into vtiger_currency_info values(?,?,?,?,?,?,?)"; $params = array($db->getUniqueID("vtiger_currency_info"), $currency_name, $currency_code, $currency_symbol, $conversion_rate, $currency_status,'0'); } $adb->pquery($sql, $params); $loc = "Location: index.php?module=Settings&action=CurrencyListView&parenttab=".$_REQUEST['parenttab']; header($loc); ?>