diff -ur lsr-0.5.orig//ERW/custom/snippet.php lsr-0.5//ERW/custom/snippet.php --- lsr-0.5.orig//ERW/custom/snippet.php 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//ERW/custom/snippet.php 2011-07-06 15:57:28.000000000 +0200 @@ -52,7 +52,7 @@ "help" => "Preview the selected snippet", "events" => array( "onclick" => - "if ((i = getSelectedId('m_snippet')) < 0) alert('No snippet has been selected'); else openServiceWindow('http://lsr.dsi.unimi.it/LSR/Item?u=1&id='+i)" + "if ((i = getSelectedId('m_snippet')) < 0) alert('No snippet has been selected'); else openServiceWindow('/LSR/Item?u=1&id='+i)" ) ); @@ -61,7 +61,7 @@ "label" => "Log in", "name" => "login", "events" => array( - "onclick" => "window.location='login.php?url=".urlencode("https://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"])."'" + "onclick" => "window.location='login.php?url=".urlencode($_SERVER["REQUEST_URI"])."'" ) ); @@ -71,7 +71,7 @@ "name" => "Download", "help" => "Go to the Lilypond Snippet Repository download section", "events" => array( - "onclick" => "window.open('http://lsr.dsi.unimi.it/download')" + "onclick" => "window.open('/download')" ) ); @@ -81,7 +81,7 @@ "name" => "LSR", "help" => "Go back to the Lilypond Snippet Repository", "events" => array( - "onclick" => "window.location='http://lsr.dsi.unimi.it/'" + "onclick" => "window.location='/'" ) ); Nur in lsr-0.5//ERW/custom: snippet.php~. diff -ur lsr-0.5.orig//ERW/custom/usr.php lsr-0.5//ERW/custom/usr.php --- lsr-0.5.orig//ERW/custom/usr.php 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//ERW/custom/usr.php 2011-07-06 15:57:28.000000000 +0200 @@ -19,7 +19,7 @@ "label" => "Log in", "name" => "login", "events" => array( - "onclick" => "window.location='login.php?url=".urlencode("https://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"])."'" + "onclick" => "window.location='login.php?url=".urlencode($_SERVER["REQUEST_URI"])."'" ) ); @@ -29,7 +29,7 @@ "name" => "LSR", "events" => array( "onclick" => - "window.location='http://lsr.dsi.unimi.it/'" + "window.location='/'" ) ); Nur in lsr-0.5//ERW/custom: usr.php~. diff -ur lsr-0.5.orig//ERW/forms/snippet.erf lsr-0.5//ERW/forms/snippet.erf --- lsr-0.5.orig//ERW/forms/snippet.erf 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//ERW/forms/snippet.erf 2011-07-06 15:58:01.000000000 +0200 @@ -49,7 +49,7 @@
Lilypond snippet

Here comes the actual snippet. Try to make it small, so to let the main point emerge clearly. Please do not add a \version line—the snippet - must compile on the currently running LilyPond version (see the contributions page).

+ must compile on the currently running LilyPond version (see the contributions page).

Usually, before being compiled for visualisation snippets are prefixed by some Lilypond code that prints them in the right way for LSR. However, this prefix may disturb your snippet. Nur in lsr-0.5//ERW/forms: snippet.erf~. diff -ur lsr-0.5.orig//ERW/forms/snippetro.erf lsr-0.5//ERW/forms/snippetro.erf --- lsr-0.5.orig//ERW/forms/snippetro.erf 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//ERW/forms/snippetro.erf 2011-07-06 15:58:06.000000000 +0200 @@ -49,7 +49,7 @@

Lilypond snippet

Here comes the actual snippet. Try to make it small, so to let the main point emerge clearly. Please do not add a \version line—the snippet - must compile on the currently running LilyPond version (see the contributions page).

+ must compile on the currently running LilyPond version (see the contributions page).

Usually, before being compiled for visualisation snippets are prefixed by some Lilypond code that prints them in the right way for LSR. However, this prefix may disturb your snippet. Nur in lsr-0.5//ERW/forms: snippetro.erf~. diff -ur lsr-0.5.orig//html/contributing.html lsr-0.5//html/contributing.html --- lsr-0.5.orig//html/contributing.html 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//html/contributing.html 2011-07-06 15:57:29.000000000 +0200 @@ -24,19 +24,19 @@

Creating an account

The first step to constribute to LSR is to get an account: - just go to the user list + just go to the user list and hit the “New element” button. You will be given a form to fill, after which you will be registered. -

Once you're in, you must just hit the “Snippet database” +

Once you're in, you must just hit the “Snippet database” link on the home page. You will be brought to a list of the existing - snippets: hit the “Log in” button and start playing, or + snippets: hit the “Log in” button and start playing, or go back to the user list to modify your data.

The rules are simple: the only account that's listed in the user list is yours, if you're logged in, or none. The snippet database, instead, always lets you browse all snippets, but you can modify yours only if you're logged in. There are easy-to-use filters if you want to restrict the list, say, to your own snippets. -

You can modify some of the defaults +

You can modify some of the defaults used to display the database editing forms. I'm using a cookie, so you must have cookies enabled for this to work. Nur in lsr-0.5//html: contributing.html~. diff -ur lsr-0.5.orig//html/registration.html lsr-0.5//html/registration.html --- lsr-0.5.orig//html/registration.html 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//html/registration.html 2011-07-06 15:57:28.000000000 +0200 @@ -18,17 +18,17 @@

Registration

Toccata et Fuga d-moll (J.S. Bach)Registering with the LilyPond Snippet Repository is very simple: - just go to the user list + just go to the user list and hit the “New element” button. You will be given a form to fill, after - which you will be registered. You can now go to the snippet - database, hit the “Log in” button, and start playing, or go back to the user list + which you will be registered. You can now go to the snippet + database, hit the “Log in” button, and start playing, or go back to the user list to modify your data.

The rules are simple: the only account that's listed in the user list is yours, if you're logged in, or none. The snippet database, instead, always shows all snippets, but you can modify yours only if you're logged in. There are easy-to-use filters if you want to restrict the list, say, to your own snippets. -

You can modify some of the defaults used to display the database editing forms. +

You can modify some of the defaults used to display the database editing forms. I'm using a cookie, so you must have cookies enabled for this to work. Nur in lsr-0.5//html: registration.html~. diff -ur lsr-0.5.orig//vm/browse.vm lsr-0.5//vm/browse.vm --- lsr-0.5.orig//vm/browse.vm 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//vm/browse.vm 2011-07-06 15:55:27.000000000 +0200 @@ -71,7 +71,7 @@ Browse by date #end Contributing -Snippet database +Snippet database Browsing items $start−$end out of $globNumItems Nur in lsr-0.5//vm: browse.vm~. diff -ur lsr-0.5.orig//vm/lsr.vm lsr-0.5//vm/lsr.vm --- lsr-0.5.orig//vm/lsr.vm 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//vm/lsr.vm 2011-07-06 15:55:13.000000000 +0200 @@ -65,7 +65,7 @@ Browse Searchable Lilypond manual Contributing -Snippet database +Snippet database #if ($errmsg) Nur in lsr-0.5//vm: lsr.vm~. diff -ur lsr-0.5.orig//vm/query.vm lsr-0.5//vm/query.vm --- lsr-0.5.orig//vm/query.vm 2011-07-06 15:54:31.000000000 +0200 +++ lsr-0.5//vm/query.vm 2011-07-06 15:55:07.000000000 +0200 @@ -26,7 +26,7 @@ Browse Searchable Lilypond manual Contributing -Snippet database +Snippet database Nur in lsr-0.5//vm: query.vm~.