Backend for songs.zachdecook.com
Diffstat (limited to 'source.php')
-rw-r--r--source.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/source.php b/source.php
new file mode 100644
index 0000000..cbaf9f4
--- /dev/null
+++ b/source.php
@@ -0,0 +1,13 @@
+<?php
+
+$files = scandir('.');
+
+foreach( $files as $file ){
+ if ( strpos($file, '.php') !== FALSE || strpos($file, '.js') !== FALSE )
+ {
+ echo "<h3>$file</h3>";
+ echo '<pre>';
+ echo htmlspecialchars(file_get_contents($file));
+ echo '</pre>';
+ }
+}