Advertisement
Bedhoel

Untitled

Jan 5th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2. //General Controller
  3. include "../General_Controller.php";
  4. $gen_controller = new General_Controller();
  5.  
  6. //Model Global
  7. include "../model/General_Model.php";
  8. $gen_model = new General_Model();
  9.  
  10. $act="";
  11. if(isset($_GET['do_act'])){
  12. $act = $_GET['do_act'];
  13. }
  14.  
  15. $id_parameter="";
  16. if(isset($_GET['id_parameter'])){
  17. $id_parameter =$_GET['id_parameter'];
  18. }
  19.  
  20. if($act=="" or $act==null) {
  21. $gen_controller->response_code('404');
  22. }
  23. else if($act=="panggil") {
  24. $id_pg = $_REQUEST['id_pg'];
  25.  
  26. $update_data = array();
  27. $update_data['status'] = '1';
  28.  
  29. //Paramater
  30. $where_data = array();
  31. $where_data['ID_PANGGILAN'] = $id_pg;
  32.  
  33. $gen_model->Update('temp_panggilan',$update_data,$where_data)
  34.  
  35. $db->close();
  36. die();
  37. }
  38. else {
  39. $gen_controller->response_code(http_response_code());
  40. }
  41. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement