7) $gsetv = 0;
$start = -1;
while (1)
{
$start = strpos ($page, 'href="', $start + 1);
if (! $start) break;
$end = strpos ($page, '"', $start + 6);
if (! $end) break;
$end2 = strpos ($page, '>', $start + 6);
if (! $end2 || $end2 < $end) continue;
$ltext = substr ($page, $start + 6, $end - $start - 6);
if (strpos ($ltext, '.') !== false) continue;
if (strpos ($ltext, ':') !== false) continue;
if (strpos ($ltext, 'SGC_') !== false) continue;
if ($gladiators)
{
$page = substr ($page, 0, $start + 6) . 'https://shop.softwaregoldclub.com/' . substr ($page, $start + 6);
}
else
{
$page = substr ($page, 0, $start + 6) . 'https://www.softwaregoldclub.com/salespage/' . substr ($page, $start + 6);
}
}
if ($gsetv)
{
$p1 = strpos ($page, '
| ');
if ($p1)
{
$p2 = strpos ($page, ' |
" . substr ($page, $p1, $p2 - $p1) .
"
|
|
|
|
');
if ($p2)
{
$gset = "_graphics/set$gsetv";
$width = '850';
$height = ' height=160';
$height2='63';
$color2='F7D913';
$font2='28pt';
switch ($gsetv)
{
case 1: $width = 800; $height = ' height=238'; $height2='100'; $font2='24pt'; $bizbizcolor = 'a00000'; break;
case 2: $height = ' height=153'; $height2='54'; $color2='E9C064'; $font2='24pt'; $bizbizcolor = '0000a0'; break;
case 3: $bizbizcolor = 'a00000'; break;
case 4: $bizbizcolor = '0000a0'; break;
case 5: $color2='ffffff'; $bizbizcolor = '008000'; break;
case 6: $color2='EEC4EE'; $bizbizcolor = 'A20BD5'; break;
case 7: $color2='FBCBEC'; $bizbizcolor = 'DD0E9F'; break;
default: $height = '';
}
$page = "