Web related

How to use angled brackets in WP-Syntax

I often use WP-Syntax plugin for syntax highlighting. When i used angled brackets or ‘&’ symbol or something like that i recieved next garbage: $ echo fail 2&gt;&amp;1 &gt;/dev/null$ echo fail 2&gt;&amp;1 &gt;/dev/null It happened because wp-syntax tried to escape special symbols, but <pre> tag says wordpress to show symbols as it passed into that […]

Tags:

Posted in Web related | No Comments »

You IP

Since the idiots in the Russian government passed a law similar to ‘SOPA’ i started to modify routing scheme at my home. Many times i used internet.ya.ru to determine my current outgoing IP address, but i wanted to use more minimalistic tool for this purpose. So i created my own tool with blackjack and hookers, […]

Tags: , , , ,

Posted in Linux related, Security related, Web related | No Comments »

How to fix ‘Timezone database is corrupt – this should *never* happen!’

Today i upgraded to wheezy. When i entered my blog i observed that it does not work anymore. I looked into logs and found next errors: [26-Jun-2013 12:59:41 UTC] PHP Fatal error:  date(): Timezone database is corrupt – this should *never* happen! in … [26-Jun-2013 12:59:49 UTC] PHP Fatal error:  strtotime(): Timezone database is corrupt […]

Tags: , , , ,

Posted in Linux related, Web related | 1 Comment »

Password protected access to “/wp-admin” on nginx

Here i found advice how to make wordpress more securely, idea is to protect access to “/wp-admin” by http auth, but “/wp-admin/admin-ajax.php” must stay available for everyone, same is true for some .css files. I spend some time to research solution, it was a bit complicated: location /wp-admin { location ~ /wp-admin/admin-ajax.php$ { # Php […]

Tags: , , ,

Posted in Web related | No Comments »

Forbid access to php into “wp-content”.

I expected in few articles an advice to disable direct access to php scripts into “/wp-content/uploads” i done small research and observed, than .php placed into “/wp-content” and into subdirs was newer directly accessed thru web. So i just completely disabled direct access to php scripts placed into that dir and subdirs. Looks more securely. […]

Tags: , , ,

Posted in Web related | No Comments »

How to change page order of top menu in wordpress.

I try to reorder menu items by setting page order into Dashboard/Pages/Quick Edit, also i try plugin called ‘my page orders’, but anyway menu items was sorted alphabetically by page title, so i started to dig deeper. In my template ‘top menu’ generated by function ‘wp_nav_menu‘ placed into header.php. When i looked at template, i […]

Tags: ,

Posted in Web related | No Comments »


Powered by WordPress. Designed by Försäkra Online.