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 blob has been accessed 669 times via Git panel.

  1. <?php
  2.  
  3. require("core.php");
  4.  
  5.  
  6. if (file_exists("$maj_data_directory/lite.txt")) {
  7.         exit();
  8. }
  9.  
  10. if (!file_exists("$maj_data_directory/bb.txt")) {
  11.         exit();
  12. }
  13.  
  14. if (file_exists("$maj_data_directory/bb-min-age.txt")) {
  15.         $minage = file_get_contents("$maj_data_directory/bb-min-age.txt");
  16. }
  17. else {
  18.         $minage = 5;
  19. }
  20.  
  21. if (file_exists("$maj_data_directory/bb-max-age.txt")) {
  22.         $maxage = file_get_contents("$maj_data_directory/bb-max-age.txt");
  23. }
  24. else {
  25.         $maxage = 125;
  26. }
  27.  
  28. echo "<title>Options</title>";
  29.  
  30. include("css.php");
  31.  
  32. echo "\n<style>body { margin: {$maj_wspace}px; }</style>\n";
  33.  
  34. if (isset($_REQUEST['username']) and !empty($_REQUEST['username']) and isset($_REQUEST['key']) and !empty($_REQUEST['key'])) {
  35.  
  36.         $username = $_REQUEST['username'];
  37.  
  38.         if (file_exists("$maj_data_directory/members/active/$username") and ($_REQUEST['key'] == file_get_contents("$maj_data_directory/members/active/$username/key.txt"))) {
  39.                 unlink("$maj_data_directory/members/active/$username/key.txt");
  40.                 unlink("$maj_data_directory/members/active/$username/bb-vacation.txt");
  41.                 unlink("$maj_data_directory/members/active/$username/email.txt");
  42.                 rename("$maj_data_directory/members/active/$username/new-email.txt","$maj_data_directory/members/active/$username/email.txt");
  43.                 echo "<font style=\"font-size: 12px;\"><b>Thanks!</b></font>You have successfully verified your new e-mail address.<br>Click <a href=index.php>here</a> to go to the index page.";
  44.         }
  45.         exit();
  46. }
  47.  
  48. if (!isset($maj_logged_in_username)) {
  49.         exit();
  50. }
  51.  
  52. if ($maj_logged_in_username == $maj_admin_username) {
  53.         exit();
  54. }
  55.  
  56. if (!file_exists("$maj_data_directory/members/active/$maj_logged_in_username")) {
  57.         exit();
  58. }
  59.  
  60. if (isset($_POST['email']) and !empty($_POST['email']) and (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/email.txt") != $_POST['email']) and (mb_ereg("@", $_POST['email'])) and (mb_ereg("\.", $_POST['email']))) {
  61.  
  62.         $email_write_content = mb_strtolower($_POST['email']);
  63.         $email_write_content = trim($email_write_content);
  64.         $email_write_content = str_replace(" ","",$email_write_content);
  65.         $email_write_content = htmlentities($email_write_content, ENT_QUOTES, 'UTF-8');
  66.  
  67.         $fp_email_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/new-email.txt","w");
  68.         fwrite($fp_email_txt,$email_write_content);
  69.         fclose($fp_email_txt);
  70.  
  71.         $key_email = str_rand(40);
  72.  
  73.         $fp_key_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/key.txt","w");
  74.         fwrite($fp_key_txt,$key_email);
  75.         fclose($fp_key_txt);
  76.  
  77.         $firstname = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/firstname.txt");
  78.         $lastname = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/lastname.txt");
  79.  
  80.         $old_email = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/email.txt");
  81.  
  82.         $sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  83.         $sig_url = str_replace('//', '/', $sig_url);
  84.         $sig_url = "http://" . $sig_url;
  85.  
  86.         $sig_author = file_get_contents("$maj_data_directory/author.txt");
  87.         $from_email = file_get_contents("$maj_data_directory/email.txt");
  88.  
  89.         $confirm_change = "Hi $firstname,\n\nWe have received an e-mail address modification request ($old_email to $email_write_content) at $sig_url. To confirm this, simply visit this link:\n\n{$sig_url}options.php?username={$maj_logged_in_username}&key=$key_email\n\nIf you have any questions, send them to $from_email.\n\nThanks!\n\n--\n$sig_author\n$sig_url\n";
  90.         //$confirm_change = wordwrap($confirm_change);
  91.  
  92.         $email_to = '"' . "$firstname $lastname" . '" <' . $email_write_content . '>';
  93.         $email_from = '"' . $sig_author . '" <' . $from_email . '>';
  94.  
  95.         mb_send_mail($email_to, "confirm $key_email", $confirm_change,
  96.                 "From: $email_from\r\n" .
  97.                 "Reply-To: $email_from\r\n" .
  98.                 "X-Mailer: $maj_mailer");
  99.  
  100.         echo "Confirmation request sent. Check your $email_write_content inbox for details.";
  101. }
  102.  
  103. if (isset($_POST['tel']) and !empty($_POST['tel']) and (mb_strlen(preg_replace("/[^0-9]/","", $_POST['tel'])) > 6)) {
  104.  
  105.         $tel = strip_tags($_POST['tel']);
  106.         $tel = htmlentities($tel, ENT_QUOTES, 'UTF-8');
  107.         $tel = trim($tel);
  108.  
  109.         $tel = preg_replace('/[^0-9+]/i','',$tel);
  110.  
  111.         if (preg_match("/^\+/",$tel)) {
  112.  
  113.                 $tel = preg_replace('/[^0-9]/i','',$tel);
  114.                 $tel = '+' . $tel;
  115.         }
  116.         else {
  117.                 $tel = preg_replace('/[^0-9]/i','',$tel);
  118.         }
  119.  
  120.         $fp_tel_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/tel.txt","w");
  121.         fwrite($fp_tel_txt,$tel);
  122.         fclose($fp_tel_txt);
  123. }
  124.  
  125. if (isset($_POST['org']) and !empty($_POST['org']) and (strlen($_POST['org']) > 2)) {
  126.  
  127.         $org = trim(strip_tags($_POST['org']));
  128.         $org = htmlentities($org, ENT_QUOTES, 'UTF-8');
  129.         $org = format_title_put($org);
  130.  
  131.         $fp_org_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/org.txt","w");
  132.         fwrite($fp_org_txt,$org);
  133.         fclose($fp_org_txt);
  134. }
  135.  
  136. if ((!isset($_POST['url']) or empty($_POST['url'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
  137.         unlink("$maj_data_directory/members/active/$maj_logged_in_username/url.txt");
  138. }
  139.  
  140. if (isset($_POST['url']) and !empty($_POST['url']) and (mb_ereg("\.", $_POST['url']))) {
  141.  
  142.         $url = strip_tags($_POST['url']);
  143.         $url = str_replace('http://', '', $url);
  144.         $url = mb_strtolower($url);
  145.         $url = trim($url);
  146.         $url = 'http://' . $url;
  147.         $url = str_replace(" ","",$url);
  148.         $url = htmlentities($url, ENT_QUOTES, 'UTF-8');
  149.  
  150.         $fp_url_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/url.txt","w");
  151.         fwrite($fp_url_txt,$url);
  152.         fclose($fp_url_txt);
  153. }
  154.  
  155. if (isset($_POST['country']) and !empty($_POST['country'])) {
  156.  
  157.         $country = strip_tags($_POST['country']);
  158.         $country = trim($country);
  159.         $country = mb_strtoupper($country);
  160.         $country = htmlentities($country, ENT_QUOTES, 'UTF-8');
  161.  
  162.         $fp_country_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/country.txt","w");
  163.         fwrite($fp_country_txt,$country);
  164.         fclose($fp_country_txt);
  165. }
  166.  
  167. if (isset($_POST['city']) and !empty($_POST['city'])) {
  168.  
  169.         $city = strip_tags($_POST['city']);
  170.         $city = trim($city);
  171.         $city = ucwords($city);
  172.         $city = htmlentities($city, ENT_QUOTES, 'UTF-8');
  173.  
  174.         $fp_city_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/city.txt","w");
  175.         fwrite($fp_city_txt,$city);
  176.         fclose($fp_city_txt);
  177. }
  178.  
  179. if ((!isset($_POST['sig']) or empty($_POST['sig'])) and isset($_POST['edit']) and ($_POST['edit'] == "on")) {
  180.         unlink("$maj_data_directory/members/active/$maj_logged_in_username/sig.txt");
  181. }
  182.  
  183. if (isset($_POST['sig']) and !empty($_POST['sig'])) {
  184.  
  185.         $sig = strip_tags($_POST['sig']);
  186.         $sig = str_replace("[b]","<b>",$sig);
  187.         $sig = str_replace("[/b]","</b>",$sig);
  188.         $sig = str_replace("[i]","<i>",$sig);
  189.         $sig = str_replace("[/i]","</i>",$sig);
  190.         $sig = str_replace("[u]","<u>",$sig);
  191.         $sig = str_replace("[/u]","</u>",$sig);
  192.         $sig = str_replace("[sup]","<sup>",$sig);
  193.         $sig = str_replace("[/sup]","</sup>",$sig);
  194.         $sig = str_replace("[sub]","<sub>",$sig);
  195.         $sig = str_replace("[/sub]","</sub>",$sig);
  196.         $sig = str_replace("[strike]","<strike>",$sig);
  197.         $sig = str_replace("[/strike]","</strike>",$sig);
  198.         $sig = str_replace("\n","<br>", $sig);
  199.         $sig = ucfirst($sig);
  200.         $sig = trim($sig);
  201.  
  202.         $fp_sig_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/sig.txt","w");
  203.         fwrite($fp_sig_txt,$sig);
  204.         fclose($fp_sig_txt);
  205. }
  206.  
  207. if (isset($_POST['del_avatar']) and !empty($_POST['del_avatar']) and ($_POST['del_avatar'] == "on")) {
  208.         if (file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.gif")) {
  209.                 unlink("$maj_image_directory/members/$maj_logged_in_username/avatar.gif");
  210.         }
  211.  
  212.         if (file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.jpg")) {
  213.                 unlink("$maj_image_directory/members/$maj_logged_in_username/avatar.jpg");
  214.         }
  215.  
  216.         if (file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.png")) {
  217.                 unlink("$maj_image_directory/members/$maj_logged_in_username/avatar.png");
  218.         }
  219. }
  220.  
  221. if (isset($_FILES['avatar']) and !empty($_FILES['avatar'])) {
  222.  
  223.         if (is_uploaded_file($_FILES['avatar']['tmp_name'])) {
  224.  
  225.                 if ($_FILES['avatar']['size']<=$max_file_size) {
  226.  
  227.                         if (($_FILES['avatar']['type']=="image/gif") || ($_FILES['avatar']['type']=="image/pjpeg") || ($_FILES['avatar']['type']=="image/jpeg") || ($_FILES['avatar']['type']=="image/png")) {
  228.  
  229.                                 if (!file_exists("$maj_image_directory/members")) {
  230.                                         mkdir("$maj_image_directory/members");
  231.                                 }
  232.  
  233.                                 if (!file_exists("$maj_image_directory/members/$maj_logged_in_username")) {
  234.                                         mkdir("$maj_image_directory/members/$maj_logged_in_username");
  235.                                 }
  236.  
  237.                                 if (file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.gif")) {
  238.                                         unlink("$maj_image_directory/members/$maj_logged_in_username/avatar.gif");
  239.                                 }
  240.  
  241.                                 if (file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.jpg")) {
  242.                                         unlink("$maj_image_directory/members/$maj_logged_in_username/avatar.jpg");
  243.                                 }
  244.  
  245.                                 if (file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.png")) {
  246.                                         unlink("$maj_image_directory/members/$maj_logged_in_username/avatar.png");
  247.                                 }
  248.  
  249.                                 if ($_FILES['avatar']['type']=="image/gif") {
  250.                                         $res = copy($_FILES['avatar']['tmp_name'], "$maj_image_directory/members/$maj_logged_in_username/avatar.gif");
  251.                                         unlink($_FILES['avatar']['tmp_name']);
  252.                                 }
  253.  
  254.                                 if (($_FILES['avatar']['type']=="image/jpeg") or ($_FILES['avatar']['type']=="image/pjpeg")) {
  255.                                         $res = copy($_FILES['avatar']['tmp_name'], "$maj_image_directory/members/$maj_logged_in_username/avatar.jpg");
  256.                                         unlink($_FILES['avatar']['tmp_name']);
  257.                                 }
  258.  
  259.                                 if ($_FILES['avatar']['type']=="image/png") {
  260.                                         $res = copy($_FILES['avatar']['tmp_name'], "$maj_image_directory/members/$maj_logged_in_username/avatar.png");
  261.                                         unlink($_FILES['avatar']['tmp_name']);
  262.                                 }
  263.                         }
  264.                         else {
  265.                                 unlink($_FILES['avatar']['tmp_name']);
  266.                         }
  267.                 }
  268.                 else {
  269.                         unlink($_FILES['avatar']['tmp_name']);
  270.                 }
  271.         }
  272.         else {
  273.                 unlink($_FILES['avatar']['tmp_name']);
  274.         }
  275. }
  276.  
  277. if (isset($_POST['vacation']) and !empty($_POST['vacation']) and ($_POST['vacation'] == "on") and !file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bb-vacation.txt")) {
  278.         touch("$maj_data_directory/members/active/$maj_logged_in_username/bb-vacation.txt");
  279. }
  280.  
  281. if (!isset($_POST['vacation']) or empty($_POST['vacation'])) {
  282.         if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
  283.                 if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bb-vacation.txt")) {
  284.                         unlink("$maj_data_directory/members/active/$maj_logged_in_username/bb-vacation.txt");
  285.                 }
  286.         }
  287. }
  288.  
  289. if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/key.txt") and !file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bb-vacation.txt")) {
  290.         touch("$maj_data_directory/members/active/$maj_logged_in_username/bb-vacation.txt");
  291. }
  292.  
  293.  
  294. if (isset($_POST['bday']) and !empty($_POST['bday']) and (mb_strlen($_POST['bday']) == "8") and is_numeric($_POST['bday']) and ((round((date("Ymd", time() + $maj_offset) - $_POST['bday']) * 0.0001)) >= $minage) and ((round((date("Ymd", time() + $maj_offset) - $_POST['bday']) * 0.0001)) <= $maxage)) {
  295.  
  296.         $fp_bday_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/bday.txt","w");
  297.         fwrite($fp_bday_txt,strip_tags($_POST['bday']));
  298.         fclose($fp_bday_txt);
  299.  
  300. }
  301.  
  302. if (isset($_POST['current_passwd']) and !empty($_POST['current_passwd']) and isset($_POST['new_passwd']) and !empty($_POST['new_passwd']) and isset($_POST['confirm_passwd']) and !empty($_POST['confirm_passwd'])) {
  303.  
  304.         if (file_exists("$maj_data_directory/bb-passlen.txt")) {
  305.                 $pass_len = file_get_contents("$maj_data_directory/bb-passlen.txt");
  306.         }
  307.         else {
  308.                 $pass_len = 8;
  309.         }
  310.  
  311.         $current_passwd = trim($_POST['current_passwd']);
  312.         $new_passwd = trim($_POST['new_passwd']);
  313.         $confirm_passwd = trim($_POST['confirm_passwd']);
  314.  
  315.         if ((mb_strlen($new_passwd) < $pass_len) or (mb_strlen($confirm_passwd) < $pass_len)) {
  316.                 echo "Passwords must be composed of at least $pass_len characters.";
  317.         }
  318.         else {
  319.                 /* Fun with crypt! */
  320.                 $current_passwd = sha1($current_passwd);
  321.                 $current_passwd = md5($current_passwd);
  322.                 $current_passwd = crypt($current_passwd, $current_passwd);
  323.                 $new_passwd = sha1($new_passwd);
  324.                 $new_passwd = md5($new_passwd);
  325.                 $new_passwd = crypt($new_passwd, $new_passwd);
  326.                 $confirm_passwd = sha1($confirm_passwd);
  327.                 $confirm_passwd = md5($confirm_passwd);
  328.                 $confirm_passwd = crypt($confirm_passwd, $confirm_passwd);
  329.                
  330.                 if (($current_passwd != file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/password.txt")) or ($new_passwd != $confirm_passwd)) {
  331.                         echo "Passwords do not match.";
  332.                 }
  333.                 else {
  334.                         $fp_passwd_txt = fopen("$maj_data_directory/members/active/$maj_logged_in_username/password.txt","w");
  335.                         fwrite($fp_passwd_txt,$new_passwd);
  336.                         fclose($fp_passwd_txt);
  337.                         $login_url = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/login.php";
  338.                         $login_url = str_replace("//login.php", "/login.php", $login_url);
  339.                         echo "Password successfully changed and encrypted on record.";
  340.                 }
  341.         }
  342. }
  343.  
  344. ?>
  345.  
  346. <table border="0" cellspacing="1" cellpadding="2" bgcolor="#cccccc">
  347.  
  348. <tr><td bgcolor="#ffffff" colspan="2" align="right">you are logged in as <b><?php echo "<b>{$maj_logged_in_username}</b>"; ?>&nbsp;&nbsp;</b></td></tr>
  349.  
  350. <tr><td bgcolor="#ffffff" width="<?php echo $maj_ablock; ?>" align="center"><?php maj_avatar_image($maj_logged_in_username,$maj_aimage,0,0); ?></td><td bgcolor="#ffffff">
  351.  
  352. <?php
  353.  
  354. echo "<b>";
  355. readfile("$maj_data_directory/members/active/$maj_logged_in_username/firstname.txt");
  356. echo " ";
  357. readfile("$maj_data_directory/members/active/$maj_logged_in_username/lastname.txt");
  358. echo "</b>";
  359.  
  360. if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/rank.txt") and file_exists("$maj_data_directory/rank.txt")) {
  361.         $rank = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/rank.txt");
  362.         echo "<br>$rank";
  363. }
  364. elseif (!file_exists("$maj_data_directory/members/active/$maj_logged_in_username/rank.txt") and file_exists("$maj_data_directory/rank.txt")) {
  365.         echo "<br>member";
  366. }
  367.  
  368. echo "<p align=right>";
  369.  
  370. if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bday.txt")) {
  371.  
  372.         $bday = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/bday.txt");
  373.         $bday_year = mb_substr($bday,0,4);
  374.         $bday_month = mb_substr($bday,4,2);
  375.         $bday_day = mb_substr($bday,6,2);
  376.         $bday = date("d M Y [D]", mktime(0, 0, 0, $bday_month, $bday_day, $bday_year));
  377.         echo "birthdate<code>&nbsp;$bday&nbsp;</code><br>";
  378. }
  379.  
  380. if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/timestamp.txt")) {
  381.         $joined = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/timestamp.txt");
  382.         $joined_year = mb_substr($joined,0,4);
  383.         $joined_month = mb_substr($joined,4,2);
  384.         $joined_day = mb_substr($joined,6,2);
  385.         $joined_hh = mb_substr($joined,8,2);
  386.         $joined_mm = mb_substr($joined,10,2);
  387.         $member_since = date("d M Y H:i", mktime($joined_hh, $joined_mm, 0, $joined_month, $joined_day, $joined_year));
  388.         echo "member since<code>&nbsp;$member_since&nbsp;</code><br>";
  389. }
  390.  
  391. if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bb-last.txt")) {
  392.         $lastlog = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/bb-last.txt");
  393.         $lastlog_year = mb_substr($lastlog,0,4);
  394.         $lastlog_month = mb_substr($lastlog,4,2);
  395.         $lastlog_day = mb_substr($lastlog,6,2);
  396.         $lastlog_hh = mb_substr($lastlog,8,2);
  397.         $lastlog_mm = mb_substr($lastlog,10,2);
  398.         $last_login = date("d M Y H:i", mktime($lastlog_hh, $lastlog_mm, 0, $lastlog_month, $lastlog_day, $lastlog_year));
  399.         echo "last login<code>&nbsp;$last_login&nbsp;</code>";
  400. }
  401.  
  402. ?>
  403.  
  404. </td></tr>
  405.  
  406. <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  407. <input type="hidden" name="edit" value="on">
  408.  
  409. <?php if (!file_exists("$maj_data_directory/members/active/$maj_logged_in_username/key.txt")) { ?>
  410. <tr><td bgcolor="#ffffff">e-mail address*</td><td bgcolor="#ffffff" colspan="2"><input autofocus required class="input" type="email" autocomplete="off" name="email" maxlength="60" value="<?php readfile("$maj_data_directory/members/active/$maj_logged_in_username/email.txt"); ?>"></td></tr>
  411. <?php } ?>
  412.  
  413. <tr><td bgcolor="#ffffff">mobile number</td><td bgcolor="#ffffff" colspan="2"><input autofocus required class="input" type="tel" autocomplete="off" name="tel" maxlength="30" <?php if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/tel.txt")) { echo "value=\""; readfile("$maj_data_directory/members/active/$maj_logged_in_username/tel.txt"); echo "\""; } ?>></td></tr>
  414.  
  415. <tr><td bgcolor="#ffffff">company or school</td><td bgcolor="#ffffff" colspan="2"><input autofocus required class="input" type="org" autocomplete="off" name="org" maxlength="60" <?php if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/org.txt")) { echo "value=\""; readfile("$maj_data_directory/members/active/$maj_logged_in_username/org.txt"); echo "\""; } ?>></td></tr>
  416.  
  417. <tr><td bgcolor="#ffffff">website</td><td bgcolor="#ffffff" colspan="2"><input class="input" type="url" autocomplete="off" name="url" maxlength="300" <?php if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/url.txt")) { echo "value=\""; readfile("$maj_data_directory/members/active/$maj_logged_in_username/url.txt"); echo "\""; } ?>></td></tr>
  418.  
  419. <tr><td bgcolor="#ffffff">country</td><td bgcolor="#ffffff" colspan="2">
  420.  
  421. <select class="input" name="country" required>
  422. <option<?php if (!file_exists("$maj_data_directory/members/active/$maj_logged_in_username/country.txt")) { echo " selected"; } ?> value=""></option>
  423. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AF") { echo " selected"; } ?> value="AF">Afghanistan</option>
  424. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AX") { echo " selected"; } ?> value="AX">Aland (Ahvenanmaa) Islands</option>
  425. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AL") { echo " selected"; } ?> value="AL">Albania</option>
  426. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "DZ") { echo " selected"; } ?> value="DZ">Algeria</option>
  427. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AS") { echo " selected"; } ?> value="AS">American Samoa</option>
  428. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AD") { echo " selected"; } ?> value="AD">Andorra</option>
  429. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AO") { echo " selected"; } ?> value="AO">Angola</option>
  430. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AI") { echo " selected"; } ?> value="AI">Anguilla</option>
  431. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AQ") { echo " selected"; } ?> value="AQ">Antarctica</option>
  432. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AG") { echo " selected"; } ?> value="AG">Antigua & Barbuda</option>
  433. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AR") { echo " selected"; } ?> value="AR">Argentina</option>
  434. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AM") { echo " selected"; } ?> value="AM">Armenia</option>
  435. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AW") { echo " selected"; } ?> value="AW">Aruba</option>
  436. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AU") { echo " selected"; } ?> value="AU">Australia</option>
  437. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AT") { echo " selected"; } ?> value="AT">Austria</option>
  438. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AZ") { echo " selected"; } ?> value="AZ">Azerbaijan</option>
  439. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BS") { echo " selected"; } ?> value="BS">Bahamas</option>
  440. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BH") { echo " selected"; } ?> value="BH">Bahrain</option>
  441. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BD") { echo " selected"; } ?> value="BD">Bangladesh</option>
  442. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BB") { echo " selected"; } ?> value="BB">Barbados</option>
  443. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BY") { echo " selected"; } ?> value="BY">Belarus</option>
  444. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BE") { echo " selected"; } ?> value="BE">Belgium</option>
  445. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BZ") { echo " selected"; } ?> value="BZ">Belize</option>
  446. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BJ") { echo " selected"; } ?> value="BJ">Benin</option>
  447. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BM") { echo " selected"; } ?> value="BM">Bermuda</option>
  448. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BT") { echo " selected"; } ?> value="BT">Bhutan</option>
  449. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BO") { echo " selected"; } ?> value="BO">Bolivia</option>
  450. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BA") { echo " selected"; } ?> value="BA">Bosnia & Herzegovina</option>
  451. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BW") { echo " selected"; } ?> value="BW">Botswana</option>
  452. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BV") { echo " selected"; } ?> value="BV">Bouvet Island</option>
  453. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BR") { echo " selected"; } ?> value="BR">Brazil</option>
  454. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IO") { echo " selected"; } ?> value="IO">British Indian Ocean Territory</option>
  455. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BN") { echo " selected"; } ?> value="BN">Brunei Darussalam</option>
  456. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BG") { echo " selected"; } ?> value="BG">Bulgaria</option>
  457. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BF") { echo " selected"; } ?> value="BF">Burkina Faso</option>
  458. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "BI") { echo " selected"; } ?> value="BI">Burundi</option>
  459. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KH") { echo " selected"; } ?> value="KH">Cambodia</option>
  460. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CM") { echo " selected"; } ?> value="CM">Cameroon</option>
  461. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CA") { echo " selected"; } ?> value="CA">Canada</option>
  462. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CV") { echo " selected"; } ?> value="CV">Cape Verde</option>
  463. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KY") { echo " selected"; } ?> value="KY">Cayman Islands</option>
  464. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CF") { echo " selected"; } ?> value="CF">Central African Republic</option>
  465. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TD") { echo " selected"; } ?> value="TD">Chad</option>
  466. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CL") { echo " selected"; } ?> value="CL">Chile</option>
  467. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CN") { echo " selected"; } ?> value="CN">China</option>
  468. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CX") { echo " selected"; } ?> value="CX">Christmas Island</option>
  469. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CC") { echo " selected"; } ?> value="CC">Cocos (Keeling) Islands</option>
  470. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CO") { echo " selected"; } ?> value="CO">Colombia</option>
  471. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KM") { echo " selected"; } ?> value="KM">Comoros</option>
  472. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CG") { echo " selected"; } ?> value="CG">Congo</option>
  473. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CD") { echo " selected"; } ?> value="CD">Congo (Democratic Republic)</option>
  474. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CK") { echo " selected"; } ?> value="CK">Cook Islands</option>
  475. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CR") { echo " selected"; } ?> value="CR">Costa Rica</option>
  476. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CI") { echo " selected"; } ?> value="CI">Cote D'Ivoire</option>
  477. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "HR") { echo " selected"; } ?> value="HR">Croatia</option>
  478. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CU") { echo " selected"; } ?> value="CU">Cuba</option>
  479. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CY") { echo " selected"; } ?> value="CY">Cyprus</option>
  480. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CZ") { echo " selected"; } ?> value="CZ">Czech Republic</option>
  481. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "DK") { echo " selected"; } ?> value="DK">Denmark</option>
  482. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "DJ") { echo " selected"; } ?> value="DJ">Djibouti</option>
  483. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "DM") { echo " selected"; } ?> value="DM">Dominica</option>
  484. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "DO") { echo " selected"; } ?> value="DO">Dominican Republic</option>
  485. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "EC") { echo " selected"; } ?> value="EC">Ecuador</option>
  486. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "EG") { echo " selected"; } ?> value="EG">Egypt</option>
  487. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SV") { echo " selected"; } ?> value="SV">El Salvador</option>
  488. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GQ") { echo " selected"; } ?> value="GQ">Equatorial Guinea</option>
  489. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ER") { echo " selected"; } ?> value="ER">Eritrea</option>
  490. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "EE") { echo " selected"; } ?> value="EE">Estonia</option>
  491. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ET") { echo " selected"; } ?> value="ET">Ethiopia</option>
  492. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "FK") { echo " selected"; } ?> value="FK">Falkland Islands (Malvinas)</option>
  493. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "FO") { echo " selected"; } ?> value="FO">Faroe Islands</option>
  494. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "FJ") { echo " selected"; } ?> value="FJ">Fiji</option>
  495. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "FI") { echo " selected"; } ?> value="FI">Finland</option>
  496. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "FR") { echo " selected"; } ?> value="FR">France</option>
  497. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GF") { echo " selected"; } ?> value="GF">French Guiana</option>
  498. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PF") { echo " selected"; } ?> value="PF">French Polynesia</option>
  499. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TF") { echo " selected"; } ?> value="TF">French Southern Territories</option>
  500. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GA") { echo " selected"; } ?> value="GA">Gabon</option>
  501. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GM") { echo " selected"; } ?> value="GM">Gambia</option>
  502. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GE") { echo " selected"; } ?> value="GE">Georgia</option>
  503. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "DE") { echo " selected"; } ?> value="DE">Germany</option>
  504. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GH") { echo " selected"; } ?> value="GH">Ghana</option>
  505. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GI") { echo " selected"; } ?> value="GI">Gibraltar</option>
  506. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GR") { echo " selected"; } ?> value="GR">Greece</option>
  507. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GL") { echo " selected"; } ?> value="GL">Greenland</option>
  508. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GD") { echo " selected"; } ?> value="GD">Grenada</option>
  509. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GP") { echo " selected"; } ?> value="GP">Guadeloupe</option>
  510. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GU") { echo " selected"; } ?> value="GU">Guam</option>
  511. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GT") { echo " selected"; } ?> value="GT">Guatemala</option>
  512. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GG") { echo " selected"; } ?> value="GG">Guernsey</option>
  513. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GN") { echo " selected"; } ?> value="GN">Guinea</option>
  514. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GW") { echo " selected"; } ?> value="GW">Guinea-Bissau</option>
  515. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GY") { echo " selected"; } ?> value="GY">Guyana</option>
  516. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "HT") { echo " selected"; } ?> value="HT">Haiti</option>
  517. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "HM") { echo " selected"; } ?> value="HM">Heard Island & Mcdonald Islands</option>
  518. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "VA") { echo " selected"; } ?> value="VA">Holy See (Vatican City State)</option>
  519. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "HN") { echo " selected"; } ?> value="HN">Honduras</option>
  520. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "HK") { echo " selected"; } ?> value="HK">Hong Kong</option>
  521. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "HU") { echo " selected"; } ?> value="HU">Hungary</option>
  522. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IS") { echo " selected"; } ?> value="IS">Iceland</option>
  523. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IN") { echo " selected"; } ?> value="IN">India</option>
  524. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ID") { echo " selected"; } ?> value="ID">Indonesia</option>
  525. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IR") { echo " selected"; } ?> value="IR">Iran (Islamic Republic)</option>
  526. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IQ") { echo " selected"; } ?> value="IQ">Iraq</option>
  527. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IE") { echo " selected"; } ?> value="IE">Ireland</option>
  528. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IM") { echo " selected"; } ?> value="IM">Isle Of Man</option>
  529. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IL") { echo " selected"; } ?> value="IL">Israel</option>
  530. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "IT") { echo " selected"; } ?> value="IT">Italy</option>
  531. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "JM") { echo " selected"; } ?> value="JM">Jamaica</option>
  532. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "JP") { echo " selected"; } ?> value="JP">Japan</option>
  533. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "JE") { echo " selected"; } ?> value="JE">Jersey</option>
  534. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "JO") { echo " selected"; } ?> value="JO">Jordan</option>
  535. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KZ") { echo " selected"; } ?> value="KZ">Kazakhstan</option>
  536. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KE") { echo " selected"; } ?> value="KE">Kenya</option>
  537. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KI") { echo " selected"; } ?> value="KI">Kiribati</option>
  538. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KP") { echo " selected"; } ?> value="KP">Korea (Democratic People's Republic)</option>
  539. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KR") { echo " selected"; } ?> value="KR">Korea (Republic)</option>
  540. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KW") { echo " selected"; } ?> value="KW">Kuwait</option>
  541. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KG") { echo " selected"; } ?> value="KG">Kyrgyzstan</option>
  542. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LA") { echo " selected"; } ?> value="LA">Laos</option>
  543. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LV") { echo " selected"; } ?> value="LV">Latvia</option>
  544. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LB") { echo " selected"; } ?> value="LB">Lebanon</option>
  545. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LS") { echo " selected"; } ?> value="LS">Lesotho</option>
  546. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LR") { echo " selected"; } ?> value="LR">Liberia</option>
  547. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LY") { echo " selected"; } ?> value="LY">Libyan Arab Jamahiriya</option>
  548. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LI") { echo " selected"; } ?> value="LI">Liechtenstein</option>
  549. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LT") { echo " selected"; } ?> value="LT">Lithuania</option>
  550. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LU") { echo " selected"; } ?> value="LU">Luxembourg</option>
  551. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MO") { echo " selected"; } ?> value="MO">Macao</option>
  552. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MK") { echo " selected"; } ?> value="MK">Macedonia (Yugoslav Republic)</option>
  553. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MG") { echo " selected"; } ?> value="MG">Madagascar</option>
  554. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MW") { echo " selected"; } ?> value="MW">Malawi</option>
  555. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MY") { echo " selected"; } ?> value="MY">Malaysia</option>
  556. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MV") { echo " selected"; } ?> value="MV">Maldives</option>
  557. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ML") { echo " selected"; } ?> value="ML">Mali</option>
  558. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MT") { echo " selected"; } ?> value="MT">Malta</option>
  559. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MH") { echo " selected"; } ?> value="MH">Marshall Islands</option>
  560. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MQ") { echo " selected"; } ?> value="MQ">Martinique</option>
  561. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MR") { echo " selected"; } ?> value="MR">Mauritania</option>
  562. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MU") { echo " selected"; } ?> value="MU">Mauritius</option>
  563. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "YT") { echo " selected"; } ?> value="YT">Mayotte</option>
  564. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MX") { echo " selected"; } ?> value="MX">Mexico</option>
  565. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "FM") { echo " selected"; } ?> value="FM">Micronesia (Federated States)</option>
  566. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MD") { echo " selected"; } ?> value="MD">Moldova (Republic)</option>
  567. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MC") { echo " selected"; } ?> value="MC">Monaco</option>
  568. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MN") { echo " selected"; } ?> value="MN">Mongolia</option>
  569. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MS") { echo " selected"; } ?> value="MS">Montserrat</option>
  570. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MA") { echo " selected"; } ?> value="MA">Morocco</option>
  571. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MZ") { echo " selected"; } ?> value="MZ">Mozambique</option>
  572. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MM") { echo " selected"; } ?> value="MM">Myanmar</option>
  573. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NA") { echo " selected"; } ?> value="NA">Namibia</option>
  574. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NR") { echo " selected"; } ?> value="NR">Nauru</option>
  575. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NP") { echo " selected"; } ?> value="NP">Nepal</option>
  576. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NL") { echo " selected"; } ?> value="NL">Netherlands</option>
  577. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AN") { echo " selected"; } ?> value="AN">Netherlands Antilles</option>
  578. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NC") { echo " selected"; } ?> value="NC">New Caledonia</option>
  579. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NZ") { echo " selected"; } ?> value="NZ">New Zealand</option>
  580. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NI") { echo " selected"; } ?> value="NI">Nicaragua</option>
  581. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NE") { echo " selected"; } ?> value="NE">Niger</option>
  582. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NG") { echo " selected"; } ?> value="NG">Nigeria</option>
  583. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NU") { echo " selected"; } ?> value="NU">Niue</option>
  584. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NF") { echo " selected"; } ?> value="NF">Norfolk Island</option>
  585. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "MP") { echo " selected"; } ?> value="MP">Northern Mariana Islands</option>
  586. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "NO") { echo " selected"; } ?> value="NO">Norway</option>
  587. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "OM") { echo " selected"; } ?> value="OM">Oman</option>
  588. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PK") { echo " selected"; } ?> value="PK">Pakistan</option>
  589. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PW") { echo " selected"; } ?> value="PW">Palau</option>
  590. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PS") { echo " selected"; } ?> value="PS">Palestinian Territory</option>
  591. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PA") { echo " selected"; } ?> value="PA">Panama</option>
  592. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PG") { echo " selected"; } ?> value="PG">Papua New Guinea</option>
  593. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PY") { echo " selected"; } ?> value="PY">Paraguay</option>
  594. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PE") { echo " selected"; } ?> value="PE">Peru</option>
  595. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PH") { echo " selected"; } ?> value="PH">Philippines</option>
  596. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PN") { echo " selected"; } ?> value="PN">Pitcairn</option>
  597. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PL") { echo " selected"; } ?> value="PL">Poland</option>
  598. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PT") { echo " selected"; } ?> value="PT">Portugal</option>
  599. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PR") { echo " selected"; } ?> value="PR">Puerto Rico</option>
  600. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "QA") { echo " selected"; } ?> value="QA">Qatar</option>
  601. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "RE") { echo " selected"; } ?> value="RE">Reunion</option>
  602. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "RO") { echo " selected"; } ?> value="RO">Romania</option>
  603. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "RU") { echo " selected"; } ?> value="RU">Russian Federation</option>
  604. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "RW") { echo " selected"; } ?> value="RW">Rwanda</option>
  605. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SH") { echo " selected"; } ?> value="SH">Saint Helena</option>
  606. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "KN") { echo " selected"; } ?> value="KN">Saint Kitts & Nevis</option>
  607. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LC") { echo " selected"; } ?> value="LC">Saint Lucia</option>
  608. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "PM") { echo " selected"; } ?> value="PM">Saint Pierre & Miquelon</option>
  609. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "VC") { echo " selected"; } ?> value="VC">Saint Vincent & The Grenadines</option>
  610. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "WS") { echo " selected"; } ?> value="WS">Samoa</option>
  611. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SM") { echo " selected"; } ?> value="SM">San Marino</option>
  612. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ST") { echo " selected"; } ?> value="ST">Sao Tome & Principe</option>
  613. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SA") { echo " selected"; } ?> value="SA">Saudi Arabia</option>
  614. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SN") { echo " selected"; } ?> value="SN">Senegal</option>
  615. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CS") { echo " selected"; } ?> value="CS">Serbia & Montenegro</option>
  616. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SC") { echo " selected"; } ?> value="SC">Seychelles</option>
  617. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SL") { echo " selected"; } ?> value="SL">Sierra Leone</option>
  618. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SG") { echo " selected"; } ?> value="SG">Singapore</option>
  619. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SK") { echo " selected"; } ?> value="SK">Slovakia</option>
  620. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SI") { echo " selected"; } ?> value="SI">Slovenia</option>
  621. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SB") { echo " selected"; } ?> value="SB">Solomon Islands</option>
  622. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SO") { echo " selected"; } ?> value="SO">Somalia</option>
  623. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ZA") { echo " selected"; } ?> value="ZA">South Africa</option>
  624. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GS") { echo " selected"; } ?> value="GS">South Georgia & The South Sandwich Islands</option>
  625. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ES") { echo " selected"; } ?> value="ES">Spain</option>
  626. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "LK") { echo " selected"; } ?> value="LK">Sri Lanka</option>
  627. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SD") { echo " selected"; } ?> value="SD">Sudan</option>
  628. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SR") { echo " selected"; } ?> value="SR">Suriname</option>
  629. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SJ") { echo " selected"; } ?> value="SJ">Svalbard & Jan Mayen</option>
  630. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SZ") { echo " selected"; } ?> value="SZ">Swaziland</option>
  631. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SE") { echo " selected"; } ?> value="SE">Sweden</option>
  632. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "CH") { echo " selected"; } ?> value="CH">Switzerland</option>
  633. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "SY") { echo " selected"; } ?> value="SY">Syrian Arab Republic</option>
  634. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TW") { echo " selected"; } ?> value="TW">Taiwan</option>
  635. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TJ") { echo " selected"; } ?> value="TJ">Tajikistan</option>
  636. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TZ") { echo " selected"; } ?> value="TZ">Tanzania (United Republic)</option>
  637. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TH") { echo " selected"; } ?> value="TH">Thailand</option>
  638. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TL") { echo " selected"; } ?> value="TL">Timor-Leste</option>
  639. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TG") { echo " selected"; } ?> value="TG">Togo</option>
  640. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TK") { echo " selected"; } ?> value="TK">Tokelau</option>
  641. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TO") { echo " selected"; } ?> value="TO">Tonga</option>
  642. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TT") { echo " selected"; } ?> value="TT">Trinidad & Tobago</option>
  643. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TN") { echo " selected"; } ?> value="TN">Tunisia</option>
  644. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TR") { echo " selected"; } ?> value="TR">Turkey</option>
  645. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TM") { echo " selected"; } ?> value="TM">Turkmenistan</option>
  646. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TC") { echo " selected"; } ?> value="TC">Turks & Caicos Islands</option>
  647. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "TV") { echo " selected"; } ?> value="TV">Tuvalu</option>
  648. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "UG") { echo " selected"; } ?> value="UG">Uganda</option>
  649. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "UA") { echo " selected"; } ?> value="UA">Ukraine</option>
  650. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "AE") { echo " selected"; } ?> value="AE">United Arab Emirates</option>
  651. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "GB") { echo " selected"; } ?> value="GB">United Kingdom</option>
  652. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "US") { echo " selected"; } ?> value="US">United States</option>
  653. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "UM") { echo " selected"; } ?> value="UM">United States Minor Outlying Islands</option>
  654. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "UY") { echo " selected"; } ?> value="UY">Uruguay</option>
  655. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "UZ") { echo " selected"; } ?> value="UZ">Uzbekistan</option>
  656. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "VU") { echo " selected"; } ?> value="VU">Vanuatu</option>
  657. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "VE") { echo " selected"; } ?> value="VE">Venezuela</option>
  658. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "VN") { echo " selected"; } ?> value="VN">Vietnam</option>
  659. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "VG") { echo " selected"; } ?> value="VG">Virgin Islands (British)</option>
  660. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "VI") { echo " selected"; } ?> value="VI">Virgin Islands (US)</option>
  661. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "WF") { echo " selected"; } ?> value="WF">Wallis & Futuna</option>
  662. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "EH") { echo " selected"; } ?> value="EH">Western Sahara</option>
  663. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "YE") { echo " selected"; } ?> value="YE">Yemen</option>
  664. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ZM") { echo " selected"; } ?> value="ZM">Zambia</option>
  665. <option<?php if (file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/country.txt") == "ZW") { echo " selected"; } ?> value="ZW">Zimbabwe</option>
  666. </select>
  667.  
  668. </td></tr>
  669.  
  670. <tr><td bgcolor="#ffffff">city or municipality</td><td bgcolor="#ffffff" colspan="2"><input required class="input" type="text" autocomplete="off" name="city" maxlength="100" <?php if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/city.txt")) { echo "value=\""; readfile("$maj_data_directory/members/active/$maj_logged_in_username/city.txt");echo "\"";  } ?>></td></tr>
  671.  
  672. <?php if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/bb-sig.txt")) { ?>
  673.  
  674. <tr><td bgcolor="#ffffff">signature</td><td bgcolor="#ffffff" colspan="2"><textarea class="input" name="sig"><?php if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/sig.txt")) {
  675.  
  676.         $get_sig = file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/sig.txt");
  677.         $get_sig = str_replace("<b>","[b]",$get_sig);
  678.         $get_sig = str_replace("</b>","[/b]",$get_sig);
  679.         $get_sig = str_replace("<i>","[i]",$get_sig);
  680.         $get_sig = str_replace("</i>","[/i]",$get_sig);
  681.         $get_sig = str_replace("<u>","[u]",$get_sig);
  682.         $get_sig = str_replace("</u>","[/u]",$get_sig);
  683.         $get_sig = str_replace("<sup>","[sup]",$get_sig);
  684.         $get_sig = str_replace("</sup>","[/sup]",$get_sig);
  685.         $get_sig = str_replace("<sub>","[sub]",$get_sig);
  686.         $get_sig = str_replace("</sub>","[/sub]",$get_sig);
  687.         $get_sig = str_replace("<strike>","[strike]",$get_sig);
  688.         $get_sig = str_replace("</strike>","[/strike]",$get_sig);
  689.         $get_sig = str_replace("<br>","\n",$get_sig);
  690.  
  691.         echo $get_sig;
  692.  
  693. } ?></textarea></td></tr>
  694.  
  695. <?php
  696.  
  697. }
  698.  
  699. if (file_exists("$maj_data_directory/avatar.txt")) {
  700.  
  701. ?>
  702.  
  703. <tr><td bgcolor="#ffffff">upload avatar</td><td bgcolor="#ffffff" colspan="2"><input type="file" autocomplete="off" name="avatar"></td></tr>
  704. <?php
  705.  
  706. }
  707.  
  708. if (file_exists("$maj_data_directory/avatar.txt") and (file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.gif") or file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.jpg") or file_exists("$maj_image_directory/members/$maj_logged_in_username/avatar.png"))) { ?>
  709. <tr><td bgcolor="#ffffff"></td><td bgcolor="#ffffff" colspan="2"><table border="0" cellspacing="0" cellpadding="0"><tr><td><input type="checkbox" name="del_avatar"></td><td>delete existing avatar</td></tr></table></td></tr>
  710. <?php } if (file_exists("$maj_data_directory/ml.txt") and !file_exists("$maj_data_directory/members/active/$maj_logged_in_username/key.txt")) { ?>
  711. <tr><td bgcolor="#ffffff"></td><td bgcolor="#ffffff" colspan="2"><table border="0" cellspacing="0" cellpadding="0"><tr><td><input type="checkbox" name="vacation" <?php if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bb-vacation.txt")) { echo checked; } ?>></td><td>temporarily disable mailing list subscription</td></tr></table></td></tr>
  712. <?php } ?>
  713.  
  714. <?php if (!file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bday.txt")) { ?>
  715. <tr><td bgcolor="#ffffff">birthdate (YYYYMMDD)</td><td bgcolor="#ffffff" colspan="2"><input class="input" type="text" autocomplete="off" name="bday" maxlength="8" value="<?php echo date("Ymd", time() + $maj_offset); ?>"></td></tr>
  716. <?php } ?>
  717.  
  718. <tr><td bgcolor="#ffffff">current password</td><td bgcolor="#ffffff" colspan="2"><input class="input" type="password" autocomplete="off" name="current_passwd" maxlength="30"></td></tr>
  719. <tr><td bgcolor="#ffffff">new password</td><td bgcolor="#ffffff" width="300"><input class="input" type="password" autocomplete="off" name="new_passwd" maxlength="30"></td></tr>
  720. <tr><td bgcolor="#ffffff">confirm password</td><td bgcolor="#ffffff"><input class="input" type="password" autocomplete="off" name="confirm_passwd" maxlength="30"></td></tr>
  721. <tr><td bgcolor="#ffffff"></td><td bgcolor="#ffffff"><input class="click" type="submit" value="click here to activate new settings"></td></tr>
  722. </form>
  723. <form enctype="multipart/form-data" action="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']); ?>" method="post">
  724. <tr><td bgcolor="#ffffff"></td><td bgcolor="#ffffff"><input class="click" type="submit" value="click here to go to the index page"></td></tr>
  725. </form>
  726. </table>
  727.  
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
35524 downloads
MAJ 1.0
26 files
14406 downloads
MAJ 0.14
45 files
37089 downloads