1. Find the file include/dialog/select_soft.php and open it
2 Found
$filetime = filemtime("$inpath/$file");
Add a sentence below this sentence
$filetimef= filemtime("$inpath/$file");//UNIX time to obtain file time
3 Found
$filetime = strftime("%y-%m-%d %H:%M:%S",$filetime);
}//Don't forget this brace.
Then add the following lines below. Remember to add them after the braces.
$filetimen=time(); //Get the UNIX timestamp of the current time
$filetimeb=$filetimen-1*60*60; //Start time
$filetimee=$filetimeen+0*60*60; //End time
if($filetimeb<=$filetimef&$filetimef<=$filetimee)
{
//This represents the software whose software is added between $filetimeb and $filetimee will be displayed in the software list.
// You can adjust $filetimeb and $filetimee freely
// Currently I am showing the software 1 hour away from now
//If you only display the software you added in the last three hours, then
//$filetimeb=$filetimen-3*60*60;
//OK If you have any questions, please email me dophp@
//Or go to this website to find relevant information
4 Last
}//End Loop
$dh->close();
Before these two lines, remember to add a brace before these two lines
}
It is available after my test
2 Found
Copy the codeThe code is as follows:
$filetime = filemtime("$inpath/$file");
Add a sentence below this sentence
Copy the codeThe code is as follows:
$filetimef= filemtime("$inpath/$file");//UNIX time to obtain file time
3 Found
Copy the codeThe code is as follows:
$filetime = strftime("%y-%m-%d %H:%M:%S",$filetime);
}//Don't forget this brace.
Then add the following lines below. Remember to add them after the braces.
Copy the codeThe code is as follows:
$filetimen=time(); //Get the UNIX timestamp of the current time
$filetimeb=$filetimen-1*60*60; //Start time
$filetimee=$filetimeen+0*60*60; //End time
if($filetimeb<=$filetimef&$filetimef<=$filetimee)
{
//This represents the software whose software is added between $filetimeb and $filetimee will be displayed in the software list.
// You can adjust $filetimeb and $filetimee freely
// Currently I am showing the software 1 hour away from now
//If you only display the software you added in the last three hours, then
//$filetimeb=$filetimen-3*60*60;
//OK If you have any questions, please email me dophp@
//Or go to this website to find relevant information
4 Last
Copy the codeThe code is as follows:
}//End Loop
$dh->close();
}
It is available after my test