to get ArmorySync back working i need some changes to armory.class.php and functions.lib.php.
- Code: Select all
- --- C:/Dokumente und Einstellungen/Daniel/Lokale Einstellungen/Temp/armory.class.php-revBASE.svn000.tmp.php Fri Nov 23 01:19:24 2007
 +++ D:/xampp/roster.com/htdocs/lib/armory.class.php Thu Nov 22 10:07:06 2007
 @@ -862,7 +862,7 @@
 break;
 case 3:
 case 'guild-info':
 - $mode = 'guild-info.xml?r=' . urlencode($realm) . '&n=' . urlencode($guild);
 + $mode = 'guild-info.xml?r=' . urlencode($realm) . '&n=' . urlencode($guild). '&p=1';
 break;
 case 4:
 case 'character-talents':
and
- Code: Select all
- --- C:/Dokumente und Einstellungen/Daniel/Lokale Einstellungen/Temp/functions.lib.php-revBASE.svn000.tmp.php Fri Nov 23 01:23:15 2007
 +++ D:/xampp/roster.com/htdocs/lib/functions.lib.php Fri Nov 23 01:14:34 2007
 @@ -1178,6 +1175,7 @@
 fwrite($file, $header);
 stream_set_timeout($file, $timeout);
 $inHeader = true;
 + $redirect = false;
 while( !feof($file) )
 {
 $chunk = fgets($file, 256);
 @@ -1189,12 +1187,19 @@
 $contents .= substr( $chunk, $pos, strlen($chunk) );
 $inHeader = false;
 }
 + if ( preg_match ( '/^(?:Location:\s)(.+)/', $chunk, $redirect ) ) {
 + break;
 + }
 continue;
 }
 $contents .= $chunk;
 }
 fclose($file);
 + if ( isset($redirect[1]) ) {
 + return urlgrabber( $redirect[1], $timeout, $user_agent );
 + } else {
 return $contents;
 + }
 }
 }
 elseif( $contents = file_get_contents($url) )
Can any of the devs check this changes and if found good commit them to the trunk?
Greets poetter










