Changeset 140067
- Timestamp:
- 07/28/2009 08:42:15 AM (17 years ago)
- File:
-
- 1 edited
-
draugiemsay/trunk/draugiemsay_wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
draugiemsay/trunk/draugiemsay_wp.php
r140059 r140067 59 59 $link = get_permalink($postid); 60 60 $leftchars = 137-mb_strlen($link); 61 if (mb_strlen($text)>137){ 62 $fulltext = mb_substr($text, 0, $leftchars) . ' '; 63 }else{ 64 $fulltext = $text . ' '; 65 } 61 $prefix = get_option('draugiemsay_pretext'); 62 66 63 if(isset($cligsapi)) { 67 64 $link=dr_shorten_link( $link, $text, $cligsapi ); 68 65 } 69 $fulltext .= $link;70 66 71 67 $profile = get_option('draugiemsay_profile'); … … 74 70 } 75 71 76 $xmllink = 'http://api.draugiem.lv/xml/index.php?app=ea0ca99e9e2f046c32524f1979be0b73&apikey=' . $apikey . '&action=say/post&text=' . urlencode($fulltext) . '&prefix=' . urlencode(get_option('draugiemsay_pretext')) . '&public=1' . (!empty($profile) ? '&uid=' . $uid . '&type=' . $type : ''); 72 $xmllink = 'http://api.draugiem.lv/xml/index.php?app=ea0ca99e9e2f046c32524f1979be0b73&apikey=' . $apikey . '&action=say/post&title=' . urlencode($text) . '&link=' . urlencode($link) . '&prefix=' . urlencode($prefix) . '&public=1' . (!empty($profile) ? '&uid=' . $uid . '&type=' . $type : ''); 73 var_dump($xmllink); 74 die(); 77 75 $xml = file_get_contents($xmllink); 78 76 $xmldata = simplexml_load_string($xml);
Note: See TracChangeset
for help on using the changeset viewer.