Betanews.com

Fireglade 15.06.02 12:14

Hakee tunnin välein tiedot uusista ohjelmista Betanews.comista. Windows-käyttäjät voivat vaikka laittaa Active Desktopille tämän, jolloin uutiset päivittyvät työpöydälle!

 Tekstiversio  Arvo: -1 (2 ääntä)  Äänestä: +  -
-------  INDEX.PHP  --------

<html>
<head>
<meta http-equiv="refresh" content="1800">
<style type="text/css">
BODY {
        font-face : Tahoma, Helvetica, Sans-serif;
        font-size : 12px;
        color : #FFFFFF;
       
        background-color : #396DA5;
}
.otsikko {
        font-size : 14px;
        font-weight : bold;
}
A:link, A:visited, A:active {
        text-decoration : none;
        color : #C0C0C0;
}
A:hover {
        text-decoration : underline;
        color : #F1F1F1;
}
</style>
</head>

<body>

<?php
$pvy = date("dmY\_H");
     
if(!file_exists($pvy)) {
     $first = date("dmY\_");
     $second = date("H") - 1;
     $newdate = $first . $second;
     
     $tiedosto = fopen("http://www.betanews.com/", "r");
     $tiedot = fread($tiedosto, 300000);
     fclose($tiedosto);
     
     $tiedosto = fopen($pvy, "w");
     fwrite($tiedosto, $tiedot);
     fclose($tiedosto);
     
     system("del $newdate");
}

$tiedosto = fopen($pvy, "r");
$tiedot = fread($tiedosto, 300000);
fclose($tiedosto);
   
   
preg_match_all("@detail\.php3\?fid=([\d]+).+?<b>(.+?)</b>.+?<font face..Verdana, Arial, Helvetica. size..2.><b>(.+?)</b>.+?size..2.>(.+?)</td>@", $tiedot, $temppi);

$maara = count($temppi[1]);
for ($a = 0; $a < $maara; $a++)  {
        $fid[$a] = $temppi[1][$a];
        }
$maara = count($temppi[2]);
for ($a = 0; $a < $maara; $a++)  {
        $ohjelma[$a] = $temppi[2][$a];
        }
$maara = count($temppi[3]);
for ($a = 0; $a < $maara; $a++)  {
        $aika[$a] = $temppi[3][$a];
        }
$maara = count($temppi[4]);
for ($a = 0; $a < $maara; $a++)  {
        $kuvaus[$a] = $temppi[4][$a];
        }
print("<font class=otsikko>Betanews.com</font><br><font class=aika>".date("d.m.Y\@H:i")."</font>");
print("<hr color=#C0C0C0 size=1 noshade><font class=teksti_>");
for ($a = 0; $a < count($ohjelma); $a++)  {
        print("<a target=_blank href=http://fileforum.betanews.com/detail.php3?fid=".$fid[$a].">".$ohjelma[$a]."</a>&nbsp;&nbsp;&nbsp;--&nbsp;<a target=ohjelmankuvaus href=kuvaus.php?indeksi=$a><font class=tekstig>Lisää</font></a><br>");
}
print("</font>");
?>

<iframe src="kuvaus.php" height="300" width="370" name="ohjelmankuvaus" frameborder="0">
</body>
</html>



------  KUVAUS.PHP -------

<html>
<head>
<style type="text/css">
BODY {
        font-face : Tahoma, Helvetica, Sans-serif;
        font-size : 12px;
        color : #FFFFFF;
       
        background-color : #396DA5;     
}
.otsikko {
        font-size : 14px;
        font-weight : bold;
}
A:link, A:visited, A:active {
        text-decoration : none;
        color : #C0C0C0;
}
A:hover {
        text-decoration : underline;
        color : #F1F1F1;
}
</style></head>

<body>

<?php
$pvy = date("dmY\_H\0\0");
$tiedosto = fopen($pvy, "r");
$tiedot = fread($tiedosto, 300000);
fclose($tiedosto)
   
preg_match_all("@detail\.php3\?fid=([\d]+).+?<b>(.+?)</b>.+?<font face..Verdana, Arial, Helvetica. size..2.><b>(.+?)</b>.+?size..2.>(.+?)</td>@", $tiedot, $temppi);

$maara = count($temppi[1]);
for ($a = 0; $a < $maara; $a++)  {
        $fid[$a] = $temppi[1][$a];
        }
$maara = count($temppi[2]);
for ($a = 0; $a < $maara; $a++)  {
        $ohjelma[$a] = $temppi[2][$a];
        }
$maara = count($temppi[3]);
for ($a = 0; $a < $maara; $a++)  {
        $aika[$a] = $temppi[3][$a];
        }
$maara = count($temppi[4]);
for ($a = 0; $a < $maara; $a++)  {
        $kuvaus[$a] = $temppi[4][$a];
        }

if (isset($indeksi))  {
        print("<br><p class=teksti_><a target=_blank href=http://fileforum.betanews.com/detail.php3?fid=$fid[$indeksi]><font class=otsikko>$ohjelma[$indeksi]</font></a><br>&nbsp;&nbsp;&nbsp;<font class=aika>$aika[$indeksi]</font><br><br>$kuvaus[$indeksi]</p><br><br>");

        $sorsa = "<img width=280 src=";
        $osote = "http://fileforum.betanews.com/screenshots/";
        $gif = $osote . $fid[$indeksi] . ".gif";
        $jpg = $osote . $fid[$indeksi] . ".jpg";
        $png = $osote . $fid[$indeksi] . ".png";

        $gif_tiedosto = @fopen("$osote$fid[$indeksi].gif", "r");

        if ($gif_tiedosto)  {
                $kuva = $gif;
                fclose($gif_tiedosto);
                }
        else  {
                $jpg_tiedosto = @fopen("$osote$fid[$indeksi].jpg", "r");
               
                if  ($jpg_tiedosto)  {
                        $kuva = $jpg;
                        fclose($jpg_tiedosto);
                }
                else  {
                        $png_tiedosto = @fopen("$osote$fid[$indeksi].png", "r");
               
                        if  ($png_tiedosto)  {
                                $kuva = $png;
                                fclose($png_tiedosto);
                        }
                        else  {
                                print("<div class=teksti>Ei kuvaa saatavilla.</div>");
                                exit;
                        }
                }
        }
   print($sorsa . $kuva . ">");
 
}
else {  }
?>

</body>
</html>

djhasis 13:57 24.6.04 
Ei toimi enään. :(
Antarktis 11:59 29.5.05 
Ei toimi. Laittaisko joku toimimaan.
Antarktis 18:42 2.6.05 
kuka kultasormi laittaa tän pelittää ?
temu92 20:58 15.6.05 
mitä mä tällä tekisin??? en mitään
nikomo 15:42 23.7.05 
plz joku kultasormi pistää toimii plz i need this
FinCoder 19:09 1.11.05 
Tarvisin myös.
nikomo 00:10 9.3.06 
höh, nyt on jo 2006 ja onx ketään ees yrittäny korjata tätä?
nikomo 21:34 20.12.08 
Haha, 2008, 4 päivää ennen jouluaattoa eikä mitään.
Blast from the past.