+2012-08-27 Christian Weiske <cweiske@bogo>
+
+ * Add support for OpenIDs
+ * Version 0.2.0
+
2012-08-17 Christian Weiske <cweiske@cweiske.de>
* Version 0.1.0
Features:
-- Delivers images for email addresses
+- Delivers images for email addresses and OpenIDs
- Very easy to setup.
- No graphics processing is done on the server, keeping the CPU load low.
All avatar images get pre-generated for a set of sizes
Name has to be email address + image file extension, for example
``foo@example.org.png``.
Surrogator supports ``.png`` and ``.jpg``.
+
+ For OpenIDs, use the url-encoded URL + extension as filename, for example
+ replace ``/`` with ``%2F``.
+ The filename for ``http://example.org/~foo`` would be
+ ``http:%2F%2Fexample.org%2F~foo.jpg``.
+
2. Run ``php surrogator.php``.
The small files get generated.
3. You will get more information with ``-v``
-->
<property file="build.properties" />
- <property name="version-m" value="0.1" />
- <property name="version" value="0.1.0" />
+ <property name="version-m" value="0.2" />
+ <property name="version" value="0.2.0" />
<property name="stability" value="alpha" />
<property name="zipfile" value="${phing.project.name}-${version}.tar.bz2" />
<property name="distfile" value="dist/${zipfile}" />
*/
function getHashes($fileName)
{
+ //OpenIDs have their slashes "/" url-encoded
+ $fileName = rawurldecode($fileName);
+
$fileNameNoExt = substr($fileName, 0, -strlen(strrpos($fileName, '.')) - 2);
$emailAddress = trim(strtolower($fileNameNoExt));