Plugin Directory

Changeset 1567606


Ignore:
Timestamp:
01/04/2017 05:13:58 AM (9 years ago)
Author:
nlpcaptcha
Message:

files changed for nlpcaptcha plugin

Location:
nlpcaptcha/trunk
Files:
1 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • nlpcaptcha/trunk/nlpcaptcha.php

    r604124 r1567606  
    11<?php
    22
    3 require_once('wp-plugin.php');
    4 
     3require_once( plugin_dir_path(__FILE__) . 'nlpcaptcha/wp-plugin.php');
    54if (!class_exists('NLPCaptcha')) {
    65    class NLPCaptcha extends WPPlugin {
  • nlpcaptcha/trunk/readme.txt

    r1561995 r1567606  
    11=== Plugin Name ===
    22Contributors: NLPCaptcha
     3TDonate link: http://www.nlpcaptcha.in
    34Tags: comments, registration, nlpcaptcha, antispam, mailhide, captcha
    45Requires at least: 2.7
     
    4041* Initial Release
    4142
     43== Upgrade Notice ==
     44
     45= 1.0 =
     46This is initial version of the kommentbox for wordpress plugin
    4247
    4348== Frequently Asked Questions ==
  • nlpcaptcha/trunk/settings.php

    r603606 r1567606  
    33    if (defined('ALLOW_INCLUDE') === false)
    44        die('no direct access');
    5 
    65?>
    76
  • nlpcaptcha/trunk/uninstall.php

    r1561995 r1567606  
    33// include unregister_setting, delete_option, and other uninstall behavior here
    44
    5 require_once('wp-plugin.php');
    6 
    7 function uninstall_options($name) {
    8     unregister_setting("${name}_group", $name);
    9     WPPlugin::remove_options($name);
     5if (!defined('WP_UNINSTALL_PLUGIN'))
     6{
     7    die;
    108}
    11 
     9include( plugin_dir_path(__FILE__) . 'nlpcaptcha/wp-plugin.php');
     10$options = 'komentbox_options';
     11unregister_setting("${name}_group", $name);
     12WPPlugin::remove_options($options);
    1213// nlpcaptcha
    1314uninstall_options('nlpcaptcha_options');
  • nlpcaptcha/trunk/wp-nlpcaptcha.php

    r1213990 r1567606  
    4040define('ALLOW_INCLUDE', true);
    4141
    42 require_once('nlpcaptcha.php');
     42require_once( plugin_dir_path(__FILE__) . 'nlpcaptcha/nlpcaptcha.php');
     43
    4344
    4445$nlpcaptcha = new NLPCaptcha('nlpcaptcha_options');
  • nlpcaptcha/trunk/wp-plugin.php

    r603606 r1567606  
    11<?php
    22
    3 // just making sure the constant is defined
    4 if (!defined('WP_CONTENT_DIR'))
    5     define('WP_CONTENT_DIR', ABSPATH . 'wp-content');
    6  
    73
    8 if (!class_exists('Environment')) {
    94    class Environment {
    105        const WordPress = 1; // regular wordpress
     
    127        const WordPressMS = 3; // wordpress multi-site
    138    }
    14 }
    159
    16 if (!class_exists('WPPlugin')) {
     10
    1711    abstract class WPPlugin {
    1812        protected $environment; // what environment are we in
     
    128122        }
    129123    }
    130 }
     124
    131125
    132126?>
Note: See TracChangeset for help on using the changeset viewer.