Compare commits
2 Commits
b679e911d5
...
af296c7dc1
| Author | SHA1 | Date | |
|---|---|---|---|
| af296c7dc1 | |||
| 775641dc36 |
@@ -17,7 +17,7 @@
|
|||||||
<img src="../img/blinkies/dontfeedtheai.gif" alt="">
|
<img src="../img/blinkies/dontfeedtheai.gif" alt="">
|
||||||
<img src="../img/blinkies/firefox_user.gif" alt="">
|
<img src="../img/blinkies/firefox_user.gif" alt="">
|
||||||
<img src="../img/blinkies/firefoxget.gif" alt="">
|
<img src="../img/blinkies/firefoxget.gif" alt="">
|
||||||
<img src="../img/blinkies/html junkie.gif" alt="">
|
<img src="../img/blinkies/htmljunkie.gif" alt="">
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ function getFile(array $source){
|
|||||||
|
|
||||||
curl_close($curl);
|
curl_close($curl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($selected_source,$curl);
|
||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,6 +31,7 @@ function extractString(string $string,string $start_pattern, string $end_pattern
|
|||||||
|
|
||||||
$extracted_string = substr($string, $start_pos, $end_pos - $start_pos);
|
$extracted_string = substr($string, $start_pos, $end_pos - $start_pos);
|
||||||
|
|
||||||
|
unset($start_pos,$end_pos);
|
||||||
return $extracted_string;
|
return $extracted_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,5 +39,7 @@ function extractString(string $string,string $start_pattern, string $end_pattern
|
|||||||
function scrapeWebsiteSites(array $source,string $start_pattern, string $end_pattern) {
|
function scrapeWebsiteSites(array $source,string $start_pattern, string $end_pattern) {
|
||||||
$script = getFile($source);
|
$script = getFile($source);
|
||||||
$websites = extractString($script,$start_pattern,$end_pattern);
|
$websites = extractString($script,$start_pattern,$end_pattern);
|
||||||
|
|
||||||
|
unset($script);
|
||||||
return $websites;
|
return $websites;
|
||||||
}
|
}
|
||||||
@@ -51,6 +51,8 @@ function primarySplit(string $array) {
|
|||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($array,$start_pos,$end_pos,$item_len,$array);
|
||||||
return $return_array;
|
return $return_array;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,6 +89,8 @@ function secondarySplit(string $sub_array) {
|
|||||||
|
|
||||||
$sub_array = substr($sub_array,$sub_sub_array_len);
|
$sub_array = substr($sub_array,$sub_sub_array_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($sub_array, $value, $value_len, $value_start_pos, $value_end_pos, $key, $key_len, $key_start_pos, $key_end_pos, $keyhasQuotes, $sub_sub_array_len);
|
||||||
return $return_sub_array;
|
return $return_sub_array;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,6 +100,7 @@ for ($i = 0; $i < sizeof($transfemring_sites); $i++) {
|
|||||||
$depured_transfemring_sites[$i] = secondarySplit($transfemring_sites[$i]);
|
$depured_transfemring_sites[$i] = secondarySplit($transfemring_sites[$i]);
|
||||||
}
|
}
|
||||||
$transfemring_sites = $depured_transfemring_sites;
|
$transfemring_sites = $depured_transfemring_sites;
|
||||||
|
unset($depured_transfemring_sites);
|
||||||
|
|
||||||
for ($i = 1; $i < count($transfemring_sites); $i++){
|
for ($i = 1; $i < count($transfemring_sites); $i++){
|
||||||
if ($transfemring_sites[$i]['id'] == $TRANSFEMRING_ID) {
|
if ($transfemring_sites[$i]['id'] == $TRANSFEMRING_ID) {
|
||||||
|
|||||||
@@ -52,8 +52,6 @@ function transingSplit(string $array) {
|
|||||||
$array = substr($array,0,-1);
|
$array = substr($array,0,-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$temp = strpos($array,'/',1);
|
|
||||||
|
|
||||||
if (strpos($array,'/',1) > 1 or strpos($array,'/',1) == FALSE) {
|
if (strpos($array,'/',1) > 1 or strpos($array,'/',1) == FALSE) {
|
||||||
$commented=FALSE;
|
$commented=FALSE;
|
||||||
} else {
|
} else {
|
||||||
@@ -88,6 +86,7 @@ function transingSplit(string $array) {
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($array, $commented, $start_pos, $end_pos, $item_len);
|
||||||
return $return_array;
|
return $return_array;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user