Plugin Directory

Changeset 197694


Ignore:
Timestamp:
01/24/2010 09:03:55 PM (16 years ago)
Author:
tomaszs
Message:
 
Location:
wp-to-bloxpl
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-to-bloxpl/trunk/readme.txt

    r196641 r197694  
    6363* Działająca wtyczka
    6464
     65= 1.2 =
     66
     67* Drobne poprawki
     68
    6569== Upgrade Notice ==
    6670
  • wp-to-bloxpl/trunk/wp-to-blox.php

    r196640 r197694  
    5454function forward_to_blox($id)
    5555{
     56    if ($_POST["original_post_status"] == "publish")
     57    {
     58        //Je¿eli wpis by³ ju¿ opublikowany to nie republikujemy go (aktualizacja wpisu)
     59        return;
     60    }
     61
    5662    $title = $_POST['post_title'];
    5763    $text = $_POST['post_content'];
    5864
     65    if ($text == "")
     66    {
     67        //pusty tekst np. shedule a nie publish
     68        return;
     69    }
     70
    5971    $text = tag_yt($text);
    6072   
    61     $login = ""; //Tutaj login
    62     $haslo = ""; //Tuta haslo
     73    //TMP
     74    //ob_start();
     75    //var_dump($_POST);
     76    //$a=ob_get_contents();
     77    //ob_end_clean();
     78    //$a = $_POST["original_post_status"];
     79    //$text .= $a;
     80    $tagi = isset($_POST['post_tag']) ? $_POST['post_tag'] : "brak";
    6381   
     82    $text .= "<br><br>Tagi: " . $tagi;
     83   
     84    $login = "tomasz_dwa";
     85    $haslo = "wolfgang";
    6486    $appKey = "PolishwordsWPToBlox" . $login;
    6587   
Note: See TracChangeset for help on using the changeset viewer.