system - <?php /* * Invision Power File Manager * System...

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 * System Templates 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: 27th 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 . "/admin/templates.inc.php"))) { include_error("system template settings file"); } // Get the $op variable $op = param("op", "GET"); if (empty($op)) { $op = param("op", "POST"); } if ($op == "list") { // Display the new template form $pagetitle = "Select a template"; $page = "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n"; $total = count($templates); foreach ($templates as $key => $var) { if ($key < $total ) { $page .= " <tr>\r\n"; $page .= " <td align=\"left\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-Serif\" color=\"#000000\"><a href=\"$PHP_SELF? op=edit&tmp=" . $key . "\">" . $var . " Template\r\n"; $page .= " </tr>\r\n"; } else { $page .= " <tr>\r\n";
Background image of page 1

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

View Full DocumentRight Arrow Icon
$page .= " <td align=\"left\"> </td>\r\n"; $page .= " </tr>\r\n"; $page .= " <tr>\r\n"; $page .= " <td align=\"left\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-Serif\" color=\"#000000\"><a href=\"$PHP_SELF? op=edit&tmp=" . $key . "\">Cascading Style Sheet\r\n"; $page .= " </tr>\r\n"; } } $page .= "</table>\r\n"; $data = msg($page, $pagetitle); } else if ($op == "info") { $pagetitle = "Template Placemarkers"; $id = param("tmp", "GET"); $page .= "<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">\r\n"; c $num = count($required[$id]); $i = 0; foreach ($vars[$id] as $key => $var) { // If the place marker is required mark it in italic if (in_array($key, $required[$id]) == TRUE) { $key = "<i>" . $key . "</i>"; $var = "<i>" . $var . "</i>";
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.

Page1 / 6

system - &lt;?php /* * Invision Power File Manager * System...

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