1 Find include/dialog/select_soft.php This file opens
2 Find
Copy Code code as follows:
$filetime = Filemtime ("$inpath/$file");
Add a sentence to the bottom of this sentence
Copy Code code as follows:
$FILETIMEF = Filemtime ("$inpath/$file")/Unix time to get file time
3 Find
Copy Code code as follows:
$filetime = strftime ("%y-%m-%d%h:%m:%s", $filetime);
}//Don't forget this curly brace.
And then add the following lines to remember to add it behind the curly braces.
Copy Code code as follows:
$filetimen =time (); The Unix timestamp that gets the current time
$filetimeb = $filetimen -1*60*60; Start time
$filetimee = $filetimen +0*60*60; End time
if ($filetimeb <= $filetimef & $FILETIMEF <= $filetimee)
{
This represents software that adds time between $filetimeb and $filetimee in the list of software
$filetimeb and $filetimee, you're free to adjust.
Now I'm showing 1 hours of software
If you just show the software you added in the last three hours,
$filetimeb = $filetimen -3*60*60;
OK, you can send me an email if you have any questions dophp@126.com
or www.dophp.net this site to find relevant information.
4 Last Find
Copy Code code as follows:
}//end Loop
$dh->close ();
Before these two lines, be sure to add a brace before these two lines
}
After my test is available