Skip to content
Snippets Groups Projects
Select Git revision
  • babbd1350019d8c34d56fa9c1bb03a5853f29779
  • dev default protected
  • vainamoinen197-transactiondocument-replace-vec-fields-by-smallvec-2
  • dvermd/200-keypairs-dewif
  • elois/wot
  • jawaka/155-dbex-add-dump-fork-tree-command
  • elois/195-bcdbwriteop
  • elois/deps-crypto
  • elois/gva-monetary-mass
  • elois/191-sled
  • elois/195
  • ji_emme/gva-humantimefield
  • 184-gva-rename-commontime-field-to-blockchaintime
  • ji_emme/182-gva-implement-block-meta-data
  • ji_emme/rml14
  • hugo/151-ws2pv2-sync
  • ji_emme/181-gva-implement-identity-request
  • ji_emme/89-implement-client-api-gva-graphql-verification-api
  • logo
  • test-juniper-from-schema
  • elois/exemple-gva-global-context
  • v0.2.0-a4 protected
  • v0.2.0-a2 protected
  • v0.2.0-a protected
  • v0.1.1-a1 protected
  • documents/v0.10.0-b1 protected
  • crypto/v0.4.0-b1 protected
  • crypto/v0.3.0-b3 protected
  • crypto/v0.3.0-b2 protected
  • crypto/v0.3.0-b1 protected
  • wot/v0.8.0-a0.9 protected
  • wot/v0.8.0-a0.8 protected
  • 0.1.0-a0.1 protected
  • v0.0.1-a0.12 protected
  • v0.0.1-a0.11 protected
  • v0.0.1-a0.10 protected
  • v0.0.1-a0.9 protected
  • v0.0.1-a0.8 protected
  • v0.0.1-a0.7 protected
  • v0.0.1-a0.6 protected
  • v0.0.1-a0.5 protected
41 results

current_frame.rs

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 . '/');
    }