home *** CD-ROM | disk | FTP | other *** search
- <?php
- ////////////////////////////////////////////////////////////////////////////////
- // <!--Copyright (c) 2005 Pure Networks Inc. All rights reserved.-->
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Build: 3.0.6121.0 (Stable)
- // $Revision: #1 $
- //
- ////////////////////////////////////////////////////////////////////////////////
- // USAGE:
- // GET Parameter "type" defines what type of info will be show:
- // phpinfo: presents phpinfo() to the screen
- // GET parameter "presentation" determines if the header/footer, etc will be shown:
- // if set to "false" it will not be shown.
- // -- useful if the automated info you're showing screws with the CSS as phpinfo would
- // do by default if this were not used
- ////////////////////////////////////////////////////////////////////////////////
- $sNavLocation = "debug";
- require "_session_common.php";
-
- if ($bLoggedIn)
- {
- if ($_GET['presentation'] != "false")
- {
- require "_header.php";
- ?>
- <table cellspacing="0" cellpadding="0" border="0" width="100%">
- <tr>
- <td width="100%" valign="top">
- <!-- Start Folder view table -->
- <table cellspacing="0" cellpadding="0" border="0" class="ContentTable" width="98%">
- <tr>
- <td class="ContentTableTL"><div> </div></td>
- <td class="ContentTableTM2"> </td>
- <td class="ContentTableTR"><div> </div></td>
- </tr>
- <tr>
- <td class="ContentTableML"><div> </div></td>
- <td class="ContentTableMM">
- <div class="ShareContents">
- <?php
- }
- switch($_GET['type'])
- {
- case "phpinfo":
- if ($_GET['presentation'] != "false")
- {
- echo ("<iframe width=\"98%\" height=\"500\" src=\"/info.php?type=phpinfo&presentation=false\">");
- echo ("</iframe>");
- }
- else
- {
- phpinfo();
- }
- break;
- default:
- // nothign yet...
- }
- if ($_GET['presentation'] != "false")
- {
- ?>
- </div> <!--ShareContents-->
- </td>
- <td class="ContentTableMR"> </td>
- </tr>
- <tr>
- <td class="ContentTableBL"> </td>
- <td class="ContentTableBM"> </td>
- <td class="ContentTableBR"> </td>
- </tr>
- </table> <!-- End Folder View Table -->
- </td>
- <td valign="top">
- <?php
- require "panels.php";
- ?>
- </td>
- </tr>
- </table>
- <?php
- require "_footer.php";
- }
- }
- else
- {
- log_activity("Attempted access to debug info w/o session", "error", return_error_text(125, "", $arErrors));
- gotoAbs('/error/125');
- exit();
- }
- ?>