';
+
+ } else if ( 'delete' == $_POST['friend_action'] ) {
+ return true;
+ } else {
+ return false;
+ }
+}
+add_action( 'wp_ajax_bp_dedication_add_user_ajax_handler', 'bp_dedication_ajax_add_user' );
+
+
+function bp_dedication_members_query( $search_terms = false ) {
+ // Get a list of group members to be excluded from the main query
+ $group_members = array();
+ $args = array(
+ 'exclude_admins_mods' => false
+ );
+ if ( $search_terms )
+ $args['search'] = $search_terms;
+
+ $group_members[] = bp_loggedin_user_id();
+
+ // Now do a user query
+ // Pass a null blog id so that the capabilities check is skipped. For BP blog_id doesn't
+ // matter anyway
+ $user_query = new Bp_Dedication_User_Query( array( 'blog_id' => NULL, 'exclude' => $group_members, 'search' => $search_terms ) );
+
+ return $user_query->results;
+}
+
+//$oldURL = dirname(__FILE__);
+//$newURL = str_replace(DIRECTORY_SEPARATOR . 'wp-content' . DIRECTORY_SEPARATOR . 'plugins' . DIRECTORY_SEPARATOR . 'dedication-from-site', '', $oldURL);
+//
+//require_once( $newURL . DIRECTORY_SEPARATOR . 'wp-load.php');
+//global $wpdb;
+//
+//var_dump($_REQUEST);
+//
+//// if the 'term' variable is not sent with the request, exit
+//if (!isset($_REQUEST['term']))
+// exit;
+//
+//$data = array();
+//
+//$wp_user_search = $wpdb->get_results("SELECT ID, display_name, user_email FROM $wpdb->users ORDER BY ID");
+//foreach ($wp_user_search as $userid) {
+// $user_id = (int) $userid->ID;
+// $display_name = stripslashes($userid->display_name);
+// $user_email = stripslashes($userid->user_email);
+//
+// $data[] = array(
+// 'label' => $display_name . ' (' . $user_email . ')',
+// 'value' => $user_id
+// );
+//}
+//// jQuery wants JSON data
+//echo json_encode($data);
+//flush();
+
+
diff --git a/wp-content/plugins/bp-dedication/includes/bp-dedication-classes.php b/wp-content/plugins/bp-dedication/includes/bp-dedication-classes.php
new file mode 100644
index 0000000..d30979c
--- /dev/null
+++ b/wp-content/plugins/bp-dedication/includes/bp-dedication-classes.php
@@ -0,0 +1,50 @@
+query_where .= ' AND user_status = 0';
+ }
+
+ /**
+ * @see WP_User_Query::get_search_sql()
+ */
+ function get_search_sql($string, $cols, $wild = false) {
+ $string = esc_sql($string);
+
+ // Always search all columns
+ $cols = array(
+ 'user_email',
+ 'user_login',
+ 'user_nicename',
+ 'user_url',
+ 'display_name'
+ );
+
+ // Always do 'both' for trailing_wild
+ $wild = 'both';
+
+ $searches = array();
+ $leading_wild = ( 'leading' == $wild || 'both' == $wild ) ? '%' : '';
+ $trailing_wild = ( 'trailing' == $wild || 'both' == $wild ) ? '%' : '';
+ foreach ($cols as $col) {
+ if ('ID' == $col)
+ $searches[] = "$col = '$string'";
+ else
+ $searches[] = "$col LIKE '$leading_wild" . like_escape($string) . "$trailing_wild'";
+ }
+
+ return ' AND (' . implode(' OR ', $searches) . ') AND user_status = 0';
+ }
+
+}
+
+?>
diff --git a/wp-content/plugins/bp-dedication/includes/create-dedication.php b/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php
similarity index 86%
rename from wp-content/plugins/bp-dedication/includes/create-dedication.php
rename to wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php
index 3cedc1c..5a2a51b 100644
--- a/wp-content/plugins/bp-dedication/includes/create-dedication.php
+++ b/wp-content/plugins/bp-dedication/includes/bp-dedication-create-dedication.php
@@ -1,4 +1,5 @@
+
+ displayed_user->id );
+ if (!locate_template( 'dedications/single/my-dedications.php', true )) {
+ die();
+ }
/**
* For security reasons, we MUST use the wp_nonce_url() function on any actions.
* This will stop naughty people from tricking users into performing actions without their
* knowledge or intent.
*/
- $send_link = wp_nonce_url( $bp->displayed_user->domain . $bp->current_component . '/screen-one/send-h5', 'bp_example_send_high_five' );
- ?>
-
-
+ displayed_user->id );
-
- /**
- * For security reasons, we MUST use the wp_nonce_url() function on any actions.
- * This will stop naughty people from tricking users into performing actions without their
- * knowledge or intent.
- */
- $send_link = wp_nonce_url( $bp->displayed_user->domain . $bp->current_component . '/screen-one/send-h5', 'bp_example_send_high_five' );
- ?>
-
-
";
+ echo $after_widget;
+ }
+
+ /** @see WP_Widget::update */
+ function update($new_instance, $old_instance) {
+ $instance = $old_instance;
+ $instance['title'] = strip_tags($new_instance['title']);
+ $instance['category'] = strip_tags($new_instance['category']);
+ $instance['link'] = strip_tags($new_instance['link']);
+ $instance['popup'] = (isset($new_instance['popup'])) ? 'true' : false;
+ return $instance;
+ }
+
+ /** @see WP_Widget::form */
+ function form($instance) {
+ if ( $instance ) {
+ $title = esc_attr($instance['title']);
+ $category = esc_attr($instance['category']);
+ $link = esc_attr($instance['link']);
+ $popup = $instance['popup'];
+ } else {
+ $title = '';
+ $category = '';
+ $link = '';
+ $popup = 0;
+ }
+ ?>
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/plugins/dedication-from-site/readme.txt b/wp-content/plugins/dedication-from-site/readme.txt
new file mode 100644
index 0000000..605780f
--- /dev/null
+++ b/wp-content/plugins/dedication-from-site/readme.txt
@@ -0,0 +1,88 @@
+=== Plugin Name ===
+Contributors: ryelle
+Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=YB5AWJMBLCCVC&lc=US&item_name=redradar%2enet¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
+Tags: quick post, frontend, insert post, post, Post, custom post type
+Requires at least: 3.2
+Tested up to: 3.3.1
+Stable tag: 3.0.1
+
+Write a post without leaving your site!
+
+== Description ==
+
+Add an interface on your site to write a post (or page, or anything), without having to go into the admin section. Also allows for 'anonymous' posting (not logged in users, still asks for name/email) with a recaptcha. This makes Post From Site a perfect plugin for your user reviews, a suggestion box, or even a very basic forum site.
+
+After install, you can display a form on your site via a widget, shortcode, or PHP code in your theme. See [this page for further documentation](http://me.redradar.net/category/plugins/post-from-site/).
+
+== Upgrade Notice ==
+
+If you're updating from 2.0.3 or below, you'll need to resave your settings before it will work correctly (a lot of things were changed in 3.0).
+
+== Installation ==
+
+1. Unzip `pfs.zip`
+1. Upload all files to the `/wp-content/plugins/post-from-site` directory
+1. Activate the plugin through the 'Plugins' menu in WordPress
+
+= Use your choice of include: =
+1. Add a widget in the [Widgets section](http://codex.wordpress.org/Appearance_Widgets_Screen)
+2. Add a shortcode to a page/post/CPT
+ * Post From Site's basic shortcode is `[post-from-site]`. It has three options: `popup` defines whether the form will show on the site, or only after clicking a link (defaults to false, not a popup). `link` defines that link's text (defaults to 'quick post'). `cat` restricts the post to a specific category (defaults to none).
+3. Add PHP code to your template files.
+ * `form(); ?>` will output the form. You can pass the same variables as in the shortcode.
+
+== Changelog ==
+= 3.0.1 =
+* Added the post_from_site function back for compatability
+
+= 3.0 =
+* Rewrote code (again) into a class.
+* Added Custom Post Type functionality, along with support for all taxonomies.
+* Added widget functionality
+* Added actions and filters to allow extension
+* Images are uploaded correctly to gallery, and included image size is customizable
+
+= 2.0.3 =
+* Fixed the call to the non-existent 'pfs-widget.php'.
+
+= 2.0.2 =
+* Fixed an issue with headers
+* Changed the `div` tag back to an `a` tag.
+
+= 2.0.1 =
+* Compatibility with 3.0
+
+= 2.0.0 =
+* scrapped a lot of code, most of it never made a release
+* moved over to strictly using jQuery
+* multiple file upload support
+* submits using ajax, then refreshes page, so you can see you addition immediately
+* also gets rid of the double-post if you refresh the page
+* default style has been changed
+
+= 1.9.0 =
+* fixes double posting;
+* better image support;
+* introduction of '[!--image--]' tag;
+* existing category/tag dropdown with multiple selection;
+* ability to create new categories/tags;
+* other minor adjustments
+
+= 1.7.0 =
+* addition of tags
+* bugfixes
+
+= 1.6.x =
+* Initial releases
+
+== Frequently Asked Questions ==
+
+= The popup won't show up / I'm redirected to a white page on submit =
+
+Check that you have the javascript and css files in the plugin's folder (`post-from-site`). A problem with the first version of this plugin was that the plugin was looking for the files in the wrong directory. For other people it was also a problem with my code assuming a Linux filestructure, so on Windows servers it broke. 2.0.0+ shouldn't have this problem, as I'm using a different method of calling other files.
+
+[ask a question](http://wordpress.org/tags/post-from-site?forum_id=10)?
+
+== Screenshots ==
+
+1. Post From Site in action (default 'twentyeleven' theme): inserted onto a sticky post using the shortcode.
diff --git a/wp-content/plugins/dedication-from-site/recaptchalib.php b/wp-content/plugins/dedication-from-site/recaptchalib.php
new file mode 100644
index 0000000..32c4f4d
--- /dev/null
+++ b/wp-content/plugins/dedication-from-site/recaptchalib.php
@@ -0,0 +1,277 @@
+ $value )
+ $req .= $key . '=' . urlencode( stripslashes($value) ) . '&';
+
+ // Cut the last '&'
+ $req=substr($req,0,strlen($req)-1);
+ return $req;
+}
+
+
+
+/**
+ * Submits an HTTP POST to a reCAPTCHA server
+ * @param string $host
+ * @param string $path
+ * @param array $data
+ * @param int port
+ * @return array response
+ */
+function _recaptcha_http_post($host, $path, $data, $port = 80) {
+
+ $req = _recaptcha_qsencode ($data);
+
+ $http_request = "POST $path HTTP/1.0\r\n";
+ $http_request .= "Host: $host\r\n";
+ $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
+ $http_request .= "Content-Length: " . strlen($req) . "\r\n";
+ $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
+ $http_request .= "\r\n";
+ $http_request .= $req;
+
+ $response = '';
+ if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
+ die ('Could not open socket');
+ }
+
+ fwrite($fs, $http_request);
+
+ while ( !feof($fs) )
+ $response .= fgets($fs, 1160); // One TCP-IP packet
+ fclose($fs);
+ $response = explode("\r\n\r\n", $response, 2);
+
+ return $response;
+}
+
+
+
+/**
+ * Gets the challenge HTML (javascript and non-javascript version).
+ * This is called from the browser, and the resulting reCAPTCHA HTML widget
+ * is embedded within the HTML form it was called from.
+ * @param string $pubkey A public key for reCAPTCHA
+ * @param string $error The error given by reCAPTCHA (optional, default is null)
+ * @param boolean $use_ssl Should the request be made over ssl? (optional, default is false)
+
+ * @return string - The HTML to be embedded in the user's form.
+ */
+function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
+{
+ if ($pubkey == null || $pubkey == '') {
+ die ("To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create");
+ }
+
+ if ($use_ssl) {
+ $server = RECAPTCHA_API_SECURE_SERVER;
+ } else {
+ $server = RECAPTCHA_API_SERVER;
+ }
+
+ $errorpart = "";
+ if ($error) {
+ $errorpart = "&error=" . $error;
+ }
+ return '
+
+ ';
+}
+
+
+
+
+/**
+ * A ReCaptchaResponse is returned from recaptcha_check_answer()
+ */
+class ReCaptchaResponse {
+ var $is_valid;
+ var $error;
+}
+
+
+/**
+ * Calls an HTTP POST function to verify if the user's guess was correct
+ * @param string $privkey
+ * @param string $remoteip
+ * @param string $challenge
+ * @param string $response
+ * @param array $extra_params an array of extra variables to post to the server
+ * @return ReCaptchaResponse
+ */
+function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array())
+{
+ if ($privkey == null || $privkey == '') {
+ die ("To use reCAPTCHA you must get an API key from https://www.google.com/recaptcha/admin/create");
+ }
+
+ if ($remoteip == null || $remoteip == '') {
+ die ("For security reasons, you must pass the remote ip to reCAPTCHA");
+ }
+
+
+
+ //discard spam submissions
+ if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) {
+ $recaptcha_response = new ReCaptchaResponse();
+ $recaptcha_response->is_valid = false;
+ $recaptcha_response->error = 'incorrect-captcha-sol';
+ return $recaptcha_response;
+ }
+
+ $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",
+ array (
+ 'privatekey' => $privkey,
+ 'remoteip' => $remoteip,
+ 'challenge' => $challenge,
+ 'response' => $response
+ ) + $extra_params
+ );
+
+ $answers = explode ("\n", $response [1]);
+ $recaptcha_response = new ReCaptchaResponse();
+
+ if (trim ($answers [0]) == 'true') {
+ $recaptcha_response->is_valid = true;
+ }
+ else {
+ $recaptcha_response->is_valid = false;
+ $recaptcha_response->error = $answers [1];
+ }
+ return $recaptcha_response;
+
+}
+
+/**
+ * gets a URL where the user can sign up for reCAPTCHA. If your application
+ * has a configuration page where you enter a key, you should provide a link
+ * using this function.
+ * @param string $domain The domain where the page is hosted
+ * @param string $appname The name of your application
+ */
+function recaptcha_get_signup_url ($domain = null, $appname = null) {
+ return "https://www.google.com/recaptcha/admin/create?" . _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname));
+}
+
+function _recaptcha_aes_pad($val) {
+ $block_size = 16;
+ $numpad = $block_size - (strlen ($val) % $block_size);
+ return str_pad($val, strlen ($val) + $numpad, chr($numpad));
+}
+
+/* Mailhide related code */
+
+function _recaptcha_aes_encrypt($val,$ky) {
+ if (! function_exists ("mcrypt_encrypt")) {
+ die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
+ }
+ $mode=MCRYPT_MODE_CBC;
+ $enc=MCRYPT_RIJNDAEL_128;
+ $val=_recaptcha_aes_pad($val);
+ return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
+}
+
+
+function _recaptcha_mailhide_urlbase64 ($x) {
+ return strtr(base64_encode ($x), '+/', '-_');
+}
+
+/* gets the reCAPTCHA Mailhide url for a given email, public key and private key */
+function recaptcha_mailhide_url($pubkey, $privkey, $email) {
+ if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) {
+ die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " .
+ "you can do so at http://www.google.com/recaptcha/mailhide/apikey");
+ }
+
+
+ $ky = pack('H*', $privkey);
+ $cryptmail = _recaptcha_aes_encrypt ($email, $ky);
+
+ return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);
+}
+
+/**
+ * gets the parts of the email to expose to the user.
+ * eg, given johndoe@example,com return ["john", "example.com"].
+ * the email is then displayed as john...@example.com
+ */
+function _recaptcha_mailhide_email_parts ($email) {
+ $arr = preg_split("/@/", $email );
+
+ if (strlen ($arr[0]) <= 4) {
+ $arr[0] = substr ($arr[0], 0, 1);
+ } else if (strlen ($arr[0]) <= 6) {
+ $arr[0] = substr ($arr[0], 0, 3);
+ } else {
+ $arr[0] = substr ($arr[0], 0, 4);
+ }
+ return $arr;
+}
+
+/**
+ * Gets html to display an email address given a public an private key.
+ * to get a key, go to:
+ *
+ * http://www.google.com/recaptcha/mailhide/apikey
+ */
+function recaptcha_mailhide_html($pubkey, $privkey, $email) {
+ $emailparts = _recaptcha_mailhide_email_parts ($email);
+ $url = recaptcha_mailhide_url ($pubkey, $privkey, $email);
+
+ return htmlentities($emailparts[0]) . "...@" . htmlentities ($emailparts [1]);
+
+}
+
+
+?>
diff --git a/wp-content/plugins/dedication-from-site/screenshot-1.png b/wp-content/plugins/dedication-from-site/screenshot-1.png
new file mode 100644
index 0000000..d7fb2d9
Binary files /dev/null and b/wp-content/plugins/dedication-from-site/screenshot-1.png differ
diff --git a/wp-content/plugins/dedication-from-site/search.php b/wp-content/plugins/dedication-from-site/search.php
new file mode 100644
index 0000000..f5ca7d0
--- /dev/null
+++ b/wp-content/plugins/dedication-from-site/search.php
@@ -0,0 +1,48 @@
+get_results("SELECT ID, display_name, user_email FROM $wpdb->users ORDER BY ID");
+foreach ($wp_user_search as $userid) {
+ $user_id = (int) $userid->ID;
+ $display_name = stripslashes($userid->display_name);
+ $user_email = stripslashes($userid->user_email);
+
+ $data[] = array(
+ 'label' => $display_name . ' (' . $user_email . ')',
+ 'value' => $user_id
+ );
+}
+// jQuery wants JSON data
+echo json_encode($data);
+flush();
+
+
+//// connect to the database server and select the appropriate database for use
+//$dblink = mysql_connect('server', 'username', 'password') or die(mysql_error());
+//mysql_select_db('database_name');
+//// query the database table for zip codes that match 'term'
+//$rs = mysql_query('select zip, city, state from zipcode where zip like "' . mysql_real_escape_string($_REQUEST['term']) . '%" order by zip asc limit 0,10', $dblink);
+//// loop through each zipcode returned and format the response for jQuery
+//
+//if ($rs && mysql_num_rows($rs)) {
+// while ($row = mysql_fetch_array($rs, MYSQL_ASSOC)) {
+// $data[] = array(
+// 'label' => $row['zip'] . ', ' . $row['city'] . ' ' . $row['state'],
+// 'value' => $row['zip']
+// );
+// }
+//}
+//// jQuery wants JSON data
+//echo json_encode($data);
+//flush();
diff --git a/wp-content/plugins/invite-anyone/invite-anyone.php b/wp-content/plugins/invite-anyone/invite-anyone.php
index 9d2115a..9d51ad1 100644
--- a/wp-content/plugins/invite-anyone/invite-anyone.php
+++ b/wp-content/plugins/invite-anyone/invite-anyone.php
@@ -19,7 +19,7 @@ register_activation_hook( __FILE__, 'invite_anyone_activation' );
function invite_anyone_init() {
require( dirname( __FILE__ ) . '/functions.php' );
-
+
if ( function_exists( 'bp_is_active' ) ) {
if ( bp_is_active( 'groups' ) )
require( dirname( __FILE__ ) . '/group-invites/group-invites.php' );
diff --git a/wp-content/plugins/youtube-to-wp-post/readme.txt b/wp-content/plugins/youtube-to-wp-post/readme.txt
deleted file mode 100644
index b8990b6..0000000
--- a/wp-content/plugins/youtube-to-wp-post/readme.txt
+++ /dev/null
@@ -1,53 +0,0 @@
-=== Youtube to WP Post ===
-Contributors: Robin
-Tags: youtube ,wp-post,youtube-post,youtube-wp-post,youtubetopost
-Donate link:
-Requires at least: 3.0
-Tested up to: 3.3
-Stable tag: 1.0
-License: GPLv2 or later
-
-This plugin creates posts based on the data fetched from the youtube from its id.
-
-== Description ==
-
-This plugin accepts url of youtube and fetches title , description and the thumbnail of the youtube video , then creates a post in wp with the title , description and featured image fetched from youtube sites.
-
-
-
-== Installation ==
-
-Follow Following steps
-
-1.Upload the FOLDER 'wp-youtube' to the /wp-content/plugins/
-
-2.Activate the plugin 'WP YouTube' through the 'Plugins' menu in admin
-
-3.Go to 'YouTube To Post'
-
-== Changelog ==
-
-1.0 updated files
-
-== Frequently Asked Questions ==
-
-= How to use this plugin? =
-
-Go to YouTube To Post menu at admin panel
-Enter the youtube url (Seperate url in new line)
-Click on submit button
-See the post section .
-
-Enjoy
-
-= How to get help? =
-mail me at: robingupta0512@gmail.com
-
-== Screenshots ==
-1. main section of plugin.
-2. after entering the details.
-3. after submission of form.
-
-== Upgrade Notice ==
-
-= 1.0 = has updated files
diff --git a/wp-content/plugins/youtube-to-wp-post/screenshot-1.jpg b/wp-content/plugins/youtube-to-wp-post/screenshot-1.jpg
deleted file mode 100644
index 2e8a054..0000000
Binary files a/wp-content/plugins/youtube-to-wp-post/screenshot-1.jpg and /dev/null differ
diff --git a/wp-content/plugins/youtube-to-wp-post/screenshot-2.jpg b/wp-content/plugins/youtube-to-wp-post/screenshot-2.jpg
deleted file mode 100644
index 3ac0d48..0000000
Binary files a/wp-content/plugins/youtube-to-wp-post/screenshot-2.jpg and /dev/null differ
diff --git a/wp-content/plugins/youtube-to-wp-post/screenshot-3.jpg b/wp-content/plugins/youtube-to-wp-post/screenshot-3.jpg
deleted file mode 100644
index 05bcf55..0000000
Binary files a/wp-content/plugins/youtube-to-wp-post/screenshot-3.jpg and /dev/null differ
diff --git a/wp-content/plugins/youtube-to-wp-post/youtube-post.php b/wp-content/plugins/youtube-to-wp-post/youtube-post.php
deleted file mode 100644
index 1250ec7..0000000
--- a/wp-content/plugins/youtube-to-wp-post/youtube-post.php
+++ /dev/null
@@ -1,87 +0,0 @@
-
\ No newline at end of file
diff --git a/wp-content/plugins/youtube-to-wp-post/yp-admin.php b/wp-content/plugins/youtube-to-wp-post/yp-admin.php
deleted file mode 100644
index fdc87ea..0000000
--- a/wp-content/plugins/youtube-to-wp-post/yp-admin.php
+++ /dev/null
@@ -1,193 +0,0 @@
-