Compare commits
2 Commits
3cc963cbfa
...
4577aa5e16
Author | SHA1 | Date | |
---|---|---|---|
4577aa5e16 | |||
5af639b931 |
|
@ -45,6 +45,7 @@ if ( $ext == "cbz" ) {
|
||||||
for ( $i=0; $i<$zip->numFiles; $i++ ) {
|
for ( $i=0; $i<$zip->numFiles; $i++ ) {
|
||||||
$imgname = basename($zip->getNameIndex($i));
|
$imgname = basename($zip->getNameIndex($i));
|
||||||
//$myext = substr($imgname, -3);
|
//$myext = substr($imgname, -3);
|
||||||
|
if ( ! isset(pathinfo($imgname)['extension']) ) continue;
|
||||||
$myext = strtolower(pathinfo($imgname)['extension']);
|
$myext = strtolower(pathinfo($imgname)['extension']);
|
||||||
if ( ($myext == "jpg") || ($myext == "png") || ($myext == "webp") ) {
|
if ( ($myext == "jpg") || ($myext == "png") || ($myext == "webp") ) {
|
||||||
$imgname = str_replace("#", "", $imgname);
|
$imgname = str_replace("#", "", $imgname);
|
||||||
|
@ -60,6 +61,7 @@ if ( $ext == "cbz" ) {
|
||||||
$myfile = $comicoutputfull . $file;
|
$myfile = $comicoutputfull . $file;
|
||||||
$mynewfile = $comicoutputfull . str_replace("#", "", $file);
|
$mynewfile = $comicoutputfull . str_replace("#", "", $file);
|
||||||
//$myext = strtolower(substr($file, -3));
|
//$myext = strtolower(substr($file, -3));
|
||||||
|
if ( ! isset(pathinfo($myfile)['extension']) ) continue;
|
||||||
$myext = strtolower(pathinfo($myfile)['extension']);
|
$myext = strtolower(pathinfo($myfile)['extension']);
|
||||||
if ( ($myext == "jpg") || ($myext == "png") || ($myext == "webp") ) {
|
if ( ($myext == "jpg") || ($myext == "png") || ($myext == "webp") ) {
|
||||||
rename($myfile, $mynewfile);
|
rename($myfile, $mynewfile);
|
||||||
|
|
1
install/.htaccess
Normal file
1
install/.htaccess
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Require all denied
|
Loading…
Reference in New Issue
Block a user