Skip to content
Snippets Groups Projects
licence_controller.php 592 B
Newer Older
  • Learn to ignore specific revisions
  • Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    <?php
    //CONTROLLER
    
        //TITLE
            $shortTitle = _LICENCE;
            $longTitle = _LICENCE;
    
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
        //LICENCE FILE
            $pathToLicenceTxt = 'view/text/licence_'.$Class_Install->getActualLang().'.txt';
            if (!file_exists($pathToLicenceTxt)) {
                $pathToLicenceTxt = 'view/text/licence_en.txt';
            }
    
            $fileLicence = file($pathToLicenceTxt);
            $txtLicence = '';
            for ($i=0;$i<count($fileLicence);$i++) {
                $txtLicence .= str_replace(array('<', '>'), array('&lt;', '&gt;'),$fileLicence[$i]).'<br />';
            }
    
    
    Giovannoni Laurent's avatar
    Giovannoni Laurent committed
    //VIEW
        $view = 'licence';