tpl.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class Tpl extends oxUBase
00009 {
00010 
00016     public function render()
00017     {
00018         parent::render();
00019 
00020         // security fix so that you cant access files from outside template dir
00021         $sTplName = basename((string) oxRegistry::getConfig()->getRequestParameter("tpl"));
00022         if ($sTplName) {
00023             $sTplName = 'custom/' . $sTplName;
00024         }
00025 
00026         return $sTplName;
00027     }
00028 }