CMXX - Update contract security
This commit is contained in:
@@ -76,11 +76,11 @@ if(isset($criterias['totals']) && $criterias['totals'] ==''){
|
||||
}
|
||||
elseif (isset($criterias['list']) && $criterias['list'] =='') {
|
||||
//SQL for Paging
|
||||
$sql = 'SELECT * FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.'';
|
||||
$sql = 'SELECT c.* FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.'';
|
||||
}
|
||||
else {
|
||||
//SQL for Paging
|
||||
$sql = 'SELECT * FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.' LIMIT :page,:num_products';
|
||||
$sql = 'SELECT c.* FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.' LIMIT :page,:num_products';
|
||||
}
|
||||
|
||||
$stmt = $pdo->prepare($sql);
|
||||
|
||||
@@ -155,6 +155,7 @@ elseif ($command == 'insert'){
|
||||
$post_content['password'] = generate_jwt($headers, $payload);
|
||||
$post_content['partnerhierarchy'] = $accounthierarchy;
|
||||
$post_content['salesID'] = $partner->salesid;
|
||||
$post_content['language'] = isset($post_content['language']) ? $post_content['language'] : 'US';
|
||||
}
|
||||
else {
|
||||
//do nothing
|
||||
|
||||
@@ -76,15 +76,15 @@ if(isset($criterias['totals']) && $criterias['totals'] ==''){
|
||||
}
|
||||
elseif (isset($criterias['list']) && $criterias['list'] =='') {
|
||||
//SQL for Paging
|
||||
$sql = 'SELECT * FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.'';
|
||||
$sql = 'SELECT c.* FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.'';
|
||||
}
|
||||
elseif (isset($criterias['p']) && $criterias['p'] =='all') {
|
||||
//SQL for Paging
|
||||
$sql = 'SELECT * FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.'';
|
||||
$sql = 'SELECT c.* FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.'';
|
||||
}
|
||||
else {
|
||||
//SQL for Paging
|
||||
$sql = 'SELECT * FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.' LIMIT :page,:num_products';
|
||||
$sql = 'SELECT c.* FROM contracts c JOIN users u ON c.createdby = u.username '.$whereclause.' LIMIT :page,:num_products';
|
||||
}
|
||||
|
||||
$stmt = $pdo->prepare($sql);
|
||||
|
||||
@@ -155,6 +155,7 @@ elseif ($command == 'insert'){
|
||||
$post_content['password'] = generate_jwt($headers, $payload);
|
||||
$post_content['partnerhierarchy'] = $accounthierarchy;
|
||||
$post_content['salesID'] = $partner->salesid;
|
||||
$post_content['language'] = isset($post_content['language']) ? $post_content['language'] : 'US';
|
||||
}
|
||||
else {
|
||||
//do nothing
|
||||
|
||||
Reference in New Issue
Block a user