script - <?php < /* * Invision Power...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: <?php < /* * Invision Power File Manager * Script Settings Manager * 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: 17th March 2003 * */ error_reporting(0); e if (!(include("./header.lib.php"))) { die("<p align=\"center\">There was an error loading the header module</p>"); } if (!(include($script_dir . "/settings/languages.inc.php"))) { include_error("language settings file"); } // Get the $op variable $op = param("op", "GET"); if (empty($op)) { $op = param("op", "POST"); } if ($op == "settings") { // Display the script settings form $pagetitle = "Edit Script Settings"; natcasesort($lang_name); $list = array("1" => "Hide files beginning with a dot", "0" => "Show files beginning with a dot"); $hide_list = dropdown($list, $hide_dot); $lang_list = dropdown($lang_name, $default_lang); $debug_list = dropdown(array("1" => "Enabled", "0" => "Disabled"), $debug); $flock_list = dropdown(array("1" => "Use flock", "0" => "Don't use flock"), $flock); $ext_list = dropdown(array("1" => "Can be edited", "0" => "Cannot be edited"), $no_ext); $edit_list = dropdown(array("1" => "Lock files when they are being edited", "0" => "Don't lock files when they are being edited"), $edit_lock); $gzip_list = dropdown(array("1" => "Use GZIP Compression", "0" => "Do not use GZIP compression"), $use_gzip); $http_list = dropdown(array("1" => "Output HTTP Headers", "0" => "Do not output HTTP headers"), $http_headers); n // NEW FEATURE $anon_list = dropdown(array("1" => "Do not require the user to log in", "0" => "Require the user to log in"), $anon_access); " $clean_format = str_replace("{\A\\T}", "{AT}", $format); // If we are running on Windows, convert the "control character safe" path back to normal Windows paths if (eregi("win", PHP_OS)) { $script_dir = str_replace("/r", "\\r", $script_dir); $script_dir = str_replace("/n", "\\n", $script_dir); $script_dir = str_replace("/t", "\\t", $script_dir); $script_dir = str_replace("/R", "\\R", $script_dir); $script_dir = str_replace("/N", "\\N", $script_dir); $script_dir = str_replace("/T", "\\T", $script_dir); } $form = "<form action=\"" . $PHP_SELF ."\" method=\"post\" name=\"settings\">\r\n"; $form .= "<input type=\"hidden\" name=\"op\" value=\"ch_settings\">\r\n"; $form .= "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n"; $form .= " <tr>\r\n"; $form .= " <td colspan=\"2\" align=\"center\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-Serif\" color=\"#000000\">Edit the Script Settings below</font></td>\r\n"; $form .= " </tr>\r\n"; $form .= " <tr>\r\n"; $form .= " <td align=\"left\" colspan=\"2\" nowrap=\"nowrap\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-Serif\" color=\"#000000\"><i>Cookie Settings</i></font></td>\r\n"; $form .= " </tr>\r\n"; $form .= " <tr>\r\n"; $form .= " <td align=\"left\" width=\"15%\" nowrap=\"nowrap\"><font...
View Full 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 / 18

script - <?php < /* * Invision Power...

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