Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: WP VideoTube
- Plugin URI: http://www.wpvideotube.com
- Description: Post YouTube videos automatically based on keywords you setup.
- Version: 1.3.3
- Author: WordPress Lab
- Author URI: http://www.wordpresslab.net/
- */
- /*
- TODO
- what can be done in the next version
- * 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
- */
- // check that php has version 5 or greater
- // NOTE, we need to mention plugin's name or sometimes it can be tricky
- // to understand what requires php5
- if (version_compare(PHP_VERSION, '5.0.0.', '<'))
- {
- die("WP VideoTube plugin only works with php 5 or a greater version.");
- }
- /*
- This plugins needs SimpleXML to be enabled in php 5 (it's enabled by default)
- All requests via youtube API are made via curl and SimpleXML php mods
- */
- // load classes
- require_once("classes/WPVT_Main.php");
- require_once("classes/WPVT_Design.php");
- require_once("classes/WPVT_Model.php");
- require_once("classes/WPVT_Messages.php");
- require_once("classes/WPVT_Poster.php");
- $wpvt_main = new WPVT_Main;
- $wpvt_poster = new WPVT_Poster;
- // Elite version limitation
- // 0 - unlimited search terms (full version), more than 0 - light version
- define('WPVT_LV_LIMIT', 3);
- // hooks
- .......................................................
- .......................
- .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement