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

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