diff --git a/.gitignore b/.gitignore index d4da0b31d..2580b32d5 100755 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ index.sqlite gline.js gword.js *.sublime* +cron.txt diff --git a/.htaccess b/.htaccess index 4bb15c92f..2c29dd5c0 100755 --- a/.htaccess +++ b/.htaccess @@ -24,6 +24,7 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^ koseu.php [L] + RedirectMatch 404 /\.git diff --git a/cron/cron.php b/cron/cron.php new file mode 100644 index 000000000..8d2ae1375 --- /dev/null +++ b/cron/cron.php @@ -0,0 +1,35 @@ + $ZIP_TIME ) { + echo("\nRunning bash code.sh\n"); + echo(system("cd .. ; bash code.sh")); + echo("\n\nRunning code cleanup.sh\n"); + echo(system("cd ../code ; bash -vx cleanup.sh")); + echo("\n\nRunning code3 cleanup.sh\n"); + echo(system("cd ../code3 ; bash -vx cleanup.sh")); + echo("\n\n"); + touch($marker_file); +} else { + echo("Delta $delta z:$ZIP_TIME\n"); +} + + diff --git a/vscode/Parsedown.php b/vscode/Parsedown.php index d74a29c1a..5b9f8c125 100644 --- a/vscode/Parsedown.php +++ b/vscode/Parsedown.php @@ -658,7 +658,7 @@ protected function blockRule($Line) # # Setext - protected function blockSetextHeader($Line, array $Block = null) + protected function blockSetextHeader($Line, ?array $Block = null) { if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted'])) { @@ -796,7 +796,7 @@ protected function blockReference($Line) # # Table - protected function blockTable($Line, array $Block = null) + protected function blockTable($Line, ?array $Block = null) { if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted'])) { @@ -1177,7 +1177,6 @@ protected function inlineImage($Excerpt) 'attributes' => array( 'src' => $Link['element']['attributes']['href'], 'alt' => $Link['element']['text'], - 'style' => 'max-width:100%;', ), ), );