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 775 times via Git panel.

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