Iowa Rockets Pictures
Updated:
", "")) {
$teams[$count] = $node;
$count++;
$data = substr($data, $pos);
}
$numberOfTeams = sizeof($teams);
for ($t=0; $t<$numberOfTeams; $t++) {
$team = $teams[$t];
// parse team and create and array of albums.
$pos = 0;
$teamdata = $team;
$teamName = GetElementByName($teamdata, "
", "");
$teamdata = substr($teamdata, $pos);
$albums = array();
$count = 0;
while ($node = GetElementByName($teamdata, "
", "")) {
$albums[$count] = $node;
$count++;
$teamdata = substr($teamdata, $pos);
}
$numberOfAlbums = sizeof($albums);
if ($numberOfAlbums == 0 )
{
$newPictures[$teamName] = 'false';
} else {
$hasNewPictures = 'false';
for ($a=0; $a<$numberOfAlbums; $a++) {
$album = $albums[$a];
// parse album and create and array of pictures.
$pos = 0;
$albumdata = $album;
$albumName = GetElementByName($albumdata, "
", "");
$albumdata = substr($albumdata, $pos);
$albumAdded = GetElementByName($albumdata, "
", "");
$albumdata = substr($albumdata, $pos);
if ( floor( (strtotime("now") - strtotime($albumAdded) ) / (60 * 60 * 24) ) <= $NewIfLessThan )
{
$hasNewPictures = 'true';
}
}
$newPictures[$teamName] = $hasNewPictures;
}
}
?>
tags.
$count = 0;
$pos = 0;
while ($node = GetElementByName($data, "
", "")) {
$teams[$count] = $node;
$count++;
$data = substr($data, $pos);
}
$numberOfTeams = sizeof($teams);
for ($t=0; $t<$numberOfTeams; $t++) {
$team = $teams[$t];
// parse team and create and array of albums.
$pos = 0;
$teamdata = $team;
$teamName = GetElementByName($teamdata, "
", "");
$teamdata = substr($teamdata, $pos);
?>
|
", "")) {
$albums[$count] = $node;
$count++;
$teamdata = substr($teamdata, $pos);
}
$numberOfAlbums = sizeof($albums);
if ($numberOfAlbums == 0 )
{
?>
|
Pictures Needed!
|
", "");
$albumdata = substr($albumdata, $pos);
$albumAdded = GetElementByName($albumdata, "", "");
$albumdata = substr($albumdata, $pos);
// echo " albumName: ".$albumName." ";
?>
|
");
$startpos = strpos($xml, $start);
if($debug) echo("startpos: " . $startpos . "
");
if ($startpos === false) {
return false;
}
$endpos = strpos($xml, $end);
if($debug) echo("endpos: " . $endpos . "
");
$endpos = $endpos+strlen($end);
if($debug) echo("endpos: " . $endpos . "
");
$pos = $endpos;
$endpos = $endpos-$startpos;
$endpos = $endpos - strlen($end);
$tag = substr ($xml, $startpos, $endpos);
$tag = substr ($tag, strlen($start));
if($debug) echo("tag: " . $tag . "
");
if($debug) echo("
");
return $tag;
}
?>