Convert existing AJAX functions to new framework
[infodrom.org/service.infodrom.org] / class / ajaxbackendbase.class.php
diff --git a/class/ajaxbackendbase.class.php b/class/ajaxbackendbase.class.php
deleted file mode 100644 (file)
index cd12b17..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-class AJAXBackendBase {
-  protected $db;
-  protected $relativeRootPath;
-
-  public function __construct()
-  {
-    global $db;
-    $this->db = $db;
-
-    $path = substr($_SERVER['HTTP_REFERER'], strpos($_SERVER['HTTP_REFERER'], $_SERVER['SERVER_NAME'])+strlen($_SERVER['SERVER_NAME'])+1);
-
-    $pos = 0;
-    $this->relativeRootPath = '';
-    while (($pos = strpos($path, '/', $pos)) !== false) {
-      $this->relativeRootPath .= '../';
-      $pos++;
-    }
-  }
-
-  public function relativeRootPath()
-  {
-    return $this->relativeRootPath;
-  }
-
-}