Could not open members file. Please verify permissions (CHMOD - 666) and actual existence.
"; } else { if (filesize(MEMBERS) > 0) { $members = file(MEMBERS); $queryURL = ""; if (isset($_GET['s']) && $_GET['s'] == "sortName") { natcasesort($members); $members = array_values($members); $queryURL = "&s=sortName"; } elseif (isset($_GET['s']) && $_GET['s'] == "sortCountry") { $countryArray = file(COUNTRIES); foreach($countryArray as $country) { $countryArray[] = rtrim($country); } if (!isset($_GET['c']) || in_array($_GET['c'], $countryArray) === FALSE) { // find out who has joined with which country and stick them in an array foreach ($members as $mem) { list($name,$email,$dispemail,$url,$country,$fave) = preg_split("/,(?! )/",$mem); $newArray[] = $country; } // count each time country occurs $countryCount = array_count_values($newArray); // sort the array so that the countries are in alphabetical order $newArray = array_unique($newArray); natcasesort($newArray); // display the countries echo "$count members | "; if (isset($_GET['page']) && $_GET['page'] > 1 && $_GET['page'] <= $numpages) { $prev = $_GET['page'] - 1; echo "Prev · "; } else { echo "Prev · "; } for ($x=1; $x<=$numpages; $x++) { if ((isset($_GET['page']) && $x == $_GET['page']) || (!isset($_GET['page']) && $x == 1)) { echo "$x "; } else { echo "$x "; } } if ((!isset($_GET['page'])) || (isset($_GET['page']) && $_GET['page'] < $numpages)) { if (!isset($_GET['page'])) { $_GET['page'] = 1; } $next = $_GET['page'] + 1; echo " · Next"; } else { echo " · Next"; } echo "
\n\n "; } else { echo "$count members
"; } if (isset($_GET['page']) && is_numeric($_GET['page'])) { $i=$perpage*($_GET['page']-1); } else { $i=0; } $end = $i + $perpage; if ($end > $count) { $end = $count; } ?>Name | Website | Country | {$favetext}"; } ?>||
---|---|---|---|---|
$name | $url | $country | "; if (isset($favefield) && $favefield == "yes") { echo "" . str_replace('|', ',', stripslashes($fave)) . " | "; } echo "