Diff for /boincuserstats/www/cn.inc between versions 1.1 and 1.2

version 1.1, 2005/02/27 15:58:16 version 1.2, 2005/02/27 16:20:17
Line 1 Line 1
 <?php  <?php
   function getit()
   {
           $myvar = explode("=",$_SERVER['QUERY_STRING']);
           return $myvar[count($myvar)-1];
   }
   $get_it = getit();
 function get_lang($acc_l)  function get_lang($acc_l)
 {  {
         /*TODO - make the $acc_l depend on available files!!! - this will require an argument??*/          /*TODO - make the $acc_l depend on available files!!! - this will require an argument??*/
Line 20  return $lang; Line 26  return $lang;
 }  }
 function get_my_name()  function get_my_name()
 {  {
        $look_for = basename($_SERVER['REQUEST_URI'],get_my_ending()); //what file was requested?        $look_for = basename($get_it,get_my_ending()); //what file was requested?
         return $look_for;          return $look_for;
 }  }
 function get_my_ending()  function get_my_ending()
 {  {
        $dotarray = explode(".",$_SERVER['REQUEST_URI']);        $dotarray = explode(".",$get_it);
         $fileending = $dotarray[(count($dotarray)-1)];          $fileending = $dotarray[(count($dotarray)-1)];
         return $fileending;          return $fileending;
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>