Skip to content
Snippets Groups Projects
Select Git revision
  • 7a969ac25a1f81e5d2c0816c1d76de63b7ec4a1b
  • master default protected
  • dev
  • appimage
  • fix_gitlab
  • fixappveyor
  • gitlab
  • fix_ci
  • fix_dbus_error
  • fix_ci_osx
  • sakia020
  • fix_travis#1105
  • feature/backend
  • check_uniq_node_by_endpoints
  • qt5.7
  • feature/agent_architecture
  • translations
  • pyqt5.6
  • qtwebengine
  • pyinstaller
  • landscape
  • 0.53.2
  • 0.53.1
  • 0.53.0
  • 0.52.0
  • 0.51.1
  • 0.51.0
  • 0.50.5
  • 0.50.4
  • 0.50.3
  • 0.50.2
  • 0.50.1
  • 0.50.0
  • 0.33.0rc7
  • 0.33.0rc6
  • 0.33.0rc5
  • 0.33.0rc4
  • 0.33.0rc3
  • 0.33.0rc2
  • 0.33.0rc1
  • 0.32.10post1
41 results

certification.py

Blame
  • index.php 1.51 KiB
    <?php
    include('config.php');
    
    defineLang();
    
    putenv('LC_ALL='. LANG_FOLDER);
    setlocale(LC_ALL, LOCALE_CODE);
    
    textdomain("menu");
    
    if (!isset($_GET['page'])) {
    	
    	$page = NULL;
    	
    } else {
    
    	$tmp = explode('/', $_GET['page'], 3);
    	$page = '/' . $tmp[1];
    	$subpage = isset($tmp[2]) ? '/' . $tmp[2] : '';
    
    
    }
    
    $router = 
    	array(
    		[
    			'permalink' => '/', 
    			'i18nedPermalink' => _('/'), 
    			'tpl' => 'home.php'
    		], 
    		[
    			'permalink' => '/fonctionnalites', 
    			'i18nedPermalink' => _('/fonctionnalites'), 
    			'tpl' => 'features.php'
    		], 
    		[
    			'permalink' => '/telechargement', 
    			'i18nedPermalink' => _('/telechargement'), 
    			'tpl' => 'download.php'
    		], 
    		[
    			'permalink' => '/merci', 
    			'i18nedPermalink' => _('/merci'), 
    			'tpl' => 'funding.php'
    		], 
    		[
    			'permalink' => '/tutoriel-cesium', 
    			'i18nedPermalink' => _('/tutoriel-cesium'), 
    			'tpl' => 'tuto.php'
    		], 
    		[
    			'permalink' => '/developpeurs', 
    			'i18nedPermalink' => _('/developpeurs'), 
    			'tpl' => 'jobs.php'
    		],
    		[
    			'permalink' => '/mentions-legales', 
    			'i18nedPermalink' => _('/mentions-legales'), 
    			'tpl' => 'legal-notice.php'
    		]
    	);
    
    $found = false;
    $pageIsHome = false;
    
    foreach ($router as $route)
    {
    	if ($route['i18nedPermalink'] == $page)
    	{
    		$found = true;
    		$pagePermalink = $route['permalink'];
    		$pageIsHome = ($route['i18nedPermalink'] == _('/')) ? true : false;
    		
    		include('tpl/' . $route['tpl']);
    		
    		break;
    	}
    }
    
    if (!$found)
    {
    	// echo '<pre>'; var_dump($page); echo '</pre>';
    	header('Location: '. $rootURL . '/'. LANG . '/');
    }