Achievo PHP Cross Reference Groupware Applications

Source: /index.php - 69 lines - 2112 bytes - Summary - Text - Print

   1  <?php
   2  
   3    /**
   4     * @internal includes
   5     */
   6    $config_atkroot = "./";
   7    include_once ("atk.inc");
   8    include_once ("atk/atkbrowsertools.inc");
   9    include_once ("achievotools.inc");
  10    atksession();
  11    atksecure();
  12    include  "theme.inc";
  13  
  14    $theme = &atkinstance('atk.ui.atktheme');
  15    if (atkconfig("fullscreen"))
  16    {
  17      // Fullscreen mode. Use index.php as launcher, and launch app.php fullscreen.
  18  
  19      $page = &atkinstance("atk.ui.atkpage");
  20      $ui = &atkinstance("atk.ui.atkui");
  21      $theme = &atkinstance("atk.ui.atktheme");
  22      $output = &atkinstance("atk.ui.atkoutput");
  23  
  24      $page->register_style($theme->stylePath("style.css"));
  25      $page->register_script(atkconfig("atkroot")."atk/javascript/launcher.js");
  26  
  27      $content = '<script language="javascript">atkLaunchApp(); </script>';
  28      $content.= '<br><br><a href="#" onClick="atkLaunchApp()">'.atktext('app_reopen', "atk").'</a> &nbsp; '.
  29      '<a href="#" onClick="window.close()">'.atktext('app_close', "atk").'</a><br><br>';
  30  
  31      $box = $ui->renderBox(array("title"=>atktext("app_launcher"),
  32      "content"=>$content));
  33  
  34      $page->addContent($box);
  35      $output->output($page->render(atktext('app_launcher'), true));
  36  
  37      $output->outputFlush();
  38    }
  39    else
  40    {
  41      if ($theme->getAttribute('useframes',true))
  42      {
  43        // Regular mode. app.php can be included directly.
  44        include  "app.php";
  45      }
  46      else
  47      {
  48        $user = &atkGetUser();
  49        $indexpage = &atknew('atk.ui.atkindexpage');
  50        $indexpage->setUsername(getFullUsername());
  51        $indexpage->setTitle(getAchievoTitle());
  52        $indexpage->setTopSearchPiece(getSearchPiece());
  53        $centerpiece="";
  54        $centerpiecelinks=array();
  55        getCenterPiece($centerpiece,$centerpiecelinks);
  56        $indexpage->setTopCenterPieceLinks($centerpiecelinks);
  57        if($user["name"]=="administrator")
  58        {
  59          $destination = array("atknodetype"=>"pim.pim","atkaction"=>"adminpim");
  60        }
  61        else 
  62        {
  63          $destination = array("atknodetype"=>"pim.pim","atkaction"=>"pim");
  64        }
  65        $indexpage->setDefaultDestination($destination);
  66        $indexpage->generate();
  67      }
  68    }
  69  ?>

title

Description

title

Description

title

Description

title

title

Body