Dede the simplest way to teach you how to shorten the list of software _dedecms

Source: Internet
Author: User
Tags filetime
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
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.