430 'code' => $row['code'], |
430 'code' => $row['code'], |
431 'birth' => $row['birth'], |
431 'birth' => $row['birth'], |
432 'stage' => $row['stage'] |
432 'stage' => $row['stage'] |
433 ); |
433 ); |
434 } |
434 } |
|
435 header("Content-type: application/json"); |
435 echo json_encode($brews, JSON_UNESCAPED_UNICODE); |
436 echo json_encode($brews, JSON_UNESCAPED_UNICODE); |
436 return; |
437 return; |
437 } |
438 } |
438 |
439 |
439 if (isset($_GET['select']) && ($_GET['select'] == "archname")) { |
440 if (isset($_GET['select']) && ($_GET['select'] == "archname")) { |
449 'og' => $row['og'], |
450 'og' => $row['og'], |
450 'fg' => $row['fg'], |
451 'fg' => $row['fg'], |
451 'batch_size' => $row['batch_size'] |
452 'batch_size' => $row['batch_size'] |
452 ); |
453 ); |
453 } |
454 } |
454 syslog(LOG_NOTICE, json_encode($brews, JSON_UNESCAPED_UNICODE)); |
455 header("Content-type: application/json"); |
455 echo json_encode($brews, JSON_UNESCAPED_UNICODE); |
456 echo json_encode($brews, JSON_UNESCAPED_UNICODE); |
456 return; |
457 return; |
457 } |
458 } |
458 |
459 |
459 if (isset($_GET['select']) && ($_GET['select'] == "archcode")) { |
460 if (isset($_GET['select']) && ($_GET['select'] == "archcode")) { |
508 'name' => $row['name'], |
511 'name' => $row['name'], |
509 'uuid' => $row['uuid'], |
512 'uuid' => $row['uuid'], |
510 'stage' => $row['stage'] |
513 'stage' => $row['stage'] |
511 ); |
514 ); |
512 } |
515 } |
|
516 header("Content-type: application/json"); |
513 echo json_encode($brews, JSON_UNESCAPED_UNICODE); |
517 echo json_encode($brews, JSON_UNESCAPED_UNICODE); |
514 return; |
518 return; |
515 } |
519 } |
516 |
520 |
517 /* |
521 /* |