[ PHPXref.com ] [ Generated: Sun Jul 20 16:23:03 2008 ] [ Achievo ATK 5.6.0 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> dispatch.php (source)

   1  <?php
   2  
   3    /**
   4     * This file is part of the Achievo ATK distribution.
   5     * Detailed copyright and licensing information can be found
   6     * in the doc/COPYRIGHT and doc/LICENSE files which should be
   7     * included in the distribution.
   8     *
   9     * This file is the skeleton dispatcher file, which you can copy
  10     * to your application dir and modify if necessary. By default, it
  11     * checks the $atknodetype and $atkaction postvars and creates the
  12     * node and dispatches the action.
  13     *
  14     * @package atk
  15     * @subpackage skel
  16     *
  17     * @author Ivo Jansch <ivo@achievo.org>
  18     *
  19     * @copyright (c)2000-2004 Ivo Jansch
  20     * @license http://www.achievo.org/atk/licensing ATK Open Source License
  21     *
  22     * @version $Revision: 1.4 $
  23     * $Id: dispatch.php,v 1.4 2005/10/24 20:11:26 ivo Exp $
  24     */
  25  
  26    /**
  27     * @internal Setup the system
  28     */
  29    $config_atkroot = "./";
  30    include_once ("atk.inc");
  31  
  32    atksession();
  33  
  34    $session = &atkSessionManager::getSession();
  35  
  36    if($ATK_VARS["atknodetype"]=="" || $session["login"]!=1)
  37    {
  38      // no nodetype passed, or session expired
  39  
  40      $page = &atknew("atk.ui.atkpage");
  41      $ui = &atkinstance("atk.ui.atkui");
  42      $theme = &atkTheme::getInstance();
  43      $output = &atkOutput::getInstance();
  44  
  45      $page->register_style($theme->stylePath("style.css"));
  46  
  47      $destination = "";
  48      if(isset($ATK_VARS["atknodetype"]) && isset($ATK_VARS["atkaction"]))
  49      {
  50        $destination = "&atknodetype=".$ATK_VARS["atknodetype"]."&atkaction=".$ATK_VARS["atkaction"];
  51        if (isset($ATK_VARS["atkselector"])) $destination.="&atkselector=".$ATK_VARS["atkselector"];
  52      }
  53  
  54      $box = $ui->renderBox(array("title"=>text("title_session_expired"),
  55                                  "content"=>'<br><br>'.text("explain_session_expired").'<br><br><br><br>
  56                                             <a href="index.php?atklogout=true'.$destination.'" target="_top">'.text("relogin").'<a/><br><br>'));
  57  
  58      $page->addContent($box);
  59  
  60      $output->output($page->render(text("title_session_expired"), true));
  61    }
  62    else
  63    {
  64      atksecure();
  65  
  66      $lockType = atkconfig("lock_type");
  67      if (!empty($lockType)) atklock();
  68  
  69      // Create node
  70      $obj = &getNode($ATK_VARS["atknodetype"]);
  71  
  72      if (is_object($obj))
  73      {
  74        $obj->dispatch($ATK_VARS);
  75      }
  76      else
  77      {
  78        atkdebug("No object created!!?!");
  79      }
  80    }
  81    $output = &atkOutput::getInstance();
  82    $output->outputFlush();
  83  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]