<feed xmlns='http://www.w3.org/2005/Atom'>
<title>markzz/aurweb.git/web/html/logout.php, branch v2.3.1</title>
<subtitle>aurweb working repository</subtitle>
<id>https://git.markzz.net/markzz/aurweb.git/atom/web/html/logout.php?h=v2.3.1</id>
<link rel='self' href='https://git.markzz.net/markzz/aurweb.git/atom/web/html/logout.php?h=v2.3.1'/>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/'/>
<updated>2013-02-10T11:10:38Z</updated>
<entry>
<title>Remove unneeded database connection calls</title>
<updated>2013-02-10T11:10:38Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2013-02-03T16:26:32Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3'/>
<id>urn:sha1:ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3</id>
<content type='text'>
Since all database related functions will establish a connection
when needed, there is no need to pre-emptively try and establish
a database connection.

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Remove checks before calling connection method</title>
<updated>2013-02-10T11:10:38Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2013-02-03T16:26:31Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=cf2ab50b8239b75af5df60ee143f41fedb044dc8'/>
<id>urn:sha1:cf2ab50b8239b75af5df60ee143f41fedb044dc8</id>
<content type='text'>
Large amount of boilerplate code that checks if a database
connection exists is useless now that the new connection method
automatically does the same check.

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Remove unnecessary database connection parameter from all functions</title>
<updated>2013-02-10T11:10:38Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2013-02-03T16:26:29Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=8d6c872297459ceb463ed496968cc7cea32274a8'/>
<id>urn:sha1:8d6c872297459ceb463ed496968cc7cea32274a8</id>
<content type='text'>
All functions now have a database connection method that will use
the same database connection. This imitates the functionality of
passing a database connection as an argument and makes it redundant.

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Add database wrapper class and new connection method</title>
<updated>2013-02-10T11:10:37Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2013-02-03T16:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=8e03e68d687015b5cd8c9d3857e1a1d007252afa'/>
<id>urn:sha1:8e03e68d687015b5cd8c9d3857e1a1d007252afa</id>
<content type='text'>
Uses the Singleton pattern to ensure all queries use the same
database connection that is released upon script completion.

All database connections should now be called with DB::connect() and
not db_connect().

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>logout.php: Fix PHP undefined variable notice</title>
<updated>2012-09-17T22:58:55Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2012-09-09T18:53:04Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=c133826a7c00bd62c5dca890d5e0fd882e689e57'/>
<id>urn:sha1:c133826a7c00bd62c5dca890d5e0fd882e689e57</id>
<content type='text'>
Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Use virtual path feature for links</title>
<updated>2012-07-15T20:44:51Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2012-07-13T23:24:59Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=2425f963f8ad45292c217914b5fee1ed18104c26'/>
<id>urn:sha1:2425f963f8ad45292c217914b5fee1ed18104c26</id>
<content type='text'>
Use virtual paths in links (e.g. link to "/packages/" instead of
"/packages.php" etc.) if the virtual path feature is enabled.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>logout.php: Pull out DB code</title>
<updated>2012-07-06T09:26:59Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2012-05-23T19:29:02Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=f93f1a652ffec5cca0f9bdfb7895a5439382bd2a'/>
<id>urn:sha1:f93f1a652ffec5cca0f9bdfb7895a5439382bd2a</id>
<content type='text'>
* Move DB code for removing a session in logout.php to a new function in
acctfuncs.inc.php
* Add ability for clear_expired_sessions function to check for DB connection
* Centralization of DB code important in a future transition to PDO interface

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Wrap mysql_real_escape_string() in a function</title>
<updated>2011-10-24T15:57:54Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-10-20T06:15:02Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=323d418f02074613241d65b9cabbfd65afea9abe'/>
<id>urn:sha1:323d418f02074613241d65b9cabbfd65afea9abe</id>
<content type='text'>
Wrap mysql_real_escape_string() in a wrapper function db_escape_string()
to ease porting to other databases, and as another step to pulling more
of the database code into a central location.

This is a rebased version of a patch by elij submitted about half a year
ago.

Thanks-to: elij &lt;elij.mx@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Require DB handle for most user account functions</title>
<updated>2011-10-24T15:57:53Z</updated>
<author>
<name>Dan McGee</name>
<email>dan@archlinux.org</email>
</author>
<published>2011-10-21T21:03:40Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=e6ecdcc835e9a612e5c5842867c01f0efdceb789'/>
<id>urn:sha1:e6ecdcc835e9a612e5c5842867c01f0efdceb789</id>
<content type='text'>
This affects login the most, where we save about 4 calls to db_connect()
by passing a single handle into functions where necessary.

Signed-off-by: Dan McGee &lt;dan@archlinux.org&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Use secure and httponly session cookies</title>
<updated>2011-08-11T22:09:24Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2011-08-11T14:31:25Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=00e4e0294f36f8e4a0c5926efdc16b31fcb4c788'/>
<id>urn:sha1:00e4e0294f36f8e4a0c5926efdc16b31fcb4c788</id>
<content type='text'>
As discussed on the mailing list, enable "secure" and "httponly" for
session cookies to prevent them from being transferred over insecure
connections.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
</feed>
