Moved webchord.cgi from bin -> songbook
authorandrew <Andrew@DeFaria.com>
Tue, 13 May 2014 04:38:53 +0000 (21:38 -0700)
committerandrew <Andrew@DeFaria.com>
Tue, 13 May 2014 04:38:53 +0000 (21:38 -0700)
songbook/displayartist.php
songbook/news.html
songbook/search.php
songbook/songbook.html
songbook/songbook.php

index 627aa16..313908f 100644 (file)
@@ -37,7 +37,7 @@ foreach ($songs as $song) {
 print "<ol>";
 
 foreach ($artistsSongs as $artistSong) {
-  print "<li><a href=\"/bin/webchord.cgi?chordpro=$artistSong\">";
+  print "<li><a href=\"webchord.cgi?chordpro=$artistSong\">";
   print basename ($artistSong, ".pro");
   print "</a></li>";
 } // foreach
index 7c6f562..89abc18 100644 (file)
@@ -52,7 +52,7 @@ then their music will start playing automatically.</li>
   appear. You can play the song while you read the words and follow the 
   chords! <b>Note:</b> You can right click and save the song's mp3 file to
   your computer. If the song does not have a corresponding .mp3 file then
-  no .mp3 player is displayed. For example, <a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a>.</li>
+  no .mp3 player is displayed. For example, <a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a>.</li>
   
   <li>Again, if the song has a corresponding .mp3 file I now re-write the .pro
   file to include {musicpath:/sdcard/SongBook/Medai/&lt<i>title</i>&gt;.mp3}. 
index edd23f2..840fdb0 100644 (file)
@@ -69,7 +69,7 @@ if (count ($songmatches) > 0) {
 foreach ($songmatches as $songmatch) {
   $artist = getArtist ($songmatch);
   $title  = basename ($songmatch, ".pro");
-  print "<li><a href=\"/bin/webchord.cgi?chordpro=$songmatch\">$title</a>";
+  print "<li><a href=\"webchord.cgi?chordpro=$songmatch\">$title</a>";
   print "&nbsp;(<a href=\"displayartist.php?artist=$artist\">$artist</a>)</li>";
 } // foreach
 
index fd3faf8..071f02b 100644 (file)
@@ -103,7 +103,7 @@ text between {soc} and {eoc} (start of chorus, end of chorus). So
 given the above SongTitle="Brown Eyed Girl" we can formulate the URL
 to render it thusly:</p>
 
-<blockquote><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro">http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro</a></blockquote>
+<blockquote><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro">http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Brown Eyed Girl.pro</a></blockquote>
 
 <p>You can do the same thing for the other songs there too.</p>
 
@@ -112,10 +112,10 @@ in the directory songbook/Songs and then formulates a page of links
 that have the webchord.cgi links to render them like:</p>
 
 <ul>
-  <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Across the Universe.pro">Across the Universe</a></li>
-  <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/American Pie.pro">American Pie</a></li>
-  <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a></li>
-  <li><a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Back in the USSR.pro">Back in the USSR</a></li>
+  <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Across the Universe.pro">Across the Universe</a></li>
+  <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/American Pie.pro">American Pie</a></li>
+  <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">Amie</a></li>
+  <li><a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Back in the USSR.pro">Back in the USSR</a></li>
   <li>...</li>
 </ul>
 
@@ -130,14 +130,14 @@ http://defaria.com/songbook/Songs/webchord.cgi?chordpro=&lt;SongTitle&gt;.pro
 to the title of the song you want to render:</p>
 
 <blockquote>
-<a href="http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro</a>
+<a href="http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro">http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Amie.pro</a>
 </blockquote>
 
 <p><b>Note:</b></p>
 
 <ul>
   <li>URLs are case sensitive! ...chordpro=amie.pro is not the same as ...chordpro=Amie.pro</li>
-  <li>Browsers tend to change spaces in a URL to %20. %20 is the octal representation for a space character. So if you see %20 in a URL like http://defaria.com/bin/webchord.cgi?chordpro=/web/songbook/Songs/Back%20in%20the%20USSR.pro. Don't fear - they're merely spaces.</li>
+  <li>Browsers tend to change spaces in a URL to %20. %20 is the octal representation for a space character. So if you see %20 in a URL like http://defaria.com/songbook/webchord.cgi?chordpro=/web/songbook/Songs/Back%20in%20the%20USSR.pro. Don't fear - they're merely spaces.</li>
 </ul>
 
 <h2>Songbook for PC</h2>
index f3893b8..c4afcd9 100644 (file)
@@ -4,7 +4,7 @@ $songs = glob ("/web/songbook/Songs/*.pro");
 function songsDropdown () {
   global $songs;
 
-  print "<form method=\"post\" action=\"/bin/webchord.cgi\" name=\"song\">";
+  print "<form method=\"post\" action=\"webchord.cgi\" name=\"song\">";
   print "Songs:&nbsp;&nbsp;";
   print "<select name=\"chordpro\">";
 
@@ -76,7 +76,7 @@ function formatTable ($songs) {
 
     $title = basename ($song, ".pro");
 
-    echo "<li><a href=\"/bin/webchord.cgi?chordpro=$song\">$title</a>";
+    echo "<li><a href=\"webchord.cgi?chordpro=$song\">$title</a>";
 
     if ($artist != "") {
     echo "&nbsp;($artist)";