You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

search.php 771B

3 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. function argument_collector(&$v_argument_list, &$s_argument_method, &$s_argument_variable)
  3. {
  4. if($_POST['q']!='')
  5. {
  6. $s_argument_method='post';
  7. $v_argument_list=$_POST;
  8. $s_argument_variable='_POST';
  9. }
  10. else if($_GET['q']!='')
  11. {
  12. $s_argument_method='get';
  13. $v_argument_list=$_GET;
  14. $s_argument_variable='_GET';
  15. }
  16. else if($HTTP_GET_VARS['q']!='')
  17. {
  18. $s_argument_method='get';
  19. $v_argument_list=$HTTP_GET_VARS;
  20. $s_argument_variable='HTTP_GET_VARS';
  21. }
  22. else
  23. {
  24. $s_argument_method='';
  25. $v_argument_list=Array();
  26. $s_argument_variable='(none)';
  27. }
  28. }
  29. argument_collector($g_v_argument_list, $g_s_argument_method, $g_s_argument_variable);
  30. header("Location: http://www.google.com/search?q=".$g_v_argument_list['q']."+site%3Aopenvibe.inria.fr");
  31. ?>