Job edit
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
require_once 'config.php';
|
||||
|
||||
|
||||
define('ADD_JOB', 10010);
|
||||
define('UPDATE_JOB', 10020);
|
||||
|
||||
define('PHP_API_OK', 0);
|
||||
define('PHP_LOGIN_OK', 100);
|
||||
|
||||
@@ -94,7 +94,7 @@ function processOutJson($in, $out) {
|
||||
"age" => $out["age_${key}"],
|
||||
"last_login" => '10-10-2024',
|
||||
"task_count" => rand(0,20),
|
||||
"added" => '10-10-2024'
|
||||
"added" => $out["added_${key}"],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,8 @@ $endpoints = array(
|
||||
'jobmanageragree' => array('POST'),
|
||||
'jobmanagerlist' => array('POST'),
|
||||
'jobmanageroffers'=> array('POST'),
|
||||
'jobmanagercreatejob'=> array('POST'),
|
||||
'jobmanagerupdatejob'=> array('POST'),
|
||||
'profilepasschange' => array('POST'),
|
||||
'starttopup' => array('POST'),
|
||||
'familylist' => array('POST'),
|
||||
@@ -144,7 +146,14 @@ switch ($endpoint) {
|
||||
case 'familymanage':
|
||||
$in["action"] = WRENCHBOARD_FAMILY_MANAGE;
|
||||
break;
|
||||
|
||||
case 'jobmanagercreatejob':
|
||||
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
|
||||
$in["job_mode"] = ADD_JOB;
|
||||
break;
|
||||
case 'jobmanagerupdatejob':
|
||||
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
|
||||
$in["job_mode"] = UPDATE_JOB;
|
||||
break;
|
||||
case 'jobmanageroffers':
|
||||
$in["action"] = WRENCHBOARD_JOB_OFFERS;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user