add all files

This commit is contained in:
Rucus
2026-02-17 09:29:34 -06:00
parent b8c8d67c67
commit 782d203799
21925 changed files with 2433086 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
include('includes/config.php');
function writeHtaccess()
{
$ipArray = array();
$selectQry = "select ip from ipRules";
$selectRes = mysql_query($selectQry);
$i = 0;
$string = "Order Deny,Allow\n";
$file = '../.htaccess';
if(mysql_num_rows($selectRes)>0)
{
while($selectRow =mysql_fetch_assoc($selectRes))
{
// do nothing
//$ipArray[$i] = $selectRow['ip'];
//$i++;
$string .= "\nDeny from " . $selectRow['ip'];
}
// Open the file to get existing content
//$current = file_get_contents($file);
// Append a new person to the file
// Write the contents back to the file
}
else
{
// do nothing
}
file_put_contents($file, $string);
}
?>