chmod - <?php /* * Invision Power File Manager * CHMOD...

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

View Full Document Right Arrow Icon
<?php < /* * Invision Power File Manager * CHMOD 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: 22nd February 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; $ if (is_dir($path) == TRUE) { // The user is CHMODding a directory so add a slash $data["file"] = $data["file"] . $slash; } $data["file1"] = $file; $data["dir"] = $dir; $data["main"] = $scripts["main"]; $data["invalid"] = $javascript["octal_error"]; $data["close"] = $chmod["close"]; $ $data["chmod"] = chmod_value($path); $ // Get the CHMOD "parts"
Background image of page 1

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

View Full DocumentRight Arrow Icon
$hund = substr($data["chmod"], 0, 1) . "00"; $tens = substr($data["chmod"], 1, 1) . "0"; $unit = substr($data["chmod"], 2, 1); $ $check_hund = array("700" => array("check1" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '400');\" checked=\"checked\" />", "check2" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '200');\" checked=\"checked\" />", "check3" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '100');\" checked=\"checked\" />"), "600" => array("check1" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '400');\" checked=\"checked\" />", "check2" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '200');\" checked=\"checked\" />", "check3" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '100');\" />"), "500" => array("check1" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '400');\" checked=\"checked\" />", "check2" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '200');\" />", "check3" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '100');\" checked=\"checked\" />"), "400" => array("check1" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '400');\" checked=\"checked\" />", "check2" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '200');\" />", "check3" => "<input type=\"checkbox\" class=\"check\" onclick=\"javascript:update(this, '100');\" />"),
Background image of page 2
Image of page 3
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 / 5

chmod - &lt;?php /* * Invision Power File Manager * CHMOD...

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

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