Changeset 758 for trunk/includes/global.php
- Timestamp:
- Jan 20, 2014, 3:37:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global.php
r754 r758 144 144 145 145 146 function GetTranslateGoogle($text ) {146 function GetTranslateGoogle($text,$withouttitle = false) { 147 147 global $System; 148 148 // $text = 'Balthule\'s letter is dire. This Cult of the Dark Strand is a thorn in my side that must be removed. I have been dealing with some of the Dark Strand scum northeast of here at Ordil\'Aran. One of their number possesses a soul gem that I believe holds the secret to the cult\'s power.$b$bBring it to me, and I will be able to decipher the secrets held within.'; … … 167 167 $data = substr($data, strpos($data,'>')+1); 168 168 $data = substr($data, 0, strpos($data,'</div>')); 169 while (strpos($data,'>') !== false and strpos($data,'<') !== false) 169 170 if ($withouttitle) 171 while ((strpos($data,'>') !== false and strpos($data,'<') !== false) and (strpos($data,'>') > strpos($data,'<'))) 170 172 { 171 173 $partbefore = substr($data, 0, strpos($data,'<'));
Note:
See TracChangeset
for help on using the changeset viewer.