fork download
  1. <?php
  2.  
  3. function ajax()
  4. {
  5. if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest')
  6. {
  7. //Забираем данные из формы
  8. $data['url'] = prep_url($_POST['url']);
  9. $data['words'] = $_POST['words'];
  10. $data['words'] = explode("\n", $data['words']);
  11. $data['goo'] = $_POST['goo'];
  12. $data['ya'] = $_POST['ya'];
  13.  
  14. $this->load->library('parser');
  15. $this->parser->parse('positions/qw', $data);
  16. } else
  17. {
  18. show_404('page', false);
  19. }
  20. }
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Standard output is empty