Changeset 390 in t29-www for lib/technikum29.php


Ignore:
Timestamp:
May 9, 2013, 2:37:12 PM (11 years ago)
Author:
sven
Message:
  • Vor/Zurück-Link bei Lernprojekten aktiviert
  • Anzeige fehlender englischer Übersetzungen wieder aktiviert (aufgehübscht; mit Infobox)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/technikum29.php

    r357 r390  
    5555$lang_path = $languages[$lang][1]; # shorthand, relative to webroot. use "$webroot$lang_path" for local.
    5656
     57// "AJAX" calls are our meaning for pages without chrome
     58$ajax = isset($_GET['ajax']);
     59if($ajax) {
     60        // print only a minimal chrome, no caching.
     61        require "$lib/ajax-template.php";
     62        $ajax_tmpl = new t29AJAXTemplate($GLOBALS);
     63        $ajax_tmpl->print_page();
     64        // important: do not execute bottom code
     65        return true;
     66}
     67
    5768require "$lib/cache.php";
    5869
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License