1,7 → 1,7 |
<?php |
require_once('../lib/functions.php'); |
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php")) |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php"); |
include_once("../lib/sql/drivers/$config[sql_type]/functions.php"); |
else{ |
echo "<b>Could not include SQL library</b><br>\n"; |
exit(); |
26,7 → 26,6 |
$name = $attrmap["$key"] . $i; |
while(isset($$name)){ |
$val=$$name; |
$val = da_sql_escape_string($link, $val); |
$op_name = $name . '_op'; |
$i++; |
$j++; |
79,11 → 78,11 |
continue; |
// if value differs from the sql value then update |
else{ |
if (isset($item_vals["$key"][$j]) && (isset($old_val) && $old_val !='') || $sql_attr=='Filter-Id'){ |
if (isset($item_vals["$key"][$j]) && (isset($old_val) && $old_val !='') && $sql_attr=='Filter-Id'){ |
$old_val = $item_vals["$key"][$j]; |
$old_val = da_sql_escape_string($link, $old_val); |
#we keep the fourth bit of Filter-Id to warn user about administrator who read imputability logs. |
$val[3]=$old_val[3]; |
// we keep the fourth bit of Filter-Id to warn user about administrator who read imputability logs. |
$val[3] = $old_val[3]; |
$res = da_sql_query($link,$config, |
"UPDATE $table SET value = '$val' WHERE $query_key = '$login' AND |
attribute = '$sql_attr' AND value = '$old_val';"); |