Changeset 856182
- Timestamp:
- 02/12/2014 07:55:49 AM (12 years ago)
- Location:
- cyklodev-wp-notify/trunk
- Files:
-
- 3 edited
-
index.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
views/notify.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cyklodev-wp-notify/trunk/index.php
r853081 r856182 6 6 Description: Cyklodev WP Notify 7 7 Author: Zephilou 8 Version: 1.2. 08 Version: 1.2.1 9 9 Author URI: http://www.cyklodev.com 10 10 */ -
cyklodev-wp-notify/trunk/readme.txt
r853081 r856182 5 5 Requires at least: 3.0.1 6 6 Tested up to: 3.8 7 Stable tag: 1.2. 07 Stable tag: 1.2.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 == Changelog == 41 41 42 = 1.2.1 = 43 * Fix error message for tweet up to 140 char. 44 42 45 = 1.2.0 = 43 46 * Add Twitter post status capablity -
cyklodev-wp-notify/trunk/views/notify.php
r853081 r856182 62 62 $reply = $cb->statuses_update($params); 63 63 64 if($reply->httpstatus == 401){ 65 echo '<div style="background-color:#ff0000;" align="center">Error : <b>'.$reply->errors[0]->message.'</b> Code ('.$reply->errors[0]->code.') 64 switch ($reply->httpstatus) { 65 case 401: 66 echo '<div style="background-color:#ff0000;" align="center">Error : <b>'.$reply->errors[0]->message.'</b> Code ('.$reply->errors[0]->code.') 66 67 <br /> '.__("Verifiez <a href='admin.php?page=cyklodev_notify_twitter'>vos clés twitter !</a>",'cyklodev').' 67 68 </div>'; 68 } else { 69 echo '<div style="background-color:#00ff00;" align="center">'.__("Succès !",'cyklodev').'</div>'; 69 break; 70 case 403: 71 echo '<div style="background-color:#ff0000;" align="center">Error : <b>'.$reply->errors[0]->message.'</b> Code ('.$reply->errors[0]->code.') 72 <br /> '.__("<a href='admin.php?page=cyklodev_notify&update_id=".$_GET['update_id']."&twitter=twitting'>Go Back !</a>",'cyklodev').' 73 </div>'; 74 break; 75 default: 76 echo '<div style="background-color:#00ff00;" align="center">'.__("Succès !",'cyklodev').'</div>'; 77 break; 70 78 } 71 79 } else {
Note: See TracChangeset
for help on using the changeset viewer.