//////////////////////////////////** **/////////////////////////////////// // ** ** // // ******************************* // $l = $getFILE->directoryList(array('dir' => dirname(__FILE__) . '/core/', 'rec' => true, 'flat' => true, 'depth' => 1)); if (is_array($l)) { foreach ($l as $k => $v) { require_once $v; } } unset($l, $k, $v); // ******************************* // //________________________________** CHECK DIRECTORIES **_________________________________// //////////////////////////////////** **/////////////////////////////////// // ** ** // // ******************************* // if (!is_file(WP_CONTENT_DIR . '/cache/ayvpp.txt') and !$getFILE->createFile('ayvpp.txt', '', WP_CONTENT_DIR . '/cache')) { $getWP->addError('Automatic YouTube Video Posts Plugin file (' . WP_CONTENT_DIR . '/cache/ayvpp.txt) either does not exist or is not writable. You cannot properly use the "Import" aspects of this plugin until this is resolved.'); } if (!$getFILE->isWritableDirectory(WP_CONTENT_DIR . '/cache/timthumb')) { $getWP->addError('Automatic YouTube Video Posts Plugin folder (' . WP_CONTENT_DIR . '/cache/timthumb) either does not exist or is not writable. You cannot properly use the "thumbnail" aspects of this plugin until this is resolved.'); } // ******************************* // //________________________________** INITIALIZE PLUGIN **_________________________________// //////////////////////////////////** **/////////////////////////////////// // ** ** // // ******************************* // add_action('init', 'WP_ayvpp_init', 0); function WP_ayvpp_init() { global $getWP, $tern_wp_youtube_post_defaults; $o = $getWP->getOption('tern_wp_youtube', $tern_wp_youtube_options);