mirror of
https://github.com/psenough/pouet.net.git
synced 2025-01-16 20:58:27 +01:00
leftover crap, as the name says
This commit is contained in:
parent
342b1198f7
commit
fffdb6d566
Binary file not shown.
366
rulez/sql.csv
366
rulez/sql.csv
@ -1,366 +0,0 @@
|
||||
38;55758
|
||||
38888;55994
|
||||
2136;54588
|
||||
11627;54603
|
||||
13038;54565
|
||||
20526;55757
|
||||
44653;54920
|
||||
33199;54920
|
||||
36787;54603
|
||||
36757;54603
|
||||
1883;54648
|
||||
26347;56384
|
||||
23560;55961
|
||||
815;55994
|
||||
17017;54603
|
||||
367;56367
|
||||
35401;55558
|
||||
151;54603
|
||||
17835;55961
|
||||
9841;55556
|
||||
13530;56458
|
||||
15102;54529
|
||||
1265;56100
|
||||
4624;55267
|
||||
27626;54565
|
||||
14932;55556
|
||||
397;55576
|
||||
835;54920
|
||||
38809;55576
|
||||
12345;55741
|
||||
16820;56367
|
||||
374;56458
|
||||
1611;55576
|
||||
29286;55744
|
||||
26079;56458
|
||||
1785;56099
|
||||
32621;54578
|
||||
5374;54920
|
||||
2385;55550
|
||||
29;55961
|
||||
1888;54565
|
||||
13797;54920
|
||||
26747;55741
|
||||
65228;55558
|
||||
16216;54603
|
||||
912;55556
|
||||
37539;55795
|
||||
18369;54920
|
||||
1069;54561
|
||||
1907;54603
|
||||
3865;56097
|
||||
65230;55991
|
||||
27713;54957
|
||||
4839;55736
|
||||
60705;55991
|
||||
402;54649
|
||||
23579;56384
|
||||
65232;55991
|
||||
54688;54920
|
||||
20113;56000
|
||||
56085;54603
|
||||
18612;54603
|
||||
45832;55991
|
||||
10;55587
|
||||
6140;54561
|
||||
6854;55991
|
||||
1227;54649
|
||||
2549;55991
|
||||
357;55991
|
||||
191;54603
|
||||
20531;55994
|
||||
47973;54561
|
||||
26302;54603
|
||||
41057;54556
|
||||
839;54603
|
||||
53077;55961
|
||||
9731;55758
|
||||
65237;55556
|
||||
3844;55961
|
||||
282;55576
|
||||
1601;55267
|
||||
25249;55546
|
||||
3549;56000
|
||||
59611;54578
|
||||
49166;54920
|
||||
44668;55556
|
||||
35954;54529
|
||||
35609;55737
|
||||
18669;56215
|
||||
1360;54920
|
||||
16732;54565
|
||||
17256;54920
|
||||
35264;55576
|
||||
675;55990
|
||||
2487;55267
|
||||
12225;54571
|
||||
1640;55758
|
||||
4627;56458
|
||||
16351;54529
|
||||
5966;54920
|
||||
36144;54588
|
||||
4465;55267
|
||||
417;56458
|
||||
65265;54920
|
||||
14;55267
|
||||
25302;56383
|
||||
44720;55556
|
||||
22100;54920
|
||||
21325;54603
|
||||
1893;54920
|
||||
65268;54946
|
||||
65271;55741
|
||||
15346;54562
|
||||
39668;54562
|
||||
6645;54562
|
||||
22333;54562
|
||||
6743;54588
|
||||
49354;55741
|
||||
65055;54562
|
||||
15359;55036
|
||||
12065;54573
|
||||
52280;54561
|
||||
1686;54562
|
||||
52323;54562
|
||||
11849;55267
|
||||
65284;54562
|
||||
58372;56458
|
||||
11574;54562
|
||||
1383;56367
|
||||
5610;55556
|
||||
44667;56459
|
||||
20136;55994
|
||||
47731;54562
|
||||
665;54522
|
||||
17342;56000
|
||||
11735;54562
|
||||
819;56010
|
||||
17248;56009
|
||||
18190;54562
|
||||
5048;55556
|
||||
26505;54920
|
||||
53367;54529
|
||||
4851;54562
|
||||
21967;56383
|
||||
12470;55556
|
||||
2881;56009
|
||||
23576;55267
|
||||
8288;54588
|
||||
41398;54588
|
||||
737;55758
|
||||
708;54920
|
||||
63870;54920
|
||||
25804;56458
|
||||
1821;56459
|
||||
230;54590
|
||||
26783;55741
|
||||
44871;54920
|
||||
3023;55758
|
||||
1627;54573
|
||||
2019;55758
|
||||
65320;54562
|
||||
65322;55991
|
||||
19122;56003
|
||||
65327;55991
|
||||
65330;55991
|
||||
4324;55587
|
||||
65331;55991
|
||||
65332;55991
|
||||
65334;55991
|
||||
4721;54562
|
||||
51111;55991
|
||||
65338;55991
|
||||
53563;54617
|
||||
65339;55991
|
||||
45916;54571
|
||||
31401;56458
|
||||
65342;55991
|
||||
65346;55991
|
||||
65347;55991
|
||||
65349;55991
|
||||
1455;54624
|
||||
49949;54920
|
||||
65345;56010
|
||||
56768;55267
|
||||
19310;55758
|
||||
553;54920
|
||||
65350;56308
|
||||
65352;55991
|
||||
65353;55991
|
||||
4430;54588
|
||||
1355;55558
|
||||
65355;55991
|
||||
65358;55991
|
||||
14254;56458
|
||||
2229;55991
|
||||
65365;55991
|
||||
65366;55991
|
||||
2282;55758
|
||||
65364;54920
|
||||
2037;56099
|
||||
65368;55991
|
||||
2892;55576
|
||||
14104;55556
|
||||
31170;55576
|
||||
13063;54562
|
||||
5185;56457
|
||||
4675;55576
|
||||
4423;55961
|
||||
17591;56458
|
||||
65374;55603
|
||||
54370;54561
|
||||
65376;55576
|
||||
65377;55991
|
||||
9382;55737
|
||||
56069;55991
|
||||
889;55556
|
||||
65388;55991
|
||||
560;55558
|
||||
22682;55556
|
||||
65393;55991
|
||||
2254;54648
|
||||
5372;56000
|
||||
964;55758
|
||||
65404;55991
|
||||
24361;56458
|
||||
65416;56458
|
||||
5542;55994
|
||||
23655;54588
|
||||
65431;55991
|
||||
11726;56458
|
||||
40973;54562
|
||||
9915;56384
|
||||
65451;55991
|
||||
21862;54648
|
||||
25881;54575
|
||||
65476;55556
|
||||
17453;54590
|
||||
20242;54588
|
||||
10574;56458
|
||||
1181;54603
|
||||
59591;55603
|
||||
65499;55991
|
||||
38810;56458
|
||||
65501;55991
|
||||
6627;56000
|
||||
4560;54573
|
||||
3268;54578
|
||||
65506;55991
|
||||
4177;56383
|
||||
2998;55697
|
||||
65510;55991
|
||||
65513;55991
|
||||
32075;55550
|
||||
1102;55556
|
||||
65535;55991
|
||||
45872;54603
|
||||
26768;55741
|
||||
65549;55991
|
||||
65550;55991
|
||||
65560;54920
|
||||
65563;55991
|
||||
65564;55991
|
||||
232;54920
|
||||
65572;55991
|
||||
6378;54603
|
||||
2601;54561
|
||||
2185;54920
|
||||
65591;55557
|
||||
44532;56009
|
||||
2407;55558
|
||||
65547;55556
|
||||
54989;55556
|
||||
18150;55556
|
||||
20506;54920
|
||||
59;55758
|
||||
25021;54920
|
||||
31415;54588
|
||||
65659;55992
|
||||
65665;54578
|
||||
65674;55556
|
||||
65725;55757
|
||||
7427;55961
|
||||
4031;55576
|
||||
65458;56458
|
||||
17555;56458
|
||||
65777;55991
|
||||
54381;54588
|
||||
65801;54562
|
||||
65805;54588
|
||||
19297;54565
|
||||
65806;55558
|
||||
55315;54578
|
||||
19431;54648
|
||||
6667;55961
|
||||
65839;55556
|
||||
65863;54578
|
||||
18821;56458
|
||||
10245;55777
|
||||
23672;55310
|
||||
65961;55758
|
||||
65970;55213
|
||||
53051;54588
|
||||
41931;55994
|
||||
44637;56000
|
||||
48080;55576
|
||||
15585;55758
|
||||
66223;56104
|
||||
66265;55310
|
||||
66448;55535
|
||||
3681;56458
|
||||
66569;55991
|
||||
66663;55990
|
||||
66728;55556
|
||||
23026;54920
|
||||
66818;55556
|
||||
66850;55991
|
||||
66852;55992
|
||||
66883;55991
|
||||
66887;0
|
||||
67033;54588
|
||||
67152;55991
|
||||
42476;55741
|
||||
16001;54588
|
||||
12515;54920
|
||||
1106;55556
|
||||
14539;54603
|
||||
17086;55758
|
||||
17917;55556
|
||||
3041;54920
|
||||
7744;54578
|
||||
3242;54603
|
||||
274;55267
|
||||
12365;56003
|
||||
26956;56010
|
||||
6085;55759
|
||||
4061;55556
|
||||
15035;54603
|
||||
2683;54603
|
||||
429;55758
|
||||
5650;55587
|
||||
32849;56020
|
||||
4353;54565
|
||||
3095;55556
|
||||
185;54575
|
||||
5545;55758
|
||||
2097;54603
|
||||
49035;55758
|
||||
31513;55556
|
||||
54215;54565
|
||||
18575;54659
|
||||
20341;54603
|
||||
67344;54588
|
||||
3070;55994
|
||||
8763;55300
|
||||
65176;55310
|
||||
12864;56009
|
||||
44193;56108
|
||||
4276;55795
|
||||
6485;56458
|
||||
11630;55794
|
||||
14475;54575
|
||||
54496;54565
|
||||
67566;55991
|
||||
34928;56458
|
||||
918;54603
|
||||
42284;56100
|
|
254
rulez/sql2.csv
254
rulez/sql2.csv
@ -1,254 +0,0 @@
|
||||
1010;55758
|
||||
1024;54603
|
||||
10321;55556
|
||||
10652;56458
|
||||
10849;55758
|
||||
10;55991
|
||||
11574;54562
|
||||
11627;55991
|
||||
1181;54603
|
||||
12302;54603
|
||||
12470;55556
|
||||
1265;54603
|
||||
12689;55556
|
||||
1355;54603
|
||||
1360;54920
|
||||
136;55758
|
||||
1383;54920
|
||||
1488;55576
|
||||
15102;55991
|
||||
15191;55758
|
||||
151;54603
|
||||
15346;54562
|
||||
154;54920
|
||||
1580;54603
|
||||
1582;54588
|
||||
16001;54588
|
||||
1611;55576
|
||||
1627;54588
|
||||
1640;55758
|
||||
16653;54920
|
||||
16732;56458
|
||||
1686;54562
|
||||
17256;54920
|
||||
17342;54920
|
||||
17581;54920
|
||||
17651;54603
|
||||
1779;55758
|
||||
17917;55556
|
||||
17;55991
|
||||
18004;55556
|
||||
18190;54562
|
||||
18250;55556
|
||||
18375;54920
|
||||
18810;54588
|
||||
18861;55991
|
||||
1888;56458
|
||||
1907;54603
|
||||
191;54603
|
||||
19746;55758
|
||||
20134;55556
|
||||
20155;54603
|
||||
2019;55758
|
||||
20531;55758
|
||||
2097;55991
|
||||
2100;55991
|
||||
2123;54603
|
||||
22267;54562
|
||||
22333;54562
|
||||
2244;55991
|
||||
23026;54920
|
||||
23658;54920
|
||||
23672;54920
|
||||
2385;55556
|
||||
2407;54603
|
||||
24312;54920
|
||||
24315;54603
|
||||
24345;55758
|
||||
2453;54920
|
||||
2487;55267
|
||||
24880;55556
|
||||
25249;55556
|
||||
25302;55267
|
||||
25360;55758
|
||||
2549;55991
|
||||
26120;54603
|
||||
26302;54603
|
||||
26747;54920
|
||||
26918;55991
|
||||
27713;54588
|
||||
29976;55991
|
||||
30761;56458
|
||||
30766;55991
|
||||
3095;54920
|
||||
3098;55758
|
||||
31415;54588
|
||||
31513;54588
|
||||
319;54603
|
||||
32621;54603
|
||||
33303;55556
|
||||
34564;54603
|
||||
34;55758
|
||||
35264;55576
|
||||
35320;55556
|
||||
35401;54603
|
||||
3549;55556
|
||||
357;55991
|
||||
35954;55991
|
||||
36757;54603
|
||||
37045;54603
|
||||
3749;55758
|
||||
386;55556
|
||||
38809;55576
|
||||
38888;55758
|
||||
38;54603
|
||||
39668;54562
|
||||
397;55576
|
||||
402;54562
|
||||
4092;55576
|
||||
40973;54562
|
||||
41057;55758
|
||||
41072;54562
|
||||
41726;55758
|
||||
4177;54562
|
||||
42476;55758
|
||||
42520;55267
|
||||
4266;54603
|
||||
44193;55991
|
||||
44532;55991
|
||||
44653;54920
|
||||
44871;54920
|
||||
45378;54588
|
||||
4548;54603
|
||||
4560;55576
|
||||
45696;54603
|
||||
45832;55991
|
||||
45872;54603
|
||||
47305;55758
|
||||
47561;55576
|
||||
47731;54562
|
||||
48080;55576
|
||||
4851;54562
|
||||
48675;54588
|
||||
4869;54562
|
||||
49166;54920
|
||||
4925;55758
|
||||
49560;55991
|
||||
50146;54562
|
||||
5048;55556
|
||||
51;55991
|
||||
52323;54562
|
||||
52712;54562
|
||||
53051;54588
|
||||
53077;54603
|
||||
53367;55991
|
||||
5372;54920
|
||||
54421;54920
|
||||
54495;54588
|
||||
54688;55267
|
||||
55315;55556
|
||||
5561;54603
|
||||
5606;54603
|
||||
58419;55556
|
||||
58432;55991
|
||||
58725;55991
|
||||
5873;56458
|
||||
5881;55758
|
||||
59310;54920
|
||||
5966;54920
|
||||
60705;55991
|
||||
61610;54603
|
||||
63050;55556
|
||||
6358;54920
|
||||
65230;55991
|
||||
65265;54920
|
||||
65271;54920
|
||||
65284;54562
|
||||
65334;55991
|
||||
65338;55991
|
||||
65368;55991
|
||||
65376;55576
|
||||
65393;55991
|
||||
65451;55991
|
||||
65548;55758
|
||||
65848;55556
|
||||
65953;54920
|
||||
6608;54603
|
||||
66326;54603
|
||||
6645;54562
|
||||
66540;55991
|
||||
66569;55991
|
||||
68316;54603
|
||||
68318;54920
|
||||
68338;55991
|
||||
68376;54603
|
||||
68381;55991
|
||||
68382;55991
|
||||
68385;55991
|
||||
68387;55991
|
||||
68394;55991
|
||||
68396;54588
|
||||
68397;55991
|
||||
68400;55991
|
||||
68402;55991
|
||||
68404;55991
|
||||
68408;55991
|
||||
68412;54603
|
||||
68413;55991
|
||||
68417;55991
|
||||
68419;55991
|
||||
68422;55991
|
||||
68438;54562
|
||||
68442;54603
|
||||
68443;54603
|
||||
68468;54562
|
||||
68609;54920
|
||||
68620;55991
|
||||
68834;54603
|
||||
68841;54920
|
||||
68941;55267
|
||||
69079;54603
|
||||
69205;54588
|
||||
69485;55556
|
||||
69653;55991
|
||||
70446;55991
|
||||
70447;55556
|
||||
70504;54562
|
||||
70542;54920
|
||||
708;54920
|
||||
71329;55991
|
||||
71451;55556
|
||||
71469;55576
|
||||
71565;54920
|
||||
71827;54588
|
||||
71898;54588
|
||||
71960;55991
|
||||
71961;55991
|
||||
71962;54603
|
||||
71965;55991
|
||||
71968;55556
|
||||
71972;55991
|
||||
71974;55991
|
||||
71975;55991
|
||||
71983;55991
|
||||
71995;55991
|
||||
72002;54920
|
||||
72007;55758
|
||||
72010;55991
|
||||
72018;55991
|
||||
72060;55991
|
||||
72106;54603
|
||||
72134;55556
|
||||
72136;54603
|
||||
72141;55991
|
||||
737;54603
|
||||
7919;54603
|
||||
8068;55556
|
||||
815;55576
|
||||
84;55991
|
||||
8803;55556
|
||||
889;54920
|
||||
9210;55991
|
||||
9382;55576
|
||||
9417;55758
|
||||
964;55758
|
|
@ -1,17 +0,0 @@
|
||||
1015;hitchhikr
|
||||
765;keops
|
||||
477;StingRay
|
||||
427;Rowley Birkin
|
||||
299;Gargaj
|
||||
292;ltk_tscc
|
||||
156;tomaes
|
||||
83;analogue
|
||||
76;reed
|
||||
58;dipswitch
|
||||
49;irokos
|
||||
43;stil
|
||||
35;gasman
|
||||
13;René Madenmann
|
||||
1;ALiEN^bf
|
||||
1;melw
|
||||
1;sparcus
|
132
rulez/ud.php3
132
rulez/ud.php3
@ -1,132 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
require_once("../include/auth.php");
|
||||
$dbinfo=$db;
|
||||
$db=mysql_connect($dbinfo['host'],$dbinfo['user'], $dbinfo['password']);
|
||||
mysql_select_db($dbinfo['database'],$db);
|
||||
|
||||
$file = fopen ("http://www.grid.org/services/teams/team_members.htm?id=BC792A55-96EB-4170-9026-239438C3D04A&rsps=250", "r");
|
||||
if (!$file) {
|
||||
echo "<p>Unable to open remote file.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$i=0;
|
||||
|
||||
while (!feof ($file)) {
|
||||
$line = fgets ($file, 1024);
|
||||
if(strstr($line,"<tr bgcolor=\"#FFFFFF\" onmouseover=\"javascript:style.background='#E5E5E5'\" onmouseout=\"javascript:style.background='#FFFFFF'\">")) {
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td>(.*)<b>(.*)</b></a></td>", $line, $out);
|
||||
// eregi("<td>(.*)</td>", $line, $out);
|
||||
$ud[$i]["login"]=$out[2];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\" nowrap=\"true\">(.*)</td>", $line, $out);
|
||||
$ud[$i]["joined"]=$out[1];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\">(.*)</td>", $line, $out);
|
||||
$ud[$i]["cputime"]=$out[1];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\">(.*)</td>", $line, $out);
|
||||
$ud[$i]["points"]=$out[1];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\">(.*)</td>", $line, $out);
|
||||
$ud[$i]["results"]=$out[1];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
fclose($file);
|
||||
|
||||
for($i=0;$i<count($ud);$i++)
|
||||
{
|
||||
/*
|
||||
// cputime transformation
|
||||
$ty=sprintf("%d",substr($ud[$i]["cputime"],0,1));
|
||||
$td=sprintf("%d",substr($ud[$i]["cputime"],2,3));
|
||||
$th=sprintf("%d",substr($ud[$i]["cputime"],6,2));
|
||||
$tm=sprintf("%d",substr($ud[$i]["cputime"],9,2));
|
||||
$ts=sprintf("%d",substr($ud[$i]["cputime"],12,2));
|
||||
$ud[$i]["cputime"]="";
|
||||
if($ty) $ud[$i]["cputime"].=$ty." year".(($ty>1)?"s":"")." ";
|
||||
if($td) $ud[$i]["cputime"].=$td." day".(($td>1)?"s":"")." ";
|
||||
if($th) $ud[$i]["cputime"].=$th." hour".(($th>1)?"s":"")." ";
|
||||
if($tm) $ud[$i]["cputime"].=$tm." minute".(($tm>1)?"s":"")." ";
|
||||
if($ts||(!$ty&&!$td&&!$th&&!$tm)) $ud[$i]["cputime"].=$ts." second".(($ts>1)?"s":"");
|
||||
*/
|
||||
// joined date transformation
|
||||
$jm=sprintf("%02d",substr($ud[$i]["joined"],0,2));
|
||||
$jd=sprintf("%02d",substr($ud[$i]["joined"],3,2));
|
||||
$jy=sprintf("%d",substr($ud[$i]["joined"],6,4));
|
||||
$ud[$i]["joined"]=$jy."-".$jm."-".$jd;
|
||||
|
||||
$ud[$i]["results"]=str_replace(",","",$ud[$i]["results"]);
|
||||
$ud[$i]["points"]=str_replace(",","",$ud[$i]["points"]);
|
||||
/*
|
||||
// pouët.net account check
|
||||
$query="SELECT id,nickname,avatar FROM users WHERE udlogin='".$ud[$i]["login"]."'";
|
||||
$result=mysql_query($query);
|
||||
if(mysql_num_rows($result))
|
||||
{
|
||||
$ud[$i]["id"]=mysql_result($result,0,"id");
|
||||
$ud[$i]["nickname"]=mysql_result($result,0,"nickname");
|
||||
$ud[$i]["avatar"]=mysql_result($result,0,"avatar");
|
||||
}
|
||||
*/
|
||||
}
|
||||
for($i=0;$i<count($ud);$i++)
|
||||
{
|
||||
$query="SELECT id FROM ud WHERE login='".$ud[$i]["login"]."'";
|
||||
$result=mysql_query($query);
|
||||
//print("->".$query."<br>");
|
||||
if(mysql_num_rows($result))
|
||||
{
|
||||
$id=mysql_result($result,0);
|
||||
$query="UPDATE ud SET ";
|
||||
$query.="joined='".$ud[$i]["joined"]."',";
|
||||
// str_replace(",","",$ud[$i]["cputime"]);
|
||||
$query.="results='".$ud[$i]["results"]."',";
|
||||
$query.="points=".$ud[$i]["points"].",";
|
||||
// str_replace(":","",$ud[$i]["results"]);
|
||||
$query.="cputime='".$ud[$i]["cputime"]."' ";
|
||||
$query.="WHERE id=".$id;
|
||||
} else {
|
||||
$query="INSERT ud SET ";
|
||||
$query.="login='".$ud[$i]["login"]."',";
|
||||
$query.="joined='".$ud[$i]["joined"]."',";
|
||||
$query.="results=".$ud[$i]["results"].",";
|
||||
$query.="points=".$ud[$i]["points"].",";
|
||||
$query.="cputime='".$ud[$i]["cputime"]."'";
|
||||
}
|
||||
mysql_query($query);
|
||||
// print("this: ".$query."<br>");
|
||||
}
|
||||
?>
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>members</th>
|
||||
<th>joined</th>
|
||||
<th>results</th>
|
||||
<th>points</th>
|
||||
<th>cputime</th>
|
||||
</tr>
|
||||
<? for($i=0;$i<count($ud);$i++): ?>
|
||||
<tr>
|
||||
<td><? print($ud[$i]["login"]); ?></td>
|
||||
<td><? print($ud[$i]["joined"]); ?></td>
|
||||
<td align="right"><? print($ud[$i]["results"]); ?></td>
|
||||
<td align="right"><? print($ud[$i]["points"]); ?></td>
|
||||
<td align="right"><? print($ud[$i]["cputime"]); ?></td>
|
||||
</tr>
|
||||
<? endfor; ?>
|
||||
</table>
|
||||
<?
|
||||
mysql_close($db);
|
||||
?>
|
||||
|
||||
<hr>
|
||||
</body>
|
@ -1,60 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>pouët.net UD test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?
|
||||
$file = fopen ("http://members.ud.com/services/teams/team.htm?id=BC792A55-96EB-4170-9026-239438C3D04A", "r");
|
||||
if (!$file) {
|
||||
echo "<p>Unable to open remote file.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$i=0;
|
||||
|
||||
while (!feof ($file)) {
|
||||
$line = fgets ($file, 1024);
|
||||
if(strstr($line,"<tr bgcolor=\"#FFFFFF\" >")) {
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td>(.*)</td>", $line, $out);
|
||||
$ud[$i]["login"]=$out[1];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\" nowrap=\"true\">(.*)-.*", $line, $out);
|
||||
$ud[$i]["joined"]=$out[1];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\">(.*)</td>", $line, $out);
|
||||
$ud[$i]["results"]=$out[1];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\">(.*)</td>", $line, $out);
|
||||
$ud[$i]["points"]=$out[1];
|
||||
$line = fgets ($file, 1024);
|
||||
eregi("<td align=\"right\">(.*)</td>", $line, $out);
|
||||
$ud[$i]["cputime"]=$out[1];
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
fclose($file);
|
||||
?>
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th colspan="5">Team Members Detail</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>login</th>
|
||||
<th>joined</th>
|
||||
<th>results</th>
|
||||
<th>points</th>
|
||||
<th>cputime</th>
|
||||
</tr>
|
||||
<? for($i=0;$i<count($ud);$i++): ?>
|
||||
<tr>
|
||||
<td><? print($ud[$i]["login"]); ?></td>
|
||||
<td><? print($ud[$i]["joined"]); ?></td>
|
||||
<td><? print($ud[$i]["results"]); ?></td>
|
||||
<td><? print($ud[$i]["points"]); ?></td>
|
||||
<td><? print($ud[$i]["cputime"]); ?></td>
|
||||
</tr>
|
||||
<? endfor; ?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user