From dd3405137f675cadfbe75d32f8d82355bfd7b9f3 Mon Sep 17 00:00:00 2001 From: 20xd6 <20xd6@airmail.cc> Date: Tue, 26 Jul 2022 13:06:52 -0400 Subject: [PATCH] Update tags index to handle issue # 9 Now checks for the file and either copies a backup or creates a blank file. --- blog/by_tag/index.php | 70 ++++++++++++++++++++++++++----------------- 1 file changed, 42 insertions(+), 28 deletions(-) mode change 100644 => 100755 blog/by_tag/index.php diff --git a/blog/by_tag/index.php b/blog/by_tag/index.php old mode 100644 new mode 100755 index 8bf0009..5513f89 --- a/blog/by_tag/index.php +++ b/blog/by_tag/index.php @@ -32,37 +32,51 @@ //} //echo "\n"; //} - - # Tags rewrite - $tags_csv = array_map('str_getcsv', file('tags.csv')); - $tags_rows = sizeof($tags_csv); - $tags_coloums = sizeof($tags_csv[0]); - //echo "
\n";
-  //print_r($tags_csv);
-  //echo $tags_coloums . "\n" . $tags_rows . "\n";
-  //echo "
\n"; - echo "\n"; include_once ($_SERVER['DOCUMENT_ROOT'].'/common/php/footer.php'); ?>