Not sure if this goes here, but here I go.
I recently was making a script edit off another script that posted the TWD Squad Roster on another site. I was trying to edit it to post the scores. I got it to print out this:
BnG Squad Scores
This is what the php code looks like
Script originally by FireOut. I just edited it with his permission.
I want it to bold the TWD Deuling,Javalin,Basing headers and space everything out.
Help please.
I recently was making a script edit off another script that posted the TWD Squad Roster on another site. I was trying to edit it to post the scores. I got it to print out this:
BnG Squad Scores
This is what the php code looks like
PHP Code:
<html>
<head>
</head>
<body>
<?php
//FireOut's TWD Roster Script
//Last Updated: Oct 5th 2003
//use your squad's score URL here:
$twdsite=fopen("http://www.twdivisions.org/body.php?action=ViewSquad&R_fnTeamID=1878&tab=2", 'r');
//Go to beginning of TWD server generated lists (line 43)
for($i=0; $i<43; $i++)
$buffer = fgets($twdsite, 5096);
//fgetss strips HTML tags from the file input stream
$text="";
while(!feof($twdsite)){
$buffer = fgetss($twdsite, 5096);
$text=$text.$buffer."\n";
}
/*
//Removes the numbers before the names
$n=substr_count($text," ")-4;
for($i=1;$i<=$n;$i++){
$pos=strpos($text," ")+10;
$subtext=substr($text,0,$pos);
$haystack=" ".$i;
$text=str_replace($haystack,"<br>\n",$subtext).substr($text,$pos);
}
*/
//Jump to beginning of scores list
$text=substr($text,strpos($text,"TWD Dueling"),20000);
/*
//Strip the additional crap from the TWD site
$text=substr($text,19,strpos($text," ")-19);
*/
//$text=substr_replace("Oct","<br>Oct",strpos($text,"TWD Dueling"),$endoffile);
echo $text;
fclose ($twdsite);
?>
</body>
</html>
I want it to bold the TWD Deuling,Javalin,Basing headers and space everything out.
Help please.
Comment