-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmm.php
executable file
·54 lines (45 loc) · 1.41 KB
/
mm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
//$people = array("Belos Taoris","Burn Lump","Chupicabre","Clogman","DDredd","Gythar","John Koening","Kanoro","Kee Ris","Mrs Dinj","Mufeater","Reiv","Serina Giovanni","ecumenetheo");
$people = array("caliera");
if ($handle = opendir("C:\\xampp\\htdocs\\FLA")) {
echo "Directory handle: $handle\n";
echo "Files:\n";
/* This is the correct way to loop over the directory. */
while (false !== ($file = readdir($handle))) {
if($fp = fopen("C:\\xampp\\htdocs\\FLA\\$file", "r")){
$current_line = fgets($fp);
while (!feof($fp)) {
$current_line .= fgets($fp);
}
fclose($fp);
//if(stristr($current_line,"Unknown-Heroes")){
// $mail = $current_line;
// $fpt = fopen("C:\\xampp\\htdocs\\NEWM\\$file",'w');
// if(fputs($fpt,$mail)){
// print "Success retrieved UNKH Killmail $i \n";
// fclose($fpt);
// }
//else {
//print "Error $i\n";
// }
// }
//else {
for($p=0;$p<count($people);$p++){
if(stristr($current_line,"$people[$p]")){
//$mail = eregi_replace("Caldari Anvil","Unknown-Heroes",$current_line);
$mail = $current_line;
$fpt = fopen("C:\\xampp\\htdocs\\marie\\$file",'w');
if(fputs($fpt,$mail)){
print "Success retrieved UNKH Killmail $i \n";
fclose($fpt);
}
else {
print "Error $i\n";
}
}
}
//}
}
}
}
?>