joomla/com_wk1_1/site/wk1.php

<?php
/** 
* @package     Joomla.Administrator 
* @subpackage  com_wk1 
* 
* @copyright 
*/
    // No direct access to this file
defined('_JEXEC') or die('Restricted access'); 
wkTrace("com wk1 scope=" . JFactory::getApplication()->scope . ', component', JComponentHelper::getComponent(JFactory::getApplication()->scope));
$fun = 1;
echo "<h1>component wk1 fun=$fun</h1><ol>
      <li>__file__ = " . __file__ . "</li>";
if ($fun == 1) {
    echo   '<li>$_SERVER[REQUEST_METHOD] = ' . $_SERVER['REQUEST_METHOD'] . '</li>
            <li>$_SERVER[REQUEST_URI] = ' . $_SERVER['REQUEST_URI'] . '</li>
            <li> $_GET = ' . print_r($_GET, true) . '</li> 
              <li> $_POST = ' . print_r($_POST, true) . '</li> 
            <li> headers_list() = ' . print_r(headers_list(), true) . '</li>
            <li> headers_sent() = '. print_r(headers_sent(), true) . '</li>
            <li>JURI toString  = ' .JURI::getInstance()->toString() . '</li>
            <li>JURI  = ' . print_r(JURI::getInstance(), true) . '</li>
            <li>application->scope (component) = ' . JFactory::getApplication()->scope . '</li>' ;
#            <li>input->get(file)  = '; print_r(JFactory::getApplication()->input->get('file', 'fileUndefined')) . '</li>       
#            <li>application input  = '; print_r(JFactory::getApplication()->input)  . '</li>';
} elseif ($fun == 9 ) {
    echo '<li>filesize = ' .    filesize('/wkArchive/bilder/2016/1608steingletscher/DSCN0310p700.JPG');
}
echo '</ol>end of output from module wk1 __file__ ' . __file__;
?>