Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ALL);
  3. set_time_limit(0);
  4. ini_set('memory_limit','-1');
  5. header('Content-Type: text/html; charset=utf-8');
  6.  
  7. ob_start();
  8.  
  9. function clean() {
  10. ob_clean();
  11. header('Content-type: text/plain; charset=utf-8');
  12. $file = debug_backtrace();
  13. $array = func_get_args();
  14. if ( empty( $array ) ) {
  15. echo 'Variable Not Set';
  16. echo "\n\n";
  17. } else {
  18. foreach ( $array as $val ) {
  19. if ( !empty( $val ) && is_string( $val ) ) {
  20. echo $val;
  21. } else {
  22. var_dump( $val );
  23. }
  24. echo "\n\n";
  25. }
  26. }
  27. echo 'FileName : '.$file[0]['file']."\n";
  28. echo 'Line : '.$file[0]['line']."\n";
  29. die;
  30. }
  31.  
  32. function curlTool( $url ) {
  33. $ch = curl_init();
  34. curl_setopt( $ch, CURLOPT_URL, $url );
  35. curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
  36. curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 2 );
  37. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  38. $agent = 'User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)';
  39. curl_setopt($ch, CURLOPT_USERAGENT, $agent);
  40. $result = curl_exec( $ch );
  41. curl_close( $ch );
  42. return $result;
  43. }
  44.  
  45. $path = 'fonts/';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement