From: Harvie Date: Sat, 29 Jan 2011 16:28:51 +0000 (+0100) Subject: b36 fascism revival X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=207a7d7d0d752b807c37cd91eec843cd84434b5b;p=mirrors%2FKyberia-bloodline.git b36 fascism revival --- diff --git a/wwwroot/nodes.php b/wwwroot/nodes.php index 5c92694..aafb3d4 100644 --- a/wwwroot/nodes.php +++ b/wwwroot/nodes.php @@ -45,6 +45,13 @@ if (preg_match('/id\/([0-9]+)(?:\/([0-9]+)\/?)?/',$_SERVER['PATH_INFO'],$match)) if (!empty($match[2])) { $_GET['template_id']=$match[2]; } + //Base36 fascism redirect + if($_GET['template_id'] != 'download' && !count($_POST)) { //Fix ugly download hack... + header('Location: /k/'.base_convert($_GET['node_id'], 10, 36). + (isset($_GET['template_id'])?'/'.base_convert($_GET['template_id'], 10, 36):'') + ); + die("Die!!! All Fascists Are Bastards...\n"); + } } elseif (preg_match('/k\/([a-z0-9]{1,7})(?:\/([a-z0-9]{1,7}))?/',$_SERVER['PATH_INFO'],$match)) { $_GET['node_id']=base_convert($match[1], 36, 10); if (!empty($match[2])) {