Changeset 55
- Timestamp:
- 02/19/07 20:09:25 (5 years ago)
- Files:
-
- trunk/tools/copy2test.bat.sample (modified) (1 diff)
- trunk/tools/test_wsdl.php (modified) (1 diff)
- trunk/wp_iminr.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/copy2test.bat.sample
r51 r55 1 1 REM Set path to WordPress installation (version 2.1 and 2.0) 2 set WORDPRESS_PATH_2_0=C:\Program Files\Apache Software Foundation\Apache2 .2\htdocs\wordpress_2_03 set WORDPRESS_PATH_2_1=C:\Program Files\Apache Software Foundation\Apache2 .2\htdocs\wordpress_2_12 set WORDPRESS_PATH_2_0=C:\Program Files\Apache Software Foundation\Apache2\htdocs\wordpress_2_0 3 set WORDPRESS_PATH_2_1=C:\Program Files\Apache Software Foundation\Apache2\htdocs\wordpress_2_1 4 4 5 5 REM Set path to plugin folder from WordPress root trunk/tools/test_wsdl.php
r53 r55 3 3 $wsdl_url = 'http://www.iminr.com/mining/wsMining.asmx?WSDL'; 4 4 5 $client = new SoapClient($wsdl_url, array('trace' => 1 ));5 $client = new SoapClient($wsdl_url, array('trace' => 1, 'exceptions' => 0)); 6 6 7 7 $params = array ( 8 'webSiteId' => '10271',9 'ip' => '83.78.14.96',10 'name' => 'wp_posts',11 'val' => '1'8 'webSiteId' => '10271', 9 'ip' => '83.78.14.96', 10 'name' => 'wp_posts', 11 'val' => 1 12 12 ); 13 13 trunk/wp_iminr.php
r54 r55 87 87 88 88 // defaults values 89 $wp_iminr_default_options['account_id'] = '';89 $wp_iminr_default_options['account_id'] = ''; 90 90 91 91 $wp_iminr_default_options['enable_tracker'] = false; … … 96 96 $wp_iminr_default_options['tracker_in_footer_before'] = '<br />'; 97 97 $wp_iminr_default_options['tracker_in_footer_after'] = ''; 98 $wp_iminr_default_options['desable_for_roles'] = array('administrator');98 $wp_iminr_default_options['desable_for_roles'] = array('administrator'); 99 99 100 100 // add default options to the database unless options already exist … … 123 123 $wp_iminr_options = get_option('wp_iminr_options'); 124 124 125 $wp_iminr_options['account_id'] = $_POST['account_id'];125 $wp_iminr_options['account_id'] = $_POST['account_id']; 126 126 127 127 $wp_iminr_options['enable_tracker'] = ($_POST['enable_tracker'] == 'true' ? true : false); … … 132 132 $wp_iminr_options['tracker_in_footer_before'] = $_POST['tracker_in_footer_before']; 133 133 $wp_iminr_options['tracker_in_footer_after'] = $_POST['tracker_in_footer_after']; 134 $wp_iminr_options['desable_for_roles'] = $_POST['desable_for_roles'];134 $wp_iminr_options['desable_for_roles'] = $_POST['desable_for_roles']; 135 135 136 136 update_option('wp_iminr_options', $wp_iminr_options);
