// wp 1.5.x activation code taken from the Wordpress Theme Toolkit by Ozh // http://planetOzh.com/ // After activating the theme. Visit your blog page. Then go back to the // presentation page. The new Journalized Theme Options admin panel should now // be visible. if (get_bloginfo('version') < 2) pluginification(); function pluginification () { $path = '../themes/' . basename(dirname(__FILE__)); $us = $path.'/functions.php'; $them = get_settings('active_plugins'); /* Now, are we members of the PPC (Plugins Private Club) yet ? */ if (!in_array($us,$them)) { /* No ? Jeez, claim member card ! */ $them[]=$us; update_option('active_plugins',$them); /* Wow. We're l33t now. */ return TRUE; } else { return FALSE; } } // Call this function to remove it. //depluginification(); function depluginification () { $path = '../themes/' . basename(dirname(__FILE__)); $us = $path.'/functions.php'; $them = get_settings('active_plugins'); if (in_array($us,$them)) { $here = array_search($us,$them); unset($them[$here]); update_option('active_plugins',$them); return TRUE; } else { return FALSE; } }