Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

CCBC - Live Free

By: livefree on Jan 13th, 2013  |  syntax: PHP  |  size: 0.54 KB  |  views: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // This section is experimental and not working (also the 'do_shorcode...' sections below)
  4.  
  5. include ("../../../wp-load.php");
  6. include ("../../../wp-includes/shortcodes.php");
  7.  
  8. // end of section
  9.  
  10. $cwd = getcwd();
  11. $path = substr($cwd, 0, strpos($cwd, 'wp-content/'));
  12. require $path . 'wp-blog-header.php';
  13. global $adrotate_config;
  14.  
  15. do_shortcode('[CBC country="us" show="y"]');
  16. echo adrotate_group('1');
  17. do_shortcode('[/CBC]');
  18.  
  19. do_shortcode('[CBC country="us" show="n"]');
  20. echo "Hello World!";
  21. do_shortcode('[/CBC]');
  22.  
  23. ?>