Compare commits

...

4 Commits

Author SHA1 Message Date
af296c7dc1 Merge pull request 'Small fixes to improve memory performance, temporary code deletion and small typo in img file location.' (#7) from development into main
All checks were successful
Website Sync / website-sync (push) Successful in 4s
Reviewed-on: #7
2026-03-16 17:20:28 -03:00
775641dc36 Small fixes to improve memory performance, temporary code deletion and small typo in img file location.
All checks were successful
Website Sync / website-sync (push) Successful in 4s
2026-03-16 17:10:25 -03:00
b679e911d5 Merge pull request 'Forgotten changes made to webring addition' (#6) from development into main
All checks were successful
Website Sync / website-sync (push) Successful in 3s
Reviewed-on: #6
2026-03-15 22:04:31 -03:00
eeefee56ac Forgotten changes made to webring addition
All checks were successful
Website Sync / website-sync (push) Successful in 4s
2026-03-15 22:04:09 -03:00
5 changed files with 14 additions and 4 deletions

View File

@@ -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 } ?>

View File

@@ -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;
} }

View File

@@ -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) {

View File

@@ -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;
} }

View File

@@ -148,8 +148,9 @@
} }
?> ?>
<?php for ($l = 0; $l <= 2; $l++) {?> <?php for ($l = 0; $l <= 2; $l++) {?>
<?php include "includes/transingtheinternet.inc.php";?>
<?php include "includes/transfemwebring.inc.php";?> <?php include "includes/transfemwebring.inc.php";?>
<div class="noaiwebring"> <div class="noaiwebring">
<a href="https://baccyflap.com/noai" target="_blank" alt="no ai webring" title="no ai webring"><div class="home"></div></a> <a href="https://baccyflap.com/noai" target="_blank" alt="no ai webring" title="no ai webring"><div class="home"></div></a>
<a href="https://baccyflap.com/noai/?prv&amp;s=msv" target="_top" alt="previous" title="previous"><div class="prv"></div></a> <a href="https://baccyflap.com/noai/?prv&amp;s=msv" target="_top" alt="previous" title="previous"><div class="prv"></div></a>
<a href="https://baccyflap.com/noai/?rnd" target="_top" alt="random" title="random"><div class="rnd"></div></a> <a href="https://baccyflap.com/noai/?rnd" target="_top" alt="random" title="random"><div class="rnd"></div></a>