Profile
MAJ is an Open Source, PHP-based content management system (CMS) that can be deployed as a blog, bulletin or message board, Internet forum, and wiki. It is extensible via PHP panels and is HTML5 and CSS3 ready.
Git
This commit has been accessed 1028 times via Git panel.

commit df9599ce96985335aa01963b7e25ecd03829a65a
tree 211b7b0f7cfe8498067eeb5e4f95aabda8d503a5
parent 8ddffabab9d446808955ab63e9c643c4032a19bf
author Engels Antonio <engels@majcms.org> 1277314199 +0800
committer Engels Antonio <engels@majcms.org> 1277314199 +0800

    maj-0.14-20081016-bb.zip

diff --git a/del.php b/del.php
index 393bad3..1a38faa 100644
--- a/del.php
+++ b/del.php
@@ -1,5 +1,7 @@
 <?php
+
 session_start();
+
 header("Cache-control: private");
 
 error_reporting(E_ERROR);
@@ -22,29 +24,34 @@ if (get_magic_quotes_gpc()) {
 
 $login_username = file_get_contents("data/username.txt");
 
-function rmdirr($recurse_dirname)
-{
+if (file_exists("data/offset.txt")) {
+       $offset = file_get_contents("data/offset.txt");
+}
+else {
+       $offset = 0;
+}
 
-    if (!file_exists($recurse_dirname)) {
-        return false;
-    }
+function rmdirr($recurse_dirname) {
 
-    if (is_file($recurse_dirname)) {
-        return unlink($recurse_dirname);
-    }
+       if (!file_exists($recurse_dirname)) {
+               return false;
+       }
 
-    $recurse_dir = dir($recurse_dirname);
-    while (false !== $recurse_entry = $recurse_dir->read()) {
+       if (is_file($recurse_dirname)) {
+               return unlink($recurse_dirname);
+       }
 
-        if ($recurse_entry == '.' || $recurse_entry == '..') {
-            continue;
-        }
+       $recurse_dir = dir($recurse_dirname);
 
-        rmdirr("$recurse_dirname/$recurse_entry");
-    }
+       while (false !== $recurse_entry = $recurse_dir->read()) {
 
-    $recurse_dir->close();
-    return rmdir($recurse_dirname);
+               if ($recurse_entry == '.' || $recurse_entry == '..') {
+                       continue;
+               }
+               rmdirr("$recurse_dirname/$recurse_entry");
+       }
+       $recurse_dir->close();
+       return rmdir($recurse_dirname);
 }
 
 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
@@ -72,11 +79,20 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
        if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['type']) and !empty($_REQUEST['type'])) {
                $comment_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/' . $_REQUEST['type'] . '/' . $_REQUEST['comment'];
                rmdirr($comment_dir);
+
+               $cmonth = date("Ym", time() + $offset);
+
+               if (file_exists("data/comments/latest/$cmonth/{$_REQUEST['entry']}")) {
+                       rmdirr("data/comments/latest/$cmonth/{$_REQUEST['entry']}");
+               }
+
                $pending_comment_flag_dir = 'data/comments/pending/' . $_REQUEST['entry'];
+
                if (file_exists($pending_comment_flag_dir) and ($_REQUEST['type'] == "pending")) {
                        $fp_comment_count_txt = fopen("$pending_comment_flag_dir/count.txt","r");
                        $comment_count_value = fread($fp_comment_count_txt,filesize("$pending_comment_flag_dir/count.txt"));
                        fclose($fp_comment_count_txt);
+
                        if ($comment_count_value <= 1) {
                                rmdirr($pending_comment_flag_dir);
                        }
@@ -99,6 +115,12 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
                $album_sem_dir = 'data/albums/' . $_REQUEST['entry'];
                $sticky_sem = 'data/sticky/' . $_REQUEST['entry'];
                $pending_comment_flag_dir = 'data/comments/pending/' . $_REQUEST['entry'];
+               $cmonth = date("Ym", time() + $offset);
+
+               if (file_exists("data/comments/latest/$cmonth/{$_REQUEST['entry']}")) {
+                       rmdirr("data/comments/latest/$cmonth/{$_REQUEST['entry']}");
+               }
+
                if (file_exists($entry_dir)) {
                        rmdirr($entry_dir);
                }
diff --git a/index.php b/index.php
index 74d626d..3375bad 100644
--- a/index.php
+++ b/index.php
@@ -4310,9 +4310,65 @@ if (($count_latest_comments > 0) and ($count_latest_items > $increase) and (!fil
        foreach ($show_latest_comments as $latest_comment_entry) {
               
                $latest_comment_entry_title = file_get_contents("data/items/$latest_comment_entry/title.txt");
-
                $latest_comment_entry_count = count(glob("data/comments/latest/$cmonth/$latest_comment_entry/*"));
 
+               /*
+
+               $get_latest_comment_entry_time = date("Ymd", filemtime("data/comments/latest/$cmonth/$latest_comment_entry") + $offset);
+               $get_latest_comment_entry_hh = date("H", filemtime("data/comments/latest/$cmonth/$latest_comment_entry") + $offset);
+               $get_latest_comment_entry_mm = date("i", filemtime("data/comments/latest/$cmonth/$latest_comment_entry") + $offset);
+               $get_latest_comment_entry_ss = date("s", filemtime("data/comments/latest/$cmonth/$latest_comment_entry") + $offset);
+
+               $latest_comment_entry_time = date("Ymd", time() + $offset) - $get_latest_comment_entry_time;
+               $latest_comment_entry_hh = date("H", time() + $offset) - $get_latest_comment_entry_hh;
+               $latest_comment_entry_mm = date("i", time() + $offset) - $get_latest_comment_entry_mm;
+               $latest_comment_entry_ss = date("s", time() + $offset) - $get_latest_comment_entry_ss;
+
+               if ($latest_comment_entry_time < 1) {
+
+                       if ($latest_comment_entry_hh == 0) {
+
+                               if ($latest_comment_entry_mm < 1) {
+
+                                       if ($latest_comment_entry_ss <= 1) {
+                                               $latest_comment_entry_time = "1 sec";
+                                       }
+                                       else {
+                                               $latest_comment_entry_time = "$latest_comment_entry_ss secs";
+                                       }
+                               }
+
+                               if ($latest_comment_entry_mm == 1) {
+                                       $latest_comment_entry_time = "1 min";
+                               }
+
+                               if ($latest_comment_entry_mm > 1) {
+                                       $latest_comment_entry_time = "$latest_comment_entry_mm mins";
+                               }
+                       }
+
+                       if ($latest_comment_entry_hh == 1) {
+                               $latest_comment_entry_time = "1 hour";
+                       }
+
+                       if ($latest_comment_entry_hh > 1) {
+                               $latest_comment_entry_time = "$latest_comment_entry_hh hours";
+                       }
+               }
+               else {
+                       if ($latest_comment_entry_time == 1) {
+                               $latest_comment_entry_time = "1 day";
+                       }
+
+                       if ($latest_comment_entry_time > 1) {
+                               $latest_comment_entry_time = "$latest_comment_entry_time days";
+                       }                      
+               }
+
+               echo "<tr><td valign=bottom><a class=navlink href=index.php?entry=$latest_comment_entry&show=comments onmouseover=echo($latest_comment_entry_count)>$latest_comment_entry_title</a></td><td align=right valign=bottom><nobr>$latest_comment_entry_time</nobr></td></tr>";
+
+               */
+
                echo "<tr><td valign=bottom><a class=navlink href=index.php?entry=$latest_comment_entry&show=comments>$latest_comment_entry_title</a></td><td align=right valign=bottom>$latest_comment_entry_count</td></tr>";
        }
 
diff --git a/options.php b/options.php
index 8c59e65..a87d351 100644
--- a/options.php
+++ b/options.php
@@ -135,6 +135,7 @@ if (!file_exists("data/members/active/{$_SESSION['logged_in']}")) {
 if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt") != $_POST['email']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email']))) {
        $email_write_content = strtolower($_POST['email']);
        $email_write_content = trim($email_write_content);
+       $email_write_content = str_replace(" ","",$email_write_content);
        $email_write_content = htmlentities($email_write_content, ENT_NOQUOTES);
        $fp_email_txt = fopen("data/members/active/{$_SESSION['logged_in']}/new-email.txt","w");
        fwrite($fp_email_txt,$email_write_content);
@@ -199,12 +200,31 @@ if (isset($_POST['url']) and !empty($_POST['url']) and (ereg("\.", $_POST['url']
        $url = strtolower($url);
        $url = trim($url);
        $url = 'http://' . $url;
+       $url = str_replace(" ","",$url);
        $url = htmlentities($url, ENT_NOQUOTES);
        $fp_url_txt = fopen("data/members/active/{$_SESSION['logged_in']}/url.txt","w");
        fwrite($fp_url_txt,$url);
        fclose($fp_url_txt);
 }
 
+if (isset($_POST['country']) and !empty($_POST['country'])) {
+       $country = trim($_POST['country']);
+       $country = strtoupper($country);
+       $country = htmlentities($country, ENT_NOQUOTES);
+       $fp_country_txt = fopen("data/members/active/{$_SESSION['logged_in']}/country.txt","w");
+       fwrite($fp_country_txt,$country);
+       fclose($fp_country_txt);
+}
+
+if (isset($_POST['city']) and !empty($_POST['city'])) {
+       $city = trim($_POST['city']);
+       $city = ucwords($city);
+       $city = htmlentities($city, ENT_NOQUOTES);
+       $fp_city_txt = fopen("data/members/active/{$_SESSION['logged_in']}/city.txt","w");
+       fwrite($fp_city_txt,$city);
+       fclose($fp_city_txt);
+}
+
 if ((!isset($_POST['sig']) or empty($_POST['sig'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
        unlink("data/members/active/{$_SESSION['logged_in']}/sig.txt");
 }
@@ -372,9 +392,9 @@ if (isset($_POST['current_passwd']) and !empty($_POST['current_passwd']) and iss
 
 ?>
 
-<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc>
-<tr><td bgcolor=#ffffff colspan=2 align=right><p>you are logged in as <b><?php echo "<b>{$_SESSION['logged_in']}</b>"; ?>&nbsp;&nbsp;</b></p></td></tr>
-<tr><td bgcolor=#ffffff><?php
+<table border="0" cellspacing="1" cellpadding="2" bgcolor="#cccccc">
+<tr><td bgcolor="#ffffff" colspan="2" align="right"><p>you are logged in as <b><?php echo "<b>{$_SESSION['logged_in']}</b>"; ?>&nbsp;&nbsp;</b></p></td></tr>
+<tr><td bgcolor="#ffffff"><?php
 if (file_exists("images/members/{$_SESSION['logged_in']}/avatar.jpg") or file_exists("images/members/{$_SESSION['logged_in']}/avatar.gif") or file_exists("images/members/{$_SESSION['logged_in']}/avatar.png")) {
        if (file_exists("images/members/{$_SESSION['logged_in']}/avatar.gif")) {
                $avatar_gif_image_size = getimagesize("images/members/{$_SESSION['logged_in']}/avatar.gif");
@@ -432,7 +452,7 @@ if (file_exists("images/members/{$_SESSION['logged_in']}/avatar.jpg") or file_ex
        }
        echo ">";
 }
-?></p></td><td bgcolor=#ffffff><p>
+?></p></td><td bgcolor="#ffffff"><p>
 
 <?php
 
@@ -489,17 +509,270 @@ if (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-last.txt")) {
 </p></td></tr>
 
 <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
-<input type=hidden name=edit value=on>
+<input type="hidden" name="edit" value="on">
 
 <?php if (!file_exists("data/members/active/{$_SESSION['logged_in']}/key.txt")) { ?>
-<tr><td bgcolor=#ffffff><p>e-mail address*</p></td><td bgcolor=#ffffff colspan=2><input class=input type=text autocomplete=off name=email maxlength=60 value=<?php readfile("data/members/active/{$_SESSION['logged_in']}/email.txt"); ?>></td></tr>
+<tr><td bgcolor="#ffffff"><p>e-mail address*</p></td><td bgcolor="#ffffff" colspan="2"><input class="input" type="text" autocomplete="off" name="email" maxlength="60" value="<?php readfile("data/members/active/{$_SESSION['logged_in']}/email.txt"); ?>"></td></tr>
 <?php } ?>
 
-<tr><td bgcolor=#ffffff><p>website</p></td><td bgcolor=#ffffff colspan=2><input class=input type=text autocomplete=off name=url maxlength=300 <?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/url.txt")) { echo "value=";readfile("data/members/active/{$_SESSION['logged_in']}/url.txt"); } ?>></td></tr>
+<tr><td bgcolor="#ffffff"><p>website</p></td><td bgcolor="#ffffff" colspan="2"><input class="input" type="text" autocomplete="off" name="url" maxlength="300" <?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/url.txt")) { echo "value=\""; readfile("data/members/active/{$_SESSION['logged_in']}/url.txt"); echo "\""; } ?>></td></tr>
+
+<tr><td bgcolor="#ffffff"><p>country</p></td><td bgcolor="#ffffff" colspan="2">
+
+<select class="input" name="country">
+<option<?php if (!file_exists("data/members/active/{$_SESSION['logged_in']}/country.txt")) { echo " selected"; } ?> value=""></option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AF") { echo " selected"; } ?> value="AF">Afghanistan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AX") { echo " selected"; } ?> value="AX">Aland (Ahvenanmaa) Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AL") { echo " selected"; } ?> value="AL">Albania</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "DZ") { echo " selected"; } ?> value="DZ">Algeria</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AS") { echo " selected"; } ?> value="AS">American Samoa</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AD") { echo " selected"; } ?> value="AD">Andorra</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AO") { echo " selected"; } ?> value="AO">Angola</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AI") { echo " selected"; } ?> value="AI">Anguilla</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AQ") { echo " selected"; } ?> value="AQ">Antarctica</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AG") { echo " selected"; } ?> value="AG">Antigua & Barbuda</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AR") { echo " selected"; } ?> value="AR">Argentina</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AM") { echo " selected"; } ?> value="AM">Armenia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AW") { echo " selected"; } ?> value="AW">Aruba</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AU") { echo " selected"; } ?> value="AU">Australia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AT") { echo " selected"; } ?> value="AT">Austria</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AZ") { echo " selected"; } ?> value="AZ">Azerbaijan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BS") { echo " selected"; } ?> value="BS">Bahamas</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BH") { echo " selected"; } ?> value="BH">Bahrain</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BD") { echo " selected"; } ?> value="BD">Bangladesh</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BB") { echo " selected"; } ?> value="BB">Barbados</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BY") { echo " selected"; } ?> value="BY">Belarus</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BE") { echo " selected"; } ?> value="BE">Belgium</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BZ") { echo " selected"; } ?> value="BZ">Belize</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BJ") { echo " selected"; } ?> value="BJ">Benin</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BM") { echo " selected"; } ?> value="BM">Bermuda</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BT") { echo " selected"; } ?> value="BT">Bhutan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BO") { echo " selected"; } ?> value="BO">Bolivia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BA") { echo " selected"; } ?> value="BA">Bosnia & Herzegovina</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BW") { echo " selected"; } ?> value="BW">Botswana</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BV") { echo " selected"; } ?> value="BV">Bouvet Island</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BR") { echo " selected"; } ?> value="BR">Brazil</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IO") { echo " selected"; } ?> value="IO">British Indian Ocean Territory</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BN") { echo " selected"; } ?> value="BN">Brunei Darussalam</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BG") { echo " selected"; } ?> value="BG">Bulgaria</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BF") { echo " selected"; } ?> value="BF">Burkina Faso</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "BI") { echo " selected"; } ?> value="BI">Burundi</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KH") { echo " selected"; } ?> value="KH">Cambodia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CM") { echo " selected"; } ?> value="CM">Cameroon</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CA") { echo " selected"; } ?> value="CA">Canada</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CV") { echo " selected"; } ?> value="CV">Cape Verde</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KY") { echo " selected"; } ?> value="KY">Cayman Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CF") { echo " selected"; } ?> value="CF">Central African Republic</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TD") { echo " selected"; } ?> value="TD">Chad</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CL") { echo " selected"; } ?> value="CL">Chile</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CN") { echo " selected"; } ?> value="CN">China</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CX") { echo " selected"; } ?> value="CX">Christmas Island</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CC") { echo " selected"; } ?> value="CC">Cocos (Keeling) Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CO") { echo " selected"; } ?> value="CO">Colombia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KM") { echo " selected"; } ?> value="KM">Comoros</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CG") { echo " selected"; } ?> value="CG">Congo</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CD") { echo " selected"; } ?> value="CD">Congo (Democratic Republic)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CK") { echo " selected"; } ?> value="CK">Cook Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CR") { echo " selected"; } ?> value="CR">Costa Rica</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CI") { echo " selected"; } ?> value="CI">Cote D'Ivoire</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "HR") { echo " selected"; } ?> value="HR">Croatia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CU") { echo " selected"; } ?> value="CU">Cuba</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CY") { echo " selected"; } ?> value="CY">Cyprus</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CZ") { echo " selected"; } ?> value="CZ">Czech Republic</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "DK") { echo " selected"; } ?> value="DK">Denmark</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "DJ") { echo " selected"; } ?> value="DJ">Djibouti</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "DM") { echo " selected"; } ?> value="DM">Dominica</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "DO") { echo " selected"; } ?> value="DO">Dominican Republic</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "EC") { echo " selected"; } ?> value="EC">Ecuador</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "EG") { echo " selected"; } ?> value="EG">Egypt</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SV") { echo " selected"; } ?> value="SV">El Salvador</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GQ") { echo " selected"; } ?> value="GQ">Equatorial Guinea</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ER") { echo " selected"; } ?> value="ER">Eritrea</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "EE") { echo " selected"; } ?> value="EE">Estonia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ET") { echo " selected"; } ?> value="ET">Ethiopia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "FK") { echo " selected"; } ?> value="FK">Falkland Islands (Malvinas)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "FO") { echo " selected"; } ?> value="FO">Faroe Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "FJ") { echo " selected"; } ?> value="FJ">Fiji</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "FI") { echo " selected"; } ?> value="FI">Finland</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "FR") { echo " selected"; } ?> value="FR">France</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GF") { echo " selected"; } ?> value="GF">French Guiana</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PF") { echo " selected"; } ?> value="PF">French Polynesia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TF") { echo " selected"; } ?> value="TF">French Southern Territories</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GA") { echo " selected"; } ?> value="GA">Gabon</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GM") { echo " selected"; } ?> value="GM">Gambia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GE") { echo " selected"; } ?> value="GE">Georgia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "DE") { echo " selected"; } ?> value="DE">Germany</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GH") { echo " selected"; } ?> value="GH">Ghana</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GI") { echo " selected"; } ?> value="GI">Gibraltar</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GR") { echo " selected"; } ?> value="GR">Greece</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GL") { echo " selected"; } ?> value="GL">Greenland</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GD") { echo " selected"; } ?> value="GD">Grenada</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GP") { echo " selected"; } ?> value="GP">Guadeloupe</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GU") { echo " selected"; } ?> value="GU">Guam</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GT") { echo " selected"; } ?> value="GT">Guatemala</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GG") { echo " selected"; } ?> value="GG">Guernsey</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GN") { echo " selected"; } ?> value="GN">Guinea</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GW") { echo " selected"; } ?> value="GW">Guinea-Bissau</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GY") { echo " selected"; } ?> value="GY">Guyana</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "HT") { echo " selected"; } ?> value="HT">Haiti</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "HM") { echo " selected"; } ?> value="HM">Heard Island & Mcdonald Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "VA") { echo " selected"; } ?> value="VA">Holy See (Vatican City State)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "HN") { echo " selected"; } ?> value="HN">Honduras</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "HK") { echo " selected"; } ?> value="HK">Hong Kong</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "HU") { echo " selected"; } ?> value="HU">Hungary</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IS") { echo " selected"; } ?> value="IS">Iceland</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IN") { echo " selected"; } ?> value="IN">India</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ID") { echo " selected"; } ?> value="ID">Indonesia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IR") { echo " selected"; } ?> value="IR">Iran (Islamic Republic)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IQ") { echo " selected"; } ?> value="IQ">Iraq</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IE") { echo " selected"; } ?> value="IE">Ireland</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IM") { echo " selected"; } ?> value="IM">Isle Of Man</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IL") { echo " selected"; } ?> value="IL">Israel</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "IT") { echo " selected"; } ?> value="IT">Italy</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "JM") { echo " selected"; } ?> value="JM">Jamaica</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "JP") { echo " selected"; } ?> value="JP">Japan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "JE") { echo " selected"; } ?> value="JE">Jersey</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "JO") { echo " selected"; } ?> value="JO">Jordan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KZ") { echo " selected"; } ?> value="KZ">Kazakhstan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KE") { echo " selected"; } ?> value="KE">Kenya</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KI") { echo " selected"; } ?> value="KI">Kiribati</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KP") { echo " selected"; } ?> value="KP">Korea (Democratic People's Republic)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KR") { echo " selected"; } ?> value="KR">Korea (Republic)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KW") { echo " selected"; } ?> value="KW">Kuwait</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KG") { echo " selected"; } ?> value="KG">Kyrgyzstan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LA") { echo " selected"; } ?> value="LA">Laos</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LV") { echo " selected"; } ?> value="LV">Latvia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LB") { echo " selected"; } ?> value="LB">Lebanon</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LS") { echo " selected"; } ?> value="LS">Lesotho</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LR") { echo " selected"; } ?> value="LR">Liberia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LY") { echo " selected"; } ?> value="LY">Libyan Arab Jamahiriya</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LI") { echo " selected"; } ?> value="LI">Liechtenstein</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LT") { echo " selected"; } ?> value="LT">Lithuania</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LU") { echo " selected"; } ?> value="LU">Luxembourg</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MO") { echo " selected"; } ?> value="MO">Macao</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MK") { echo " selected"; } ?> value="MK">Macedonia (Yugoslav Republic)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MG") { echo " selected"; } ?> value="MG">Madagascar</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MW") { echo " selected"; } ?> value="MW">Malawi</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MY") { echo " selected"; } ?> value="MY">Malaysia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MV") { echo " selected"; } ?> value="MV">Maldives</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ML") { echo " selected"; } ?> value="ML">Mali</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MT") { echo " selected"; } ?> value="MT">Malta</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MH") { echo " selected"; } ?> value="MH">Marshall Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MQ") { echo " selected"; } ?> value="MQ">Martinique</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MR") { echo " selected"; } ?> value="MR">Mauritania</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MU") { echo " selected"; } ?> value="MU">Mauritius</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "YT") { echo " selected"; } ?> value="YT">Mayotte</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MX") { echo " selected"; } ?> value="MX">Mexico</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "FM") { echo " selected"; } ?> value="FM">Micronesia (Federated States)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MD") { echo " selected"; } ?> value="MD">Moldova (Republic)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MC") { echo " selected"; } ?> value="MC">Monaco</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MN") { echo " selected"; } ?> value="MN">Mongolia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MS") { echo " selected"; } ?> value="MS">Montserrat</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MA") { echo " selected"; } ?> value="MA">Morocco</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MZ") { echo " selected"; } ?> value="MZ">Mozambique</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MM") { echo " selected"; } ?> value="MM">Myanmar</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NA") { echo " selected"; } ?> value="NA">Namibia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NR") { echo " selected"; } ?> value="NR">Nauru</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NP") { echo " selected"; } ?> value="NP">Nepal</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NL") { echo " selected"; } ?> value="NL">Netherlands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AN") { echo " selected"; } ?> value="AN">Netherlands Antilles</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NC") { echo " selected"; } ?> value="NC">New Caledonia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NZ") { echo " selected"; } ?> value="NZ">New Zealand</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NI") { echo " selected"; } ?> value="NI">Nicaragua</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NE") { echo " selected"; } ?> value="NE">Niger</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NG") { echo " selected"; } ?> value="NG">Nigeria</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NU") { echo " selected"; } ?> value="NU">Niue</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NF") { echo " selected"; } ?> value="NF">Norfolk Island</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "MP") { echo " selected"; } ?> value="MP">Northern Mariana Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "NO") { echo " selected"; } ?> value="NO">Norway</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "OM") { echo " selected"; } ?> value="OM">Oman</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PK") { echo " selected"; } ?> value="PK">Pakistan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PW") { echo " selected"; } ?> value="PW">Palau</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PS") { echo " selected"; } ?> value="PS">Palestinian Territory</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PA") { echo " selected"; } ?> value="PA">Panama</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PG") { echo " selected"; } ?> value="PG">Papua New Guinea</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PY") { echo " selected"; } ?> value="PY">Paraguay</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PE") { echo " selected"; } ?> value="PE">Peru</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PH") { echo " selected"; } ?> value="PH">Philippines</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PN") { echo " selected"; } ?> value="PN">Pitcairn</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PL") { echo " selected"; } ?> value="PL">Poland</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PT") { echo " selected"; } ?> value="PT">Portugal</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PR") { echo " selected"; } ?> value="PR">Puerto Rico</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "QA") { echo " selected"; } ?> value="QA">Qatar</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "RE") { echo " selected"; } ?> value="RE">Reunion</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "RO") { echo " selected"; } ?> value="RO">Romania</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "RU") { echo " selected"; } ?> value="RU">Russian Federation</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "RW") { echo " selected"; } ?> value="RW">Rwanda</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SH") { echo " selected"; } ?> value="SH">Saint Helena</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "KN") { echo " selected"; } ?> value="KN">Saint Kitts & Nevis</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LC") { echo " selected"; } ?> value="LC">Saint Lucia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "PM") { echo " selected"; } ?> value="PM">Saint Pierre & Miquelon</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "VC") { echo " selected"; } ?> value="VC">Saint Vincent & The Grenadines</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "WS") { echo " selected"; } ?> value="WS">Samoa</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SM") { echo " selected"; } ?> value="SM">San Marino</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ST") { echo " selected"; } ?> value="ST">Sao Tome & Principe</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SA") { echo " selected"; } ?> value="SA">Saudi Arabia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SN") { echo " selected"; } ?> value="SN">Senegal</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CS") { echo " selected"; } ?> value="CS">Serbia & Montenegro</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SC") { echo " selected"; } ?> value="SC">Seychelles</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SL") { echo " selected"; } ?> value="SL">Sierra Leone</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SG") { echo " selected"; } ?> value="SG">Singapore</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SK") { echo " selected"; } ?> value="SK">Slovakia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SI") { echo " selected"; } ?> value="SI">Slovenia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SB") { echo " selected"; } ?> value="SB">Solomon Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SO") { echo " selected"; } ?> value="SO">Somalia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ZA") { echo " selected"; } ?> value="ZA">South Africa</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GS") { echo " selected"; } ?> value="GS">South Georgia & The South Sandwich Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ES") { echo " selected"; } ?> value="ES">Spain</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "LK") { echo " selected"; } ?> value="LK">Sri Lanka</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SD") { echo " selected"; } ?> value="SD">Sudan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SR") { echo " selected"; } ?> value="SR">Suriname</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SJ") { echo " selected"; } ?> value="SJ">Svalbard & Jan Mayen</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SZ") { echo " selected"; } ?> value="SZ">Swaziland</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SE") { echo " selected"; } ?> value="SE">Sweden</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "CH") { echo " selected"; } ?> value="CH">Switzerland</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "SY") { echo " selected"; } ?> value="SY">Syrian Arab Republic</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TW") { echo " selected"; } ?> value="TW">Taiwan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TJ") { echo " selected"; } ?> value="TJ">Tajikistan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TZ") { echo " selected"; } ?> value="TZ">Tanzania (United Republic)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TH") { echo " selected"; } ?> value="TH">Thailand</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TL") { echo " selected"; } ?> value="TL">Timor-Leste</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TG") { echo " selected"; } ?> value="TG">Togo</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TK") { echo " selected"; } ?> value="TK">Tokelau</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TO") { echo " selected"; } ?> value="TO">Tonga</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TT") { echo " selected"; } ?> value="TT">Trinidad & Tobago</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TN") { echo " selected"; } ?> value="TN">Tunisia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TR") { echo " selected"; } ?> value="TR">Turkey</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TM") { echo " selected"; } ?> value="TM">Turkmenistan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TC") { echo " selected"; } ?> value="TC">Turks & Caicos Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "TV") { echo " selected"; } ?> value="TV">Tuvalu</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "UG") { echo " selected"; } ?> value="UG">Uganda</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "UA") { echo " selected"; } ?> value="UA">Ukraine</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "AE") { echo " selected"; } ?> value="AE">United Arab Emirates</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "GB") { echo " selected"; } ?> value="GB">United Kingdom</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "US") { echo " selected"; } ?> value="US">United States</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "UM") { echo " selected"; } ?> value="UM">United States Minor Outlying Islands</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "UY") { echo " selected"; } ?> value="UY">Uruguay</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "UZ") { echo " selected"; } ?> value="UZ">Uzbekistan</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "VU") { echo " selected"; } ?> value="VU">Vanuatu</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "VE") { echo " selected"; } ?> value="VE">Venezuela</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "VN") { echo " selected"; } ?> value="VN">Vietnam</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "VG") { echo " selected"; } ?> value="VG">Virgin Islands (British)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "VI") { echo " selected"; } ?> value="VI">Virgin Islands (US)</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "WF") { echo " selected"; } ?> value="WF">Wallis & Futuna</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "EH") { echo " selected"; } ?> value="EH">Western Sahara</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "YE") { echo " selected"; } ?> value="YE">Yemen</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ZM") { echo " selected"; } ?> value="ZM">Zambia</option>
+<option<?php if (file_get_contents("data/members/active/{$_SESSION['logged_in']}/country.txt") == "ZW") { echo " selected"; } ?> value="ZW">Zimbabwe</option>
+</select>
+
+</td></tr>
+
+<tr><td bgcolor="#ffffff"><p>city or municipality</p></td><td bgcolor="#ffffff" colspan="2"><input class="input" type="text" autocomplete="off" name="city" maxlength="100" <?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/url.txt")) { echo "value=\""; readfile("data/members/active/{$_SESSION['logged_in']}/city.txt");echo "\"";  } ?>></td></tr>
 
 <?php if (file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) { ?>
 
-<tr><td bgcolor=#ffffff><p>signature</p></td><td bgcolor=#ffffff colspan=2><textarea class=input name=sig><?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/sig.txt")) {
+<tr><td bgcolor="#ffffff"><p>signature</p></td><td bgcolor="#ffffff" colspan="2"><textarea class="input" name="sig"><?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/sig.txt")) {
 
        $get_sig = file_get_contents("data/members/active/{$_SESSION['logged_in']}/sig.txt");
        $get_sig = str_replace("<b>","[b]",$get_sig);
@@ -521,24 +794,24 @@ if (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-last.txt")) {
 
 <?php } ?>
 
-<tr><td bgcolor=#ffffff><p>upload avatar</p></td><td bgcolor=#ffffff colspan=2><input type=file autocomplete=off name=avatar></td></tr>
+<tr><td bgcolor="#ffffff"><p>upload avatar</p></td><td bgcolor="#ffffff" colspan="2"><input type="file" autocomplete="off" name="avatar"></td></tr>
 <?php
 if (file_exists("images/members/{$_SESSION['logged_in']}/avatar.gif") or file_exists("images/members/{$_SESSION['logged_in']}/avatar.jpg") or file_exists("images/members/{$_SESSION['logged_in']}/avatar.png")) { ?>
-<tr><td bgcolor=#ffffff><p></p></td><td bgcolor=#ffffff colspan=2><p><input type=checkbox name=del_avatar>delete existing avatar</p></td></tr>
+<tr><td bgcolor="#ffffff"><p></p></td><td bgcolor="#ffffff" colspan="2"><p><input type="checkbox" name="del_avatar">delete existing avatar</p></td></tr>
 <?php } if (file_exists("data/ml.txt") and !file_exists("data/members/active/{$_SESSION['logged_in']}/key.txt")) { ?>
-<tr><td bgcolor=#ffffff><p></p></td><td bgcolor=#ffffff colspan=2><p><input type=checkbox name=vacation <?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) { echo checked; } ?>>temporarily disable mailing list subscription</p></td></tr>
+<tr><td bgcolor="#ffffff"><p></p></td><td bgcolor="#ffffff" colspan="2"><p><input type="checkbox" name="vacation" <?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/vacation.txt")) { echo checked; } ?>>temporarily disable mailing list subscription</p></td></tr>
 <?php } ?>
 
 <?php if (!file_exists("data/members/active/{$_SESSION['logged_in']}/bday.txt")) { ?>
-<tr><td bgcolor=#ffffff><p>birthdate (YYYYMMDD)</p></td><td bgcolor=#ffffff colspan=2><input class=input type=text autocomplete=off name=bday maxlength=8 value=<?php echo date("Ymd", time() + $offset); ?>></td></tr>
+<tr><td bgcolor="#ffffff"><p>birthdate (YYYYMMDD)</p></td><td bgcolor="#ffffff" colspan="2"><input class="input" type="text" autocomplete="off" name="bday" maxlength="8" value="<?php echo date("Ymd", time() + $offset); ?>"></td></tr>
 <?php } ?>
 
-<tr><td bgcolor=#ffffff><p>current password</p></td><td bgcolor=#ffffff colspan=2><input class=input type=password autocomplete=off name=current_passwd maxlength=30></td></tr>
-<tr><td bgcolor=#ffffff><p>new password</p></td><td bgcolor=#ffffff width=300><input class=input type=password autocomplete=off name=new_passwd maxlength=30></td></tr>
-<tr><td bgcolor=#ffffff><p>confirm password</p></td><td bgcolor=#ffffff><input class=input type=password autocomplete=off name=confirm_passwd maxlength=30></td></tr>
-<tr><td bgcolor=#ffffff><p></p></td><td bgcolor=#ffffff><input class=input type=submit value="click here to activate new settings"></td></tr>
+<tr><td bgcolor="#ffffff"><p>current password</p></td><td bgcolor="#ffffff" colspan="2"><input class="input" type="password" autocomplete="off" name="current_passwd" maxlength="30"></td></tr>
+<tr><td bgcolor="#ffffff"><p>new password</p></td><td bgcolor="#ffffff" width="300"><input class="input" type="password" autocomplete="off" name="new_passwd" maxlength="30"></td></tr>
+<tr><td bgcolor="#ffffff"><p>confirm password</p></td><td bgcolor="#ffffff"><input class="input" type="password" autocomplete="off" name="confirm_passwd" maxlength="30"></td></tr>
+<tr><td bgcolor="#ffffff"><p></p></td><td bgcolor="#ffffff"><input class="input" type="submit" value="click here to activate new settings"></td></tr>
 </form>
 <form enctype="multipart/form-data" action="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); ?>" method="post">
-<tr><td bgcolor=#ffffff><p></p></td><td bgcolor=#ffffff><input class=input type=submit value="click here to go to the index page"></td></tr>
+<tr><td bgcolor="#ffffff"><p></p></td><td bgcolor="#ffffff"><input class="input" type="submit" value="click here to go to the index page"></td></tr>
 </form>
 </table>
diff --git a/reg.php b/reg.php
index 4db8a50..355770c 100644
--- a/reg.php
+++ b/reg.php
@@ -361,7 +361,7 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_R
        exit();
 }
 
-if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUEST['username'] != "all") and isset($_POST['captcha_put']) and !empty($_POST['captcha_get']) and isset($_POST['firstname']) and !empty($_POST['firstname']) and isset($_POST['lastname']) and !empty($_POST['lastname']) and isset($_POST['email']) and !empty($_POST['email']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_POST['captcha_get'] == $_POST['captcha_put']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email'])) and (strpos(file_get_contents("data/bb-reserved.txt"), $_REQUEST['username']) === false) and isset($_POST['bd_year']) and !empty($_POST['bd_year']) and isset($_POST['bd_month']) and !empty($_POST['bd_month']) and isset($_POST['bd_day']) and !empty($_POST['bd_day']) and (strlen($_POST['bd_year']) == "4") and (strlen($_POST['bd_month']) == "2") and (strlen($_POST['bd_day']) == "2") and is_numeric($_POST['bd_year']) and is_numeric($_POST['bd_month']) and is_numeric($_POST['bd_day']) and ((date("Y", time() + $offset) - $_POST['bd_year']) <= $maxage) and ((date("Y", time() + $offset) - $_POST['bd_year']) >= $minage) and ($_POST['bd_month'] >= 1) and ($_POST['bd_month'] <= 12) and ($_POST['bd_day'] >= 1) and ($_POST['bd_day'] <= 31)) {
+if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUEST['username'] != "all") and isset($_POST['captcha_put']) and !empty($_POST['captcha_get']) and isset($_POST['firstname']) and !empty($_POST['firstname']) and isset($_POST['lastname']) and !empty($_POST['lastname']) and isset($_POST['email']) and !empty($_POST['email']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_POST['captcha_get'] == $_POST['captcha_put']) and (ereg("@", $_POST['email'])) and (ereg("\.", $_POST['email'])) and (strpos(file_get_contents("data/bb-reserved.txt"), $_REQUEST['username']) === false) and isset($_POST['bd_year']) and !empty($_POST['bd_year']) and isset($_POST['bd_month']) and !empty($_POST['bd_month']) and isset($_POST['bd_day']) and !empty($_POST['bd_day']) and (strlen($_POST['bd_year']) == "4") and (strlen($_POST['bd_month']) == "2") and (strlen($_POST['bd_day']) == "2") and is_numeric($_POST['bd_year']) and is_numeric($_POST['bd_month']) and is_numeric($_POST['bd_day']) and ((date("Y", time() + $offset) - $_POST['bd_year']) <= $maxage) and ((date("Y", time() + $offset) - $_POST['bd_year']) >= $minage) and ($_POST['bd_month'] >= 1) and ($_POST['bd_month'] <= 12) and ($_POST['bd_day'] >= 1) and ($_POST['bd_day'] <= 31) and isset($_POST['country']) and !empty($_POST['country']) and isset($_POST['city']) and !empty($_POST['city'])) {
 
        $username = strtolower($_REQUEST['username']);
        $username = str_replace(" ","_",$username);
@@ -380,8 +380,17 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUES
       
        $email = strtolower($_POST['email']);
        $email = trim($email);
+       $email = str_replace(" ","",$email);
        $email = htmlentities($email, ENT_NOQUOTES);
 
+       $country = trim($_POST['country']);
+       $country = strtoupper($country);
+
+       $city = strtolower($_POST['city']);
+       $city = ucwords($city);
+       $city = trim($city);
+       $city = htmlentities($city, ENT_NOQUOTES);
+
        if (!file_exists("data/members")) {
                mkdir("data/members");
        }
@@ -415,12 +424,21 @@ if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and ($_REQUES
                        $url = strtolower($url);
                        $url = trim($url);
                        $url = 'http://' . $url;
+                       $url = str_replace(" ","",$url);
                        $url = htmlentities($url, ENT_NOQUOTES);
                        $fp_url_txt = fopen("data/members/pending/$username/url.txt","w");
                        fwrite($fp_url_txt,$url);
                        fclose($fp_url_txt);
                }
 
+               $fp_country_txt = fopen("data/members/pending/$username/country.txt","w");
+               fwrite($fp_country_txt,$country);
+               fclose($fp_country_txt);
+
+               $fp_city_txt = fopen("data/members/pending/$username/city.txt","w");
+               fwrite($fp_city_txt,$city);
+               fclose($fp_city_txt);
+
                $key = str_rand(40);
 
                $fp_key_txt = fopen("data/members/pending/$username/key.txt","w");
@@ -481,6 +499,260 @@ if (file_exists("data/bb-disclaimer.txt")) {
 <tr><td width=100><p>E-mail Address</p></td><td colspan=3><input class=input type=text autocomplete=off name=email maxlength=60></td></tr>
 <tr><td width=100><p>Birthdate</p></td><td><input class=bd type=text autocomplete=off name=bd_year maxlength=4 value=<?php echo date("Y", time() + $offset); ?>></td><td><input class=bd type=text autocomplete=off name=bd_month maxlength=2 value=<?php echo date("m", time() + $offset); ?>></td><td><input class=bd type=text autocomplete=off name=bd_day maxlength=2 value=<?php echo date("d", time() + $offset); ?>></td></tr>
 <tr><td width=100><p>Website</p></td><td colspan=3><input class=input type=text autocomplete=off name=url maxlength=300></td></tr>
+
+<tr><td width=100><p>Country</p></td><td colspan=3>
+
+<select class="input" name="country">
+<option value=""></option>
+<option value="AF">Afghanistan</option>
+<option value="AX">Aland (Ahvenanmaa) Islands</option>
+<option value="AL">Albania</option>
+<option value="DZ">Algeria</option>
+<option value="AS">American Samoa</option>
+<option value="AD">Andorra</option>
+<option value="AO">Angola</option>
+<option value="AI">Anguilla</option>
+<option value="AQ">Antarctica</option>
+<option value="AG">Antigua & Barbuda</option>
+<option value="AR">Argentina</option>
+<option value="AM">Armenia</option>
+<option value="AW">Aruba</option>
+<option value="AU">Australia</option>
+<option value="AT">Austria</option>
+<option value="AZ">Azerbaijan</option>
+<option value="BS">Bahamas</option>
+<option value="BH">Bahrain</option>
+<option value="BD">Bangladesh</option>
+<option value="BB">Barbados</option>
+<option value="BY">Belarus</option>
+<option value="BE">Belgium</option>
+<option value="BZ">Belize</option>
+<option value="BJ">Benin</option>
+<option value="BM">Bermuda</option>
+<option value="BT">Bhutan</option>
+<option value="BO">Bolivia</option>
+<option value="BA">Bosnia & Herzegovina</option>
+<option value="BW">Botswana</option>
+<option value="BV">Bouvet Island</option>
+<option value="BR">Brazil</option>
+<option value="IO">British Indian Ocean Territory</option>
+<option value="BN">Brunei Darussalam</option>
+<option value="BG">Bulgaria</option>
+<option value="BF">Burkina Faso</option>
+<option value="BI">Burundi</option>
+<option value="KH">Cambodia</option>
+<option value="CM">Cameroon</option>
+<option value="CA">Canada</option>
+<option value="CV">Cape Verde</option>
+<option value="KY">Cayman Islands</option>
+<option value="CF">Central African Republic</option>
+<option value="TD">Chad</option>
+<option value="CL">Chile</option>
+<option value="CN">China</option>
+<option value="CX">Christmas Island</option>
+<option value="CC">Cocos (Keeling) Islands</option>
+<option value="CO">Colombia</option>
+<option value="KM">Comoros</option>
+<option value="CG">Congo</option>
+<option value="CD">Congo (Democratic Republic)</option>
+<option value="CK">Cook Islands</option>
+<option value="CR">Costa Rica</option>
+<option value="CI">Cote D'Ivoire</option>
+<option value="HR">Croatia</option>
+<option value="CU">Cuba</option>
+<option value="CY">Cyprus</option>
+<option value="CZ">Czech Republic</option>
+<option value="DK">Denmark</option>
+<option value="DJ">Djibouti</option>
+<option value="DM">Dominica</option>
+<option value="DO">Dominican Republic</option>
+<option value="EC">Ecuador</option>
+<option value="EG">Egypt</option>
+<option value="SV">El Salvador</option>
+<option value="GQ">Equatorial Guinea</option>
+<option value="ER">Eritrea</option>
+<option value="EE">Estonia</option>
+<option value="ET">Ethiopia</option>
+<option value="FK">Falkland Islands (Malvinas)</option>
+<option value="FO">Faroe Islands</option>
+<option value="FJ">Fiji</option>
+<option value="FI">Finland</option>
+<option value="FR">France</option>
+<option value="GF">French Guiana</option>
+<option value="PF">French Polynesia</option>
+<option value="TF">French Southern Territories</option>
+<option value="GA">Gabon</option>
+<option value="GM">Gambia</option>
+<option value="GE">Georgia</option>
+<option value="DE">Germany</option>
+<option value="GH">Ghana</option>
+<option value="GI">Gibraltar</option>
+<option value="GR">Greece</option>
+<option value="GL">Greenland</option>
+<option value="GD">Grenada</option>
+<option value="GP">Guadeloupe</option>
+<option value="GU">Guam</option>
+<option value="GT">Guatemala</option>
+<option value="GG">Guernsey</option>
+<option value="GN">Guinea</option>
+<option value="GW">Guinea-Bissau</option>
+<option value="GY">Guyana</option>
+<option value="HT">Haiti</option>
+<option value="HM">Heard Island & Mcdonald Islands</option>
+<option value="VA">Holy See (Vatican City State)</option>
+<option value="HN">Honduras</option>
+<option value="HK">Hong Kong</option>
+<option value="HU">Hungary</option>
+<option value="IS">Iceland</option>
+<option value="IN">India</option>
+<option value="ID">Indonesia</option>
+<option value="IR">Iran (Islamic Republic)</option>
+<option value="IQ">Iraq</option>
+<option value="IE">Ireland</option>
+<option value="IM">Isle Of Man</option>
+<option value="IL">Israel</option>
+<option value="IT">Italy</option>
+<option value="JM">Jamaica</option>
+<option value="JP">Japan</option>
+<option value="JE">Jersey</option>
+<option value="JO">Jordan</option>
+<option value="KZ">Kazakhstan</option>
+<option value="KE">Kenya</option>
+<option value="KI">Kiribati</option>
+<option value="KP">Korea (Democratic People's Republic)</option>
+<option value="KR">Korea (Republic)</option>
+<option value="KW">Kuwait</option>
+<option value="KG">Kyrgyzstan</option>
+<option value="LA">Laos</option>
+<option value="LV">Latvia</option>
+<option value="LB">Lebanon</option>
+<option value="LS">Lesotho</option>
+<option value="LR">Liberia</option>
+<option value="LY">Libyan Arab Jamahiriya</option>
+<option value="LI">Liechtenstein</option>
+<option value="LT">Lithuania</option>
+<option value="LU">Luxembourg</option>
+<option value="MO">Macao</option>
+<option value="MK">Macedonia (Yugoslav Republic)</option>
+<option value="MG">Madagascar</option>
+<option value="MW">Malawi</option>
+<option value="MY">Malaysia</option>
+<option value="MV">Maldives</option>
+<option value="ML">Mali</option>
+<option value="MT">Malta</option>
+<option value="MH">Marshall Islands</option>
+<option value="MQ">Martinique</option>
+<option value="MR">Mauritania</option>
+<option value="MU">Mauritius</option>
+<option value="YT">Mayotte</option>
+<option value="MX">Mexico</option>
+<option value="FM">Micronesia (Federated States)</option>
+<option value="MD">Moldova (Republic)</option>
+<option value="MC">Monaco</option>
+<option value="MN">Mongolia</option>
+<option value="MS">Montserrat</option>
+<option value="MA">Morocco</option>
+<option value="MZ">Mozambique</option>
+<option value="MM">Myanmar</option>
+<option value="NA">Namibia</option>
+<option value="NR">Nauru</option>
+<option value="NP">Nepal</option>
+<option value="NL">Netherlands</option>
+<option value="AN">Netherlands Antilles</option>
+<option value="NC">New Caledonia</option>
+<option value="NZ">New Zealand</option>
+<option value="NI">Nicaragua</option>
+<option value="NE">Niger</option>
+<option value="NG">Nigeria</option>
+<option value="NU">Niue</option>
+<option value="NF">Norfolk Island</option>
+<option value="MP">Northern Mariana Islands</option>
+<option value="NO">Norway</option>
+<option value="OM">Oman</option>
+<option value="PK">Pakistan</option>
+<option value="PW">Palau</option>
+<option value="PS">Palestinian Territory</option>
+<option value="PA">Panama</option>
+<option value="PG">Papua New Guinea</option>
+<option value="PY">Paraguay</option>
+<option value="PE">Peru</option>
+<option value="PH">Philippines</option>
+<option value="PN">Pitcairn</option>
+<option value="PL">Poland</option>
+<option value="PT">Portugal</option>
+<option value="PR">Puerto Rico</option>
+<option value="QA">Qatar</option>
+<option value="RE">Reunion</option>
+<option value="RO">Romania</option>
+<option value="RU">Russian Federation</option>
+<option value="RW">Rwanda</option>
+<option value="SH">Saint Helena</option>
+<option value="KN">Saint Kitts & Nevis</option>
+<option value="LC">Saint Lucia</option>
+<option value="PM">Saint Pierre & Miquelon</option>
+<option value="VC">Saint Vincent & The Grenadines</option>
+<option value="WS">Samoa</option>
+<option value="SM">San Marino</option>
+<option value="ST">Sao Tome & Principe</option>
+<option value="SA">Saudi Arabia</option>
+<option value="SN">Senegal</option>
+<option value="CS">Serbia & Montenegro</option>
+<option value="SC">Seychelles</option>
+<option value="SL">Sierra Leone</option>
+<option value="SG">Singapore</option>
+<option value="SK">Slovakia</option>
+<option value="SI">Slovenia</option>
+<option value="SB">Solomon Islands</option>
+<option value="SO">Somalia</option>
+<option value="ZA">South Africa</option>
+<option value="GS">South Georgia & The South Sandwich Islands</option>
+<option value="ES">Spain</option>
+<option value="LK">Sri Lanka</option>
+<option value="SD">Sudan</option>
+<option value="SR">Suriname</option>
+<option value="SJ">Svalbard & Jan Mayen</option>
+<option value="SZ">Swaziland</option>
+<option value="SE">Sweden</option>
+<option value="CH">Switzerland</option>
+<option value="SY">Syrian Arab Republic</option>
+<option value="TW">Taiwan</option>
+<option value="TJ">Tajikistan</option>
+<option value="TZ">Tanzania (United Republic)</option>
+<option value="TH">Thailand</option>
+<option value="TL">Timor-Leste</option>
+<option value="TG">Togo</option>
+<option value="TK">Tokelau</option>
+<option value="TO">Tonga</option>
+<option value="TT">Trinidad & Tobago</option>
+<option value="TN">Tunisia</option>
+<option value="TR">Turkey</option>
+<option value="TM">Turkmenistan</option>
+<option value="TC">Turks & Caicos Islands</option>
+<option value="TV">Tuvalu</option>
+<option value="UG">Uganda</option>
+<option value="UA">Ukraine</option>
+<option value="AE">United Arab Emirates</option>
+<option value="GB">United Kingdom</option>
+<option value="US">United States</option>
+<option value="UM">United States Minor Outlying Islands</option>
+<option value="UY">Uruguay</option>
+<option value="UZ">Uzbekistan</option>
+<option value="VU">Vanuatu</option>
+<option value="VE">Venezuela</option>
+<option value="VN">Vietnam</option>
+<option value="VG">Virgin Islands (British)</option>
+<option value="VI">Virgin Islands (US)</option>
+<option value="WF">Wallis & Futuna</option>
+<option value="EH">Western Sahara</option>
+<option value="YE">Yemen</option>
+<option value="ZM">Zambia</option>
+<option value="ZW">Zimbabwe</option>
+</select>
+
+</td></tr>
+
+<tr><td width=100><p>City or Municipality</p></td><td colspan=3><input class=input type=text autocomplete=off name=city maxlength=100></td></tr>
+
 <tr><td width=100><p>Registration Code</p></td><td colspan=3><input class=input type=text autocomplete=off name=captcha_put maxlength=7></td></tr>
 <tr><td><p></p></td><td colspan=3><input class=input type=submit value="click here to submit your registration"></td></tr>
 </form>
 
Credits
Sunday, Sep 18, 2005, 12:00 AM (Revision 11 - Thursday, Jul 14, 2011, 7:30 PM)
Open Source enables software developers to stand on the shoulders of giants instead of reinventing the wheel, so to speak. Kudos and many thanks to the folks who made their work freely available for reuse in MAJ.

read more
Bugs and Exploits
Friday, Aug 26, 2005, 12:00 AM (Revision 23 - Wednesday, May 29, 2013, 5:25 AM)
Although MAJ started as a family project, care has been taken to make it as "safe" as possible. With more people now working on MAJ, bugs and exploitable code may sometimes slip in. We invite you to poke around and see if you can find any. Generally, there are two things you can do when you find a MAJ or PHP-related bug or exploit:

1. Take advantage of it. But hey, what's so exciting about messing up someone's blog? Ho-hum, right?
2. Report it here so that we can work on a fix and make MAJ better.

read more
Search
Download
MAJ 2.0
75 files
32977 downloads
MAJ 1.0
26 files
13132 downloads
MAJ 0.14
45 files
35010 downloads