Faq data
This commit is contained in:
@@ -87,6 +87,7 @@ $endpoints = array(
|
||||
'activejobstatus'=> array('POST'),
|
||||
'activetaskstatus'=> array('POST'),
|
||||
'offersinterestlist' => array('POST'),
|
||||
'faq' => array('POST'),
|
||||
);
|
||||
|
||||
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
|
||||
@@ -178,6 +179,10 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
|
||||
}
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
switch ($endpoint) {
|
||||
case 'faq':
|
||||
$local_out = faqData();
|
||||
$call_backend = false;
|
||||
break;
|
||||
case 'offersinterestlist':
|
||||
$in["action"] = WRENCHBOARD_JOB_OFFER_INTLIST;
|
||||
break;
|
||||
@@ -502,6 +507,26 @@ function getSiteConfigurations($wrenchboard,$config_item){
|
||||
return $wrenchboard->cfgReadChar($config_item);
|
||||
}
|
||||
|
||||
function faqData(){
|
||||
|
||||
$total = 8;
|
||||
|
||||
$data = array(
|
||||
"status" => 100,
|
||||
"total_record" => ($total - 1),
|
||||
"internal_return" => 0,
|
||||
"result_list" => array(),
|
||||
);
|
||||
for ($i = 0; $i < $total; $i++) {
|
||||
$key = sprintf("%05d", $i);
|
||||
$data["result_list"][] = array(
|
||||
"title" => "This is faq title dummy text ".$key,
|
||||
"msg" => "Random gibberish text to use in web pages, site templates and in typography demos. Get rid of Lorem Ipsum forever. A tool for web designers who want to save time. ".$key,
|
||||
);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
function processJobStatus($data) {
|
||||
|
||||
/*$data['member_id'] = $_SESSION['member_id']; // = $ret->email;
|
||||
|
||||
Reference in New Issue
Block a user