Check out Grant Acedrex, our featured variant for April, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Single Comment

Home page of The Chess Variant Pages. Homepage of The Chess Variant Pages.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Mon, Jun 22, 2020 12:48 AM UTC:

To make things simple for you, I have written a PHP script at /index/new.php. This can take a directory name in the query string with dir= or a file name with file= or both as input. When given just a directory name, it will return a JSON encoded array of the files in the directory that have been modified recently enough to bypass caching for them. Since the directory will already be known by the calling script, it returns the file names without the directories added. When given a file name as input, it will return 1 if that file has been modified recently enough to warrant bypassing the cache, and it will return 0 if the file is old enough that it will be the same as any cached version of the same file. If a directory name is given with a file name, it will use the directory name to put together the full name of the file if needed. If it doesn't find the named directory or file, it will return the value 404.