Update OrderMatcingAlgorithmAjax.php
This commit is contained in:
parent
bd2609b6d9
commit
1f0ef88b62
@ -1,18 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Created by PhpStorm.
|
|
||||||
* User: Abhishek Sinha
|
|
||||||
* Date: 11/15/2016
|
|
||||||
* Time: 11:13 AM
|
|
||||||
*/
|
|
||||||
|
|
||||||
require_once '../includes/imp_files.php';
|
require_once '../includes/imp_files.php';
|
||||||
|
|
||||||
if (isset($_POST['task']) && trim($_POST['task'])=='run_OrderMatcingAlgorithm') {
|
if (isset($_POST['task']) && trim($_POST['task'])=='run_OrderMatcingAlgorithm') {
|
||||||
|
|
||||||
if (isset($OrderClass, $UserClass)) {
|
$refresh_orders = OrderMatchingService();
|
||||||
|
|
||||||
$refresh_orders = $OrderClass->OrderMatchingService();
|
|
||||||
|
|
||||||
/*If user is logged in user send him messages, if any*/
|
/*If user is logged in user send him messages, if any*/
|
||||||
if (checkLoginStatus()) {
|
if (checkLoginStatus()) {
|
||||||
@ -25,7 +16,7 @@ if (isset($_POST['task']) && trim($_POST['task'])=='run_OrderMatcingAlgorithm')
|
|||||||
|
|
||||||
if (isset($user_id)) {
|
if (isset($user_id)) {
|
||||||
|
|
||||||
$validate_user = $UserClass->check_user($user_id);
|
$validate_user = check_user($user_id);
|
||||||
|
|
||||||
if($validate_user == "" || empty($validate_user)) {
|
if($validate_user == "" || empty($validate_user)) {
|
||||||
$std->error = true;
|
$std->error = true;
|
||||||
@ -45,7 +36,7 @@ if (isset($_POST['task']) && trim($_POST['task'])=='run_OrderMatcingAlgorithm')
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user