Changeset 226068
- Timestamp:
- 04/07/2010 12:11:09 PM (16 years ago)
- Location:
- wp-onlywire-auto-poster/trunk
- Files:
-
- 4 added
- 2 edited
-
donate_chuck.jpg (added)
-
lib.php (added)
-
onlywire-auto-poster.php (modified) (8 diffs)
-
paypal_donate_button.gif (added)
-
readme-tr.txt (added)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-onlywire-auto-poster/trunk/onlywire-auto-poster.php
r220772 r226068 2 2 /** 3 3 Plugin Name: WP OnlyWire Auto Poster 4 Plugin URI: http://www.tankado.com/ en/onlywire-auto-poster-wordpress-eklentisi5 Version: 3.0. 54 Plugin URI: http://www.tankado.com/onlywire-auto-poster-wordpress-eklentisi/ 5 Version: 3.0.6 6 6 Description: Autosubmits a excerpt of a posts to Onlywire when the post published 7 7 Author: Özgür Koca 8 8 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üzeltildi14 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üzeltildi19 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üzeltildi24 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 OnlyWire42 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 API49 - Comment field contains author name, post date, excerpt and post categorie(s)50 - Not using worpress options table to store onlywire settings51 - Submit logs saving to database table for listing52 53 v2.0 - Base author: lionstarr, http:www.lionstarr.de54 55 9 */ 56 10 /* Copyright 2007 Ozgur Koca (email : [email protected]) … … 89 43 } 90 44 91 function onlywirePost($post_ID) { 45 function onlywirePost($post_ID) 46 { 47 include(dirname(__FILE__).'/lib.php'); 92 48 93 49 global $onlywire_table_name; … … 120 76 if(($ret_code === NULL) || ($ret_code === '0')) 121 77 { 122 $success_code = file_get_contents($url);78 $success_code = get_file($url); 123 79 log_success_code($post_ID, $post->post_title, $success_code); 124 80 … … 221 177 } 222 178 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); 225 182 if(strpos($ret, "success") !== false) { 226 183 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>'; … … 234 191 ?> 235 192 <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> 240 196 <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> 249 204 </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¤cy_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> 250 212 </tr> 251 213 </table> 252 <p class="submit"><input type="submit" name="onlywire_save" value="Save" /></p>253 </fieldset>254 214 </form> 215 <br> 255 216 <?php if(get_option('onlywire_rewarded') != "true") { ?> 256 217 <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. 257 218 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.259 219 <form method="post" id="onlywire_reward_author"> 260 220 <p class="submit"><input type="submit" name="onlywire_reward" value="Reward the Author of this Plugin" /></p> 261 221 <?php } ?> 262 222 </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 ?> 264 229 <div class='postbox'> 265 230 <table border="0" cellspacing="1" style="border-collapse: collapse"> … … 272 237 </tr> 273 238 <? 274 global $wpdb;275 global $onlywire_table_name;276 239 $rows = $wpdb->get_results('SELECT * FROM '.$onlywire_table_name.' order by post_date desc limit 30'); 277 240 foreach ($rows as $record) … … 300 263 </div> 301 264 <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 ?> 303 271 <div class='postbox'> 304 272 <table border="0" cellspacing="1" style="border-collapse: collapse"> … … 309 277 <td bgcolor="#FFFFE1"><font face="Verdana" size="2"><b> Result </font></td> 310 278 </tr> 311 <? 279 <?php 312 280 $no = 0; 313 global $wpdb;314 global $onlywire_logs_table_name;315 281 $rows = $wpdb->get_results('SELECT * FROM '.$onlywire_logs_table_name.' order by post_date desc limit 30'); 316 282 foreach ($rows as $record) -
wp-onlywire-auto-poster/trunk/readme.txt
r220772 r226068 48 48 == Changelog == 49 49 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 50 56 = 3.0.5 = 51 57
Note: See TracChangeset
for help on using the changeset viewer.