get_var('SELECT COUNT(ID) FROM ' . $wpdb->users); // Get versions global $wp_version; if (!function_exists('get_plugins')) require_once(ABSPATH . 'wp-admin/includes/plugin.php'); $plugin_folder = get_plugins('/' . plugin_basename(dirname(__FILE__))); $plugin_version = $plugin_folder[basename($al2fb->main_file)]['Version']; $curl_version = 'No'; if (function_exists('curl_init')) { $v = curl_version(); $curl_version = $v['version']; } // Get charset, token $charset = get_bloginfo('charset'); // Get application try { if ($al2fb->Is_authorized($user_ID)) { $a = WPAL2Int::Get_fb_application_cached($user_ID); $app = '' . $a->name . ''; } else $app = 'n/a'; } catch (Exception $e) { $app = get_user_meta($user_ID, c_al2fb_meta_client_id, true) . ': ' . $e->getMessage(); } // Sharing if (is_multisite()) $shared_user_ID = get_site_option(c_al2fb_option_app_share); else $shared_user_ID = get_option(c_al2fb_option_app_share); // Get picture $picture = '' . get_user_meta($user_ID, c_al2fb_meta_picture, true) . ''; $picture_default = '' . get_user_meta($user_ID, c_al2fb_meta_picture_default, true) . ''; // Get theme data $theme_data = get_theme_data(STYLESHEETPATH . '/style.css'); $info = '
| Time: | ' . date('c') . ' |
| Server software: | ' . htmlspecialchars($_SERVER['SERVER_SOFTWARE'], ENT_QUOTES, $charset) . ' |
| SAPI: | ' . htmlspecialchars(php_sapi_name(), ENT_QUOTES, $charset) . ' |
| PHP version: | ' . PHP_VERSION . ' |
| spl_autoload_register: | ' . (version_compare(PHP_VERSION, '5.1.2', '>=') ? 'Yes' : 'No') . ' |
| safe_mode: | ' . (ini_get('safe_mode') ? 'Yes' : 'No') . ' |
| open_basedir: | ' . ini_get('open_basedir') . ' |
| User agent: | ' . htmlspecialchars($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, $charset) . ' |
| WordPress version: | ' . $wp_version . ' |
| Theme name: | ' . '' . htmlspecialchars($theme_data['Name'], ENT_QUOTES, $charset) . '' . ' |
| Theme version: | ' . htmlspecialchars($theme_data['Version'], ENT_QUOTES, $charset) . ' |
| Active plugin: | ' . htmlspecialchars($plugin_data['Name'], ENT_QUOTES, $charset) . ' ' . $plugin_data['Version'] . ' |
| Plugin version: | ' . $plugin_version . (WPAL2Int::Check_multiple() ? 'p' : '') . ' |
| Settings version: | ' . get_option(c_al2fb_option_version) . ' |
| Multi site: | ' . (is_multisite() ? 'Yes' : 'No') . ' |
| Site id: | ' . $al2fb->site_id . ' |
| Blog id: | ' . $al2fb->blog_id . ' |
| Current site: | ' . print_r($current_site, true) . ' |
| Blog details: | ' . print_r($blog_details, true) . ' |
| Blog count: | ' . $blog_count . ' |
| Number of users: | ' . $users . ' |
| Blog address (home): | ' . htmlspecialchars(get_home_url(), ENT_QUOTES, $charset) . ' |
| WordPress address (site): | ' . htmlspecialchars(get_site_url(), ENT_QUOTES, $charset) . ' |
| Redirect URI: | ' . htmlspecialchars(WPAL2Int::Redirect_uri(), ENT_QUOTES, $charset) . ' |
| Authorize URL: | ' . htmlspecialchars(WPAL2Int::Authorize_url($user_ID), ENT_QUOTES, $charset) . ' |
| Authorization init: | ' . htmlspecialchars(get_option(c_al2fb_log_redir_init), ENT_QUOTES, $charset) . ' |
| Authorization check: | ' . htmlspecialchars(get_option(c_al2fb_log_redir_check), ENT_QUOTES, $charset) . ' |
| Redirect time: | ' . htmlspecialchars(get_option(c_al2fb_log_redir_time), ENT_QUOTES, $charset) . ' |
| Redirect referer: | ' . htmlspecialchars(get_option(c_al2fb_log_redir_ref), ENT_QUOTES, $charset) . ' |
| Redirect from: | ' . htmlspecialchars(get_option(c_al2fb_log_redir_from), ENT_QUOTES, $charset) . ' |
| Redirect to: | ' . htmlspecialchars(get_option(c_al2fb_log_redir_to), ENT_QUOTES, $charset) . ' |
| Get token: | ' . htmlspecialchars(get_option(c_al2fb_log_get_token), ENT_QUOTES, $charset) . ' |
| Authorized: | ' . ($al2fb->Is_authorized($user_ID) ? 'Yes' : 'No') . ' |
| Authorized time: | ' . get_option(c_al2fb_log_auth_time) . ' |
| Token time: | ' . get_user_meta($user_ID, c_al2fb_meta_token_time, true) . ' |
| User agent: | ' . get_option(c_al2fb_log_ua) . ' |
| allow_url_fopen: | ' . (ini_get('allow_url_fopen') ? 'Yes' : 'No') . ' |
| cURL: | ' . $curl_version . ' |
| openssl loaded: | ' . (extension_loaded('openssl') ? 'Yes' : 'No') . ' |
| Encoding: | ' . htmlspecialchars(get_option('blog_charset'), ENT_QUOTES, $charset) . ' |
| Facebook: | ' . htmlspecialchars(get_user_meta($user_ID, c_al2fb_meta_fb_encoding, true), ENT_QUOTES, $charset) . ' |
| Locale: | ' . htmlspecialchars(WPLANG, ENT_QUOTES, $charset) . ' |
| Facebook: | ' . htmlspecialchars(WPAL2Int::Get_locale($user_ID), ENT_QUOTES, $charset) . ' |
| mb_convert_encoding: | ' . (function_exists('mb_convert_encoding') ? 'Yes' : 'No') . ' |
| Application: | ' . $app . ' |
| User: | ' . $user_ID . '=' . get_the_author_meta('user_login', $user_ID) . ' |
| Shared user: | ' . $shared_user_ID . '=' . get_the_author_meta('user_login', $shared_user_ID) . ' |
| Picture type: | ' . get_user_meta($user_ID, c_al2fb_meta_picture_type, true) . ' |
| Custom picture URL: | ' . $picture . ' |
| Default picture URL: | ' . $picture_default . ' |
| Picture size: | ' . get_user_meta($user_ID, c_al2fb_meta_picture_size, true) . ' |
| Wall: | '; $info .= htmlspecialchars($pinfo->name, ENT_QUOTES, $charset); if (!empty($pinfo->category)) $info .= ' - ' . htmlspecialchars($pinfo->category, ENT_QUOTES, $charset); $info .= ' |
| Page: | ' . htmlspecialchars($e->getMessage(), ENT_QUOTES, $charset) . ' |
| Use groups: | ' . (get_user_meta($user_ID, c_al2fb_meta_use_groups, true) ? 'Yes' : 'No') . ' |
| Caption: | ' . (get_user_meta($user_ID, c_al2fb_meta_caption, true) ? 'Yes' : 'No') . ' |
| Excerpt: | ' . (get_user_meta($user_ID, c_al2fb_meta_msg, true) ? 'Yes' : 'No') . ' |
| Trailer: | ' . htmlspecialchars(get_user_meta($user_ID, c_al2fb_meta_trailer, true), ENT_QUOTES, $charset) . ' |
| Hyperlink: | ' . (get_user_meta($user_ID, c_al2fb_meta_hyperlink, true) ? 'Yes' : 'No') . ' |
| Shortlink: | ' . (get_user_meta($user_ID, c_al2fb_meta_shortlink, true) ? 'Yes' : 'No') . ' |
| Page link: | ' . (get_user_meta($user_ID, c_al2fb_meta_add_new_page, true) ? 'Yes' : 'No') . ' |
| FB comments: | ' . (get_user_meta($user_ID, c_al2fb_meta_fb_comments, true) ? 'Yes' : 'No') . ' |
| FB comments postback: | ' . (get_user_meta($user_ID, c_al2fb_meta_fb_comments_postback, true) ? 'Yes' : 'No') . ' |
| FB comments copy: | ' . (get_user_meta($user_ID, c_al2fb_meta_fb_comments_copy, true) ? 'Yes' : 'No') . ' |
| FB comments no link: | ' . get_user_meta($user_ID, c_al2fb_meta_fb_comments_nolink, true) . ' |
| FB likes: | ' . (get_user_meta($user_ID, c_al2fb_meta_fb_likes, true) ? 'Yes' : 'No') . ' |
| Importing: | ' . (get_option(c_al2fb_log_importing) ? 'Yes' : 'No') . ' |
| Post likers: | ' . (get_user_meta($user_ID, c_al2fb_meta_post_likers, true) ? 'Yes' : 'No') . ' |
| Post like button: | ' . (get_user_meta($user_ID, c_al2fb_meta_post_like_button, true) ? 'Yes' : 'No') . ' |
| Not home page: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_nohome, true) ? 'Yes' : 'No') . ' |
| Not posts: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_noposts, true) ? 'Yes' : 'No') . ' |
| Not pages: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_nopages, true) ? 'Yes' : 'No') . ' |
| Not archives: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_noarchives, true) ? 'Yes' : 'No') . ' |
| Not categories: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_nocategories, true) ? 'Yes' : 'No') . ' |
| Like layout: | ' . get_user_meta($user_ID, c_al2fb_meta_like_layout, true) . ' |
| Like faces: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_faces, true) ? 'Yes' : 'No') . ' |
| Like width: | ' . get_user_meta($user_ID, c_al2fb_meta_like_width, true) . ' |
| Like action: | ' . get_user_meta($user_ID, c_al2fb_meta_like_action, true) . ' |
| Like font: | ' . get_user_meta($user_ID, c_al2fb_meta_like_font, true) . ' |
| Like color scheme: | ' . get_user_meta($user_ID, c_al2fb_meta_like_colorscheme, true) . ' |
| Like link: | ' . get_user_meta($user_ID, c_al2fb_meta_like_link, true) . ' |
| Like top: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_top, true) ? 'Yes' : 'No') . ' |
| Send button: | ' . (get_user_meta($user_ID, c_al2fb_meta_post_send_button, true) ? 'Yes' : 'No') . ' |
| Combine buttons: | ' . (get_user_meta($user_ID, c_al2fb_meta_post_combine_buttons, true) ? 'Yes' : 'No') . ' |
| Like box width: | ' . get_user_meta($user_ID, c_al2fb_meta_like_box_width, true) . ' |
| Like box height: | ' . get_user_meta($user_ID, c_al2fb_meta_like_box_height, true) . ' |
| Like box border: | ' . get_user_meta($user_ID, c_al2fb_meta_like_box_border, true) . ' |
| Like box no header: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_box_noheader, true) ? 'Yes' : 'No') . ' |
| Like box no stream: | ' . (get_user_meta($user_ID, c_al2fb_meta_like_box_nostream, true) ? 'Yes' : 'No') . ' |
| Comments posts: | ' . get_user_meta($user_ID, c_al2fb_meta_comments_posts, true) . ' |
| Comments width: | ' . get_user_meta($user_ID, c_al2fb_meta_comments_width, true) . ' |
| Comments auto: | ' . (get_user_meta($user_ID, c_al2fb_meta_comments_auto, true) ? 'Yes' : 'No') . ' |
| Facepile size: | ' . get_user_meta($user_ID, c_al2fb_meta_pile_size, true) . ' |
| Facepile width: | ' . get_user_meta($user_ID, c_al2fb_meta_pile_width, true) . ' |
| Facepile rows: | ' . get_user_meta($user_ID, c_al2fb_meta_pile_rows, true) . ' |
| Registration width: | ' . get_user_meta($user_ID, c_al2fb_meta_reg_width, true) . ' |
| Login width: | ' . get_user_meta($user_ID, c_al2fb_meta_login_width, true) . ' |
| Registration URL: | Link |
| Redir URL: | Link |
| Add links: | ' . (get_option(c_al2fb_option_login_add_links) ? 'Yes' : 'No') . ' |
| Login text/HTML: | Link |
| Activity width: | ' . get_user_meta($user_ID, c_al2fb_meta_act_width, true) . ' |
| Activity height: | ' . get_user_meta($user_ID, c_al2fb_meta_act_height, true) . ' |
| Activity header: | ' . (get_user_meta($user_ID, c_al2fb_meta_act_header, true) ? 'Yes' : 'No') . ' |
| Activity recommend: | ' . (get_user_meta($user_ID, c_al2fb_meta_act_recommend, true) ? 'Yes' : 'No') . ' |
| Facebook ID: | ' . $fid . ' |
| OGP: | ' . (get_user_meta($user_ID, c_al2fb_meta_open_graph, true) ? 'Yes' : 'No') . ' |
| OGP type: | ' . get_user_meta($user_ID, c_al2fb_meta_open_graph_type, true) . ' |
| OGP admins: | ' . get_user_meta($user_ID, c_al2fb_meta_open_graph_admins, true) . ' |
| Timeout ms: | ' . (get_option(c_al2fb_option_timeout) * 1000) . ' |
| No notices: | ' . (get_option(c_al2fb_option_nonotice) ? 'Yes' : 'No') . ' |
| Min. capability: | ' . htmlspecialchars(get_option(c_al2fb_option_min_cap), ENT_QUOTES, $charset) . ' |
| Min. capability comments: | ' . htmlspecialchars(get_option(c_al2fb_option_min_cap_comment), ENT_QUOTES, $charset) . ' |
| Refresh comments: | ' . htmlspecialchars(get_option(c_al2fb_option_msg_refresh), ENT_QUOTES, $charset) . ' |
| Refresh age: | ' . htmlspecialchars(get_option(c_al2fb_option_msg_maxage), ENT_QUOTES, $charset) . ' |
| Max. length: | ' . htmlspecialchars(get_option(c_al2fb_option_max_descr), ENT_QUOTES, $charset) . ' |
| Max. text length: | ' . htmlspecialchars(get_option(c_al2fb_option_max_text), ENT_QUOTES, $charset) . ' |
| Exclude post types: | ' . htmlspecialchars(get_option(c_al2fb_option_exclude_type), ENT_QUOTES, $charset) . ' |
| Exclude categories: | ' . htmlspecialchars(get_option(c_al2fb_option_exclude_cat), ENT_QUOTES, $charset) . ' |
| Exclude tags: | ' . htmlspecialchars(get_option(c_al2fb_option_exclude_tag), ENT_QUOTES, $charset) . ' |
| Exclude authors: | ' . htmlspecialchars(get_option(c_al2fb_option_exclude_author), ENT_QUOTES, $charset) . ' |
| Meta box: | ' . htmlspecialchars(get_option(c_al2fb_option_metabox_type), ENT_QUOTES, $charset) . ' |
| No verify peer: | ' . (get_option(c_al2fb_option_noverifypeer) ? 'Yes' : 'No') . ' |
| Shortcode/widget: | ' . (get_option(c_al2fb_option_shortcode_widget) ? 'Yes' : 'No') . ' |
| No shortcode: | ' . (get_option(c_al2fb_option_noshortcode) ? 'Yes' : 'No') . ' |
| No filter: | ' . (get_option(c_al2fb_option_nofilter) ? 'Yes' : 'No') . ' |
| No filter comments: | ' . (get_option(c_al2fb_option_nofilter_comments) ? 'Yes' : 'No') . ' |
| Site URL: | ' . (get_option(c_al2fb_option_siteurl) ? 'Yes' : 'No') . ' |
| Do not use cURL: | ' . (get_option(c_al2fb_option_nocurl) ? 'Yes' : 'No') . ' |
| Use publish_post: | ' . (get_option(c_al2fb_option_use_pp) ? 'Yes' : 'No') . ' |
| Debug: | ' . (get_option(c_al2fb_option_debug) ? 'Yes' : 'No') . ' |
| SSP: | ' . (get_option(c_al2fb_option_use_ssp) ? 'Yes' : 'No') . ' |
| SSP info: | link |
| Filter prio: | ' . intval(get_option(c_al2fb_option_filter_prio)) . ' |
| No script: | ' . (get_option(c_al2fb_option_noscript) ? 'Yes' : 'No') . ' |
| Links API: | ' . (get_option(c_al2fb_option_uselinks) ? 'Yes' : 'No') . ' |
| No token refresh: | ' . (get_option(c_al2fb_option_notoken_refresh) ? 'Yes' : 'No') . ' |
| Clean: | ' . (get_option(c_al2fb_option_clean) ? 'Yes' : 'No') . ' |
| CSS: | ' . htmlspecialchars(get_option(c_al2fb_option_css), ENT_QUOTES, $charset) . ' |
| wp_get_attachment_thumb_url: | ' . (function_exists('wp_get_attachment_thumb_url') ? 'Yes' : 'No') . ' |
| wp_get_attachment_image_src: | ' . (function_exists('wp_get_attachment_image_src') ? 'Yes' : 'No') . ' |
| theme - post-thumbnails: | ' . (current_theme_supports('post-thumbnails') ? 'Yes' : 'No') . ' |
| get_post_thumbnail_id: | ' . (function_exists('get_post_thumbnail_id') ? 'Yes' : 'No') . ' |
| wp_get_attachment_image_src: | ' . (function_exists('wp_get_attachment_image_src') ? 'Yes' : 'No') . ' |
| Max exec time: | ' . ini_get('max_execution_time') . ' |
| Memory usage: | ' . memory_get_usage() . '/' . ini_get('memory_limit') . ' |
| Links added: | ' . get_user_meta($user_ID, c_al2fb_meta_stat, true) . ' |
| Current week: | ' . get_user_meta($user_ID, c_al2fb_meta_week, true) . ' |
| ' . $posts->post->post_type . ' #' . $posts->post->ID . ': | '; $info .= '' . htmlspecialchars(get_the_title($posts->post->ID), ENT_QUOTES, $charset) . ''; $info .= ' by ' . htmlspecialchars($userdata->user_login, ENT_QUOTES, $charset) . ' (' . $posts->post->post_author . ')'; $info .= ' @ ' . $posts->post->post_date; $info .= ' result:' . $picture['picture_type'] . ''; if (!empty($selected_picture)) $info .= ' selected'; if (!empty($attached_picture)) $info .= ' attached'; if (!empty($featured_picture)) $info .= ' featured'; if (!empty($post_picture)) $info .= ' post'; if (!empty($avatar_picture)) $info .= ' avatar'; if (!empty($link_ids)) foreach ($link_ids as $link_id) $info .= ' Facebook'; $info .= ' user=' . $xuser_ID . ' exluded=' . ($excluded ? 'Y' : 'N') . ' integrate=' . (!$nointegrate ? 'Y' : 'N'); $info .= ' status=' . $comment_status . ' recent=' . ($recent ? 'Y' : 'N') . ' enabled=' . ($comments_enabled ? 'Y' : 'N'); $info .= ' count=' . $comment_count; $info .= ' export=' . $stored_count . '/' . $total_count; $info .= ' |
| Comments in: | ' . implode(', ', $fbi) . ' |
| Comments out: | ' . implode(', ', $fbo) . ' |
| Link picture #' . $posts->post->ID . ': | '; $info .= '' . htmlspecialchars(get_the_title($posts->post->ID), ENT_QUOTES, $charset) . ''; $info .= ' ' . htmlspecialchars($link_picture, ENT_QUOTES, $charset); $info .= ' @ ' . $posts->post->post_date . ' |
| Log post: | '; $info .= '' . htmlspecialchars(get_the_title($posts->post->ID), ENT_QUOTES, $charset) . ' |
| Log: | '; $info .= '' . htmlspecialchars($log, ENT_QUOTES, $charset) . ' |
| Error: | '; $info .= '' . htmlspecialchars($error, ENT_QUOTES, $charset) . ' |
| Error time: | '; $info .= '' . htmlspecialchars(get_post_meta($posts->post->ID, c_al2fb_meta_error_time, true), ENT_QUOTES, $charset) . ' |
| Error post: | '; $info .= '' . htmlspecialchars(get_the_title($posts->post->ID), ENT_QUOTES, $charset) . ' |
| Last error: | ' . htmlspecialchars(get_option(c_al2fb_last_error), ENT_QUOTES, $charset) . ' |
| Last error time: | ' . htmlspecialchars(get_option(c_al2fb_last_error_time), ENT_QUOTES, $charset) . ' |
| Last request: | ' . htmlspecialchars(get_option(c_al2fb_last_request), ENT_QUOTES, $charset) . ' |
| Last request time: | ' . get_option(c_al2fb_last_request_time) . ' |
| Last response: | ' . htmlspecialchars(get_option(c_al2fb_last_response), ENT_QUOTES, $charset) . ' |
| Last response time: | ' . get_option(c_al2fb_last_response_time) . ' |
| Last texts: | ' . htmlspecialchars(get_option(c_al2fb_last_texts), ENT_QUOTES, $charset) . ' |
| Cron enabled: | ' . (get_option(c_al2fb_option_cron_enabled) ? 'Yes' : 'No') . ' |
| Cron time: | ' . get_option(c_al2fb_option_cron_time) . ' |
| Cron posts: | ' . get_option(c_al2fb_option_cron_posts) . ' |
| Cron comments: | ' . get_option(c_al2fb_option_cron_comments) . ' |
| Cron likes: | ' . get_option(c_al2fb_option_cron_likes) . ' |
$_SERVER=' . print_r($_SERVER, true) . ''; // Comments $comments = get_comments('number=20'); foreach ($comments as $comment) { $fb_id = get_comment_meta($comment->comment_ID, c_al2fb_meta_fb_comment_id, true); $comment->fb_comment_id = $fb_id; } $info .= '
comments=' . print_r($comments, true) . ''; // Info self $extra = ($_REQUEST['debug'] == 2); if ($extra) try { $me = WPAL2Int::Get_fb_me_cached($user_ID, true); $info .= '
me=' . print_r($me, true) . ''; } catch (Exception $e) { $info .= '
me=' . $e->getMessage() . ''; } // Info App try { $info .= '
app=' . print_r(WPAL2Int::Get_fb_application_cached($user_ID), true) . ''; } catch (Exception $e) { $info .= '
app=' . $e->getMessage() . ''; } // Info pages try { $pages = WPAL2Int::Get_fb_pages_cached($user_ID); if ($extra) foreach ($pages->data as $page) try { $page->info = WPAL2Int::Get_fb_info($user_ID, $page->id); } catch (Exception $e) { $page->info = $e->getMessage(); } $info .= '
pages=' . print_r($pages, true) . ''; $ep = get_user_meta($user_ID, c_al2fb_meta_page_extra, true); $info .= '
extra=' . print_r($ep, true) . ''; } catch (Exception $e) { $info .= '
pages=' . $e->getMessage() . ''; } // Info groups try { $groups = WPAL2Int::Get_fb_groups_cached($user_ID); if ($extra) foreach ($groups->data as $group) try { $group->info = WPAL2Int::Get_fb_info($user_ID, $group->id); } catch (Exception $e) { $group->info = $e->getMessage(); } $info .= '
groups=' . print_r($groups, true) . ''; } catch (Exception $e) { $info .= '
groups=' . $e->getMessage() . ''; } return $info; } ?>