[isf-wifidog] install.php

Robin Jones Robin at networkfusion.co.uk
Dim 30 Sep 21:31:24 EDT 2007


Don't worry about this now... I have managed to work it out (and improved my PHP knowledge vastly)
 
I will be submitting the new code soon!

________________________________

From: wifidog-bounces at listes.ilesansfil.org on behalf of Robin Jones
Sent: Sun 9/30/2007 5:39 PM
To: wifidog at listes.ilesansfil.org
Subject: [isf-wifidog] install.php


Hi all,
 
Can someone who knows PHP and wifidog please help me to get this working? it is part of the install script, I am trying to get the system locale setting to work... can anyone with knowledge please complete and or correct any mistakes...
 
Thanks,
 
Robin Jones.
 
#################################################
    case 'languages' :
#require_once('config_available_locales.php');
require_once('classes/LocaleList.php');
$CURRENT_LOCALE = $configArray['DEFAULT_LANG'];
$AVAIL_LOCALE_ARRAY = LocaleList::getAvailableLanguageArray();
 

        print "<h1>Languages Configuration</h1>";
 

        print<<< EndHTML
      <p>your current locale is $CURRENT_LOCALE</p>
      <p>Please select your Authentication Servers default language and locale</p>
 
       <div class="language">
           <form class="language" name="lang_form" method="post" action="$formAction">
               <div>Server Locale:
                <select name="wifidog_language" onchange="javascript: document.lang_form.submit();">
 EndHTML;
  foreach ($AVAIL_LOCALE_ARRAY as $_langIds => $_langNames) {
            $langName = $_langNames[0];
            $_languageChooser[] = '<option value="' . $_langIds . '"' . $_selected . '>' . $langName . '</option>';
  }

 print<<< EndHTML              
  </select>
               </div>
           </form>
       </div>
 
 

<em>Error message example</em> : <BR>
<DIV style="border:solid black;">Warning: language.php: Unable to setlocale() to fr, return value: , current locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C; [...]</DIV>
<p><em>I repeat</em> : This is an example of message you can see in the top of your working auth-server if the language is not set correctly. To change these values please edit <em>config.php</em> in auth-servers installation directory labled <em>wifidog</em>. search for "Available locales" and "Default language" header in config.php.
EndHTML;
        //    Dependency::execVerbose("locale -a 2>&1", $output, $return);
 
        navigation(array (
        array (
            "title" => "Back",
            "page" => "options"
            ),
            array (
            "title" => "Next",
            "page" => "admin"
            )
            ));
            break;
#####################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 8218 bytes
Desc: not available
Url : http://listes.ilesansfil.org/pipermail/wifidog/attachments/20071001/3321f0ae/attachment.bin 


Plus d'informations sur la liste de diffusion WiFiDog