Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_content.php:
- if (!defined('WPINC') && !defined('USING_WP')) {
- function make_clickable($text, $server_url = false, $class = 'postlink') {
- return phpbb_make_clickable($text, $server_url, $class);
- }
- }
- function phpbb_make_clickable($text, $server_url = false, $class = 'postlink')
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/acp/acp_users.php:
- $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user_id;
- $result = $db->sql_query($sql);
- $wp_id = (int) $db->sql_fetchfield('wp_id');
- $db->sql_freeresult($result);
- if ($wp_id) {
- global $dbwp;
- $sql = 'UPDATE ' . $config['wp_user_table'] . " SET user_pass = '" . $sql_ary['user_password'] . "' WHERE ID = " . $wp_id;
- $dbwp->sql_query($sql);
- }
- add_log('user', $user_id, 'LOG_USER_NEW_PASSWORD', $user_row['username']);
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_profile.php:
- $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user->data['user_id'];
- $result = $db->sql_query($sql);
- $wp_id = (int) $db->sql_fetchfield('wp_id');
- $db->sql_freeresult($result);
- if ($wp_id) {
- global $dbwp;
- $sql = 'UPDATE ' . $config['wp_user_table'] . " SET user_pass = '" . $sql_ary['user_password'] . "' WHERE ID = " . $wp_id;
- $dbwp->sql_query($sql);
- }
- add_log('user', $user->data['user_id'], 'LOG_USER_NEW_PASSWORD', $data['username']);
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_activate.php:
- $sql = "SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = {$user_row['user_id']}";
- $result = $db->sql_query($sql);
- $wp_id = $db->sql_fetchfield('wp_id');
- $db->sql_freeresult($result);
- if ($wp_id) {
- global $dbwp;
- $sql = "UPDATE {$config['wp_user_table']} SET user_pass = '{$user_row['user_newpasswd']}' WHERE ID = $wp_id";
- $dbwp->sql_query($sql);
- }
- add_log('user', $user_row['user_id'], 'LOG_USER_NEW_PASSWORD', $user_row['username']);
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_register.php:
- array('phpbb_username', '')),
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_register.php:
- $cp->submit_cp_field('register', $user->get_iso_lang_id(), $cp_data, $error);
- if (!sizeof($error)) {
- define('WP_INSTALLING', $phpbb_root_path);
- require($config['wp_abspath'] . 'wp-load.php');
- $phpbb_root_path = WP_INSTALLING;
- $table_prefix = PHPBB_PREFIX;
- if (!sanitize_title($data['username'])) {
- $error[] = $user->lang['INVALID_CHARS'];
- }
- else if (username_exists($data['username'])) {
- $error[] = $user->lang['USERNAME_TAKEN'];
- }
- if (email_exists($data['email'])) {
- $error[] = $user->lang['EMAIL_TAKEN'];
- }
- }
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/ucp/ucp_register.php:
- add_filter('sanitize_user', 'bridgedd_approve_username', 999, 2);
- $userdata = array(
- 'user_login' => $data['username'],
- 'user_pass' => '',
- 'user_email' => '',
- );
- $wp_id = wp_insert_user($userdata);
- $wp_password = ($user_actkey) ? '' : phpbb_hash($data['new_password']);
- $wp_email = ($user_actkey) ? phpbb_hash($data['new_password']) : $data['email'];
- global $dbwp;
- $sql = "UPDATE {$config['wp_user_table']} SET user_pass = '{$wp_password}', user_email = '{$wp_email}' WHERE ID = $wp_id";
- $dbwp->sql_query($sql);
- $sql = "INSERT INTO bridgedd_xuser VALUES ({$wp_id},{$user_id})";
- $db->sql_query($sql);
- if ($coppa && $config['email_enable'])
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
- if (!defined('WPINC') && !defined('USING_WP')) {
- function validate_username($username, $allowed_username = false) {
- return validate_phpbb_username($username, $allowed_username);
- }
- }
- function validate_phpbb_username($username, $allowed_username = false)
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
- $sql = 'DELETE FROM bridgedd_xuser WHERE phpbb_id = ' . $user_id;
- $db->sql_query($sql);
- // Delete the user_id from the zebra table
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
- global $dbwp;
- $wp_sql_ary = array();
- $sql = 'SELECT xu.wp_id, u.user_email, u.user_id, u.group_id, u.user_type, u.user_inactive_reason
- FROM ' . USERS_TABLE . ' u
- LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = u.user_id)
- WHERE ' . $db->sql_in_set('u.user_id', $user_id_ary);
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
- $activated++;
- if (!empty($row['wp_id'])) {
- $wp_sql_ary[] = "UPDATE {$config['wp_user_table']} SET user_pass = user_email, user_email = '{$row['user_email']}' WHERE ID = {$row['wp_id']}";
- }
- }
- else
- {
- $deactivated++;
- if (!empty($row['wp_id'])) {
- $wp_sql_ary[] = "UPDATE {$config['wp_user_table']} SET user_email = user_pass, user_pass = '' WHERE ID = {$row['wp_id']}";
- }
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_user.php:
- if (!empty($wp_sql_ary)) {
- foreach ($wp_sql_ary as $sql) {
- $dbwp->sql_query($sql);
- }
- }
- if (sizeof($sql_statements))
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_admin.php:
- $table_ary = array(BOOKMARKS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, POLL_VOTES_TABLE, POLL_OPTIONS_TABLE, TOPICS_WATCH_TABLE, TOPICS_TABLE, 'bridgedd_xpost');
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions_admin.php:
- $sql = 'DELETE FROM bridgedd_xpost WHERE ' . $db->sql_in_set('phpbb_id', $post_ids);
- $db->sql_query($sql);
- $db->sql_transaction('begin');
- $table_ary = array(POSTS_TABLE, REPORTS_TABLE);
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions.php:
- // The result parameter is always an array, holding the relevant information...
- if ($result['status'] == LOGIN_SUCCESS)
- {
- if (!empty($config['wp_path']) && !$admin && ($user->data['user_type'] == USER_NORMAL || $user->data['user_type'] == USER_FOUNDER)) {
- $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user->data['user_id'];
- $result2 = $db->sql_query($sql);
- $wp_id = (int) $db->sql_fetchfield('wp_id');
- $db->sql_freeresult($result2);
- // if not an integrated user, integrate them
- if (!$wp_id && is_user_logged_in()) {
- global $current_user;
- $wp_id = $current_user->ID;
- $sql = "INSERT INTO bridgedd_xuser VALUES({$wp_id},{$user->data['user_id']})";
- $db->sql_query($sql);
- wp_clear_auth_cookie();
- wp_set_auth_cookie($wp_id, $autologin);
- }
- }
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions.php:
- 'U_FEED' => generate_board_url() . "/feed.$phpEx",
- 'U_WP' => $config['wp_url'],
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/functions.php:
- if (!empty($dbwp)) {
- $dbwp->sql_close();
- }
- if (!empty($db))
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/session.php:
- $sql = 'SELECT xu.wp_id, u.*, s.*
- FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
- LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = u.user_id)
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/session.php:
- $sql = 'SELECT xu.wp_id, u.*
- FROM ' . USERS_TABLE . ' u, ' . SESSIONS_KEYS_TABLE . ' k
- LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = k.user_id)
- Cannot locate the following in /home/empykzsu/public_html/forums/includes/session.php:
- $this->cookie_data['u'] = $user_id;
- $sql = 'SELECT xu.wp_id, u.*
- FROM ' . USERS_TABLE . ' u
- LEFT JOIN bridgedd_xuser xu ON (xu.phpbb_id = u.user_id)
- Cannot locate the following in /home/empykzsu/public_html/forums/common.php:
- $config = $cache->obtain_config();
- if (!empty($config['wp_bridge']) && !empty($config['wp_db'])) {
- @ini_set('open_basedir', '');
- define('SERVER_DOCUMENT_ROOT', substr(getenv('SCRIPT_FILENAME'), 0, strpos(getenv('SCRIPT_FILENAME'), getenv('SCRIPT_NAME'))));
- define('PHPBB_PREFIX', $table_prefix);
- $wp_dd = unserialize($config['wp_bridge']);
- $config['wp_url'] = $wp_dd['path'];
- $config['wp_path'] = substr($config['wp_url'], strpos($config['wp_url'], '//') + 2);
- $config['wp_path'] = substr($config['wp_path'], strpos($config['wp_path'], '/'));
- $config['wp_prefix'] = $wp_dd['pf'];
- $config['wp_user_table'] = $wp_dd['pf'] . 'users';
- $config['wp_option_table'] = $wp_dd['pf'] . 'options';
- $wp_dd = unserialize($config['wp_db']);
- $host = $wp_dd['hs'];
- $port = '';
- if (strpos($host, ':')) {
- list($host, $port) = explode(':', $host);
- }
- include_once($phpbb_root_path . 'includes/db/mysqli.' . $phpEx);
- $dbwp = new dbal_mysqli();
- $dbwp->sql_connect($host, $wp_dd['us'], $wp_dd['pw'], $wp_dd['nm'], $port, false, false);
- unset($wp_dd);
- function bridgedd_approve_username($garbage, $username) {
- return $username;
- }
- }
- Cannot locate the following in /home/empykzsu/public_html/forums/ucp.php:
- if (isset($_REQUEST['mode']) && ($_REQUEST['mode'] == 'login' || $_REQUEST['mode'] == 'logout' || $_REQUEST['mode'] == 'register')) {
- define('USING_WP', true);
- }
- require($phpbb_root_path . 'common.' . $phpEx);
- Cannot locate the following in /home/empykzsu/public_html/forums/ucp.php:
- if(!request_var('bridgedd', '')) {
- define('WP_INSTALLING', $phpbb_root_path);
- require_once($config['wp_abspath'] . 'wp-load.php');
- $phpbb_root_path = WP_INSTALLING;
- $table_prefix = PHPBB_PREFIX;
- global $current_user;
- if (is_user_logged_in() && !validate_phpbb_username($current_user->user_login) && !validate_email($current_user->user_email)) {
- header('Location: ' . $config['wp_url'] . 'index.php?bridgedd=true');
- exit;
- }
- }
- login_box(request_var('redirect', "index.$phpEx"));
- Cannot locate the following in /home/empykzsu/public_html/forums/ucp.php:
- if ($user->data['user_id'] != ANONYMOUS && isset($_GET['sid']) && !is_array($_GET['sid']) && $_GET['sid'] === $user->session_id)
- {
- $sql = 'SELECT wp_id FROM bridgedd_xuser WHERE phpbb_id = ' . $user->data['user_id'];
- $result = $db->sql_query($sql);
- $wp_id = (int) $db->sql_fetchfield('wp_id');
- $db->sql_freeresult($result);
- if (!empty($config['wp_path']) && $wp_id) {
- define('WP_INSTALLING', $phpbb_root_path);
- require_once($config['wp_abspath'] . 'wp-load.php');
- $phpbb_root_path = WP_INSTALLING;
- $table_prefix = PHPBB_PREFIX;
- wp_clear_auth_cookie();
- $user->set_cookie('wpid', 'x', time() - (365*24*3600));
- }
Advertisement
Add Comment
Please, Sign In to add comment