|
@@ 89-93 (lines=5) @@
|
| 86 |
|
)" ,$value,$expUnit,$expQ,$user,$myreason); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
if ($myconn->query($query) === TRUE) { |
| 90 |
|
syslog(LOG_INFO, "$user: $type <$value> successfully listed on <$table> for $expQ $expUnit."); |
| 91 |
|
$result=TRUE; |
| 92 |
|
} |
| 93 |
|
else syslog(LOG_ERR, "$user: Error: ".$myconn->error); |
| 94 |
|
return $result; |
| 95 |
|
} |
| 96 |
|
|
|
@@ 131-135 (lines=5) @@
|
| 128 |
|
WHERE `$table`.`$type` = '%s' LIMIT 1" ,$user,$expUnit,$expQ,$myreason,$value); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
if ($myconn->query($query) === TRUE) { |
| 132 |
|
syslog(LOG_INFO, "$user: relist $type <$value> on <$table> for $expQ $expUnit."); |
| 133 |
|
$result=TRUE; |
| 134 |
|
} |
| 135 |
|
else syslog (LOG_ERR, "$user: Error: ". $myconn->error); |
| 136 |
|
return $result; |
| 137 |
|
} |
| 138 |
|
|