diff --git a/hosts/localhost/content/apropos.md b/hosts/localhost/content/about.md similarity index 100% rename from hosts/localhost/content/apropos.md rename to hosts/localhost/content/about.md diff --git a/hosts/localhost/content/usage.md b/hosts/localhost/content/usage.md index 3e1641b..419444e 100644 --- a/hosts/localhost/content/usage.md +++ b/hosts/localhost/content/usage.md @@ -43,6 +43,7 @@ define('LOG_FILE', 'log.txt'); define('ACCESS_IP', ''); define('HISTORY_FILE', 'history.txt'); define('MAX_HISTORY_FILES', 5); +define('LANG', 'en'); ``` **NOTE**: diff --git a/index.php b/index.php index b064527..1d05ba6 100644 --- a/index.php +++ b/index.php @@ -102,7 +102,7 @@ else if (isset($_POST['action'])) case 'search': $results=searchstr(CONTENT_DIR,$_POST['search']); //print_r($results); - $content="

Résultats de recherche

Il y a ".$results['totalFiles']." occurence(s) trouvée(s):

"; + $content=sprintf($LANG['FOUND'],$results['totalFiles']); foreach($results['files'] as $key => $value) $content.='

'.$key.'

'.$value.'

'; if ($_POST['type']=="js") @@ -155,7 +155,7 @@ else @@ -204,7 +204,7 @@ print(($_SESSION['md_admin'] == true)?'