lock - <?php /* * Invision File Manager * Apache...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?php < /* * Invision File Manager * Apache .htpasswd Dialog * Copyright (c) 2003 Invision Power Services * ------------------------------------- * You may not remove the copyright or * redistribute the script in any form * * Authors: Stephen Ball <stephen@invisionfilemanager.com> * * Last Modified: 4th March 2003 * */ error_reporting(0); e if (!(include("./modules/header.lib.php"))) { die("<p align=\"center\">There was an error loading the header module</p>"); } // Get the variables $file = param("f", "GET"); $dir = param("d", "GET"); $ // Clean the paths $file = cleanpath($file); $dir = cleanpath($dir); $ if (eregi("win", PHP_OS) == TRUE) { // Check for / in the URL even though the system is Windows (i.e. the user is using Opera) $dir = str_replace("/", "\\", $dir); } $path = $dir == "" ? $params["root"] . $file : $params["root"] . $dir . $slash . $file; $ // Parse some variables $data["file"] = $dir == "" ? $slash . $file : $slash . $dir . $slash . $file; $ // Add a slash as the selected file must be a directory
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/18/2011 for the course CSE 099 taught by Professor Hawkins during the Spring '11 term at N. Arizona.

Page1 / 2

lock - &lt;?php /* * Invision File Manager * Apache...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online