Skip to content

Commit

Permalink
fixed ping plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Mar 23, 2009
1 parent ec38d04 commit 163eb42
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
12 changes: 6 additions & 6 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Version 0.1, 1-Sep-2008
Version 0.2, 22-Oct-2008
sms, app store

Version 0.3, 25-Feb-2009
admin, themes, intranet, tweetpass
Version 0.3, 31-Mar-2009
admin, themes, intranet, tweetpass, search


REQUIREMENTS
Expand Down Expand Up @@ -113,9 +113,9 @@ edit the file: app/config/config.yml
awsBucket:


///////////////////////////
//////////////////
// use pretty URLs
///////////////////////////
//////////////////

Prety URL Requirements:
- root site only (yes -> me.com/ no -> me.com/subfolder/)
Expand All @@ -141,9 +141,9 @@ To enable pretty URLs:

UPDATING

///////////////////////////
/////////////////////////////
// use the /wp-content folder
///////////////////////////
/////////////////////////////

If you want to customize OpenMicroBlogger with your own theme and plugins:

Expand Down
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ env:
- omb
- twitter
- identica
- photo
- photos
- auction
- themepack1
- all_in_one_seo_pack
Expand Down
14 changes: 5 additions & 9 deletions app/omb/plugins/ping.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,19 @@ function send_ping( &$model, &$rec ) {
}

$datamodel =& $db->get_table($notify_table);
// http://dejafeed.com/?submit
$url = environment('ping_server');

$go = false;

if (!$go)
if (empty($url))
return;

//incomplete/experimental

$url .= "=".$request->url_for(array('resource'=>$rec->table,'action'=>'entry.html','id'=>$rec->id));

$curl = curl_init($url);
$method = "GET";
$params = array(); // not populated needs data
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPGET, ($method == "GET"));
curl_setopt($curl, CURLOPT_POST, ($method == "POST"));
if ($method == "POST") curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);

Expand Down
13 changes: 9 additions & 4 deletions app/omb/plugins/wp.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php


if (isset($_GET['s']) && !empty($_GET['s'])) {

redirect_to('http://dejafeed.com:8080/search.jsp?query='.$_GET['s']);

}

function allowed_tags() {
return true;
Expand Down Expand Up @@ -360,8 +364,8 @@ function add_management_page( $page,$menu,$access,$file,$func='',$url='' ) {
return add_submenu_page( $page, $page, $menu, $access, $file, $func, $url );
}

function the_excerpt_reloaded() {
// dur
function balanceTags() {

}

function query_posts() {
Expand Down Expand Up @@ -1357,7 +1361,8 @@ function the_content( $linklabel ) {
if (environment('theme') != 'prologue-theme') {

$current_user_id = get_the_author_ID( );
echo prologue_get_avatar( $current_user_id, get_the_author_email( ), 48 );
if (function_exists('prologue_get_avatar'))
echo prologue_get_avatar( $current_user_id, get_the_author_email( ), 48 );
return;
}

Expand Down

0 comments on commit 163eb42

Please sign in to comment.