b36 fascism revival
[mirrors/Kyberia-bloodline.git] / wwwroot / nodes.php
index 0c3802391a7203cac09aa775a22646d43a61c2c6..aafb3d4b7d086a5f41e1065a04fdc063b7a0fc17 100644 (file)
@@ -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])) {
@@ -61,7 +68,7 @@ if (!empty($_GET['template_id'])) {
 }
 
 error_reporting(1);
-$_SESSION['debugging']=0;
+//$_SESSION['debugging']=0;
 //unset($_SESSION['debugging']); 
 //Well... we should make some event 
 //or JavaScript page to turning this on/off...
This page took 0.1175 seconds and 4 git commands to generate.