languages - <?php < /* * Invision...

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 * Language Pack 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: 3rd 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"); } // Build the list of text groups $sections = array("Templates" => "temp_description", "Login Page" => "login", "Miscellaneous" => "misc", "Navigation Buttons" => "area", "Tool Buttons" => "tools", "File Listing" => "main", "Icon Legend" => "legend", "Javascript" => "javascript", "Status Messages" => "operate", "Change Password" => "changepass", "Space Usage" => "space", "MySQL Manager" => "database", "Source Viewer" => "source", "File Editor" => "edit", "File Compression" => "compress", "File Upload" => "upload", "CHMOD Dialog" => "chmod", "Move To/Copy To" => "move", "Directory Protection" => "lock", "Multi-file Uploads" => "uploads" ); // Special information to show for different sections $special = array("misc" => "    %s represents the time in seconds<br />    %g represents the GZIP status", "javascript" => "    %name is used for the file name", "compress" => "    %program is used for the program name (Required)<br />    %version is used for the program version (Required)<br />    %name is used for the file name<br />    %size is used for the file size", "uploads" => "    %i is used for the file number", "main" => "    %i is represents the directory" ); if ($op == "del" || $op == "edit" || $op == "exp") { // Need to check for only 1 (on delete) or 0 entries $first = 0; if ($op == "del") { $next = "remove"; $submit = "Delete Language Pack"; $pagetitle = "Delete an Existing Language Pack"; } else if ($op == "exp") { $next = "get"; $submit = "Export Language Pack"; $pagetitle = "Export a Language Pack"; } else { $next = "change"; $submit = "Edit Language Pack"; $pagetitle = "Edit an Existing Language Pack"; } if (count($lang_name) == 1 && $op == "del") { $data = msg("You cannot delete the last language pack"); } else { $form = "<form action=\"" . $PHP_SELF ."\" method=\"post\">\r\n"; $form .= "<input type=\"hidden\" name=\"op\" value=\"" . $next . "\">\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\">Please select a language pack from the list below</font></td>\r\n";...
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 / 17

languages - <?php < /* * Invision...

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