Changeset 2306831
- Timestamp:
- 05/18/2020 01:09:13 AM (6 years ago)
- Location:
- vaptcha/trunk
- Files:
-
- 4 edited
-
VaptchaPlugin.php (modified) (2 diffs)
-
lib/Vaptcha.class.php (modified) (1 diff)
-
options.php (modified) (1 diff)
-
vaptcha.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vaptcha/trunk/VaptchaPlugin.php
r2305338 r2306831 1 1 <?php 2 //禁用错误报告 3 error_reporting(0); 2 if ( !defined('ABSPATH') ) { 3 exit('No direct script access allowed'); 4 } 4 5 5 6 require_once plugin_dir_path( __FILE__ ) . 'lib/Vaptcha.class.php'; 6 7 require_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';12 8 13 9 class VaptchaPlugin … … 46 42 $vid = get_option('vaptcha_options')['vaptcha_vid']; 47 43 $lang = get_option('vaptcha_options')['vaptcha_lang']; 48 $ai = get_option('vaptcha_options')['vaptcha_ai'];44 // $ai = get_option('vaptcha_options')['vaptcha_ai']; 49 45 $height = get_option('vaptcha_options')['vaptcha_height']; 50 46 $width = get_option('vaptcha_options')['vaptcha_width']; -
vaptcha/trunk/lib/Vaptcha.class.php
r2305338 r2306831 1 1 <?php 2 if ( !defined('ABSPATH') ) { 3 exit('No direct script access allowed'); 4 } 2 5 session_start(); 3 6 class Vaptcha -
vaptcha/trunk/options.php
r2303133 r2306831 1 1 <?php 2 if ( !defined('ABSPATH') ) { 3 exit('No direct script access allowed'); 4 } 2 5 function vaptcha_options_page_html() 3 6 { -
vaptcha/trunk/vaptcha.php
r2303059 r2306831 27 27 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 28 28 */ 29 // if ( !defined('ABSPATH') ) { 30 // $path = $_SERVER['DOCUMENT_ROOT']; 31 // include_once $path . '/wordpress/wp-load.php'; 32 // } 29 33 if ( !defined('ABSPATH') ) { 30 $path = $_SERVER['DOCUMENT_ROOT']; 31 include_once $path . '/wordpress/wp-load.php'; 34 exit('No direct script access allowed'); 32 35 } 33 36
Note: See TracChangeset
for help on using the changeset viewer.