handler_login becomes a core feature
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 28 Jan 2007 13:40:48 +0000 (13:40 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 28 Jan 2007 13:40:48 +0000 (13:40 +0000)
Some skin updates and improvements

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1418 839d8a87-29fc-0310-9880-83ba4fa771e5

htdocs/css/keynote.css
modules/auth.php
modules/core.php
modules/xnet.php
templates/skin/common.database-debug.tpl

index aa5692f..460ef14 100644 (file)
@@ -25,7 +25,7 @@
 
 body {
     font-family: "Arial", sans-serif;
-    font-size: 90%;
+    font-size: 10pt;
     background: url('../images/skins/keynote_bg.png') #4f4e63 top left repeat-x fixed;
     color: #fff;
 }
@@ -545,7 +545,7 @@ div.adresse {
 #body-menu {
     width: 140px;
     text-align: center;
-    font-size: 78%;
+    font-size: 85%;
     font-weight: bold;
     white-space: nowrap;
     border-right: 1px solid #fff;
index a9afa5f..0c7344e 100644 (file)
@@ -24,7 +24,6 @@ class AuthModule extends PLModule
     function handlers()
     {
         return array(
-            'login'             => $this->make_hook('login',      AUTH_COOKIE),
             'groupex/donne-chall.php'
                                 => $this->make_hook('chall',      AUTH_PUBLIC),
             'groupex/export-econfiance.php'
@@ -39,14 +38,6 @@ class AuthModule extends PLModule
         );
     }
 
-    function handler_login(&$page)
-    {
-        $allkeys = func_get_args();
-        unset($allkeys[0]);
-        $url = join('/',$allkeys);
-        pl_redirect($url ? $url : 'events');
-    } 
-
     function handler_chall(&$page)
     {
         $_SESSION["chall"] = uniqid(rand(), 1);
index cbb1613..1680b47 100644 (file)
@@ -26,7 +26,8 @@ class CoreModule extends PLModule
         return array(
             '403'         => $this->make_hook('403', AUTH_PUBLIC),
             '404'         => $this->make_hook('404', AUTH_PUBLIC),
-            'send_bug'       => $this->make_hook('bug', AUTH_COOKIE),
+            'login'       => $this->make_hook('login',      AUTH_COOKIE),
+            'send_bug'    => $this->make_hook('bug', AUTH_COOKIE),
             'purge_cache' => $this->make_hook('purge_cache', AUTH_COOKIE, 'admin'),
             'get_rights'  => $this->make_hook('get_rights', AUTH_MDP, 'admin'),
 
@@ -64,6 +65,14 @@ class CoreModule extends PLModule
         $page->assign('near', $platal->near_hook());
     }
 
+    function handler_login(&$page)
+    {
+        $allkeys = func_get_args();
+        unset($allkeys[0]);
+        $url = join('/',$allkeys);
+        pl_redirect($url);
+    }
+
     function handler_favicon(&$page)
     {
         $data = file_get_contents(dirname(__FILE__).'/../htdocs/images/favicon.ico');
index 3690e88..9ca7d7a 100644 (file)
@@ -25,7 +25,6 @@ class XnetModule extends PLModule
     {
         return array(
             'index'     => $this->make_hook('index',     AUTH_PUBLIC),
-            'login'     => $this->make_hook('login',     AUTH_MDP),
             'exit'      => $this->make_hook('exit',      AUTH_PUBLIC),
 
             'admin'     => $this->make_hook('admin',     AUTH_MDP, 'admin'),
index 5c7ff9b..67c3d83 100644 (file)
 
 
 {foreach item=query from=$trace_data}
-<table class="bicol" style="width: 75%; font-family: monospace; font-size: smaller; margin-left:2px; margin-top: 3px;">
+{if $query.explain}
+{assign var=cols value=$query.explain[0]|@count}
+{else}
+{assign var=cols value=1}
+{/if}
+<table class="bicol" style="width: 75%; font-size: smaller; margin-left:2px; margin-top: 3px;">
   <tr class="impair">
-    <td>
+    <td colspan="{$cols}">
       <strong>QUERY:</strong>
       <pre style="padding: 0; margin: 0;">{$query.query}</pre>
       <br/>
   </tr>
   {if $query.error}
   <tr>
-    <td>
+    <td colspan="{$cols}">
       <strong style="color: #f00">ERROR:</strong><br />
       {$query.error|nl2br}
     </td>
   </tr>
   {else}
   <tr>
-    <td>
+    <td colspan="{$cols}">
       <strong>INFO:</strong><br />
       {$query.rows} enregistrement{if $query.rows > 1}s{/if} en {$query.exectime}ms
     </td>
   </tr>
   {/if}
-</table>
 {if $query.explain}
-<table class="bicol" style="width: 75%; font-family: monospace; font-size: smaller; margin-left: 2px; margin-bottom: 3px;">
   <tr>
     {foreach key=key item=item from=$query.explain[0]}
-    <th>{$key}</th>
+    <th style="font-size: smaller">{$key}</th>
     {/foreach}
   </tr>
   {foreach item=explain_row from=$query.explain}
   <tr class="impair">
     {foreach item=item from=$explain_row}
-    <td class="center">{$item}</td>
+    <td class="center" style="font-size: smaller">{$item}</td>
     {/foreach}
   </tr>
   {/foreach}
-</table>
 {/if}
+</table>
 {/foreach}
 
 {* vim:set et sw=2 sts=2 sws=2: *}