# PHP\r
- '/home/extranet/.docker/config/php.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini'\r
- '/home/extranet/sessions/:/var/lib/php/sessions/'\r
+ - '/usr/share/GeoIP/GeoIP.dat:/home/stats/www/GeoIP.dat'\r
# Crontab\r
- '/home/extranet/.docker/config/cron/crontab:/etc/crontab'\r
# Passwords\r
chmod -R 777 /home/extranet/share
chmod -R 777 /home/extranet/www/fluidbook/packager/
chmod -R 777 /home/toolbox/www/resources/fluidbookpublication/player
+chmod -R 777 /home/stats/www
$dr = opendir($dir);
while ($file = readdir($dr)) {
if ($file == '.' || $file == '..') {
- echo 'skip '.$file." (dot)\n";
+ echo 'skip ' . $file . " (dot)\n";
continue;
}
$f = $dir . $file;
- if ($file == 'download' || $file=='nwbuild') {
- echo 'skip '.$file." (base)\n";
+ if ($file == 'download' || $file == 'nwbuild') {
+ echo 'skip ' . $file . " (base)\n";
continue;
}
if (!is_dir($f)) {
- echo 'skip '.$file." (file)\n";
+ echo 'skip ' . $file . " (file)\n";
continue;
}
if (filemtime($f) > $limit) {
- echo 'skip '.$file." (time)\n";
+ echo 'skip ' . $file . " (time)\n";
continue;
}
- echo 'clean '.$file."\n";
+ echo 'clean ' . $file . "\n";
`rm -rf $f`;
}
return false;
}
- `rm -rf /home/stats/www/objects/$book*;/home/stats/www/FWStats.sh /home/stats/www redobook=$book`;
+ $cmd = "rm -rf /home/stats/www/objects/$book*;/home/stats/www/FWStats.sh /home/stats/www redobook=$book";
+ `$cmd`;
}
public static function processInbox()