Writing /home/infogasy/domains/wiki.infogasy.net/public_html/data/cache/9/98e1034ee070d066d1c4ba06701322a1.xhtml failed

Fonctions nampiana tao @ html.php

Raha misy mahita fomba hampiarahana an’ireo fonctions ireo amin’ny rep-n’ny theme dia raisina soa aman-tsara.

  • fonction html_login_2() : ity no manome an’ilay form fidirana etsy ankavia io
function html_login_2(){
  global $lang;
  global $conf;
  global $ID;
 
  //print p_locale_xhtml('login');
  ?>
 
    <form action="<?php echo script()?>" accept-charset="<?php echo $lang['encoding']?>" method="post">
 
 
        <input type="hidden" name="id" value="<?php echo $ID?>" />
        <input type="hidden" name="do" value="login" />
        <label align="left">
          <?php echo $lang['user'].' :'?><br />
          <input type="text" name="u" value="<?php echo formText($_REQUEST['u'])?>" class="edit" />
        </label>
        <label>
          <span><?php echo $lang['pass'].' :'?></span><br />
          <input type="password" name="p" class="edit" />
        </label>
        <label for="remember" class="simple">
 
          <input type="checkbox" name="r" id="remember" value="1" />
          <span><?php echo $lang['remember']?></span>
        </label><br />
        <div style='text-align:center;'><input type="submit" value="<?php echo $lang['btn_login']?>" class="button"/></div>
 
    </form>
  <?php
    if($conf['openregister']){
      print '<p>';
      //print $lang['reghere'];
      print ' <a href="'.wl($ID,'do=register').'" class="wikilink1">'.$lang['register'].'</a>';
      print '</p>';
    }
  ?>
 
  • fonction browser() : mitily ny navigateur mihodina. Misy style navahana manko ho an’i IE.
/*
Browser Name detection
By Geoffrey Sneddon, with some help from Clayton Smith
Released under the zlib/libpng license
*/
 
function browser($ua)
    {
    if (preg_match('/bot/i', $ua) || preg_match('/crawl/i', $ua) || preg_match('/yahoo\!/i', $ua))
    {
        return 'Bot';
    }
    elseif (preg_match('/opera/i', $ua))
    {
        return 'Opera';
    }
    elseif (preg_match('/msie/i', $ua))
    {
        return 'Internet Explorer';
    }
    elseif (preg_match('/omniweb/i', $ua))
    {
        return 'OmniWeb';
    }
    elseif (preg_match('/icab/i', $ua))
    {
        return 'iCab';
    }
    elseif (preg_match('/safari/i', $ua))
    {
        return 'Safari';
    }
    elseif (preg_match('/konqueror/i', $ua))
    {
        return 'Konqueror';
    }
    elseif (preg_match('/Flock/i', $ua))
    {
        return 'Flock';
    }
    elseif (preg_match('/firebird/i', $ua))
    {
        return 'Firebird';
    }
    elseif (preg_match('/phoenix/i', $ua))
    {
        return 'Phoenix';
    }
    elseif (preg_match('/firefox/i', $ua))
    {
        return 'Firefox';
    }
    elseif (preg_match('/chimera/i', $ua))
    {
        return 'Chimera';
    }
    elseif (preg_match('/camino/i', $ua))
    {
        return 'Camino';
    }
    elseif (preg_match('/seamonkey/i', $ua))
    {
        return 'SeaMonkey';
    }
    elseif (preg_match('/galeon/i', $ua))
    {
        return 'Galeon';
    }
    elseif (preg_match('/epiphany/i', $ua))
    {
        return 'Epiphany';
    }
    elseif (preg_match('/mozilla\/5/i', $ua) || preg_match('/gecko/i', $ua))
    {
        return 'Mozilla';
    }
    elseif (preg_match('/mozilla\/4/i', $ua))
    {
        return 'Netscape';
    }
    elseif (preg_match('/lynx/i', $ua))
    {
        return 'Lynx';
    }
    elseif (preg_match('/links/i', $ua))
    {
        return 'Links';
    }
    elseif (preg_match('/curl/i', $ua))
    {
        return 'cURL';
    }
    elseif (preg_match('/wget/i', $ua))
    {
        return 'Wget';
    }
    else
    {
        return 'Unknown';
    }
}
 
 

ifgdokuwiki/loginform.txt · Novaina farany:: 2008/09/11 12:43