Deimos161

Untitled

Feb 16th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.85 KB | None | 0 0
  1. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_content.php:
  2.  
  3. if (!defined('WPINC') && !defined('USING_WP')) {
  4. function make_clickable($text, $server_url = false, $class = 'postlink') {
  5. return phpbb_make_clickable($text, $server_url, $class);
  6. }
  7. }
  8.  
  9. function phpbb_make_clickable($text, $server_url = false, $class = 'postlink')
  10.  
  11. Cannot locate the following in /home/empykzsu/public_html/forums/includes/acp/acp_users.php:
  12.  
  13. $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user_id;
  14. $result = $db->sql_query($sql);
  15. $wp_id = (int) $db->sql_fetchfield('wp_id');
  16. $db->sql_freeresult($result);
  17. if ($wp_id) {
  18. global $dbwp;
  19. $sql = 'UPDATE ' . $config['wp_user_table'] . " SET user_pass = '" . $sql_ary['user_password'] . "' WHERE ID = " . $wp_id;
  20. $dbwp->sql_query($sql);
  21. }
  22. add_log('user', $user_id, 'LOG_USER_NEW_PASSWORD', $user_row['username']);
  23.  
  24. Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_profile.php:
  25.  
  26. $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user->data['user_id'];
  27. $result = $db->sql_query($sql);
  28. $wp_id = (int) $db->sql_fetchfield('wp_id');
  29. $db->sql_freeresult($result);
  30. if ($wp_id) {
  31. global $dbwp;
  32. $sql = 'UPDATE ' . $config['wp_user_table'] . " SET user_pass = '" . $sql_ary['user_password'] . "' WHERE ID = " . $wp_id;
  33. $dbwp->sql_query($sql);
  34. }
  35. add_log('user', $user->data['user_id'], 'LOG_USER_NEW_PASSWORD', $data['username']);
  36.  
  37. Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_activate.php:
  38.  
  39. $sql = "SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = {$user_row['user_id']}";
  40. $result = $db->sql_query($sql);
  41. $wp_id = $db->sql_fetchfield('wp_id');
  42. $db->sql_freeresult($result);
  43. if ($wp_id) {
  44. global $dbwp;
  45. $sql = "UPDATE {$config['wp_user_table']} SET user_pass = '{$user_row['user_newpasswd']}' WHERE ID = $wp_id";
  46. $dbwp->sql_query($sql);
  47. }
  48.  
  49. add_log('user', $user_row['user_id'], 'LOG_USER_NEW_PASSWORD', $user_row['username']);
  50.  
  51. Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_register.php:
  52.  
  53. array('phpbb_username', '')),
  54.  
  55. Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_register.php:
  56.  
  57. $cp->submit_cp_field('register', $user->get_iso_lang_id(), $cp_data, $error);
  58.  
  59. if (!sizeof($error)) {
  60. define('WP_INSTALLING', $phpbb_root_path);
  61. require($config['wp_abspath'] . 'wp-load.php');
  62. $phpbb_root_path = WP_INSTALLING;
  63. $table_prefix = PHPBB_PREFIX;
  64.  
  65. if (!sanitize_title($data['username'])) {
  66. $error[] = $user->lang['INVALID_CHARS'];
  67. }
  68. else if (username_exists($data['username'])) {
  69. $error[] = $user->lang['USERNAME_TAKEN'];
  70. }
  71. if (email_exists($data['email'])) {
  72. $error[] = $user->lang['EMAIL_TAKEN'];
  73. }
  74. }
  75.  
  76. Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_register.php:
  77.  
  78. add_filter('sanitize_user', 'bridgedd_approve_username', 999, 2);
  79. $userdata = array(
  80. 'user_login' => $data['username'],
  81. 'user_pass' => '',
  82. 'user_email' => '',
  83. );
  84. $wp_id = wp_insert_user($userdata);
  85. $wp_password = ($user_actkey) ? '' : phpbb_hash($data['new_password']);
  86. $wp_email = ($user_actkey) ? phpbb_hash($data['new_password']) : $data['email'];
  87.  
  88. global $dbwp;
  89. $sql = "UPDATE {$config['wp_user_table']} SET user_pass = '{$wp_password}', user_email = '{$wp_email}' WHERE ID = $wp_id";
  90. $dbwp->sql_query($sql);
  91.  
  92. $sql = "INSERT INTO bridgedd_xuser VALUES ({$wp_id},{$user_id})";
  93. $db->sql_query($sql);
  94.  
  95. if ($coppa && $config['email_enable'])
  96.  
  97. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
  98.  
  99. if (!defined('WPINC') && !defined('USING_WP')) {
  100. function validate_username($username, $allowed_username = false) {
  101. return validate_phpbb_username($username, $allowed_username);
  102. }
  103. }
  104.  
  105. function validate_phpbb_username($username, $allowed_username = false)
  106.  
  107. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
  108.  
  109. $sql = 'DELETE FROM bridgedd_xuser WHERE phpbb_id = ' . $user_id;
  110. $db->sql_query($sql);
  111.  
  112. // Delete the user_id from the zebra table
  113.  
  114. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
  115.  
  116. global $dbwp;
  117. $wp_sql_ary = array();
  118. $sql = 'SELECT xu.wp_id, u.user_email, u.user_id, u.group_id, u.user_type, u.user_inactive_reason
  119. FROM ' . USERS_TABLE . ' u
  120. LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = u.user_id)
  121. WHERE ' . $db->sql_in_set('u.user_id', $user_id_ary);
  122.  
  123. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
  124.  
  125. $activated++;
  126. if (!empty($row['wp_id'])) {
  127. $wp_sql_ary[] = "UPDATE {$config['wp_user_table']} SET user_pass = user_email, user_email = '{$row['user_email']}' WHERE ID = {$row['wp_id']}";
  128. }
  129. }
  130. else
  131. {
  132. $deactivated++;
  133. if (!empty($row['wp_id'])) {
  134. $wp_sql_ary[] = "UPDATE {$config['wp_user_table']} SET user_email = user_pass, user_pass = '' WHERE ID = {$row['wp_id']}";
  135. }
  136.  
  137. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
  138.  
  139. if (!empty($wp_sql_ary)) {
  140. foreach ($wp_sql_ary as $sql) {
  141. $dbwp->sql_query($sql);
  142. }
  143. }
  144.  
  145. if (sizeof($sql_statements))
  146.  
  147. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_admin.php:
  148.  
  149. $table_ary = array(BOOKMARKS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, POLL_VOTES_TABLE, POLL_OPTIONS_TABLE, TOPICS_WATCH_TABLE, TOPICS_TABLE, 'bridgedd_xpost');
  150.  
  151. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_admin.php:
  152.  
  153. $sql = 'DELETE FROM bridgedd_xpost WHERE ' . $db->sql_in_set('phpbb_id', $post_ids);
  154. $db->sql_query($sql);
  155.  
  156. $db->sql_transaction('begin');
  157.  
  158. $table_ary = array(POSTS_TABLE, REPORTS_TABLE);
  159.  
  160. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions.php:
  161.  
  162. // The result parameter is always an array, holding the relevant information...
  163. if ($result['status'] == LOGIN_SUCCESS)
  164. {
  165. if (!empty($config['wp_path']) && !$admin && ($user->data['user_type'] == USER_NORMAL || $user->data['user_type'] == USER_FOUNDER)) {
  166. $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user->data['user_id'];
  167. $result2 = $db->sql_query($sql);
  168. $wp_id = (int) $db->sql_fetchfield('wp_id');
  169. $db->sql_freeresult($result2);
  170.  
  171. // if not an integrated user, integrate them
  172. if (!$wp_id && is_user_logged_in()) {
  173. global $current_user;
  174. $wp_id = $current_user->ID;
  175. $sql = "INSERT INTO bridgedd_xuser VALUES({$wp_id},{$user->data['user_id']})";
  176. $db->sql_query($sql);
  177. wp_clear_auth_cookie();
  178. wp_set_auth_cookie($wp_id, $autologin);
  179. }
  180. }
  181.  
  182. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions.php:
  183.  
  184. 'U_FEED' => generate_board_url() . "/feed.$phpEx",
  185. 'U_WP' => $config['wp_url'],
  186.  
  187. Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions.php:
  188.  
  189. if (!empty($dbwp)) {
  190. $dbwp->sql_close();
  191. }
  192. if (!empty($db))
  193.  
  194. Cannot locate the following in /home/empykzsu/public_html/forums/includes/session.php:
  195.  
  196. $sql = 'SELECT xu.wp_id, u.*, s.*
  197. FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
  198. LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = u.user_id)
  199.  
  200. Cannot locate the following in /home/empykzsu/public_html/forums/includes/session.php:
  201.  
  202. $sql = 'SELECT xu.wp_id, u.*
  203. FROM ' . USERS_TABLE . ' u, ' . SESSIONS_KEYS_TABLE . ' k
  204. LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = k.user_id)
  205.  
  206. Cannot locate the following in /home/empykzsu/public_html/forums/includes/session.php:
  207.  
  208. $this->cookie_data['u'] = $user_id;
  209.  
  210. $sql = 'SELECT xu.wp_id, u.*
  211. FROM ' . USERS_TABLE . ' u
  212. LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = u.user_id)
  213.  
  214. Cannot locate the following in /home/empykzsu/public_html/forums/common.php:
  215.  
  216. $config = $cache->obtain_config();
  217.  
  218. if (!empty($config['wp_bridge']) && !empty($config['wp_db'])) {
  219. @ini_set('open_basedir', '');
  220. define('SERVER_DOCUMENT_ROOT', substr(getenv('SCRIPT_FILENAME'), 0, strpos(getenv('SCRIPT_FILENAME'), getenv('SCRIPT_NAME'))));
  221. define('PHPBB_PREFIX', $table_prefix);
  222. $wp_dd = unserialize($config['wp_bridge']);
  223. $config['wp_url'] = $wp_dd['path'];
  224. $config['wp_path'] = substr($config['wp_url'], strpos($config['wp_url'], '//') + 2);
  225. $config['wp_path'] = substr($config['wp_path'], strpos($config['wp_path'], '/'));
  226. $config['wp_prefix'] = $wp_dd['pf'];
  227. $config['wp_user_table'] = $wp_dd['pf'] . 'users';
  228. $config['wp_option_table'] = $wp_dd['pf'] . 'options';
  229. $wp_dd = unserialize($config['wp_db']);
  230. $host = $wp_dd['hs'];
  231. $port = '';
  232. if (strpos($host, ':')) {
  233. list($host, $port) = explode(':', $host);
  234. }
  235. include_once($phpbb_root_path . 'includes/db/mysqli.' . $phpEx);
  236. $dbwp = new dbal_mysqli();
  237. $dbwp->sql_connect($host, $wp_dd['us'], $wp_dd['pw'], $wp_dd['nm'], $port, false, false);
  238. unset($wp_dd);
  239.  
  240. function bridgedd_approve_username($garbage, $username) {
  241. return $username;
  242. }
  243. }
  244.  
  245. Cannot locate the following in /home/empykzsu/public_html/forums/ucp.php:
  246.  
  247. if (isset($_REQUEST['mode']) && ($_REQUEST['mode'] == 'login' || $_REQUEST['mode'] == 'logout' || $_REQUEST['mode'] == 'register')) {
  248. define('USING_WP', true);
  249. }
  250.  
  251. require($phpbb_root_path . 'common.' . $phpEx);
  252.  
  253. Cannot locate the following in /home/empykzsu/public_html/forums/ucp.php:
  254.  
  255. if(!request_var('bridgedd', '')) {
  256. define('WP_INSTALLING', $phpbb_root_path);
  257. require_once($config['wp_abspath'] . 'wp-load.php');
  258. $phpbb_root_path = WP_INSTALLING;
  259. $table_prefix = PHPBB_PREFIX;
  260. global $current_user;
  261. if (is_user_logged_in() && !validate_phpbb_username($current_user->user_login) && !validate_email($current_user->user_email)) {
  262. header('Location: ' . $config['wp_url'] . 'index.php?bridgedd=true');
  263. exit;
  264. }
  265. }
  266.  
  267. login_box(request_var('redirect', "index.$phpEx"));
  268.  
  269. Cannot locate the following in /home/empykzsu/public_html/forums/ucp.php:
  270.  
  271. if ($user->data['user_id'] != ANONYMOUS && isset($_GET['sid']) && !is_array($_GET['sid']) && $_GET['sid'] === $user->session_id)
  272. {
  273. $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user->data['user_id'];
  274. $result = $db->sql_query($sql);
  275. $wp_id = (int) $db->sql_fetchfield('wp_id');
  276. $db->sql_freeresult($result);
  277. if (!empty($config['wp_path']) && $wp_id) {
  278. define('WP_INSTALLING', $phpbb_root_path);
  279. require_once($config['wp_abspath'] . 'wp-load.php');
  280. $phpbb_root_path = WP_INSTALLING;
  281. $table_prefix = PHPBB_PREFIX;
  282. wp_clear_auth_cookie();
  283. $user->set_cookie('wpid', 'x', time() - (365*24*3600));
  284. }
Advertisement
Add Comment
Please, Sign In to add comment