index - <?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 * Control Panel Main Page * 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: 2nd March 2003 * */ error_reporting(0); e if (!(include("./header.lib.php"))) { die("<p align=\"center\">There was an error loading the header module</p>"); } $p = param("p", "GET"); $ $show = param("show", "GET"); if (empty($show) == TRUE) { // If there is no "show" string, try loading the cookie $show = param("ipfm_show", "COOKIE"); } if (empty($p) == TRUE) { // No page has been called so we are using the frame page echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n"; echo "<html>\r\n"; echo "<head>\r\n"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> \ r\n"; echo "<head>\r\n"; echo "<title>Invision Power File Manager Control Panel</title>\r\n"; echo "</head>\r\n"; echo "<frameset cols=\"180,*\" frameborder=\"0\" border=\"0\" framespacing=\"0\">\r\n"; echo " <frame name=\"menu\" scrolling=\"auto\" noresize=\"noresize\" src=\"$PHP_SELF?p=menu\">\r\n"; echo " <frame name=\"main\" src=\"$PHP_SELF?p=main\">\r\n"; echo "</frameset>\r\n"; echo "<noframes>\r\n"; echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-Serif\" color=\"#000000\">Sorry but you require a browser which supports frames</font></body>\r\n"; echo "</noframes>\r\n"; echo "</html>\r\n"; exit(); } else if ($p == "menu") { // Call the menu page setcookie("ipfm_show", $show, time()+32400000); // Set the cookie for a year $pagetitle = "Control Panel Menu"; $end = ""; $show = explode(";", $show); // IPS Services Menu $data = "<font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans- Serif\" color=\"#000000\"><a href=\"index.php?p=menu&show=1;2;3;4;5;6\" onmouseover=\"javascript:window.status='Expand All'; return true;\" onmouseout=\"javascript:window.status=''; return true;\">Expand All</a> | <a href=\"index.php?p=menu&show=none\" onmouseover=\"javascript:window.status='Collapse All'; return true;\" onmouseout=\"javascript:window.status=''; return true;\">Collapse All</a><br /><br />\r\n"; $data .= "<table border=\"0\" width=\"100%\" bgcolor=\"#000000\" cellpadding=\"4\" cellspacing=\"1\">\r\n"; $data .= " <tr>\r\n"; if (in_array(1, $show)) { $data .= " <th align=\"left\" bgcolor=\"#4682B4\" valign=\"middle\"><font size=\"2\" face=\"Verdana, Geneva, Arial, Helvetica, Sans- Serif\" color=\"#FFFFFF\"><a href=\"index.php?p=menu&show=" . menulink(1) . "\" style=\"color: #FFFFFF\" onmouseover=\"javascript:window.status='Collapse Tab'; return true;\" onmouseout=\"javascript:window.status=''; return true;\">- IPS Services</a></font></th>\r\n"; $data .= " </tr>\r\n"; $data .= " <tr>\r\n"; $data .= " <td align=\"left\" bgcolor=\"#F5F5F5\" valign=\"middle\"><font size=\"1\" face=\"Verdana, Geneva, Arial, Helvetica, Sans-...
View Full Document

Page1 / 8

index - <?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