Skip to content

Commit

Permalink
Fixed incorrect anchor syntax. Caught a last add-photo reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Sep 2, 2002
1 parent 01b4536 commit 6bde0e6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions gal_remote_proto-1.html
Expand Up @@ -17,13 +17,14 @@ <h1>Gallery Remote Protocol version 1</h1>
<ol>
<li><a href="#login"><samp>login</samp> command</a></li>
<li><a href="#fetch-albums"><samp>fetch-albums</samp> command</a></li>
<li><a href="#add-photo"><samp>add-photo</samp> command</a></li>

<li><a href="#add-item"><samp>add-item</samp> command</a></li>
</ol>
</li>
</ul>

<hr>
<a name="summary">
<a name="summary" />
<h2>Summary</h2>

<p>Gallery remote queries and sends information from a gallery installation through a protcol based on HTTP and form-data. The protocol leverages the same user authentication (and session cookies) as the web/HTML interface to the site. It is implemented in one PHP source file, <samp><a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gallery/gallery/gallery_remote.php?rev=1.6&content-type=text/vnd.viewcvs-markup">gallery_remote.php</a></samp>.</p>
Expand All @@ -35,7 +36,7 @@ <h2>Summary</h2>
<p>Permissions for actions performed by gallery_remote.php are controlled in the same way they are controlled for regular web/HTML users. <samp>init.php</samp> is called at the top of each request.</p>

<hr>
<a name="requests">
<a name="requests" />
<h2>Requests</h2>

<p>Each request is expressed through an HTTP POST -- parameters are expressed as HTTP form data (control-name/current value) pairs (we'll call them "key" and "value").</p>
Expand All @@ -52,15 +53,15 @@ <h2>Notes</h2>
The results sections below assume a HTTP <samp>200 OK</samp> status code was returned, although a <samp>4xx</samp> or <samp>5xx</samp> result is possible. Additionally, if the protocol version is not correct, regardless of the command, an English textual error message is returned, with no other results.</p>

<hr>
<a name="commands">
<a name="commands" />
<h2>Commands</h2>

<p><strong>Note:</strong><em>The word "protocol" is misspelled in the "<samp>protocal_version</samp>" key.</em></p>

<ol>
<li>

<a name="login">
<a name="login" />
<h3><samp>login</samp> command</h3>
<p>This command ensures a session cookie has been given to the client and, if the account information is correct, adds the proper user object to the session.</p>

Expand Down Expand Up @@ -99,7 +100,7 @@ <h4>Results</h4>

</li><li>

<a name="fetch-albums">
<a name="fetch-albums" />
<h3><samp>fetch-albums</samp> command</h3>

<p>The <samp>fetch-albums</samp> command asks the server to return a list of all albums (visible with the client's logged in user permissions).</p>
Expand Down Expand Up @@ -128,7 +129,7 @@ <h4>Results</h4>

</li><li>

<a name="add-photo">
<a name="add-item" />
<h3><samp>add-item</samp> command</h3>
<p>This command asks the server to add a photo to a specified album.</p>

Expand Down

0 comments on commit 6bde0e6

Please sign in to comment.