Jan 20

pixelpost footer plugin

I hacked together a little script giving me the ability to define a common footer and place it anywhere I want within a theme. I know pixelpost includes any footer.html present in a theme, but most of the time this destroys the clean look of a theme completely since it is stupidly attached at the very button of the page. Not a good idea. Since most of the themes I had a chance to look at, defined the footer for each of the about_ image_ and browse_ page seperatly, one had to edit those three files to simply change the footer. So I just put together a simple addon which replaces the <FOOTER> tag within template files... now I only have to edit one file to change my footer. If I find the time I'll try to make it into a real plugin, so one can set the footer line from within the admin interface ... but till then, this has to do:

 
<?php
/* Written by Fabian Haupt http://www.fabianhaupt.de */
 
$addon_name = "Pixelpost Footer Tag";
$addon_version = "0.1";
$addon_description = "Introduces a <FOOTER> tag to handle footers more flexible as with the pixelpost's footer.html mechanism.
<b>Installation:</b>
Copy footer.php to addons directory and enable the footer tag plugin.
If the addon is not listed in admin view, have a look in your pixelpost_addons table in your mysql database and the the enabled value to on.
 
NEW TAGS:
&lt;FOOTER&gt;
";
 
$footer= "&copy; <a href=\"<SITE_URL>\"><SITE_TITLE></a> &bull;"; // Fill this variable with your desired footer code
 
$tpl = ereg_replace("<FOOTER>",$footer,$tpl);
?>
 
Share

Jan 18

Speicherkartenforensik fuer Anfaenger

Ich hatte kuerzlich eine kaputte SD-Karte. Wenig ueberraschend wollte Windows jegliche Arbeit damit verweigern: 'Datentraeger muss formatiert werden'. Unerfreulicherweise lag die Sache im Linux nicht viel besser, er hat garkeine Filesystem mehr erkannt. Ein bisschen googlen hat dann aber ein nettes Tool aufgetan: TestDisk+Photorec http://www.cgsecurity.org/wiki/TestDisk. Mit Testdisk kann man Partitionstabellen rekonstruieren und aehnliches. Mit photorec (ist bei TestDisk dabei) kann man aus einem Image einzelne Dateien wiederherstellen. Dabei funktioniert das Wiederherstellen unabhaengig von der Filesystemstruktur rein auf Basis der File-Signaturen. Und das beste dabei es ist alles GPL. Wunderbar! Leider war die SD-Karte aber so zerstoert, dass ich nicht alle Dateien wiederherstellen konnte, aber doch einen Grossteil, immerhin.

Share