From 529ffcbfa97ab51a64a97f6dff08aeb2bc0cc105 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 24 Aug 2021 15:38:16 +0200 Subject: Update --- Neutron-trunk/replace.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Neutron-trunk/replace.php (limited to 'Neutron-trunk/replace.php') diff --git a/Neutron-trunk/replace.php b/Neutron-trunk/replace.php new file mode 100644 index 0000000..2908207 --- /dev/null +++ b/Neutron-trunk/replace.php @@ -0,0 +1,35 @@ +") ?>', '") ?>', file_get_contents($dir . "/" . $file))); + $size = $size + filesize($dir . "/" . $file); + $found = $found + count(file($dir . "/" . $file)); + } + } + } + return $found; +} + +if (PHP_SAPI === 'cli') +{ + echo("Couting lines..."); + crawl($cwd); + echo("\nDONE!\n\nTotal code is " . $found . " lines long."); + echo("({$size} bytes)"); +} -- cgit