Changeset 225895
- Timestamp:
- 04/06/2010 09:40:54 PM (16 years ago)
- Location:
- phpbb-single-sign-on
- Files:
-
- 1 deleted
- 8 edited
-
nbproject (deleted)
-
trunk/common-functions.php (modified) (7 diffs)
-
trunk/connect-phpbb.php (modified) (1 diff)
-
trunk/files/auth_wpbb.php (modified) (2 diffs)
-
trunk/files/common.php (modified) (4 diffs)
-
trunk/module.phpbb.php (modified) (1 diff)
-
trunk/module.wp.php (modified) (1 diff)
-
trunk/options.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
phpbb-single-sign-on/trunk/common-functions.php
r203362 r225895 32 32 'folder' => ABSPATH.PHPBBPATH 33 33 ), 34 'common .orig' => array(35 'destin' => ABSPATH.PHPBBPATH.'common .orig.php',34 'common-orig' => array( 35 'destin' => ABSPATH.PHPBBPATH.'common-orig.php', 36 36 ) 37 37 ); … … 100 100 'destin' => wpbb_get_file_version($config_files['common']['destin']) 101 101 ), 102 'common .orig' => array(103 'destin' => wpbb_get_file_version($config_files['common .orig']['destin']),102 'common-orig' => array( 103 'destin' => wpbb_get_file_version($config_files['common-orig']['destin']), 104 104 ) 105 105 ); … … 134 134 return 0; 135 135 } 136 137 138 139 //TODO :: MAKE IT REALLY WORK140 return 'phpbb_';141 136 } 142 137 … … 148 143 'auth_wpbb.php' => true, 149 144 'common.php' => true, 150 'common .orig.php' => true,145 'common-orig.php' => true, 151 146 'auth_method' => true, 152 147 'path_var' => true … … 166 161 } 167 162 168 //common .orig.php169 if($file_versions['common .orig']['destin'] != 'Original'){163 //common-orig.php 164 if($file_versions['common-orig']['destin'] != 'Original'){ 170 165 $error = true ; 171 $test['common .orig.php'] = false;166 $test['common-orig.php'] = false; 172 167 } 173 168 … … 212 207 </tr> 213 208 <tr> 214 <td>common .orig.php</td>209 <td>common-orig.php</td> 215 210 <td>-</td> 216 <td>'.$file_versions['common .orig']['destin'].'</td>217 <td>'.wpbb_passed_test($test['common .orig.php']).'</td>211 <td>'.$file_versions['common-orig']['destin'].'</td> 212 <td>'.wpbb_passed_test($test['common-orig.php']).'</td> 218 213 </tr> 219 214 <tr> … … 301 296 wpbb_get_files_list($directory.'/'.$name, &$list, $base.$name.'/'); 302 297 } else { 303 if(strpos($name, '.php') !== false && $name != 'auth_wpbb.php' && $name != 'common .orig.php'){298 if(strpos($name, '.php') !== false && $name != 'auth_wpbb.php' && $name != 'common-orig.php'){ 304 299 $list[] = $base.$name; 305 300 } -
phpbb-single-sign-on/trunk/connect-phpbb.php
r210404 r225895 2 2 /* 3 3 Plugin Name: PHPBB Single Sign On 4 Version: 0.6. 24 Version: 0.6.3 5 5 Plugin URI: http://www.onigoetz.ch/plugins/wordpress-phpbb-plugin/ 6 6 Description: Connecte un site wordpress à PHPBB -
phpbb-single-sign-on/trunk/files/auth_wpbb.php
r210404 r225895 6 6 * 7 7 * @package login 8 * @version 0.6. 28 * @version 0.6.3 9 9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 10 10 * … … 76 76 $sql = 'SELECT user_id, username, user_password, user_passchg, user_pass_convert, user_email, user_type, user_login_attempts 77 77 FROM ' . USERS_TABLE . " 78 WHERE username _clean= '" . $db->sql_escape(utf8_clean_string($username)) . "'";78 WHERE username = '" . $db->sql_escape(utf8_clean_string($username)) . "'"; 79 79 $result = $db->sql_query($sql); 80 80 $phpBB_user = $db->sql_fetchrow($result); -
phpbb-single-sign-on/trunk/files/common.php
r210404 r225895 6 6 * 7 7 * @package login 8 * @version 0.6. 28 * @version 0.6.3 9 9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License 10 10 * … … 28 28 //includes/constants.php 29 29 30 $include_common_contents = include_for_eval($phpbb_root_path . 'common .orig.' . $phpEx);30 $include_common_contents = include_for_eval($phpbb_root_path . 'common-orig.' . $phpEx); 31 31 32 32 //called on line 127 of common.php //require($phpbb_root_path . 'config.' . $phpEx); … … 55 55 $include_common_contents = str_replace('make_clickable','wpbb_make_clickable',$include_common_contents); 56 56 57 58 /* 59 * COOKIE 60 */ 61 57 62 //corrige le get_cookie 58 63 $original_get_cookie = array( … … 70 75 $include_common_contents = str_replace($original_get_cookie,$new_get_cookie,$include_common_contents); 71 76 72 //Include de la version modifi �e de common.php77 //Include de la version modifiée de common.php 73 78 eval($include_common_contents); 74 79 -
phpbb-single-sign-on/trunk/module.phpbb.php
r194075 r225895 25 25 // Hack to fix declaration of make_clickable 26 26 //do not include the function_content, there is a depedency in auth_op to check if it's opened from within phpbb or within wordpress 27 $include_contents = file_get_contents($phpbb_root_path . 'common.orig.' . $phpEx); 27 28 if(file_exists($phpbb_root_path . 'common-orig.' . $phpEx)){ 29 $common_file = $phpbb_root_path . 'common-orig.' . $phpEx; 30 } else { 31 $common_file = $phpbb_root_path . 'common.orig.' . $phpEx; 32 } 33 34 35 $include_contents = file_get_contents($common_file); 28 36 $include_contents = str_replace('<?php','',$include_contents); 29 37 $include_contents = str_replace('?>','',$include_contents); -
phpbb-single-sign-on/trunk/module.wp.php
r194075 r225895 10 10 } 11 11 else{ 12 $include_registration_contents = file_get_contents(ABSPATH . WPINC . '/registration.php');13 $include_registration_contents = preg_replace('/^\<\?php/','',$include_registration_contents);14 $include_registration_contents = preg_replace('/\?\>$/','',$include_registration_contents);15 $include_registration_contents = str_replace('validate_username','op_validate_username',$include_registration_contents);16 17 $include_admin_contents = file_get_contents(ABSPATH . '/wp-admin/includes/admin.php');18 $include_admin_contents = preg_replace('/^\<\?php/','',$include_admin_contents);19 $include_admin_contents = preg_replace('/\?\>$/','',$include_admin_contents);20 $include_admin_contents = str_replace('require_once(ABSPATH . WPINC . \'/registration.php\');',$include_registration_contents,$include_admin_contents);21 22 eval($include_admin_contents);12 $include_registration_contents = file_get_contents(ABSPATH . WPINC . '/registration.php'); 13 $include_registration_contents = preg_replace('/^\<\?php/','',$include_registration_contents); 14 $include_registration_contents = preg_replace('/\?\>$/','',$include_registration_contents); 15 $include_registration_contents = str_replace('validate_username','op_validate_username',$include_registration_contents); 16 17 $include_admin_contents = file_get_contents(ABSPATH . '/wp-admin/includes/admin.php'); 18 $include_admin_contents = preg_replace('/^\<\?php/','',$include_admin_contents); 19 $include_admin_contents = preg_replace('/\?\>$/','',$include_admin_contents); 20 $include_admin_contents = str_replace('require_once(ABSPATH . WPINC . \'/registration.php\');',$include_registration_contents,$include_admin_contents); 21 22 eval($include_admin_contents); 23 23 } 24 24 } -
phpbb-single-sign-on/trunk/options.php
r203362 r225895 33 33 } 34 34 35 //Version compatibility before 0.6.3 36 if(file_exists(ABSPATH.PHPBBPATH.'common.orig.php')){ 37 copy(ABSPATH.PHPBBPATH.'common.orig.php',$config_files['common-orig']['destin']); 38 unlink(ABSPATH.PHPBBPATH.'common.orig.php'); 39 } 35 40 36 41 //POST : Install the plugin … … 54 59 if(wpbb_get_file_version($config_files['common']['destin']) == 'Original') { 55 60 //is original file there ? 56 if(file_exists($config_files['common .orig']['destin'])){57 unlink($config_files['common .orig']['destin']);61 if(file_exists($config_files['common-orig']['destin'])){ 62 unlink($config_files['common-orig']['destin']); 58 63 } 59 64 //put the original file there 60 copy($config_files['common']['destin'],$config_files['common .orig']['destin']);65 copy($config_files['common']['destin'],$config_files['common-orig']['destin']); 61 66 } 62 67 … … 147 152 <?php if(wpbb_get_file_version($config_files['common']['destin']) == 'Original'){ ?> 148 153 <p>It seems that this file is the original common.php file.<br /> 149 you will have to rename this file from <strong>common.php</strong> to <strong>common .orig.php</strong><br />154 you will have to rename this file from <strong>common.php</strong> to <strong>common-orig.php</strong><br /> 150 155 the file is in the folder <strong><?php echo $config_files['common']['folder'] ?></strong></p> 151 156 <?php } ?> 152 157 <p>This file must be copied from <strong><?php echo $config_files['common']['source']; ?></strong> to <strong><?php echo $config_files['common']['destin']; ?></strong></p> 153 158 154 <p><strong>common .orig.php</strong></p>159 <p><strong>common-orig.php</strong></p> 155 160 <p>You already did this on the previous step, this file doesn't exist by default, it's the original common.php file, because this script needs another one in place to load some libraries</p> 156 161 -
phpbb-single-sign-on/trunk/readme.txt
r210404 r225895 32 32 * Make it work on multiple db's 33 33 * Ability to put wordpress in a child folder of phpbb or at the same level 34 35 = 0.6.3 = 36 * Bugfix : Changed common.orig.php to common-orig.php to solve some problems 37 * Change : Changed the match from username_clean to username, should solve some problems with the double usernames 34 38 35 39 = 0.6.2 =
Note: See TracChangeset
for help on using the changeset viewer.