Templates - <?php< Invision Power File Manager File Templates Manager Copyright(c 2003 Invision Power Services You may not remove the copyright

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 * File Templates Manager * Copyright (c) 2003 Invision Power Services * ------------------------------------- * You may not remove the copyright or * redistribute the script in any form * * Authors: Stephen Ball <[email protected]> * * 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>"); } // Include the language data if (!(include($script_dir . "/settings/languages.inc.php"))) { include_error("language settings file"); } if (!(include($script_dir . "/languages/" . $lang_file[$default_lang] . ".lng.php"))) { include_error($lang_name[$default_lang] . " language pack"); } // Get the $op variable $op = param("op", "GET"); if (empty($op)) { $op = param("op", "POST"); } $header = "<?php\r\n\r\n"; $header .= "/*\r\n"; $header .= " * Invision Power File Manager\r\n"; $header .= " * Templates Configuration Script\r\n"; $header .= " * Copyright (c) 2003 Invision Power Services\r\n"; $header .= " * -------------------------------------\r\n"; $header .= " * You may not remove the copyright or\r\n"; $header .= " * redistribute the script in any form\r\n"; $header .= " *\r\n"; $header .= " * Authors: Stephen Ball <[email protected]>\r\n"; $header .= " *\r\n"; $header .= " */\r\n\r\n"; $ if ($op == "new") { // Display the new template form $pagetitle = "Create a New File Template"; $form = "<form action=\"" . $PHP_SELF ."\" method=\"post\" name=\"template\">\r\n"; $form .= "<input type=\"hidden\" name=\"op\" value=\"create\">\r\n"; $form .= "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n"; $form .= " <tr>\r\n"; $form .= " <td align=\"left\" valign=\"top\" width=\"15%\" nowrap=\"nowrap\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans- Serif\" color=\"#000000\"><b>File Extension:</b></font></td>\r\n"; $form .= " <td align=\"left\"><input type=\"text\" name=\"ext\" style=\"width: 90%\" /><br /><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-Serif\" color=\"#000000\">No dot (.) needed, i.e cpp</font></td>\r\ n"; $form .= " </tr>\r\n"; $form .= " <tr>\r\n"; $form .= " <td align=\"left\" valign=\"top\" width=\"15%\" nowrap=\"nowrap\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans- Serif\" color=\"#000000\"><b>Name:</b></font></td>\r\n"; $form .= " <td align=\"left\"><input type=\"text\" name=\"name\" style=\"width: 90%\" /><br /><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-Serif\" color=\"#000000\">Used for the file name, i.e cplusplus would make the file cplusplus.tpl</font></td>\r\n"; $form .= " </tr>\r\n"; $form .= " <tr>\r\n"; $form .= " <td align=\"left\" valign=\"top\" width=\"15%\" nowrap=\"nowrap\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans- Serif\" color=\"#000000\"><b>Description:</b></font></td>\r\n"; $form .= " <td align=\"left\"><input type=\"text\" name=\"description\"...
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 / 14

Templates - <?php< Invision Power File Manager File Templates Manager Copyright(c 2003 Invision Power Services You may not remove the copyright

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