function rssmi_ratePlugin() { $dismiss_link_joiner = count($_GET) > 0 ? '&' : '?'; if (current_user_can('activate_plugins')) { if (rssmi_check_didUpgrade() == 1) { //restrict this users you have upgraded and only to the plugin pages!!! // if ((isset( $_GET['post_type'] )) && (strpos("rssmi_feed",$_GET['post_type'] ,0)!==false) || ( isset( $_GET['page'] )) && ((strpos("wprssmi",$_GET['page'] ,0)!==false) || (strpos('wprssmi',$_GET['page'] )!==false ) || (strpos('wprssmi_options',$_GET['page'] )!==false ) || (strpos('wprssmi_options2',$_GET['page'] )!==false ) || (strpos('wprssmi_options3',$_GET['page'] )!==false ) || (strpos('wprssmi_options4',$_GET['page'] )!==false ) || (strpos('wprssmi_options9',$_GET['page'] )!==false ) || (strpos('wprssmi_options5',$_GET['page'] )!==false ) || (strpos('wprssmi_options8',$_GET['page'] )!==false )|| (strpos('wprssmi_options7',$_GET['page'] )!==false ))) { if (rssmi_is_plugin_page() == 1) { if (!empty($_GET['rssmi_dismiss_rating'])) { update_option('rssmi_dismiss_rating', 1); } else { if (get_option('rssmi_dismiss_rating') == false) { ?> <div id="rating_message" class="updated"> <p><?php echo sprintf(__('I hope you\'re enjoying this free Multi-Importer plugin. Please consider <a href="%s" target="_blank">saying thanks with a good rating</a>. You can dismiss this message forever by <a href="%s">clicking here</a>.'), 'http://wordpress.org/support/view/plugin-reviews/wp-rss-multi-importer', $_SERVER['REQUEST_URI'] . $dismiss_link_joiner . 'rssmi_dismiss_rating=1'); ?> </p> </div> <?php } } } } } }
function rssmi_admin_warnings() { if (current_user_can('activate_plugins')) { if (rssmi_check_didUpgrade() == 0) { //restrict this to the plugin pages!!! // if ((isset( $_GET['post_type'] )) && (strpos("rssmi_feed",$_GET['post_type'] ,0)!==false) || ( isset( $_GET['page'] )) && ((strpos("wprssmi",$_GET['page'] ,0)!==false) || (strpos('wprssmi',$_GET['page'] )!==false ) || (strpos('wprssmi_options',$_GET['page'] )!==false ) || (strpos('wprssmi_options2',$_GET['page'] )!==false ) || (strpos('wprssmi_options3',$_GET['page'] )!==false ) || (strpos('wprssmi_options4',$_GET['page'] )!==false ) || (strpos('wprssmi_options9',$_GET['page'] )!==false ) || (strpos('wprssmi_options5',$_GET['page'] )!==false ) || (strpos('wprssmi_options8',$_GET['page'] )!==false )|| (strpos('wprssmi_options7',$_GET['page'] )!==false ))) { if (rssmi_is_plugin_page() == 1) { ?> <div id="upgrade_message" class="error"> <p><?php echo sprintf(__('Thank you for upgrading to the new version of Multi-Importer. <br>To activate the new features you need to upgrade the database for the plugin. <br>No problem. Just go to the <a href="%s">Start Here page</a> and follow the simple directions. Sorry for the extra step! '), 'admin.php?page=wprssmi'); ?> </p> </div> <?php } } } }