Plugin Directory

Changeset 205886


Ignore:
Timestamp:
02/15/2010 08:33:27 AM (16 years ago)
Author:
markowe
Message:
 
Location:
wordbay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordbay/tags/1.16/WordBay.php

    r204162 r205886  
    1212// parse country file for locale settings
    1313
    14 function functest(){
    15           echo "hello world!";
    16 }
    17 
    18 function country($path){
    19     $path .= get_bloginfo('wpurl') . "/wp-content/plugins/wordbay/countries.txt";
     14
     15function country(){
     16    $path = get_bloginfo('wpurl') . "/wp-content/plugins/wordbay/countries.txt";
    2017           
    2118    $cFile = file($path); // read in file
     
    9592{
    9693
    97                                 $locals = country("");
     94                                $locals = country();
    9895
    9996                                $userCountry = grabber('http://api.hostip.info/country.php?ip=' . $_SERVER['REMOTE_ADDR']);
  • wordbay/trunk/WordBay.php

    r204162 r205886  
    1212// parse country file for locale settings
    1313
    14 function functest(){
    15           echo "hello world!";
    16 }
    17 
    18 function country($path){
    19     $path .= get_bloginfo('wpurl') . "/wp-content/plugins/wordbay/countries.txt";
     14
     15function country(){
     16    $path = get_bloginfo('wpurl') . "/wp-content/plugins/wordbay/countries.txt";
    2017           
    2118    $cFile = file($path); // read in file
     
    9592{
    9693
    97                                 $locals = country("");
     94                                $locals = country();
    9895
    9996                                $userCountry = grabber('http://api.hostip.info/country.php?ip=' . $_SERVER['REMOTE_ADDR']);
Note: See TracChangeset for help on using the changeset viewer.