Plugin Directory

Changeset 2306831


Ignore:
Timestamp:
05/18/2020 01:09:13 AM (6 years ago)
Author:
vaptcha
Message:

edit new problem

Location:
vaptcha/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • vaptcha/trunk/VaptchaPlugin.php

    r2305338 r2306831  
    11<?php
    2 //禁用错误报告
    3 error_reporting(0);
     2if ( !defined('ABSPATH') ) {
     3   exit('No direct script access allowed');
     4}
    45
    56require_once plugin_dir_path( __FILE__ ) . 'lib/Vaptcha.class.php';
    67require_once plugin_dir_path( __FILE__ ) . 'options.php';
    7 // require_once plugins_url('lib/Vaptcha.class.php',__FILE__);
    8 // require_once plugins_url('options.php',__FILE__);
    9 //使用php的导入方式
    10 //   require_once dirname(__FILE__) . '/options.php';
    11 //   require_once dirname(__FILE__) . '/lib/Vaptcha.class.php';
    128
    139class VaptchaPlugin
     
    4642        $vid = get_option('vaptcha_options')['vaptcha_vid'];
    4743        $lang = get_option('vaptcha_options')['vaptcha_lang'];
    48         $ai = get_option('vaptcha_options')['vaptcha_ai'];
     44        // $ai = get_option('vaptcha_options')['vaptcha_ai'];
    4945        $height = get_option('vaptcha_options')['vaptcha_height'];
    5046        $width = get_option('vaptcha_options')['vaptcha_width'];
  • vaptcha/trunk/lib/Vaptcha.class.php

    r2305338 r2306831  
    11<?php
     2if ( !defined('ABSPATH') ) {
     3   exit('No direct script access allowed');
     4}
    25session_start();
    36class Vaptcha
  • vaptcha/trunk/options.php

    r2303133 r2306831  
    11<?php
     2if ( !defined('ABSPATH') ) {
     3   exit('No direct script access allowed');
     4}
    25function vaptcha_options_page_html()
    36{
  • vaptcha/trunk/vaptcha.php

    r2303059 r2306831  
    2727    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2828*/
     29// if ( !defined('ABSPATH') ) {
     30//     $path = $_SERVER['DOCUMENT_ROOT'];
     31//     include_once $path . '/wordpress/wp-load.php';
     32// }
    2933if ( !defined('ABSPATH') ) {
    30     $path = $_SERVER['DOCUMENT_ROOT'];
    31     include_once $path . '/wordpress/wp-load.php';
     34   exit('No direct script access allowed');
    3235}
    3336
Note: See TracChangeset for help on using the changeset viewer.