function printContent()
 {
     echo "Application [" . $this->asked_app . "] Access denied<br/>----<br/>";
     echo "Please <a href=\"" . $this->site->applicationUrl("sign") . "?op=login\">login</a><br/>";
     echo "Back to [<a href=\"" . $this->site->applicationUrl($this->asked_app) . "\">Back</a>] <br/>";
     parent::printContent();
 }
 function printContent()
 {
     echo "<h1>Index page</h1>";
     echo $this->site;
     $user = $this->site->username();
     if (isset($user)) {
         echo " <a href='index.php?" . FMWK_PARAM_APP . "=sign&" . FMWK_PARAM_OP . "=logout&asked_app=" . $this->name . "'>sign out</a>";
     } else {
         echo " <a href='index.php?" . FMWK_PARAM_APP . "=sign&" . FMWK_PARAM_OP . "=login&asked_app=" . $this->name . "'>sign in</a>";
     }
     echo "<br/>";
     parent::printContent();
 }
 function printContent()
 {
     parent::printContent();
     echo "Administration panel<br/>";
 }
    function printContent()
    {
        echo "Back to [<a href=\"" . $this->site->applicationUrl($this->asked_app) . "\">Back</a>] <br/>";
        $op = $this->wop;
        switch ($op) {
            case 'logout':
                echo "You are not logged out<br/>";
                break;
            case 'login':
                echo "You are now logged in as [" . $this->wusername . "]<br/>";
                break;
            case 'info':
                if ($this->user_signed) {
                    ?>
<form action="<?php 
                    echo $this->site->applicationUrl("sign");
                    ?>
" method="post">
<div style="border: solid 1px #ccc; padding: 5px; margin: 5px; background-color: #ffeecc;">
<?php 
                    if (!empty($this->message)) {
                        echo $this->message;
                    }
                    ?>
<p>Username : <input type="text" name="username" value="<?php 
                    echo $this->wusername;
                    ?>
" /></p>
<input type="submit" name="<?php 
                    echo FMWK_PARAM_OP;
                    ?>
" value="logout" />
</form>
<?php 
                    break;
                }
            case 'sign':
            default:
                ?>
	<form action="<?php 
                echo $this->site->applicationUrl("sign");
                ?>
" method="post">
<input type="hidden" name="asked_app" value="<?php 
                echo $this->asked_app;
                ?>
" />
<div style="border: solid 1px #ccc; padding: 5px; margin: 5px; background-color: #ffeecc;">
<?php 
                if (!empty($this->message)) {
                    echo $this->message;
                }
                ?>
<p>Username : <input type="text" name="username" value="<?php 
                echo $this->wusername;
                ?>
" /></p>
<p>Password : <input type="password" name="password" value="" /></p>
<input type="submit" name="<?php 
                echo FMWK_PARAM_OP;
                ?>
" value="login" />
</div>
</form>
<?php 
                break;
        }
        parent::printContent();
    }
 function printContent()
 {
     echo "Application [" . $this->asked_app . "] Not Found<br/>----<br/>";
     parent::printContent();
 }
 function printContent()
 {
     echo "Page de test<br/>";
     parent::printContent();
 }