Hi,
I Whant to show on my frontpage how many URLS have been protected.
What code do i need for that since there is no DB ?.
Regards
<?php
$sizehosted = 0;
$handle = opendir("./files/");
while($file = readdir($handle)) {
if(($file != '..')&&($file != '.')&&($file != '.htaccess'))
{
$sizehosted++;
}
}
echo "Total number of protected links: " .$sizehosted;
?>
SamEA wrote:You can use the below code anywhere in the root directory of DLP and it should show the total number of protected links:
Users browsing this forum: No registered users and 5 guests