Files
wp-cw/content-warning-v3.php
2014-11-24 09:47:48 -05:00

25 lines
899 B
PHP

<?php
/*
Plugin Name: Content Warning v2
Plugin URI: http://plugish.com/plugins/content-warning-v3
Description: A plugin based on my v2 code, while drastically deviating from the original. Used mainly for NSFW websites, this plugin provides a dialog popup to warn viewers of it's possible content.
Author: Jerry Wood Jr.
Version: 3.6.0
Author URI: http://plugish.com
*/
require_once dirname( __FILE__ ) . '/inc/api.php';
if ( is_admin() ){
require_once dirname( __FILE__ ) . '/inc/options.inc.php';
if ( ! class_exists( 'JW_SIMPLE_OPTIONS' ) ){
require_once dirname( __FILE__ ) . '/lib/jw_simple_options/simple_options.php';
}
require_once dirname( __FILE__ ) . '/class/admin.class.php';
$cwv3_options = new JW_SIMPLE_OPTIONS( $cwv3_op_data );
register_uninstall_hook( __FILE__, $cwv3_options->uninstall() );
} else {
require_once dirname( __FILE__ ) . '/class/main.class.php';
}