Changeset 394795
- Timestamp:
- 06/08/2011 10:17:21 PM (15 years ago)
- Location:
- whipplehill-integration/trunk
- Files:
-
- 8 edited
-
classes/cap.class.php (modified) (3 diffs)
-
classes/extend.class.php (modified) (6 diffs)
-
classes/rpc.class.php (modified) (2 diffs)
-
classes/sso.class.php (modified) (1 diff)
-
classes/wh-int.class.php (modified) (1 diff)
-
config.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
wh_integration.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
whipplehill-integration/trunk/classes/cap.class.php
r304204 r394795 47 47 switch ( $cap ) { 48 48 case 'manage_network': 49 $caps[] = 'do_not_allow';49 //$caps[] = 'do_not_allow'; 50 50 break; 51 51 … … 65 65 case 'install_plugins': 66 66 $caps[] = 'do_not_allow'; 67 67 68 break; 68 69 … … 80 81 $caps[] = 'do_not_allow'; 81 82 break; 83 /* 82 84 case 'install_themes': 83 85 $caps[] = 'do_not_allow'; 84 86 break; 87 */ 85 88 case 'edit_users': 86 89 $caps[] = 'do_now_allow'; -
whipplehill-integration/trunk/classes/extend.class.php
r304204 r394795 30 30 31 31 add_filter('wpmu_users_columns',array( &$this , 'edit_users_columns' )); 32 add_filter('manage_users_custom_column', array( &$this , 'custom_columns' ), 5, 2);32 add_filter('manage_users_custom_column', array( &$this , 'custom_columns' ),0, 2); 33 33 34 34 //Remove Items that should only for Full Super Admins … … 122 122 function edit_users_columns($columns){ 123 123 $users_columns = array( 124 'id' => __( 'ID' ),125 ' login' => __( 'Username' ),124 //'id' => __( 'ID' ), 125 'username' => __( 'Username' ), 126 126 'name' => __( 'Name' ), 127 127 'email' => __( 'E-mail' ), 128 128 'registered' => _x( 'Registered', 'user' ), 129 'pid' => 'WH ID',130 'whwpadmin' => 'WPM',129 'pid' => __( 'WH ID'), 130 'whwpadmin' => __( 'WPM' ), 131 131 'blogs' => __( 'Sites' ) 132 132 ); … … 135 135 136 136 137 function custom_columns( $column , $id){137 function custom_columns( $column , $id){ 138 138 switch($column): 139 139 case 'pid': 140 echo $this->get_podium_id_for_user($id) ;140 echo $this->get_podium_id_for_user($id).'234'; 141 141 break; 142 142 case 'whwpadmin': … … 151 151 152 152 } 153 154 155 156 157 158 159 153 function get_blog_list( $start = 0, $num = 10 ) { 160 154 global $wpdb; … … 205 199 206 200 $user = new WP_User( $user_id ); 201 202 //updated for wordpress 3.1 - allows super admin access to the network sites. 203 $user->for_blog( 1 ); 204 $user->add_role( "subscriber" ); 205 207 206 grant_super_admin( $user_id ); 208 207 if ( ! in_array( $user->user_login, $wh_super_admins ) ) { … … 343 342 $this->update_wh_super_admin($userinfo ,$network_admin); 344 343 } 345 return $userinfo; 346 347 344 return $userinfo; 348 345 } 349 346 -
whipplehill-integration/trunk/classes/rpc.class.php
r304204 r394795 23 23 function add_hooks() 24 24 { 25 add_filter( 'xmlrpc_methods', array( &$this, 'xmlrpc_methods') ); 25 26 WH_Integration_Helper::log('add hooks loaded in xml rpc'); 27 add_filter( 'xmlrpc_methods', array( &$this, 'xmlrpc_methods')); 26 28 } 27 29 //END ADD FILTERS … … 29 31 30 32 function xmlrpc_methods( $methods ) 31 { 33 34 { 35 36 WH_Integration_Helper::log('methods loaded in xml rpc'); 32 37 //GET PLUGIN VERSION 33 38 $methods['wh.version'] = array(&$this,'version'); -
whipplehill-integration/trunk/classes/sso.class.php
r304204 r394795 46 46 { 47 47 48 $sso_get = ( $_GET['sso'] ) ? $_GET['sso'] : 0;48 $sso_get = isset( $_GET['sso'] ) ? $_GET['sso'] : 0; 49 49 50 50 if ( !is_user_logged_in() && WH_Integration_Helper::bool_val($sso_get) ) { 51 51 wp_redirect(get_option('home') . "/wp-login.php?redirect_to=" . urlencode($_SERVER['REQUEST_URI'])); 52 52 } 53 $no_sso = ($_GET['wplogin']) ? $_GET['wplogin']: 0;54 $no_sso_user = ($_GET['user']) ? $_GET['user'] : '';53 $no_sso = isset($_GET['wplogin']) ? $_GET['wplogin']: 0; 54 $no_sso_user = isset($_GET['user']) ? $_GET['user'] : ''; 55 55 56 if( WH_Integration_Helper::bool_val( $no_sso ) ){56 if( WH_Integration_Helper::bool_val( $no_sso ) ){ 57 57 $user_via_username = get_user_by('login', $no_sso_user ); 58 58 //wp_die("suadmin: ".$user_via_username->ID); 59 59 if( is_super_admin($user_via_username->ID) && !$this->extend_obj->wh_super_admin($user_via_username->ID) ){ 60 60 61 remove_filter( 'authenticate', array( &$this, 'sso_login_from_podium' ),10, 3); 61 62 } -
whipplehill-integration/trunk/classes/wh-int.class.php
r304204 r394795 21 21 $this->sso_obj = WH_Integration::get_instance('WH_Integration_SSO'); 22 22 $this->cap_obj = WH_Integration::get_instance('WH_Integration_Capabilities'); 23 23 WH_Integration_Helper::log('add hooks loaded in xml rpc'); 24 24 25 25 $this->add_filters_and_actions(); -
whipplehill-integration/trunk/config.php
r304204 r394795 5 5 'plugin_name' => 'whipplehill-integration', 6 6 'plugin_path' => '/' . PLUGINDIR . '/whipplehill-integration/', 7 'plugin_version' => '1.2 ',7 'plugin_version' => '1.2.1', 8 8 'plugin_url' => 'http://www.whipplehill.com/ecosystem/software/detail.aspx?id=551627' 9 9 ); -
whipplehill-integration/trunk/readme.txt
r394605 r394795 1 1 === WhippleHill Integration === 2 2 Contributors: WhippleHill Communications 3 Tags: whipplehill , podium4 Requires at least: 3. 05 Tested up to: 3. 0.16 Stable tag: 1.23 Tags: whipplehill 4 Requires at least: 3.1 5 Tested up to: 3.1.3 6 Stable tag: 2.0 7 7 8 8 Creates a fully integrated solution between a WordPress MultiSite installation and WhippleHill's Podium Platform. … … 24 24 * Multisite enabled 25 25 * The Mcrypt PHP library 26 We canÕt test every possible environment but if you can run WordPress and have the above installed the plugin should run without any trouble. 26 27 We can't test every possible environment but if you can run WordPress and have the above installed the plugin should run without any trouble. 27 28 28 29 = Plugin Conflicts = … … 89 90 == Changelog == 90 91 92 = 2.0 = 93 Added support for WordPress 3.1+ (This version of the plugin WILL NOT WORK for WordPress 3.0, please continue to use version 1.2.) 94 91 95 = 1.2 = 92 96 Added support for Sub-domain installs. 97 93 98 Added checks for conflicting Plugins. 99 94 100 Fixed install issue for new installs, Podium url was not being saved. 95 101 … … 134 140 == Upgrade Notice == 135 141 142 = 1.2 = 143 Update for Sub-domain installs and SSO Links. 144 136 145 = 1.1.9 = 137 146 Security patch for user access controls -
whipplehill-integration/trunk/wh_integration.php
r304204 r394795 4 4 Plugin URI: http://wordpress.org/extend/plugins/whipplehill-integration/ 5 5 Description: Connects a MultiSite WordPress installation to a school's Podium software. Requires the Integraton to be activated in Podium by WhippleHill. 6 Version: 1.26 Version: 2.0 7 7 Author: WhippleHill Communications 8 8 Author URI: http://www.whipplehill.com … … 34 34 //define('WH_WPM_AS_SUPER_ADMIN',true); 35 35 36 $wh_integration = new WH_integration(); 36 37 38 add_action( 'set_current_user', 'testfuncwh' ); 39 function testfuncwh(){ 40 $wh_integration = new WH_integration(); 41 } 42 43 add_filter('wp_xmlrpc_server_class','testfunctionrpc'); 44 45 function testfunctionrpc($stuff){ 46 $wh_integration = new WH_integration(); 47 return $stuff; 48 }
Note: See TracChangeset
for help on using the changeset viewer.