A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Api - Stikked
From selam, 10 Years ago, written in PHP.
Embed
  1.  
  2.    
  3. 1
  4. 2
  5. 3
  6. 4
  7. 5
  8. 6
  9. 7
  10. 8
  11. 9
  12. 10
  13. 11
  14. 12
  15. 13
  16. 14
  17. 15
  18. 16
  19. 17
  20. 18
  21. 19
  22. 20
  23. 21
  24. 22
  25. 23
  26. 24
  27. 25
  28. 26
  29. 27
  30. 28
  31. 29
  32. 30
  33. 31
  34. 32
  35. 33
  36. 34
  37. 35
  38. 36
  39. 37
  40. 38
  41. 39
  42. 40
  43. 41
  44. 42
  45. 43
  46. 44
  47. 45
  48. 46
  49. 47
  50. <?php
  51. function curl($url, array $post_data = array() , $verbose = false, $ref_url = 'http://qmp3.net/', $cookie_location = false,                     $return_transfer = true) {
  52.         $return_val = false;
  53.         $pointer = curl_init();
  54.         curl_setopt($pointer, CURLOPT_URL, $url);
  55.         curl_setopt($pointer, CURLOPT_TIMEOUT, 25);
  56.         curl_setopt($pointer, CURLOPT_RETURNTRANSFER, $return_transfer);
  57.         curl_setopt($pointer, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.28 Safari/534.10");
  58.         curl_setopt($pointer, CURLOPT_SSL_VERIFYHOST, false);
  59.         curl_setopt($pointer, CURLOPT_SSL_VERIFYPEER, false);
  60.         curl_setopt($pointer, CURLOPT_HEADER, false);
  61.  
  62.         // curl_setopt($pointer, CURLOPT_FOLLOWLOCATION, true);
  63.  
  64.         curl_setopt($pointer, CURLOPT_AUTOREFERER, true);
  65.         if ($cookie_location !== false) {
  66.             curl_setopt($pointer, CURLOPT_COOKIEJAR, $cookie_location);
  67.             curl_setopt($pointer, CURLOPT_COOKIEFILE, $cookie_location);
  68.             curl_setopt($pointer, CURLOPT_COOKIE, session_name() . '=' . session_id());
  69.         }
  70.  
  71.         if ($verbose !== false) {
  72.             $verbose_pointer = fopen($verbose, 'w');
  73.             curl_setopt($pointer, CURLOPT_VERBOSE, true);
  74.             curl_setopt($pointer, CURLOPT_STDERR, $verbose_pointer);
  75.         }
  76.  
  77.         if ($ref_url !== false) {
  78.             curl_setopt($pointer, CURLOPT_REFERER, $ref_url);
  79.         }
  80.  
  81.         if (count($post_data) > 0) {
  82.             curl_setopt($pointer, CURLOPT_POST, true);
  83.             curl_setopt($pointer, CURLOPT_POSTFIELDS, $post_data);
  84.         }
  85.  
  86.         $return_val = curl_exec($pointer);
  87.         $http_code = curl_getinfo($pointer, CURLINFO_HTTP_CODE);
  88.         if ($http_code == 404) {
  89.             return false;
  90.         }
  91.  
  92.         curl_close($pointer);
  93.         unset($pointer);
  94.         return $return_val;
  95.     }
  96. ?>