Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: WP VideoTube
  4. Plugin URI: http://www.wpvideotube.com
  5. Description: Post YouTube videos automatically based on keywords you setup.
  6. Version: 1.3.3
  7. Author: WordPress Lab
  8. Author URI: http://www.wordpresslab.net/
  9. */
  10.  
  11.  
  12. /*
  13. TODO
  14. what can be done in the next version
  15.  
  16. * ability to redirect to another page after we sent POST, currently it does't redirect and if someone refreshes the page, script will re run
  17.  
  18. */
  19.  
  20. // check that php has version 5 or greater
  21. // NOTE, we need to mention plugin's name or sometimes it can be tricky
  22. // to understand what requires php5
  23. if (version_compare(PHP_VERSION, '5.0.0.', '<'))
  24. {
  25. die("WP VideoTube plugin only works with php 5 or a greater version.");
  26. }
  27.  
  28. /*
  29. This plugins needs SimpleXML to be enabled in php 5 (it's enabled by default)
  30. All requests via youtube API are made via curl and SimpleXML php mods
  31. */
  32.  
  33. // load classes
  34. require_once("classes/WPVT_Main.php");
  35. require_once("classes/WPVT_Design.php");
  36. require_once("classes/WPVT_Model.php");
  37. require_once("classes/WPVT_Messages.php");
  38. require_once("classes/WPVT_Poster.php");
  39.  
  40. $wpvt_main = new WPVT_Main;
  41.  
  42. $wpvt_poster = new WPVT_Poster;
  43.  
  44. // Elite version limitation
  45. // 0 - unlimited search terms (full version), more than 0 - light version
  46. define('WPVT_LV_LIMIT', 3);
  47.  
  48. // hooks
  49. .......................................................
  50. .......................
  51. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement