From: cajus Date: Wed, 9 Nov 2005 15:46:10 +0000 (+0000) Subject: Removed file that we don't need X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=35dae106acab5fef9317de6fa10621ef3eb38dad;p=gosa.git Removed file that we don't need git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1895 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/download.php b/html/download.php deleted file mode 100644 index 557721cca..000000000 --- a/html/download.php +++ /dev/null @@ -1,89 +0,0 @@ -search('(&(objectClass=gotoPrinter)(cn='.$cn.')(gotoPrinterPPD=*))'); - if ($ldap->count() != 1){ - echo "Bad request"; - exit; - } - - /* Get result */ - $res= $ldap->fetch(); - $path= "/var/spool/".preg_replace('/^[^:]+:\/\/[^\/]+\//', '', $res['gotoPrinterPPD'][0]); - header("Content-type: text/plain"); - echo file_get_contents($path); - break; - - case "kiosk": - /* Perform LDAP query */ - $ldap= new LDAP ("", "", "ldap://se1--002:389"); - $ldap->search('(&(objectClass=gotoEnvironment)(|(uid='.$cn.')(cn='.$cn.'))(gotoKioskProfile=*))'); - if ($ldap->count() != 1){ - echo "Bad request"; - exit; - } - - # Normally we would do this: - # Load groups we're member in - # Look for kiosk settings in these groups, take the first that matches - # Look for kiosk settings for the user - - /* Get result */ - $res= $ldap->fetch(); - $path= "/etc/goto/kiosk/".$res['gotoKioskProfile'][0]; - header("Content-type: octet-stream"); - echo file_get_contents($path); - break; - - default: - echo "Bad request"; - exit; -} - -// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -?>