maj.world

maj.world

Git

This blob has been accessed 444 times via Git panel.

  1. <?php
  2.  
  3. require("core.php");
  4.  
  5. if (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) {
  6.  
  7.         if (file_exists("$maj_data_directory/hits.txt")) {
  8.                 $maj_global_hits_count = file_get_contents("$maj_data_directory/hits.txt");
  9.         }
  10.         else {
  11.                 $maj_global_hits_count = "0";
  12.         }
  13.  
  14.         $maj_global_hits_count = $maj_global_hits_count + 1;
  15.  
  16.         $maj_global_hits_file = fopen("$maj_data_directory/hits.txt","w");
  17.         fwrite($maj_global_hits_file,$maj_global_hits_count);
  18.         fclose($maj_global_hits_file);
  19. }
  20.  
  21. if (@mb_ereg("Google",$_SERVER['HTTP_USER_AGENT'])) {
  22.  
  23.         if (file_exists("$maj_data_directory/google.txt")) {
  24.                 $maj_google_hits_count = file_get_contents("$maj_data_directory/google.txt");
  25.         }
  26.         else {
  27.                 $maj_google_hits_count = "0";
  28.         }
  29.  
  30.         $maj_google_hits_count = $maj_google_hits_count + 1;
  31.  
  32.         $maj_google_hits_file = fopen("$maj_data_directory/google.txt","w");
  33.         fwrite($maj_google_hits_file,$maj_google_hits_count);
  34.         fclose($maj_google_hits_file);
  35. }
  36.  
  37. if (isset($_REQUEST['download']) and !empty($_REQUEST['download']) and isset($_REQUEST['type']) and !empty($_REQUEST['type'])) {
  38.  
  39.         ini_set("zlib.output_compression","off");
  40.  
  41.         if (($_REQUEST['type'] == "filedrop") and isset($maj_req_entry) and file_exists("$maj_data_directory/items/$maj_req_entry/filedrop/files")) {
  42.        
  43.                 if ($maj_logged_in_username == $maj_admin_username) {
  44.                         maj_download_file(str_replace("../","",@$_REQUEST['download']),"$maj_data_directory/items/$maj_req_entry/filedrop/files");
  45.                 }
  46.                 else {
  47.                         maj_download_file(str_replace("../","",@$_REQUEST['download']),"$maj_data_directory/items/$maj_req_entry/filedrop/files","$maj_data_directory/items/$maj_req_entry/filedrop/count");
  48.                 }                      
  49.         }
  50.        
  51.         die();
  52. }
  53.  
  54. if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['key']) and !empty($_REQUEST['key']) and isset($_REQUEST['action']) and !empty($_REQUEST['action'])) {
  55.  
  56.                 $maj_comment_dir = "$maj_data_directory/items/$maj_req_entry/comments/pending/{$_REQUEST['comment']}";
  57.  
  58.                 $maj_login_key = file_get_contents("$maj_comment_dir/key.txt");
  59.  
  60.                 if ($_REQUEST['key'] == $maj_login_key) {
  61.  
  62.                         if ($_REQUEST['action'] == "approve") {
  63.  
  64.                                 $maj_live_dir = "$maj_data_directory/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}";
  65.  
  66.                                 if (!file_exists("$maj_data_directory/items/$maj_req_entry/comments/live")) {
  67.                                         mkdir("$maj_data_directory/items/$maj_req_entry/comments/live");
  68.                                 }
  69.  
  70.                                 if (!file_exists("$maj_data_directory/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}")) {
  71.                                         mkdir("$maj_data_directory/items/$maj_req_entry/comments/live/{$_REQUEST['comment']}");
  72.                                 }
  73.  
  74.                                 rename($maj_comment_dir,$maj_live_dir);
  75.  
  76.                                 unlink("$maj_live_dir/key.txt");
  77.  
  78.                                 // clean-up old latest comments dir (start)
  79.  
  80.                                 if (file_exists("$maj_data_directory/comments/latest")) {
  81.                                         rmdirr("$maj_data_directory/comments/latest");
  82.                                 }
  83.  
  84.                                 // clean-up old latest comments dir (end)
  85.  
  86.                                 if (file_exists("$maj_data_directory/members/active") and !file_exists("$maj_data_directory/xucomment.txt")) {
  87.  
  88.                                         if (!file_exists("$maj_data_directory/comments/unread")) {
  89.                                                 mkdir("$maj_data_directory/comments/unread");
  90.                                         }
  91.  
  92.                                         if (!file_exists("$maj_data_directory/comments/unread/$maj_req_entry")) {
  93.                                                 mkdir("$maj_data_directory/comments/unread/$maj_req_entry");
  94.                                         }
  95.                        
  96.                                         if ($maj_dh_unread_active_members = opendir("$maj_data_directory/members/active")) {
  97.                        
  98.                                                 while (($maj_unread_active_member = readdir($maj_dh_unread_active_members)) !== false) {
  99.                        
  100.                                                         if ($maj_unread_active_member != "." && $maj_unread_active_member != "..") {
  101.  
  102.                                                                 if ((!file_exists("$maj_data_directory/members/active/$maj_unread_active_member/bb-vacation.txt") and !file_exists("$maj_data_directory/items/$maj_req_entry/members")) or (!file_exists("$maj_data_directory/members/active/$maj_unread_active_member/bb-vacation.txt") and file_exists("$maj_data_directory/items/$maj_req_entry/members") and file_exists("$maj_data_directory/items/$maj_req_entry/members/$maj_unread_active_member"))) {
  103.                                                                        
  104.                                                                         if (!file_exists("$maj_data_directory/members/active/$maj_unread_active_member/comments")) {
  105.                                                                                 mkdir("$maj_data_directory/members/active/$maj_unread_active_member/comments");
  106.                                                                         }
  107.        
  108.                                                                         if (!file_exists("$maj_data_directory/members/active/$maj_unread_active_member/comments/unread")) {
  109.                                                                                 mkdir("$maj_data_directory/members/active/$maj_unread_active_member/comments/unread");
  110.                                                                         }
  111.        
  112.                                                                         if (!file_exists("$maj_data_directory/members/active/$maj_unread_active_member/comments/unread/$maj_req_entry")) {
  113.                                                                                 mkdir("$maj_data_directory/members/active/$maj_unread_active_member/comments/unread/$maj_req_entry");
  114.                                                                         }
  115.                                                                 }
  116.                                                         }
  117.                                                 }
  118.                                                 closedir($maj_dh_unread_active_members);
  119.                                         }
  120.                                 }
  121.  
  122.                                 $maj_private_categories = "0";
  123.  
  124.                                 if (file_exists("$maj_data_directory/items/$maj_req_entry/categories")) {
  125.                        
  126.                                         if ($maj_dh_entry_categories = opendir("$maj_data_directory/items/$maj_req_entry/categories")) {
  127.                        
  128.                                                 while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
  129.                        
  130.                                                         if ($maj_entry_category != "." && $maj_entry_category != "..") {
  131.                        
  132.                                                                 if (file_exists("$maj_data_directory/categories/$maj_entry_category/private.txt")) {
  133.                                                                         $maj_private_categories = $maj_private_categories + 1;
  134.                                                                 }
  135.                                                         }
  136.                                                 }
  137.                                                 closedir($maj_dh_entry_categories);
  138.                                         }
  139.                                 }
  140.  
  141.                                 if (file_exists("$maj_data_directory/members/active") and file_exists("$maj_data_directory/ml.txt") and file_exists("$maj_data_directory/email.txt") and !file_exists("$maj_data_directory/items/$maj_req_entry/private.txt") and ($maj_private_categories == "0")) {
  142.  
  143.                                         if (file_exists("$maj_data_directory/ml-reply2.txt")) {
  144.                                                 $maj_ml_reply2 = file_get_contents("$maj_data_directory/ml-reply2.txt");
  145.                                         }
  146.  
  147.                                         if (file_exists("$maj_data_directory/ml-from.txt")) {
  148.                                                 $maj_ml_from = $maj_ml_reply2;
  149.                                         }
  150.                                         else {
  151.                                                 $maj_ml_from = file_get_contents("$maj_live_dir/email.txt");
  152.                                         }
  153.  
  154.                                         $maj_ml_from = str_replace(" at ","@",$maj_ml_from);
  155.  
  156.                                         $maj_ml_from_firstname = file_get_contents("$maj_live_dir/firstname.txt");
  157.                                         $maj_ml_from_lastname = file_get_contents("$maj_live_dir/lastname.txt");
  158.  
  159.                                         $maj_ml_from = '"' . "$maj_ml_from_firstname $maj_ml_from_lastname" . '" <' . $maj_ml_from . '>';
  160.  
  161.                                         $maj_ml_subject = file_get_contents("$maj_data_directory/items/$maj_req_entry/title.txt");
  162.  
  163.                                         if (file_exists("$maj_data_directory/ml-prepend.txt")) {
  164.                                                 $maj_ml_prepend = file_get_contents("$maj_data_directory/ml-prepend.txt");
  165.                                                 $maj_ml_subject = str_replace($maj_ml_prepend,"",$maj_ml_subject);
  166.                                                 $maj_ml_subject = $maj_ml_prepend . " " . $maj_ml_subject;
  167.                                         }
  168.  
  169.                                         $maj_ml_subject = str_replace("Re:","",$maj_ml_subject);
  170.                                         $maj_ml_subject = "Re: " . $maj_ml_subject;
  171.  
  172.                                         $maj_ml_mailer = 'MAJ/2.0 (PHP/' . phpversion() . ')';
  173.  
  174.                                         $maj_ml_body = file_get_contents("$maj_live_dir/comment.txt");
  175.                                         $maj_ml_body = str_replace('<br />',"\n",$maj_ml_body);
  176.                                         $maj_ml_body = str_replace('<img src="images/smileys/crying.png" border="0">',':((',$maj_ml_body);
  177.                                         $maj_ml_body = str_replace('<img src="images/smileys/frown.png" border="0">',':(',$maj_ml_body);
  178.                                         $maj_ml_body = str_replace('<img src="images/smileys/indifferent.png" border="0">',':|',$maj_ml_body);
  179.                                         $maj_ml_body = str_replace('<img src="images/smileys/laughing.png" border="0">',':D',$maj_ml_body);
  180.                                         $maj_ml_body = str_replace('<img src="images/smileys/lick.png" border="0">',':P',$maj_ml_body);
  181.                                         $maj_ml_body = str_replace('<img src="images/smileys/ohno.png" border="0">',':O',$maj_ml_body);
  182.                                         $maj_ml_body = str_replace('<img src="images/smileys/smile.png" border="0">',':)',$maj_ml_body);
  183.                                         $maj_ml_body = str_replace('<img src="images/smileys/surprised.png" border="0">','=)',$maj_ml_body);
  184.                                         $maj_ml_body = str_replace('<img src="images/smileys/undecided.png" border="0">',':\\',$maj_ml_body);
  185.                                         $maj_ml_body = str_replace('<img src="images/smileys/wink.png" border="0">',';)',$maj_ml_body);
  186.                                         $maj_ml_body = str_replace('&amp;','&',$maj_ml_body);
  187.                                         $maj_ml_body = str_replace('&lt;','<',$maj_ml_body);
  188.                                         $maj_ml_body = str_replace('&gt;','>',$maj_ml_body);
  189.                                         $maj_ml_body = str_replace('&reg;','(R)',$maj_ml_body);
  190.  
  191.                                         if (file_exists("$maj_data_directory/pf.txt") and file_exists("$maj_data_directory/pf-badwords.txt")) {
  192.  
  193.                                                 $maj_badwords = file_get_contents("$maj_data_directory/pf-badwords.txt");
  194.  
  195.                                                 if (file_exists("$maj_data_directory/pf-censor.txt")) {
  196.                                                         $maj_censor = file_get_contents("$maj_data_directory/pf-censor.txt");
  197.                                                 }
  198.                                                 else {
  199.                                                         $maj_censor = "[expletive]";
  200.                                                 }
  201.  
  202.                                                 $maj_ml_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_ml_body);
  203.                                         }
  204.  
  205.                                         if (file_exists("$maj_data_directory/ml-header.txt")) {
  206.                                                 $maj_ml_header = file_get_contents("$maj_data_directory/ml-header.txt");
  207.                                                 $maj_ml_body = $maj_ml_header . "\n\n" . $maj_ml_body;
  208.                                         }
  209.  
  210.                                         $maj_ml_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  211.                                         $maj_ml_url = str_replace('//','/',$maj_ml_url);
  212.                                         $maj_ml_url = "http://$maj_ml_url/index.php?entry=$maj_req_entry&show=comments";
  213.  
  214.                                         $maj_ml_body = $maj_ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $maj_ml_url;
  215.  
  216.                                         if (file_exists("$maj_data_directory/items/$maj_req_entry/member.txt")) {
  217.                                                 $maj_ml_body = $maj_ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
  218.                                         }
  219.  
  220.                                         if (file_exists("$maj_data_directory/ml-footer.txt")) {
  221.                                                 $maj_ml_footer = file_get_contents("$maj_data_directory/ml-footer.txt");
  222.                                                 $maj_ml_body = $maj_ml_body . "\n\n" . $maj_ml_footer;
  223.                                         }
  224.  
  225.  
  226.                                         if ($maj_dh_ml_member = opendir("$maj_data_directory/members/active")) {
  227.                                                 while (($maj_ml_member = readdir($maj_dh_ml_member)) !== false) {
  228.                                                         if ($maj_ml_member != "." && $maj_ml_member != "..") {
  229.  
  230.                                                                 if (file_exists("$maj_data_directory/members/active/$maj_ml_member/bb-noml.txt")) {
  231.                                                                         continue;
  232.                                                                 }
  233.  
  234.                                                                 if (file_exists("$maj_data_directory/members/active/$maj_ml_member/bb-vacation.txt")) {
  235.                                                                         continue;
  236.                                                                 }
  237.  
  238.                                                                 $maj_ml_to_firstname = file_get_contents("$maj_data_directory/members/active/$maj_ml_member/firstname.txt");
  239.                                                                 $maj_ml_to_lastname = file_get_contents("$maj_data_directory/members/active/$maj_ml_member/lastname.txt");
  240.                                                                 $maj_ml_to = file_get_contents("$maj_data_directory/members/active/$maj_ml_member/email.txt");
  241.                                                                 $maj_ml_to = '"' . "$maj_ml_to_firstname $maj_ml_to_lastname" . '" <'. $maj_ml_to . '>';
  242.  
  243.                                                                 if (file_exists("$maj_data_directory/ml-reply2.txt")) {
  244.                                                                         mb_send_mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
  245.                                                                         "From: $maj_ml_from\r\n" .
  246.                                                                         "Reply-To: $maj_ml_reply2\r\n" .
  247.                                                                         "References: $maj_req_entry\r\n" .
  248.                                                                         "X-Mailer: $maj_ml_mailer");
  249.                                                                 }
  250.                                                                 else {
  251.                                                                         mb_send_mail($maj_ml_to,$maj_ml_subject,$maj_ml_body,
  252.                                                                         "From: $maj_ml_from\r\n" .
  253.                                                                         "References: $maj_req_entry\r\n" .
  254.                                                                         "X-Mailer: $maj_ml_mailer");
  255.                                                                 }
  256.                                                         }
  257.                                                 }
  258.                                                 closedir($maj_dh_ml_member);
  259.                                         }
  260.                                 }
  261.  
  262.                         }
  263.  
  264.                         if ($_REQUEST['action'] == "delete") {
  265.                                 rmdirr($maj_comment_dir);
  266.                         }
  267.  
  268.                         $maj_comment_count_value = file_get_contents("$maj_data_directory/comments/pending/$maj_req_entry/count.txt");
  269.  
  270.                         if ($maj_comment_count_value <= 1) {
  271.                                 rmdirr("$maj_data_directory/comments/pending/$maj_req_entry");
  272.                         }
  273.                         else {
  274.                                 $maj_comment_count_value = file_get_contents("$maj_data_directory/comments/pending/$maj_req_entry/count.txt");
  275.  
  276.                                 $maj_comment_count_value = $maj_comment_count_value - 1;
  277.  
  278.                                 $maj_fp_comment_count_txt = fopen("$maj_data_directory/comments/pending/$maj_req_entry/count.txt","w");
  279.                                 fwrite($maj_fp_comment_count_txt,$maj_comment_count_value);
  280.                                 fclose($maj_fp_comment_count_txt);
  281.                         }
  282.  
  283.                         header("Location: index.php?entry=$maj_req_entry&show=comments");
  284.                 }
  285. }
  286.  
  287. if (isset($maj_req_entry) and !empty($maj_req_entry)) {
  288.  
  289.         if (file_exists("$maj_data_directory/items/$maj_req_entry")) {
  290.  
  291.                 $maj_title = file_get_contents("$maj_data_directory/items/$maj_req_entry/title.txt");
  292.  
  293.                 echo "<title>$maj_title</title>\r\n";
  294.  
  295.                 if ((!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  296.  
  297.                         if (file_exists("$maj_data_directory/items/$maj_req_entry/views.txt")) {
  298.                                 $maj_count_views = file_get_contents("$maj_data_directory/items/$maj_req_entry/views.txt");
  299.                         }
  300.                         else {
  301.                                 $maj_count_views = "0";
  302.                         }
  303.  
  304.                         $maj_count_views = $maj_count_views + 1;
  305.  
  306.                         $maj_fp_views = fopen("$maj_data_directory/items/$maj_req_entry/views.txt","w");
  307.                         fwrite($maj_fp_views,$maj_count_views);
  308.                         fclose($maj_fp_views);
  309.                 }
  310.                
  311.                 if (isset($maj_req_show) and !empty($maj_req_show) and isset($_POST['captcha_put']) and !empty($_REQUEST['captcha_get']) and isset($_POST['firstname']) and !empty($_POST['firstname']) and isset($_POST['lastname']) and !empty($_POST['lastname']) and isset($_POST['email']) and !empty($_POST['email']) and isset($_POST['new_comment']) and !empty($_POST['new_comment']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_REQUEST['captcha_get'] == sha1($_POST['captcha_put'])) and (mb_ereg("@",$_POST['email'])) and (mb_ereg("\.",$_POST['email']))) {
  312.                
  313.                         if (!file_exists("$maj_data_directory/items/$maj_req_entry/comments")) {
  314.                                 mkdir("$maj_data_directory/items/$maj_req_entry/comments");
  315.                         }
  316.  
  317.                         if (!file_exists("$maj_data_directory/items/$maj_req_entry/comments/pending")) {
  318.                                 mkdir("$maj_data_directory/items/$maj_req_entry/comments/pending");
  319.                         }
  320.  
  321.                         if (!file_exists("$maj_data_directory/items/$maj_req_entry/comments/live")) {
  322.                                 mkdir("$maj_data_directory/items/$maj_req_entry/comments/live");
  323.                         }
  324.  
  325.                         $maj_timestamp = date("l, M j, Y, g:i A",time() + $maj_offset);
  326.        
  327.                         $maj_comment_entry_dir = date("YmdHis",time() + $maj_offset);
  328.        
  329.                         mkdir("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir");
  330.        
  331.                         $maj_body_content = ucfirst($_POST['new_comment']);
  332.                         $maj_body_content = htmlentities($maj_body_content,ENT_QUOTES, 'UTF-8');
  333.                         $maj_body_content = str_replace("\n",'<br />',$maj_body_content);
  334.                         $maj_body_content = trim($maj_body_content);
  335.                         $maj_body_content = str_replace(':((','<img src="images/smileys/crying.png" border="0">',$maj_body_content);
  336.                         $maj_body_content = str_replace(':(','<img src="images/smileys/frown.png" border="0">',$maj_body_content);
  337.                         $maj_body_content = str_replace(':|','<img src="images/smileys/indifferent.png" border="0">',$maj_body_content);
  338.                         $maj_body_content = str_replace(':D','<img src="images/smileys/laughing.png" border="0">',$maj_body_content);
  339.                         $maj_body_content = str_replace(':P','<img src="images/smileys/lick.png" border="0">',$maj_body_content);
  340.                         $maj_body_content = str_replace(':O','<img src="images/smileys/ohno.png" border="0">',$maj_body_content);
  341.                         $maj_body_content = str_replace(':)','<img src="images/smileys/smile.png" border="0">',$maj_body_content);
  342.                         $maj_body_content = str_replace('=)','<img src="images/smileys/surprised.png" border="0">',$maj_body_content);
  343.                         $maj_body_content = str_replace(':\\','<img src="images/smileys/undecided.png" border="0">',$maj_body_content);
  344.                         $maj_body_content = str_replace(';)','<img src="images/smileys/wink.png" border="0">',$maj_body_content);
  345.  
  346.                         $maj_fp_body_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/comment.txt","w");
  347.                         fwrite($maj_fp_body_txt,$maj_body_content);
  348.                         fclose($maj_fp_body_txt);
  349.  
  350.                         $maj_fp_timestamp_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/timestamp.txt","w");
  351.                         fwrite($maj_fp_timestamp_txt,$maj_timestamp);
  352.                         fclose($maj_fp_timestamp_txt);
  353.  
  354.                         $maj_fp_firstname_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/firstname.txt","w");
  355.                         $maj_firstname = htmlentities($_POST['firstname'],ENT_QUOTES, 'UTF-8');
  356.                         $maj_firstname = trim($maj_firstname);
  357.                        
  358.                         if (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) {
  359.                                 $maj_firstname = mb_strtolower($maj_firstname);
  360.                         }
  361.  
  362.                         $maj_firstname = ucwords($maj_firstname);
  363.                         fwrite($maj_fp_firstname_txt,$maj_firstname);
  364.                         fclose($maj_fp_firstname_txt);
  365.  
  366.                         $maj_fp_lastname_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/lastname.txt","w");
  367.                         $maj_lastname = htmlentities($_POST['lastname'],ENT_QUOTES, 'UTF-8');
  368.                         $maj_lastname = trim($maj_lastname);
  369.  
  370.                         if (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) {
  371.                                 $maj_lastname = mb_strtolower($maj_lastname);
  372.                         }
  373.                        
  374.                         $maj_lastname = ucwords($maj_lastname);
  375.                         fwrite($maj_fp_lastname_txt,$maj_lastname);
  376.                         fclose($maj_fp_lastname_txt);
  377.  
  378.                         $maj_fp_email_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/email.txt","w");
  379.                         $maj_email = mb_strtolower($_POST['email']);
  380.                         $maj_email = trim($maj_email);
  381.                         $maj_email = htmlentities($maj_email,ENT_QUOTES, 'UTF-8');
  382.                         fwrite($maj_fp_email_txt,$maj_email);
  383.                         fclose($maj_fp_email_txt);
  384.  
  385.                         if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username) and !file_exists("$maj_data_directory/email.txt")) {
  386.                                 $maj_fp_email_root = fopen("$maj_data_directory/email.txt","w");
  387.                                 $maj_email_root = mb_strtolower($_POST['email']);
  388.                                 $maj_email_root = trim($maj_email_root);
  389.                                 $maj_email_root = htmlentities($maj_email_root,ENT_QUOTES, 'UTF-8');
  390.                                 fwrite($maj_fp_email_root,$maj_email_root);
  391.                                 fclose($maj_fp_email_root);
  392.                         }
  393.  
  394.                         if (isset($_POST['url']) and !empty($_POST['url']) and (mb_ereg("\.",$_POST['url']))) {
  395.                                 $maj_fp_url_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/url.txt","w");
  396.                                 $maj_url = str_replace("http://","",$_POST['url']);
  397.                                 $maj_url = mb_strtolower($maj_url);
  398.                                 $maj_url = trim($maj_url);
  399.                                 $maj_url = "http://" . $maj_url;
  400.                                 $maj_url = htmlentities($maj_url,ENT_QUOTES, 'UTF-8');
  401.                                 fwrite($maj_fp_url_txt,$maj_url);
  402.                                 fclose($maj_fp_url_txt);
  403.                         }
  404.  
  405.                         if (isset($_POST['cauthor']) and !empty($_POST['cauthor'])) {
  406.                                 $maj_fp_cauthor_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/author.txt","w");
  407.                                 fwrite($maj_fp_cauthor_txt,$_POST['cauthor']);
  408.                                 fclose($maj_fp_cauthor_txt);
  409.                         }
  410.  
  411.                         $maj_key_rand = str_rand(14);
  412.                         $maj_fp_key_txt = fopen("$maj_data_directory/items/$maj_req_entry/comments/pending/$maj_comment_entry_dir/key.txt","w");
  413.                         fwrite($maj_fp_key_txt,$maj_key_rand);
  414.                         fclose($maj_fp_key_txt);
  415.  
  416.                         $maj_comment_quote = ucfirst($_POST['new_comment']);
  417.        
  418.                         $maj_sig_author = file_get_contents("$maj_data_directory/author.txt");
  419.        
  420.                         $maj_sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  421.                         $maj_sig_url = str_replace('//','/',$maj_sig_url);
  422.                         $maj_sig_url = "http://" . $maj_sig_url;
  423.  
  424.                         $maj_email_to = mb_strtolower($_POST['email']);
  425.                         $maj_email_to = '"' . "$maj_firstname $maj_lastname" . '" <' . $maj_email_to . '>';
  426.  
  427.                         if (file_exists("$maj_data_directory/email.txt")) {
  428.                                 $maj_from_email_author = file_get_contents("$maj_data_directory/author.txt");
  429.                                 $maj_from_email = file_get_contents("$maj_data_directory/email.txt");
  430.                                 $maj_from_email = '"' . $maj_from_email_author . '" <' . $maj_from_email . '>';
  431.                         }
  432.  
  433.                         $maj_commented_entry_title = file_get_contents("$maj_data_directory/items/$maj_req_entry/title.txt");
  434.  
  435.                         if (!file_exists("$maj_data_directory/nak.txt") and file_exists("$maj_data_directory/email.txt")) {
  436.  
  437.                                 $maj_comment_thanks = "Hi $maj_firstname,\n\nThanks for submitting the following comment last $maj_timestamp:\n\n\"$maj_comment_quote\"\n\nIt will be e-mailed to me first for approval. Please visit the following URL to see if it has been posted:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&show=comments\n\nThanks again! =)\n\n--\n$maj_sig_author\n$maj_sig_url\n";
  438.                                 //$maj_comment_thanks = wordwrap($maj_comment_thanks);
  439.  
  440.                                 mb_send_mail($maj_email_to,"Thanks for sharing your thoughts!",$maj_comment_thanks,
  441.                                         "From: $maj_from_email\r\n" .
  442.                                         "Reply-To: $maj_from_email\r\n" .
  443.                                         "X-Mailer: $maj_mailer");
  444.                         }
  445.  
  446.                         if (file_exists("$maj_data_directory/email.txt") and !file_exists("$maj_data_directory/xscreen.txt")) {
  447.  
  448.                                 $maj_comment_notice = "The following comment was submitted by $maj_email_to last $maj_timestamp for the entry \"$maj_commented_entry_title\":\n\n\"$maj_comment_quote\"\n\nVisit the link below to approve and post this pending comment:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&comment={$maj_comment_entry_dir}&key={$maj_key_rand}&action=approve\n\nVisit the link below to disapprove and delete this pending comment:\n\n{$maj_sig_url}index.php?entry=$maj_req_entry&comment={$maj_comment_entry_dir}&key={$maj_key_rand}&action=delete\n\nYou can also approve or disapprove pending comments at a later time by logging on to your blog.";
  449.                                 //$maj_comment_notice = wordwrap($maj_comment_notice);
  450.        
  451.                                 mb_send_mail($maj_from_email,"Pending Comment",$maj_comment_notice,
  452.                                         "From: $maj_from_email\r\n" .
  453.                                         "Reply-To: $maj_from_email\r\n" .
  454.                                         "X-Mailer: $maj_mailer");
  455.                         }
  456.  
  457.                         if (!file_exists("$maj_data_directory/comments")) {
  458.                                 mkdir("$maj_data_directory/comments");
  459.                         }
  460.  
  461.                         if (!file_exists("$maj_data_directory/comments/pending")) {
  462.                                 mkdir("$maj_data_directory/comments/pending");
  463.                         }
  464.  
  465.                         $maj_pending_comment_flag = $maj_req_entry;
  466.        
  467.                         if (!file_exists("$maj_data_directory/comments/pending/$maj_pending_comment_flag")) {
  468.                                 mkdir("$maj_data_directory/comments/pending/$maj_pending_comment_flag");
  469.                         }
  470.  
  471.                         if (file_exists("$maj_data_directory/comments/pending/$maj_pending_comment_flag/count.txt")) {
  472.                                 $maj_comment_count_value = file_get_contents("$maj_data_directory/comments/pending/$maj_pending_comment_flag/count.txt");
  473.                         }
  474.                         else {
  475.                                 $maj_comment_count_value = "0";
  476.                         }
  477.  
  478.                         $maj_comment_count_value = $maj_comment_count_value + 1;
  479.  
  480.                         $maj_fp_comment_count_txt = fopen("$maj_data_directory/comments/pending/$maj_pending_comment_flag/count.txt","w");
  481.                         fwrite($maj_fp_comment_count_txt,$maj_comment_count_value);
  482.                         fclose($maj_fp_comment_count_txt);
  483.                 }
  484.         }
  485. }
  486. else {
  487.         echo "<title>$maj_default_title</title>\r\n";
  488. }
  489.  
  490. if (file_exists("$maj_data_directory/gl.txt")) {
  491.         echo "\n<script type=\"text/javascript\" src=\"https://apis.google.com/js/plusone.js\"></script>\n";
  492. }
  493.  
  494. if (file_exists("$maj_data_directory/comments/pending") and (file_exists("$maj_data_directory/xscreen.txt") or (isset($maj_logged_in_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username/xscreen.txt")))) {
  495.  
  496.         if ($maj_dh_xscreen_comments = opendir("$maj_data_directory/comments/pending")) {
  497.  
  498.                 while (($maj_xscreen_comment = readdir($maj_dh_xscreen_comments)) !== false) {
  499.  
  500.                         if ($maj_xscreen_comment != "." && $maj_xscreen_comment != "..") {
  501.                                 $maj_xscreen_comments[] = $maj_xscreen_comment;
  502.                         }
  503.                 }
  504.                 closedir($maj_dh_xscreen_comments);
  505.         }
  506.  
  507.         rsort($maj_xscreen_comments);
  508.  
  509.         if (count($maj_xscreen_comments) > 0) {
  510.  
  511.                 foreach ($maj_xscreen_comments as $maj_xscreen_dir) {
  512.  
  513.                         if ($maj_dh_xscreen_pending = opendir("$maj_data_directory/items/$maj_xscreen_dir/comments/pending")) {
  514.  
  515.                                 while (($maj_xscreen_entry = readdir($maj_dh_xscreen_pending)) !== false) {
  516.                                        
  517.                                         if ($maj_xscreen_entry != "." && $maj_xscreen_entry != "..") {
  518.  
  519.                                                 if (isset($maj_logged_in_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username/xscreen.txt")) {
  520.  
  521.                                                         if ($maj_logged_in_username == file_get_contents("$maj_data_directory/items/$maj_xscreen_dir/comments/pending/$maj_xscreen_entry/author.txt")) {
  522.        
  523.                                                                 $maj_xscreen_key = file_get_contents("$maj_data_directory/items/$maj_xscreen_dir/comments/pending/$maj_xscreen_entry/key.txt");
  524.        
  525.                                                                 header("Location: index.php?entry={$maj_xscreen_dir}&comment={$maj_xscreen_entry}&key={$maj_xscreen_key}&action=approve");
  526.                                                         }
  527.                                                 }
  528.                                                 else {
  529.                                                         $maj_xscreen_key = file_get_contents("$maj_data_directory/items/$maj_xscreen_dir/comments/pending/$maj_xscreen_entry/key.txt");
  530.  
  531.                                                         header("Location: index.php?entry={$maj_xscreen_dir}&comment={$maj_xscreen_entry}&key={$maj_xscreen_key}&action=approve");
  532.                                                 }
  533.                                         }
  534.                                 }
  535.                         }
  536.                 }
  537.  
  538.         }
  539. }
  540.  
  541. if (isset($maj_req_entry) and !empty($maj_req_entry) and file_exists("$maj_data_directory/items/$maj_req_entry")) {
  542.  
  543.         $maj_private_categories = "0";
  544.  
  545.         if (file_exists("$maj_data_directory/items/$maj_req_entry/categories")) {
  546.                        
  547.                 if ($maj_dh_entry_categories = opendir("$maj_data_directory/items/$maj_req_entry/categories")) {
  548.                        
  549.                         while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
  550.                        
  551.                                 if ($maj_entry_category != "." && $maj_entry_category != "..") {
  552.                        
  553.                                         if (file_exists("$maj_data_directory/categories/$maj_entry_category/private.txt")) {
  554.                                                 $maj_private_categories = $maj_private_categories + 1;
  555.                                         }
  556.                                 }
  557.                         }
  558.                         closedir($maj_dh_entry_categories);
  559.                 }
  560.         }
  561.  
  562.  
  563.         if ($maj_private_categories == "0") {
  564.  
  565.                 if (!file_exists("$maj_data_directory/items/$maj_req_entry/passwd.txt")) {
  566.  
  567.                         if (!file_exists("$maj_data_directory/items/$maj_req_entry/private.txt")) {
  568.  
  569.                                 $maj_description = file_get_contents("$maj_data_directory/items/$maj_req_entry/body.txt");
  570.                                 $maj_description = strip_tags($maj_description);
  571.                                 $maj_description = html_entity_decode($maj_description);
  572.                                 $maj_description = str_replace("&","&amp;",$maj_description);
  573.                                 $maj_description = str_replace("<","&lt;",$maj_description);
  574.                                 $maj_description = str_replace(">","&gt;",$maj_description);
  575.                                 $maj_description = str_replace("<br />"," ",$maj_description);
  576.                                 $maj_description = str_replace("<br>"," ",$maj_description);
  577.                                 $maj_description = str_replace("\r"," ",$maj_description);
  578.                                 $maj_description = str_replace("\n"," ",$maj_description);
  579.                                 $maj_description = str_replace(chr(10)," ",$maj_description);
  580.                                 $maj_description = str_replace(chr(13)," ",$maj_description);
  581.                                 $maj_description = trim($maj_description);
  582.                                 $maj_description = mb_substr($maj_description,0,210);
  583.                                 $maj_description = htmlentities($maj_description,ENT_QUOTES, 'UTF-8');
  584.  
  585.                                 if (file_exists("$maj_data_directory/pf.txt") and file_exists("$maj_data_directory/pf-badwords.txt") and (!isset($maj_logged_in_username) or empty($maj_logged_in_username) or (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username)))) {
  586.  
  587.                                         $maj_badwords = file_get_contents("$maj_data_directory/pf-badwords.txt");
  588.  
  589.                                         if (file_exists("$maj_data_directory/pf-censor.txt")) {
  590.                                                 $maj_censor = file_get_contents("$maj_data_directory/pf-censor.txt");
  591.                                         }
  592.                                         else {
  593.                                                 $maj_censor = "[expletive]";
  594.                                         }
  595.  
  596.                                         $maj_description = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_description);
  597.                                 }
  598.  
  599.                                 echo "<meta name=\"description\" content=\"{$maj_description}\">";
  600.                         }
  601.                 }
  602.         }
  603. }
  604.  
  605. if ($maj_dh_items = opendir("$maj_data_directory/items")) {
  606.  
  607.         while (($maj_item = readdir($maj_dh_items)) !== false) {
  608.  
  609.                 if ($maj_item != "." && $maj_item != "..") {
  610.                
  611.                         if (file_exists("$maj_data_directory/items/$maj_item/categories")) {
  612.  
  613.                                 if ($maj_dh_egroups = opendir("$maj_data_directory/items/$maj_item/categories")) {
  614.  
  615.                                         while (($maj_egroup = readdir($maj_dh_egroups)) !== false) {
  616.  
  617.                                                 if ($maj_egroup != "." && $maj_egroup != "..") {
  618.                                                        
  619.                                                         if (!file_exists("$maj_data_directory/categories/$maj_egroup")) {
  620.                                                                 rmdirr("$maj_data_directory/items/$maj_item/categories/$maj_egroup");
  621.                                                         }
  622.  
  623.                                                         if (file_exists("$maj_data_directory/categories/$maj_egroup/members")) {
  624.  
  625.                                                                 if ($maj_dh_mgroups = opendir("$maj_data_directory/categories/$maj_egroup/members")) {
  626.  
  627.                                                                         while (($maj_mgroup = readdir($maj_dh_mgroups)) !== false) {
  628.  
  629.                                                                                 if ($maj_mgroup != "." && $maj_mgroup != "..") {
  630.                                                                
  631.                                                                                         if (!file_exists("$maj_data_directory/items/$maj_item/members/$maj_mgroup")) {
  632.  
  633.                                                                                                 if (!file_exists("$maj_data_directory/items/$maj_item/members")) {
  634.                                                                                                         mkdir("$maj_data_directory/items/$maj_item/members");
  635.                                                                                                 }
  636.  
  637.                                                                                                 mkdir("$maj_data_directory/items/$maj_item/members/$maj_mgroup");
  638.                                                                                         }
  639.                                                                                 }
  640.                                                                         }
  641.                                                                         closedir($maj_dh_mgroups);
  642.                                                                 }
  643.                                                         }
  644.                                                 }
  645.                                         }
  646.                                         closedir($maj_dh_egroups);
  647.                                 }
  648.                         }
  649.  
  650.                         if (file_exists("$maj_data_directory/items/$maj_item/categories") and (count(glob("$maj_data_directory/items/$maj_item/categories/*")) < 1)) {
  651.                                 rmdirr("$maj_data_directory/items/$maj_item/categories");
  652.                         }
  653.  
  654.                         if (file_exists("$maj_data_directory/items/$maj_item/members")) {
  655.  
  656.                                 if ($maj_dh_members = opendir("$maj_data_directory/items/$maj_item/members")) {
  657.  
  658.                                         while (($maj_member = readdir($maj_dh_members)) !== false) {
  659.  
  660.                                                 if ($maj_member != "." && $maj_member != "..") {
  661.  
  662.                                                         if (!file_exists("$maj_data_directory/members/active/$maj_member")) {
  663.                                                                 rmdirr("$maj_data_directory/items/$maj_item/members/$maj_member");
  664.                                                         }
  665.                                                 }
  666.                                         }
  667.                                         closedir("$maj_data_directory/items/$maj_item/members");
  668.                                 }
  669.                         }
  670.  
  671.                         if (file_exists("$maj_data_directory/items/$maj_item/members") and (count(glob("$maj_data_directory/items/$maj_item/members/*")) < 1)) {
  672.                                 rmdirr("$maj_data_directory/items/$maj_item/members");
  673.                         }
  674.  
  675.                         if (file_exists("$maj_data_directory/items/$maj_item/comments/live") and (count(glob("$maj_data_directory/items/$maj_item/comments/live/*")) < 1)) {
  676.                                 rmdirr("$maj_data_directory/items/$maj_item/comments/live");
  677.                         }
  678.  
  679.                         if (file_exists("$maj_data_directory/items/$maj_item/comments/pending") and (count(glob("$maj_data_directory/items/$maj_item/comments/pending/*")) < 1)) {
  680.                                 rmdirr("$maj_data_directory/items/$maj_item/comments/pending");
  681.                         }
  682.  
  683.                         if (file_exists("$maj_data_directory/items/$maj_item/comments") and (count(glob("$maj_data_directory/items/$maj_item/comments/*")) < 1)) {
  684.                                 rmdirr("$maj_data_directory/items/$maj_item/comments");
  685.                         }
  686.  
  687.                         if (file_exists("$maj_data_directory/items/$maj_item/filedrop/files") and (count(glob("$maj_data_directory/items/$maj_item/filedrop/files/*")) < 1)) {
  688.                                 rmdirr("$maj_data_directory/items/$maj_item/filedrop/files");
  689.                         }
  690.  
  691.                         if (file_exists("$maj_data_directory/items/$maj_item/filedrop/count") and (count(glob("$maj_data_directory/items/$maj_item/filedrop/count/*")) < 1)) {
  692.                                 rmdirr("$maj_data_directory/items/$maj_item/filedrop/count");
  693.                         }
  694.  
  695.                         if (file_exists("$maj_data_directory/items/$maj_item/filedrop") and (count(glob("$maj_data_directory/items/$maj_item/filedrop/*")) < 1)) {
  696.                                 rmdirr("$maj_data_directory/items/$maj_item/filedrop");
  697.                         }
  698.  
  699.                         if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("$maj_data_directory/items/$maj_item/album/captions") and (count(glob("$maj_data_directory/items/$maj_item/album/captions/*")) < 1)) {
  700.                                 rmdirr("$maj_data_directory/items/$maj_item/album/captions");
  701.                         }
  702.  
  703.                         if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("$maj_data_directory/items/$maj_item/album/views") and (count(glob("$maj_data_directory/items/$maj_item/album/views/*")) < 1)) {
  704.                                 rmdirr("$maj_data_directory/items/$maj_item/album/views");
  705.                                 unlink("$maj_data_directory/items/$maj_item/album/views.txt");
  706.                         }
  707.  
  708.                         if ((!file_exists("images/$maj_item/album") or (count(glob("images/$maj_item/album/*")) < 1)) and file_exists("$maj_data_directory/items/$maj_item/album") and (count(glob("$maj_data_directory/items/$maj_item/album/*")) < 1)) {
  709.                                 rmdirr("$maj_data_directory/items/$maj_item/album");
  710.                         }
  711.  
  712.                         if (file_exists("images/$maj_item/album") and (count(glob("images/$maj_item/album/*")) < 1)) {
  713.                                 rmdirr("images/$maj_item/album");
  714.                         }
  715.  
  716.                         if (file_exists("images/$maj_item") and (count(glob("images/$maj_item/*")) < 1)) {
  717.                                 rmdirr("images/$maj_item");
  718.                         }
  719.  
  720.                         if (file_exists("images/$maj_item/categories") and (count(glob("images/$maj_item/categories/*")) < 1)) {
  721.                                 rmdirr("images/$maj_item/categories");
  722.                         }
  723.  
  724.                         $maj_grand[] = $maj_item;
  725.  
  726.                         if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  727.  
  728.                                 if (isset($maj_req_entry) or isset($maj_req_category) or isset($maj_req_archive) or isset($maj_req_find) or isset($maj_req_author)) {
  729.        
  730.                                         if (isset($maj_req_entry) and file_exists("$maj_data_directory/items/$maj_req_entry")) {
  731.                                                 $maj_items[] = $maj_req_entry;
  732.                                         }
  733.  
  734.                                         if (isset($maj_req_category) and file_exists("$maj_data_directory/categories/$maj_req_category") and file_exists("$maj_data_directory/items/$maj_item/categories/$maj_req_category")) {
  735.                                                 $maj_items[] = $maj_item;
  736.                                         }
  737.  
  738.                                         if (isset($maj_req_archive) and fnmatch("$maj_req_archive*",$maj_item)) {
  739.                                                 $maj_items[] = $maj_item;
  740.                                         }
  741.  
  742.                                         if (isset($maj_req_author) and (file_exists("$maj_data_directory/members/active/$maj_req_author") or ($maj_admin_username == $maj_req_author)) and (file_get_contents("$maj_data_directory/items/$maj_item/author.txt") == $maj_req_author)) {
  743.                                                 $maj_items[] = $maj_item;
  744.                                         }
  745.  
  746.                                         if (isset($maj_req_find)) {
  747.  
  748.                                                 if ((($maj_req_find == "private") or ($maj_req_find == "member") or ($maj_req_find == "passwd")) and file_exists("$maj_data_directory/items/$maj_item/{$maj_req_find}.txt")) {
  749.                                                         $maj_items[] = $maj_item;
  750.                                                 }
  751.  
  752.                                                 if ((($maj_req_find == "comments") or ($maj_req_find == "filedrop") or ($maj_req_find == "album")) and file_exists("$maj_data_directory/items/$maj_item/$maj_req_find")) {
  753.                                                         $maj_items[] = $maj_item;
  754.                                                 }
  755.  
  756.                                                 if (($maj_req_find == "unfiled") and !file_exists("$maj_data_directory/items/$maj_item/categories")) {
  757.                                                         $maj_items[] = $maj_item;
  758.                                                 }
  759.                                         }
  760.                                 }
  761.                                 else {
  762.                                         $maj_items[] = $maj_item;
  763.                                 }
  764.  
  765.                                 $maj_latest[] = $maj_item;
  766.  
  767.                                 if (file_exists("$maj_data_directory/items/$maj_item/album")) {
  768.                                         $maj_albums[] = $maj_item;
  769.                                 }
  770.  
  771.                                 $maj_random[] = $maj_item;                     
  772.  
  773.                                 $maj_archives[] = mb_substr($maj_item,0,6);
  774.                         }
  775.                         else {
  776.  
  777.                                 // non-admin stuff (start)
  778.  
  779.                                 $maj_today = date("YmdHis",time() + $maj_offset);
  780.        
  781.                                 if ($maj_item > $maj_today) {
  782.                                         continue;
  783.                                 }
  784.  
  785.                                 if (file_exists("$maj_data_directory/items/$maj_item/private.txt")) {
  786.                                         continue;
  787.                                 }
  788.  
  789.                                 $maj_private_categories = "0";
  790.  
  791.                                 if (file_exists("$maj_data_directory/items/$maj_item/categories")) {
  792.                        
  793.                                         if ($maj_dh_entry_categories = opendir("$maj_data_directory/items/$maj_item/categories")) {
  794.                        
  795.                                                 while (($maj_item_category = readdir($maj_dh_entry_categories)) !== false) {
  796.                        
  797.                                                         if ($maj_item_category != "." && $maj_item_category != "..") {
  798.                        
  799.                                                                 if (file_exists("$maj_data_directory/categories/$maj_item_category/private.txt")) {
  800.                                                                         $maj_private_categories = $maj_private_categories + 1;
  801.                                                                 }
  802.                                                         }
  803.                                                 }
  804.                                                 closedir($maj_dh_entry_categories);
  805.                                         }
  806.                                 }
  807.  
  808.                                 if (($maj_private_categories > 0) and !file_exists("$maj_data_directory/items/$maj_item/cat.txt")) {
  809.                                         continue;
  810.                                 }
  811.  
  812.                                 if (file_exists("$maj_data_directory/items/$maj_item/members") and (!isset($maj_logged_in_username) or !file_exists("$maj_data_directory/items/$maj_item/members/$maj_logged_in_username"))) {
  813.                                         continue;
  814.                                 }
  815.  
  816.                                 $maj_latest[] = $maj_item;
  817.                                
  818.                                 if (file_exists("$maj_data_directory/items/$maj_item/member.txt") and (!isset($maj_logged_in_username))) {
  819.                                         continue;
  820.                                 }
  821.  
  822.                                 if (file_exists("$maj_data_directory/items/$maj_item/album")) {
  823.                                         $maj_albums[] = $maj_item;
  824.                                 }
  825.  
  826.                                 $maj_random[] = $maj_item;
  827.                                 $maj_archives[] = mb_substr($maj_item,0,6);
  828.  
  829.                                 if (file_exists("$maj_data_directory/nocat.txt") and file_exists("$maj_data_directory/items/$maj_item/categories") and !file_exists("$maj_data_directory/items/$maj_item/cat.txt") and (!isset($maj_req_category) or empty($maj_req_category)) and (!isset($maj_req_entry) or empty($maj_req_entry)) and (!isset($maj_req_author) or empty($maj_req_author))) {
  830.                                         continue;
  831.                                 }
  832.  
  833.                                 if (isset($maj_req_entry) or isset($maj_req_category) or isset($maj_req_archive) or isset($maj_req_find) or isset($maj_req_author)) {
  834.        
  835.                                         if (isset($maj_req_entry) and file_exists("$maj_data_directory/items/$maj_req_entry")) {
  836.                                                
  837.                                                 if ($maj_req_entry != $maj_item) {
  838.                                                         continue;
  839.                                                 }
  840.                                                 $maj_items[] = $maj_item;
  841.                                         }
  842.  
  843.                                         if (isset($maj_req_category) and file_exists("$maj_data_directory/categories/$maj_req_category") and file_exists("$maj_data_directory/items/$maj_item/categories/$maj_req_category")) {
  844.                                                 $maj_items[] = $maj_item;
  845.                                         }
  846.  
  847.                                         if (isset($maj_req_archive) and fnmatch("$maj_req_archive*",$maj_item)) {
  848.                                                 $maj_items[] = $maj_item;
  849.                                         }
  850.  
  851.                                         if (isset($maj_req_author) and (file_exists("$maj_data_directory/members/active/$maj_req_author") or ($maj_admin_username == $maj_req_author)) and (file_get_contents("$maj_data_directory/items/$maj_item/author.txt") == $maj_req_author)) {
  852.                                                 $maj_items[] = $maj_item;
  853.                                         }
  854.                                 }
  855.                                 else {
  856.                                         $maj_items[] = $maj_item;
  857.                                 }
  858.  
  859.                                 // non-admin stuff (end)
  860.                         }
  861.                 }
  862.         }
  863.         closedir($maj_dh_items);
  864. }
  865.  
  866. sort($maj_grand);
  867.  
  868. $maj_count_grand = count($maj_grand);
  869.  
  870. if (isset($maj_req_entry) and file_exists("$maj_data_directory/items/$maj_req_entry")) {
  871.  
  872.         if (file_exists("$maj_data_directory/items/$maj_req_entry/private.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  873.                 unset($maj_items);
  874.         }
  875.  
  876.         if (file_exists("$maj_data_directory/items/$maj_req_entry/member.txt") and !isset($maj_logged_in_username)) {
  877.                 unset($maj_items);
  878.         }
  879. }
  880.  
  881. $maj_items = array_unique($maj_items);
  882. $maj_items = array_values($maj_items);
  883.  
  884. if (file_exists("$maj_data_directory/old.txt")) {
  885.         sort($maj_items);
  886. }
  887. else {
  888.         rsort($maj_items);
  889. }
  890.  
  891. $maj_count_items = count($maj_items);
  892.  
  893. rsort($maj_latest);
  894. $maj_count_latest = count($maj_latest);
  895.  
  896. rsort($maj_albums);
  897.  
  898. rsort($maj_random);
  899. $maj_count_random = count($maj_random);
  900.  
  901. rsort($maj_archives);
  902.  
  903. include("css.php");
  904.  
  905. ?>
  906.  
  907. <link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="rss.php?ver=0.91">
  908. <link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="rss.php?ver=1.0">
  909. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss.php?ver=2.0">
  910.  
  911. <?php
  912.  
  913. if (file_exists("$maj_data_directory/center.txt")) {
  914.         echo "<center>";
  915. }
  916.  
  917. if (file_exists("$maj_data_directory/header.txt")) {
  918.  
  919.         $maj_header_panel = file_get_contents("$maj_data_directory/header.txt");
  920.  
  921.         if (file_exists("$maj_data_directory/panels/$maj_header_panel") and (!file_exists("$maj_data_directory/panels/$maj_header_panel/private.txt") or isset($maj_logged_in_username))) {
  922.                 include("$maj_data_directory/panels/$maj_header_panel/panel.php");
  923.         }
  924.  
  925. }
  926.  
  927. echo "\r\n\r\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wtable\">\r\n\r\n";
  928.  
  929. if (file_exists("$maj_data_directory/panels-l.txt") and file_exists("$maj_data_directory/panels-r.txt")) {
  930.         unlink("$maj_data_directory/panels-l.txt");
  931.         unlink("$maj_data_directory/panels-r.txt");    
  932. }
  933.  
  934. if (file_exists("$maj_data_directory/panels-l.txt") ) {
  935.         echo "<tr>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wpanel\" height=\"$maj_wspace\"><div style=\"width: {$maj_wpanel}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wentry\" height=\"$maj_wspace\"><div style=\"width: {$maj_wentry}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n</tr>\r\n\r\n";
  936. }
  937. elseif (file_exists("$maj_data_directory/panels-r.txt")) {
  938.         echo "<tr>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wentry\" height=\"$maj_wspace\"><div style=\"width: {$maj_wentry}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wpanel\" height=\"$maj_wspace\"><div style=\"width: {$maj_wpanel}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n</tr>\r\n\r\n";
  939. }
  940. else {
  941.         echo "<tr>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wpanel\" height=\"$maj_wspace\"><div style=\"width: {$maj_wpanel}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wentry\" height=\"$maj_wspace\"><div style=\"width: {$maj_wentry}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wpanel\" height=\"$maj_wspace\"><div style=\"width: {$maj_wpanel}px; height: {$maj_wspace}px;\"></div></td>\r\n<td width=\"$maj_wspace\" rowspan=\"2\"><div style=\"width: {$maj_wspace}px;\"></div></td>\r\n</tr>\r\n\r\n";
  942. }
  943.  
  944. if (file_exists("$maj_data_directory/panels")) {
  945.  
  946.         if ($maj_dh_panels = opendir("$maj_data_directory/panels")) {
  947.  
  948.                 while (($maj_panel = readdir($maj_dh_panels)) !== false) {
  949.  
  950.                         if ($maj_panel != "." && $maj_panel != "..") {
  951.  
  952.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/private.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  953.                                         continue;
  954.                                 }
  955.  
  956.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/noquery.txt") and ($maj_uquery >= 0) and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  957.                                         continue;
  958.                                 }
  959.  
  960.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/auth.txt") and !isset($maj_logged_in_username)) {
  961.                                         continue;
  962.                                 }
  963.  
  964.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/right.txt")) {
  965.                                         $maj_right_panels[] = $maj_panel;
  966.                                         continue;
  967.                                 }
  968.  
  969.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/top.txt")) {
  970.                                         $maj_top_panels[] = $maj_panel;
  971.                                         continue;
  972.                                 }
  973.  
  974.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/bottom.txt")) {
  975.                                         $maj_bottom_panels[] = $maj_panel;
  976.                                         continue;
  977.                                 }
  978.  
  979.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/center.txt")) {
  980.                                         $maj_center_panels[] = $maj_panel;
  981.                                         continue;
  982.                                 }
  983.  
  984.                                 if (file_exists("$maj_data_directory/panels/$maj_panel/entry.txt")) {
  985.                                         $maj_entry_panels[] = $maj_panel;
  986.                                         continue;
  987.                                 }
  988.  
  989.                                 if (file_exists("$maj_data_directory/header.txt") and (file_get_contents("$maj_data_directory/header.txt") == $maj_panel)) {
  990.                                         continue;
  991.                                 }
  992.  
  993.                                 if (file_exists("$maj_data_directory/footer.txt") and (file_get_contents("$maj_data_directory/footer.txt") == $maj_panel)) {
  994.                                         continue;
  995.                                 }
  996.  
  997.                                 $maj_left_panels[] = $maj_panel;
  998.                         }
  999.                 }
  1000.                 closedir($maj_dh_panels);
  1001.         }
  1002.  
  1003.         sort($maj_left_panels);
  1004.         sort($maj_right_panels);
  1005.         sort($maj_top_panels);
  1006.         sort($maj_bottom_panels);
  1007.         sort($maj_center_panels);
  1008.         sort($maj_entry_panels);
  1009. }
  1010.  
  1011. echo "<tr>";
  1012.  
  1013. if (!file_exists("$maj_data_directory/panels-r.txt")) {
  1014.  
  1015.         echo "<td width=\"$maj_wpanel\" valign=\"top\">\r\n";
  1016.        
  1017.         maj_profile();
  1018.         maj_navigation();
  1019.         maj_quick_links();
  1020.        
  1021.         if (file_exists("$maj_data_directory/panels-l.txt")) {
  1022.        
  1023.                 maj_pending_comments();
  1024.                 maj_unread_comments();
  1025.                 maj_pending_members();
  1026.                 maj_bb_stats();
  1027.                 maj_search();
  1028.                 maj_find();
  1029.                 maj_categories();
  1030.                 maj_statistics();
  1031.                 maj_recent();
  1032.                 maj_albums();
  1033.                 maj_random();
  1034.                 maj_archives();
  1035.         }
  1036.  
  1037.         maj_panels($maj_left_panels);
  1038.        
  1039.         if (file_exists("$maj_data_directory/panels-l.txt")) {
  1040.  
  1041.                 maj_panels($maj_right_panels);
  1042.                 maj_badges();
  1043.         }
  1044.  
  1045.         echo "</td>";
  1046. }
  1047.  
  1048. // main
  1049.  
  1050. echo "\r\n\r\n<td valign=\"top\" width=\"$maj_wentry\">\r\n\r\n";
  1051.  
  1052. maj_panels($maj_top_panels);
  1053.  
  1054. if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/bb-summary.txt") and !file_exists("$maj_data_directory/lite.txt") and ($maj_uquery < 0)) {
  1055.  
  1056.         if ($maj_count_latest > 0) {
  1057.  
  1058.                 echo "<div class=\"panel_wrapper\"><div class=\"panel_title\">Latest Entries</div>";
  1059.                
  1060.                 echo "<div class=\"panel_body\">";
  1061.                 echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\" width=\"100%\">";
  1062.                 echo "<tr><td bgcolor=\"#eeeeee\" align=\"center\">topic</td><td bgcolor=\"#eeeeee\" align=\"center\">author</td><td bgcolor=\"#eeeeee\" align=\"center\">views</td><td bgcolor=\"#eeeeee\" align=\"center\">comments</td><td bgcolor=\"#eeeeee\" align=\"center\">last post</td></tr>";
  1063.  
  1064.                 $maj_increment_latest = 0;
  1065.  
  1066.                 while ($maj_increment_latest <= 4) {
  1067.  
  1068.                         $maj_latest_title = file_get_contents("$maj_data_directory/items/$maj_latest[$maj_increment_latest]/title.txt");
  1069.                         $maj_items_summary_comments = glob("$maj_data_directory/items/$maj_latest[$maj_increment_latest]/comments/live/*");
  1070.                         $maj_summary_comments = count($maj_items_summary_comments);
  1071.  
  1072.                         rsort($maj_items_summary_comments);
  1073.                        
  1074.                         echo "<tr><td bgcolor=\"#ffffff\">";
  1075.                        
  1076.                         if (file_exists("$maj_data_directory/items/$maj_latest[$maj_increment_latest]/member.txt") and (!isset($maj_logged_in_username))) {
  1077.                        
  1078.                                 echo "<b>$maj_latest_title</b>";
  1079.                         }
  1080.                         else {
  1081.                                 echo "<a href=\"index.php?entry=$maj_latest[$maj_increment_latest]";
  1082.        
  1083.                                 if ($maj_summary_comments > 0) {
  1084.                                         echo "&show=comments";
  1085.                                 }
  1086.                
  1087.                                 echo "\">$maj_latest_title</a>";
  1088.                         }
  1089.                        
  1090.                         echo "</td>";
  1091.  
  1092.                         echo "<td bgcolor=\"#ffffff\"><a href=\"member.php?id=";
  1093.                         readfile("$maj_data_directory/items/$maj_latest[$maj_increment_latest]/author.txt");
  1094.                         echo "\">";
  1095.                         readfile("$maj_data_directory/items/$maj_latest[$maj_increment_latest]/author.txt");
  1096.                         echo "</a></td>";
  1097.                         echo "<td bgcolor=\"#ffffff\" align=\"right\">";
  1098.  
  1099.                         if (!file_exists("$maj_data_directory/items/$maj_latest[$maj_increment_latest]/views.txt")) {
  1100.                                 echo 0;
  1101.                         }
  1102.                         else {
  1103.                                 readfile("$maj_data_directory/items/$maj_latest[$maj_increment_latest]/views.txt");
  1104.                         }
  1105.        
  1106.                         echo "</td>";
  1107.  
  1108.                         if ($maj_summary_comments < 1) {
  1109.  
  1110.                                 $maj_iso_year = mb_substr($maj_latest[$maj_increment_latest],0,4);
  1111.                                 $maj_iso_month = mb_substr($maj_latest[$maj_increment_latest],4,2);
  1112.                                 $maj_iso_day = mb_substr($maj_latest[$maj_increment_latest],6,2);
  1113.                                 $maj_iso_last = $maj_iso_year . "-" . $maj_iso_month . "-" . $maj_iso_day;
  1114.  
  1115.                                 echo "<td bgcolor=\"#ffffff\" align=\"right\">0</td>";
  1116.                                 echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_iso_last</td>";
  1117.                         }
  1118.                         else {
  1119.                                 $maj_iso_year = mb_substr(basename($maj_items_summary_comments[0]),0,4);
  1120.                                 $maj_iso_month = mb_substr(basename($maj_items_summary_comments[0]),4,2);
  1121.                                 $maj_iso_day = mb_substr(basename($maj_items_summary_comments[0]),6,2);
  1122.                                 $maj_iso_last = $maj_iso_year . "-" . $maj_iso_month . "-" . $maj_iso_day;
  1123.  
  1124.                                 echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_summary_comments</td>";
  1125.                                 echo "<td bgcolor=\"#ffffff\" align=\"right\">$maj_iso_last</td>";
  1126.                         }
  1127.        
  1128.                         unset($maj_items_summary_comments);
  1129.  
  1130.                         $maj_increment_latest = $maj_increment_latest + 1;
  1131.                 }
  1132.         }
  1133.  
  1134.         if ($maj_count_latest > 0) {
  1135.  
  1136.                 echo "</table></div></div>";
  1137.         }
  1138.  
  1139. }
  1140.  
  1141. maj_panels($maj_center_panels);
  1142.  
  1143. if (isset($maj_req_category) and !empty($maj_req_category)) {
  1144.  
  1145.         if (file_exists("$maj_data_directory/categories/$maj_req_category/book.txt")) {
  1146.        
  1147.                 if (!file_exists("$maj_data_directory/old.txt")) {
  1148.                         sort($maj_items);
  1149.                 }
  1150.                 else {
  1151.                         rsort($maj_items);
  1152.                 }
  1153.         }
  1154. }
  1155.  
  1156. if ((count($maj_top_panels) == 0) and (count($maj_center_panels) == 0) and (count($maj_bottom_panels) == 0) and ($maj_count_grand == 0)) {
  1157.  
  1158.         echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\">";
  1159.         echo "<tr><td width=\"$maj_wentry\"><div class=\"panel_wrapper\"><div class=\"panel_title\">Oops!</div>";
  1160.        
  1161.         echo "<div class=\"panel_body\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\"><tr>";
  1162.         echo "<td valign=\"middle\"><img src=\"images/oops.png\" width=\"36\" height=\"36\" border=\"0\"></td><td valign=\"middle\">";
  1163.  
  1164.         echo "No entries or central panels found. Perhaps this is a fresh install.";
  1165.  
  1166.         echo "</td></tr></table></div></div>";
  1167.         echo "</td></tr></table>";
  1168. }
  1169.  
  1170. if (($maj_count_items == 0) and ($maj_count_grand > 0)) {
  1171.  
  1172.         if (count($_GET) > 0) {
  1173.  
  1174.                 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\">";
  1175.                 echo "<tr><td width=\"$maj_wentry\"><div class=\"panel_wrapper\"><div class=\"panel_title\">Oops!</div>";
  1176.        
  1177.                 echo "<div class=\"panel_body\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\"><tr>";
  1178.                 echo "<td valign=\"middle\"><img src=\"images/oops.png\" width=\"36\" height=\"36\" border=\"0\"></td><td valign=\"middle\">";
  1179.  
  1180.                 echo "The entry you are looking for does not exist or is off limits to you.";
  1181.                
  1182.                 echo "</td></tr></table></div></div>";
  1183.                 echo "</td></tr></table>";
  1184.  
  1185.         }
  1186.  
  1187.         if ((count($_GET) == 0) and (count($maj_top_panels) == 0) and (count($maj_center_panels) == 0) and (count($maj_bottom_panels) == 0)) {
  1188.  
  1189.                 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#cccccc\" style=\"background-color: transparent;\">";
  1190.                 echo "<tr><td width=\"$maj_wentry\"><div class=\"panel_wrapper\"><div class=\"panel_title\">Oops!</div>";
  1191.        
  1192.                 echo "<div class=\"panel_body\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\"><tr>";
  1193.                 echo "<td valign=\"middle\"><img src=\"images/oops.png\" width=\"36\" height=\"36\" border=\"0\"></td><td valign=\"middle\">";
  1194.  
  1195.                 echo "Login required. Entries are off limits without proper credentials.";
  1196.  
  1197.                 echo "</td></tr></table></div></div>";
  1198.                 echo "</td></tr></table>";
  1199.         }
  1200. }
  1201.  
  1202. $maj_start = $_REQUEST['start'];
  1203.  
  1204. if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
  1205.         $maj_start = 0;
  1206. }
  1207.  
  1208. $maj_end = $maj_start + $maj_increase;
  1209.    
  1210. $maj_disp = array_slice($maj_items,$maj_start,$maj_increase);
  1211.  
  1212. foreach ($maj_disp as $maj_d) {
  1213.  
  1214.         if (file_exists("$maj_data_directory/items/$maj_d/border.txt")) {
  1215.                 $maj_d_border = file_get_contents("$maj_data_directory/items/$maj_d/border.txt");
  1216.         }
  1217.         else {
  1218.                 if (isset($maj_d_border)) {
  1219.                         unset($maj_d_border);
  1220.                 }
  1221.         }
  1222.  
  1223.         if (file_exists("$maj_data_directory/items/$maj_d/bgcolor-t.txt")) {
  1224.                 $maj_d_bgcolor_t = file_get_contents("$maj_data_directory/items/$maj_d/bgcolor-t.txt");
  1225.         }
  1226.         else {
  1227.                 if (isset($maj_d_bgcolor_t)) {
  1228.                         unset($maj_d_bgcolor_t);
  1229.                 }
  1230.         }
  1231.  
  1232.         if (file_exists("$maj_data_directory/items/$maj_d/bgcolor-b.txt")) {
  1233.                 $maj_d_bgcolor_b = file_get_contents("$maj_data_directory/items/$maj_d/bgcolor-b.txt");
  1234.         }
  1235.         else {
  1236.                 if (isset($maj_d_bgcolor_b)) {
  1237.                         unset($maj_d_bgcolor_b);
  1238.                 }
  1239.         }
  1240.  
  1241.         if (file_exists("$maj_data_directory/items/$maj_d/bgcolor-c.txt")) {
  1242.                 $maj_d_bgcolor_c = file_get_contents("$maj_data_directory/items/$maj_d/bgcolor-c.txt");
  1243.         }
  1244.         else {
  1245.                 if (isset($maj_d_bgcolor_c)) {
  1246.                         unset($maj_d_bgcolor_c);
  1247.                 }
  1248.         }
  1249.  
  1250.         if (file_exists("$maj_data_directory/items/$maj_d/bgcolor-f.txt")) {
  1251.                 $maj_d_bgcolor_f = file_get_contents("$maj_data_directory/items/$maj_d/bgcolor-f.txt");
  1252.         }
  1253.         else {
  1254.                 if (isset($maj_d_bgcolor_f)) {
  1255.                         unset($maj_d_bgcolor_f);
  1256.                 }
  1257.         }
  1258.  
  1259.         if (file_exists("$maj_data_directory/items/$maj_d/text-t.txt")) {
  1260.                 $maj_d_text_t = file_get_contents("$maj_data_directory/items/$maj_d/text-t.txt");
  1261.         }
  1262.         else {
  1263.                 if (isset($maj_d_text_t)) {
  1264.                         unset($maj_d_text_t);
  1265.                 }
  1266.         }
  1267.  
  1268.         if (file_exists("$maj_data_directory/items/$maj_d/text-b.txt")) {
  1269.                 $maj_d_text_b = file_get_contents("$maj_data_directory/items/$maj_d/text-b.txt");
  1270.         }
  1271.         else {
  1272.                 if (isset($maj_d_text_b)) {
  1273.                         unset($maj_d_text_b);
  1274.                 }
  1275.         }
  1276.  
  1277.         if (file_exists("$maj_data_directory/items/$maj_d/text-c.txt")) {
  1278.                 $maj_d_text_c = file_get_contents("$maj_data_directory/items/$maj_d/text-c.txt");
  1279.         }
  1280.         else {
  1281.                 if (isset($maj_d_text_c)) {
  1282.                         unset($maj_d_text_c);
  1283.                 }
  1284.         }
  1285.  
  1286.         if (file_exists("$maj_data_directory/items/$maj_d/text-f.txt")) {
  1287.                 $maj_d_text_f = file_get_contents("$maj_data_directory/items/$maj_d/text-f.txt");
  1288.         }
  1289.         else {
  1290.                 if (isset($maj_d_text_f)) {
  1291.                         unset($maj_d_text_f);
  1292.                 }
  1293.         }
  1294.  
  1295.         echo "\t<div class=\"panel_wrapper\">\r\n\r\n\t\t\t";
  1296.  
  1297.         if (!file_exists("$maj_data_directory/items/$maj_d/xtitle.txt") or (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username))) {
  1298.        
  1299.                 echo '<div class="panel_title"';
  1300.  
  1301.                 if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
  1302.                         echo ' style="';
  1303.                 }
  1304.  
  1305.                 if (isset($maj_d_bgcolor_t)) {
  1306.                         echo "background-color: $maj_d_bgcolor_t;";
  1307.                 }
  1308.  
  1309.                 if (isset($maj_d_text_t)) {
  1310.                         echo "color: $maj_d_text_t;";
  1311.                 }
  1312.  
  1313.                 if (isset($maj_d_border)) {
  1314.                         echo "border-color: $maj_d_border;";
  1315.                 }
  1316.  
  1317.                 if (isset($maj_d_border) or isset($maj_d_bgcolor_t) or isset($maj_d_text_t)) {
  1318.                         echo '"';
  1319.                 }
  1320.  
  1321.                 echo '>';
  1322.  
  1323.                 readfile("$maj_data_directory/items/$maj_d/title.txt");
  1324.  
  1325.                 if (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username") and file_exists("$maj_data_directory/wiki.txt") and (file_exists("$maj_data_directory/items/$maj_d/edit.txt") or (file_get_contents("$maj_data_directory/items/$maj_d/author.txt") == $maj_logged_in_username)) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username/bb-rw.txt") and !file_exists("$maj_data_directory/items/$maj_d/passwd.txt") and !file_exists("$maj_data_directory/items/$maj_d/lock.txt")) {
  1326.  
  1327.                         if (file_exists("$maj_data_directory/items/$maj_d/wiki/delta") and (count(glob("$maj_data_directory/items/$maj_d/wiki/delta/*")) > 0)) {
  1328.                                 echo "<a href=\"wiki.php?entry=$maj_d\">";
  1329.                                 echo "<img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\">";
  1330.                                 echo "</a>";
  1331.                         }
  1332.  
  1333.                         if (!file_exists("$maj_data_directory/items/$maj_d/lock.txt")) {
  1334.                                 echo "<a href=\"edit.php?entry=$maj_d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
  1335.                         }
  1336.                 }
  1337.  
  1338.                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  1339.  
  1340.                         echo "<a href=\"del.php?entry=$maj_d\"><img src=\"images/widget.del.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"delete entry\"></a>";
  1341.  
  1342.                         if (!file_exists("$maj_data_directory/items/$maj_d/private.txt") and !file_exists("$maj_data_directory/items/$maj_d/categories") and file_exists("$maj_data_directory/bb.txt") and (count(glob("$maj_data_directory/items/$maj_d/comments/live/*")) === 0) and (count(glob("$maj_data_directory/items/$maj_d/comments/pending/*")) === 0)) {
  1343.                                 echo "<a href=\"move.php?entry=$maj_d\"><img src=\"images/widget.move.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"move to comment\"></a>";
  1344.                         }
  1345.  
  1346.                         if (file_exists("$maj_data_directory/items/$maj_d/wiki/delta") and (count(glob("$maj_data_directory/items/$maj_d/wiki/delta/*")) > 0)) {
  1347.                                 echo "<a href=\"wiki.php?entry=$maj_d\"><img src=\"images/widget.back.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"revisions\"></a>";
  1348.                         }
  1349.  
  1350.                         echo "<a href=\"edit.php?entry=$maj_d\"><img src=\"images/widget.edit.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"edit entry\"></a>";
  1351.  
  1352.                         if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt")) {
  1353.                                 echo "<img src=\"images/widget.protected.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"protected entry\">";
  1354.                         }
  1355.  
  1356.                         if (file_exists("$maj_data_directory/items/$maj_d/private.txt")) {
  1357.                                 echo "<img src=\"images/widget.private.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"private entry\">";
  1358.                         }
  1359.  
  1360.                         if (file_exists("$maj_data_directory/items/$maj_d/member.txt")) {
  1361.                                 echo "<img src=\"images/widget.member.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"members-only entry\">";
  1362.                         }
  1363.  
  1364.                         if (file_exists("$maj_data_directory/items/$maj_d/cat.txt")) {
  1365.                                 echo "<img src=\"images/widget.cat.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"always displayed\">";
  1366.                         }
  1367.  
  1368.                         if (file_exists("$maj_data_directory/items/$maj_d/categories/$maj_req_category")) {
  1369.  
  1370.                                 $maj_private_categories = "0";
  1371.                                 $maj_book_categories = "0";
  1372.        
  1373.                                 if (file_exists("$maj_data_directory/items/$maj_d/categories")) {
  1374.                                
  1375.                                         if ($maj_dh_read_cat_dir = opendir("$maj_data_directory/items/$maj_d/categories")) {
  1376.                                
  1377.                                                 while (($maj_read_cat_dir = readdir($maj_dh_read_cat_dir)) !== false) {
  1378.                                
  1379.                                                         if ($maj_read_cat_dir != "." && $maj_read_cat_dir != "..") {
  1380.                                
  1381.                                                                 if (file_exists("$maj_data_directory/categories/$maj_read_cat_dir/private.txt")) {
  1382.                                                                         $maj_private_categories = $maj_private_categories + 1;
  1383.                                                                 }
  1384.  
  1385.                                                                 if (file_exists("$maj_data_directory/categories/$maj_read_cat_dir/book.txt")) {
  1386.                                                                         $maj_book_categories = $maj_book_categories + 1;
  1387.                                                                 }
  1388.                                                         }
  1389.                                                 }
  1390.                                                 closedir($maj_dh_read_cat_dir);
  1391.                                         }
  1392.                                 }
  1393.  
  1394.                                 if ($maj_private_categories > 0) {
  1395.                                         echo "<img src=\"images/widget.hidden.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"private category\">";
  1396.                                 }
  1397.  
  1398.                                 if (file_exists("$maj_data_directory/nocat.txt")) {
  1399.                                         echo "<img src=\"images/widget.isolated.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"isolated category\">";
  1400.                                 }
  1401.  
  1402.                                 if ($maj_book_categories > 0) {
  1403.                                         echo "<img src=\"images/widget.booked.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"book category\">";
  1404.                                 }
  1405.  
  1406.                                 echo "<img src=\"images/widget.filed.png\" border=\"0\" width=\"11\" height=\"11\" align=\"right\" alt=\"filed\">";
  1407.                         }
  1408.  
  1409.                 }
  1410.  
  1411.                 echo "</div>\r\n\r\n";
  1412.         }      
  1413.        
  1414.         echo "\t\t\t<div class=\"panel_entry_body\"";
  1415.  
  1416.         if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
  1417.                 echo ' style="';
  1418.         }
  1419.  
  1420.         if (isset($maj_d_bgcolor_b)) {
  1421.                 echo "background-color: $maj_d_bgcolor_b;";
  1422.         }
  1423.  
  1424.         if (isset($maj_d_text_b)) {
  1425.                 echo "color: $maj_d_text_b;";
  1426.         }
  1427.  
  1428.         if (isset($maj_d_border)) {
  1429.                 echo "border-color: $maj_d_border;";
  1430.         }
  1431.  
  1432.         if (isset($maj_d_border) or isset($maj_d_bgcolor_b) or isset($maj_d_text_b)) {
  1433.                 echo '"';
  1434.         }
  1435.  
  1436.         echo '>';
  1437.  
  1438.         if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/avatar.txt") and file_exists("$maj_data_directory/items/$maj_d/author.txt") and !file_exists("$maj_data_directory/items/$maj_d/xavatar.txt")) {
  1439.  
  1440.                 $maj_author = file_get_contents("$maj_data_directory/items/$maj_d/author.txt");
  1441.  
  1442.                 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td width=\"$maj_ablock\" valign=\"top\">";
  1443.  
  1444.                 maj_avatar_image($maj_author,$maj_aimage);
  1445.  
  1446.                 if ($maj_dh_author_posts = opendir("$maj_data_directory/items")) {
  1447.  
  1448.                         while (($maj_author_post = readdir($maj_dh_author_posts)) !== false) {
  1449.  
  1450.                                 if ($maj_author_post != "." && $maj_author_post != "..") {
  1451.  
  1452.                                         if (file_exists("$maj_data_directory/items/$maj_author_post/private.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  1453.                                                 continue;
  1454.                                         }
  1455.  
  1456.                                         $maj_private_categories = "0";
  1457.        
  1458.                                         if (file_exists("$maj_data_directory/items/$maj_author_post/categories")) {
  1459.                                
  1460.                                                 if ($maj_dh_entry_categories_posts = opendir("$maj_data_directory/items/$maj_author_post/categories")) {
  1461.                                
  1462.                                                         while (($maj_entry_category_posts = readdir($maj_dh_entry_categories_posts)) !== false) {
  1463.                                
  1464.                                                                 if ($maj_entry_category_posts != "." && $maj_entry_category_posts != "..") {
  1465.                                
  1466.                                                                         if (file_exists("$maj_data_directory/categories/$maj_entry_category_posts/private.txt")) {
  1467.                                                                                 $maj_private_categories = $maj_private_categories + 1;
  1468.                                                                         }
  1469.                                                                 }
  1470.                                                         }
  1471.                                                         closedir($maj_dh_entry_categories_posts);
  1472.                                                 }
  1473.                                         }
  1474.        
  1475.                                         if (($maj_private_categories > 0) and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and !file_exists("$maj_data_directory/items/$maj_author_post/cat.txt")) {
  1476.                                                 continue;
  1477.                                         }
  1478.  
  1479.                                         if (file_exists("$maj_data_directory/members/active/$maj_author") and file_exists("$maj_data_directory/bb.txt")) {
  1480.  
  1481.                                                 if (file_exists("$maj_data_directory/items/$maj_author_post/author.txt") and (file_get_contents("$maj_data_directory/items/$maj_author_post/author.txt") == $maj_author)) {
  1482.                                                         $maj_items_posts[] = $maj_author_post;
  1483.                                                 }
  1484.                                         }
  1485.                                         elseif (!file_exists("$maj_data_directory/members/active/$maj_author") and ($maj_admin_username == $maj_author) and file_exists("$maj_data_directory/bb.txt")) {
  1486.  
  1487.                                                 if (file_exists("$maj_data_directory/items/$maj_author_post/author.txt") and (file_get_contents("$maj_data_directory/items/$maj_author_post/author.txt") == $maj_author)) {
  1488.                                                         $maj_items_posts[] = $maj_author_post;
  1489.                                                 }
  1490.                                         }
  1491.                                 }
  1492.                         }
  1493.                         closedir($maj_dh_author_posts);
  1494.                 }
  1495.  
  1496.                 $maj_posts = count($maj_items_posts);
  1497.  
  1498.                 if ($maj_posts == 1) {
  1499.                         echo "$maj_posts post";
  1500.                 }
  1501.  
  1502.                 if ($maj_posts > 1) {
  1503.                         echo "$maj_posts posts";
  1504.                 }
  1505.  
  1506.                 unset($maj_items_posts);
  1507.  
  1508.                 echo "</td><td valign=\"top\">";
  1509.         }
  1510.  
  1511.         if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt")) {
  1512.                 $maj_passwd = file_get_contents("$maj_data_directory/items/$maj_d/passwd.txt");
  1513.         }
  1514.  
  1515.         if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd'])) {
  1516.                 $maj_crypt_passwd = sha1($_REQUEST['passwd']);
  1517.                 $maj_crypt_passwd = md5($maj_crypt_passwd);
  1518.                 $maj_crypt_passwd = crypt($maj_crypt_passwd,$maj_crypt_passwd);
  1519.         }
  1520.  
  1521.  
  1522.         if (!file_exists("$maj_data_directory/items/$maj_d/xdate.txt") or (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username))) {
  1523.  
  1524.                 echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
  1525.  
  1526.                 if ((file_exists("$maj_data_directory/items/$maj_d/author.txt") and (file_exists("$maj_data_directory/bb.txt") and !file_exists("$maj_data_directory/avatar.txt")) or (file_exists("$maj_data_directory/items/$maj_d/author.txt") and (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username) and !file_exists("$maj_data_directory/avatar.txt"))))) {
  1527.  
  1528.                         $maj_xavatar_author = file_get_contents("$maj_data_directory/items/$maj_d/author.txt");
  1529.  
  1530.                         if (!file_exists("$maj_data_directory/items/$maj_d/xauthor.txt") or (file_exists("$maj_data_directory/items/$maj_d/xauthor.txt") and ($maj_logged_in_username == $maj_admin_username))) {
  1531.                                 echo "<a href=\"member.php?id=$maj_xavatar_author\" style=\"font-size: $maj_font_Spx;\">$maj_xavatar_author</a> - ";
  1532.                         }
  1533.                 }
  1534.  
  1535.                 entry2date($maj_d);
  1536.  
  1537.                 if ((isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) or file_exists("$maj_data_directory/items/$maj_d/lastmod.txt")) {
  1538.  
  1539.                         if (file_exists("$maj_data_directory/items/$maj_d/revisions.txt")) {
  1540.                                 echo " (Revision ";
  1541.                                 readfile("$maj_data_directory/items/$maj_d/revisions.txt");
  1542.                                 echo " - ";
  1543.                                 echo date("l, M j, Y, g:i A",filemtime("$maj_data_directory/items/$maj_d/body.txt"));
  1544.                                 echo ")";
  1545.                         }
  1546.                 }
  1547.  
  1548.                 echo "</font><div style=\"height: {$maj_wspace}px;\"></div>";
  1549.         }
  1550.        
  1551.        
  1552.         if (isset($maj_d_text_b)) {
  1553.                 echo "<font style=\"color: $maj_d_text_b;\">";
  1554.         }
  1555.  
  1556.         if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
  1557.                 echo "This entry is password protected. If you know the magic word, click <a href=\"passwd.php?entry=$maj_d\">here</a> to enter it.";
  1558.         }
  1559.         else {
  1560.                 $maj_entry_body = file_get_contents("$maj_data_directory/items/$maj_d/body.txt");
  1561.  
  1562.                 if (file_exists("$maj_data_directory/pf.txt") and file_exists("$maj_data_directory/pf-badwords.txt") and (!isset($maj_logged_in_username) or empty($maj_logged_in_username) or (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username)))) {
  1563.  
  1564.                         $maj_badwords = file_get_contents("$maj_data_directory/pf-badwords.txt");
  1565.  
  1566.                         if (file_exists("$maj_data_directory/pf-censor.txt")) {
  1567.                                 $maj_censor = file_get_contents("$maj_data_directory/pf-censor.txt");
  1568.                         }
  1569.                         else {
  1570.                                 $maj_censor = "[expletive]";
  1571.                         }
  1572.                         $maj_entry_body = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_entry_body);
  1573.                 }
  1574.  
  1575.                 if (file_exists("$maj_data_directory/items/$maj_d/maxlines.txt") and (!isset($maj_req_entry) or empty($maj_req_entry))) {
  1576.  
  1577.                         $maj_entry_shorten = file_get_contents("$maj_data_directory/items/$maj_d/maxlines.txt");
  1578.  
  1579.                         $maj_entry_lines = explode("\r",$maj_entry_body);
  1580.  
  1581.                         if (count($maj_entry_lines) > $maj_entry_shorten) {
  1582.                                 $maj_entry_body = implode("",array_slice($maj_entry_lines,0,$maj_entry_shorten));
  1583.                                 $maj_entry_body = $maj_entry_body . "<br><br><a href=\"index.php?entry=$maj_d\">read more</a>";
  1584.                         }
  1585.                 }
  1586.  
  1587.                 echo "$maj_entry_body";
  1588.         }
  1589.  
  1590.         if (($maj_admin_username == $maj_author) and file_exists("$maj_data_directory/sig.txt") and file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/bb-sig.txt")) {
  1591.                 $maj_sig = file_get_contents("$maj_data_directory/sig.txt");
  1592.                 echo "<br><br>--<br>$maj_sig";
  1593.         }
  1594.         elseif (file_exists("$maj_data_directory/members/active/$maj_author/sig.txt") and file_exists("$maj_data_directory/bb.txt")  and file_exists("$maj_data_directory/bb-sig.txt")) {
  1595.                 $maj_sig = file_get_contents("$maj_data_directory/members/active/$maj_author/sig.txt");
  1596.                 echo "<br><br>--<br>$maj_sig";
  1597.         }
  1598.  
  1599.         if ((file_exists("$maj_data_directory/gl.txt") and file_exists("$maj_data_directory/items/$maj_d/gl.txt")) or (file_exists("$maj_data_directory/fb.txt") and file_exists("$maj_data_directory/items/$maj_d/fb.txt"))) {
  1600.  
  1601.                 if (isset($_SERVER['HTTPS'])) {
  1602.                         $entry_url = "https://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), "/\\") . "/index.php?entry=$maj_d";
  1603.                 }
  1604.                 else {
  1605.                         $entry_url = "http://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), "/\\") . "/index.php?entry=$maj_d";
  1606.                 }
  1607.         }
  1608.        
  1609.         if (file_exists("$maj_data_directory/gl.txt") and file_exists("$maj_data_directory/items/$maj_d/gl.txt")) {
  1610.                 echo "<p><g:plusone size=\"medium\" href=\"$entry_url\"></g:plusone></p>";
  1611.         }
  1612.  
  1613.         if (file_exists("$maj_data_directory/fb.txt") and file_exists("$maj_data_directory/items/$maj_d/fb.txt")) {
  1614.                 echo "<p><div id=\"fb-root\"></div><script src=\"http://connect.facebook.net/en_US/all.js#xfbml=1\"></script><fb:like href=\"$entry_url\" send=\"false\" width=\"$maj_max_entry_width\" show_faces=\"false\" font=\"\"></fb:like></p>";
  1615.         }
  1616.  
  1617.         if (isset($maj_d_text_b)) {
  1618.                 echo "</font>";
  1619.         }
  1620.  
  1621.         if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/avatar.txt") and file_exists("$maj_data_directory/items/$maj_d/author.txt") and !file_exists("$maj_data_directory/items/$maj_d/xavatar.txt")) {
  1622.                 echo "</td></tr></table>";
  1623.         }
  1624.  
  1625.         echo "\r\n\t\t\t</div>";
  1626.  
  1627.         if (file_exists("$maj_data_directory/items/$maj_d/categories") and ($maj_logged_in_username == $maj_admin_username)) {
  1628.                
  1629.                 if ($maj_dh_entry_categories = opendir("$maj_data_directory/items/$maj_d/categories")) {
  1630.                
  1631.                         while (($maj_entry_category = readdir($maj_dh_entry_categories)) !== false) {
  1632.                
  1633.                                 if ($maj_entry_category != "." && $maj_entry_category != "..") {
  1634.                                         $maj_entry_categories[] = $maj_entry_category;
  1635.                                 }
  1636.                         }
  1637.                         closedir($maj_dh_entry_categories);
  1638.                 }
  1639.  
  1640.                 sort($maj_entry_categories);
  1641.  
  1642.                 if (count($maj_entry_categories) > 0) {
  1643.  
  1644.                         if (count($maj_entry_categories) > 1) {
  1645.                                 $maj_category_list = "categories";
  1646.                         }
  1647.                         else {
  1648.                                 $maj_category_list = "category";
  1649.                         }
  1650.  
  1651.                         foreach ($maj_entry_categories as $maj_filed_under) {
  1652.                                 $maj_category_list = $maj_category_list . " | <a href=\"index.php?category=$maj_filed_under\" class=\"status\">$maj_filed_under</a>";
  1653.                         }
  1654.  
  1655.                         echo "\r\n\r\n\t\t\t<div class=\"panel_category\"";
  1656.  
  1657.                         if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
  1658.                                 echo ' style="';
  1659.                         }
  1660.  
  1661.                         if (isset($maj_d_bgcolor_c)) {
  1662.                                 echo "background-color: $maj_d_bgcolor_c;";
  1663.                         }
  1664.  
  1665.                         if (isset($maj_d_text_c)) {
  1666.                                 echo "color: $maj_d_text_c;";
  1667.                         }
  1668.  
  1669.                         if (isset($maj_d_border)) {
  1670.                                 echo "border-color: $maj_d_border;";
  1671.                         }
  1672.  
  1673.                         if (isset($maj_d_border) or isset($maj_d_bgcolor_c) or isset($maj_d_text_c)) {
  1674.                                 echo '"';
  1675.                         }
  1676.  
  1677.                         echo ">$maj_category_list</div>";
  1678.                 }
  1679.                 unset($maj_entry_categories);
  1680.         }
  1681.  
  1682.         echo "\r\n\r\n\t\t\t<div class=\"panel_footer\"";
  1683.  
  1684.         if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
  1685.                 echo ' style="';
  1686.         }
  1687.  
  1688.         if (isset($maj_d_bgcolor_f)) {
  1689.                 echo "background-color: $maj_d_bgcolor_f;";
  1690.         }
  1691.  
  1692.         if (isset($maj_d_text_f)) {
  1693.                 echo "color: $maj_d_text_f;";
  1694.         }
  1695.  
  1696.         if (isset($maj_d_border)) {
  1697.                 echo "border-color: $maj_d_border;";
  1698.         }
  1699.  
  1700.         if (isset($maj_d_border) or isset($maj_d_bgcolor_f) or isset($maj_d_text_f)) {
  1701.                 echo '"';
  1702.         }
  1703.  
  1704.         echo ">\r\n\t\t\t\t";
  1705.  
  1706.         if (!file_exists("$maj_data_directory/nocomment.txt") or (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) or (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) or (file_exists("$maj_data_directory/memcomment.txt") and isset($maj_logged_in_username)) or file_exists("$maj_data_directory/items/$maj_d/ucomment.txt")) {
  1707.  
  1708.                 if (!file_exists("$maj_data_directory/items/$maj_d/comments/live")) {
  1709.                         echo "<a href=\"index.php?entry=$maj_d&show=comments\" class=\"status\">add comment</a>";
  1710.                 }
  1711.                 else {
  1712.                         if ($maj_dh_comments = opendir("$maj_data_directory/items/$maj_d/comments/live")) {
  1713.        
  1714.                                 while (($maj_live_comment = readdir($maj_dh_comments)) !== false) {
  1715.        
  1716.                                         if ($maj_live_comment != "." && $maj_live_comment != "..") {
  1717.                                                 $maj_live_comments[] = $maj_live_comment;
  1718.                                         }
  1719.                                 }
  1720.                                 closedir($maj_dh_comments);
  1721.                         }
  1722.  
  1723.                         $maj_count_live_comments = count($maj_live_comments);
  1724.  
  1725.                         echo "<a href=\"index.php?entry=$maj_d&show=comments\" class=\"status\">";
  1726.  
  1727.                         if ($maj_count_live_comments == 1) {
  1728.                                 echo "$maj_count_live_comments comment";
  1729.                         }
  1730.                         elseif ($maj_count_live_comments < 1) {
  1731.                                 echo "add comment";
  1732.                         }
  1733.                         else {
  1734.                                 echo "$maj_count_live_comments comments";
  1735.                         }
  1736.                         echo "</a>";
  1737.  
  1738.                         unset($maj_live_comments);
  1739.                 }
  1740.         }
  1741.         else {
  1742.                 echo "<a href=\"index.php?entry=$maj_d\" class=\"status\">permalink</a>";
  1743.         }
  1744.  
  1745.         if (file_exists("$maj_data_directory/items/$maj_d/views.txt")) {
  1746.  
  1747.                 $maj_views_value = file_get_contents("$maj_data_directory/items/$maj_d/views.txt");
  1748.  
  1749.                 if ($maj_views_value == 1) {
  1750.                         echo " ($maj_views_value view) ";
  1751.                 }
  1752.                 elseif ($maj_views_value > 1) {
  1753.                         echo " ($maj_views_value views) ";
  1754.                 }
  1755.                 else {
  1756.                         echo " ";
  1757.                 }
  1758.         }
  1759.  
  1760.         if (!file_exists("images/$maj_d/album")) {
  1761.                 echo " ";
  1762.         }
  1763.         else {
  1764.                 if ($maj_dh_album = opendir("images/$maj_d/album")) {
  1765.  
  1766.                         while (($maj_entry_album = readdir($maj_dh_album)) !== false) {
  1767.  
  1768.                                 if ($maj_entry_album != "." && $maj_entry_album != "..") {
  1769.                                         $maj_items_album[] = $maj_entry_album;
  1770.                                 }
  1771.                         }
  1772.                         closedir($maj_dh_album);
  1773.                 }
  1774.  
  1775.                 $maj_album = count($maj_items_album);
  1776.  
  1777.                 echo " | <a href=\"index.php?entry=$maj_d&show=album\" class=\"status\">";
  1778.  
  1779.                 if ($maj_album == 1) {
  1780.                         echo "$maj_album image";
  1781.                 }
  1782.                 elseif ($maj_album < 1) {
  1783.                         echo "album";
  1784.                 }
  1785.                 else {
  1786.                         echo "$maj_album images";
  1787.                 }
  1788.  
  1789.                 echo "</a>";
  1790.  
  1791.                 unset($maj_items_album);
  1792.         }
  1793.  
  1794.         if (file_exists("images/$maj_d/album") and isset($maj_req_entry) and !empty($maj_req_entry) and isset($maj_req_show) and !empty($maj_req_show) and ($maj_req_show == album)) {
  1795.  
  1796.                 if (!file_exists("$maj_data_directory/items/$maj_d/album")) {
  1797.                         mkdir("$maj_data_directory/items/$maj_d/album");
  1798.                 }
  1799.  
  1800.                 if ((!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  1801.  
  1802.                         $maj_album_views_value = file_get_contents("$maj_data_directory/items/$maj_d/album/views.txt");
  1803.  
  1804.                         $maj_album_views_value = $maj_album_views_value + 1;
  1805.  
  1806.                         $maj_fp_album_views_txt = fopen("$maj_data_directory/items/$maj_d/album/views.txt","w");
  1807.                         fwrite($maj_fp_album_views_txt,$maj_album_views_value);
  1808.                         fclose($maj_fp_album_views_txt);
  1809.                 }
  1810.         }
  1811.  
  1812.         $maj_album_views_value = file_get_contents("$maj_data_directory/items/$maj_d/album/views.txt");
  1813.  
  1814.         if ($maj_album_views_value == 1) {
  1815.                 echo " ($maj_album_views_value view) ";
  1816.         }
  1817.         elseif ($maj_album_views_value > 1) {
  1818.                 echo " ($maj_album_views_value views) ";
  1819.         }
  1820.         else {
  1821.                 echo " ";
  1822.         }
  1823.  
  1824.         if (file_exists("media/$maj_d/videos")) {
  1825.  
  1826.                 if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($maj_req_show) and !empty($maj_req_show) and ($maj_req_show == videos)) {
  1827.                
  1828.                         if (!file_exists("$maj_data_directory/items/$maj_d/media")) {
  1829.                                 mkdir("$maj_data_directory/items/$maj_d/media");
  1830.                         }
  1831.  
  1832.                         if (!file_exists("$maj_data_directory/items/$maj_d/media/videos")) {
  1833.                                 mkdir("$maj_data_directory/items/$maj_d/media/videos");
  1834.                         }
  1835.                        
  1836.                         if ((!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  1837.  
  1838.                                 if (!file_exists("$maj_data_directory/items/$maj_d/media/videos/views.txt")) {
  1839.                                         $maj_videos_views_value = 0;
  1840.                                 }
  1841.                                 else {
  1842.                                         $maj_videos_views_value = file_get_contents("$maj_data_directory/items/$maj_d/media/videos/views.txt");
  1843.                                 }
  1844.                                
  1845.                                 $maj_videos_views_value = $maj_videos_views_value + 1;
  1846.  
  1847.                                 $maj_fp_videos_views_txt = fopen("$maj_data_directory/items/$maj_d/media/videos/views.txt","w");
  1848.                                 fwrite($maj_fp_videos_views_txt,$maj_videos_views_value);
  1849.                                 fclose($maj_fp_videos_views_txt);
  1850.                         }
  1851.                 }
  1852.        
  1853.                 // remove the code below once a suitable clean-up procedure is created in the video uploader
  1854.                 $maj_videos = glob("media/$maj_d/videos/*");
  1855.        
  1856.                 foreach ($maj_videos as $maj_video) {
  1857.                        
  1858.                         if (!preg_match("/\.mp4$/i",$maj_video) and !preg_match("/\.ogv$/i",$maj_video) and !preg_match("/\.webm$/i",$maj_video)) {
  1859.                                 unlink("$maj_video");
  1860.                         }
  1861.                        
  1862.                         unset($maj_video);
  1863.                 }
  1864.                        
  1865.                 unset($maj_videos);
  1866.                 // remove the code above once a suitable clean-up procedure is created in the video uploader
  1867.        
  1868.                 $maj_videos = glob("media/$maj_d/videos/*");
  1869.                 $maj_videos = preg_replace("/\.mp4$/i","",$maj_videos);
  1870.                 $maj_videos = preg_replace("/\.ogv$/i","",$maj_videos);
  1871.                 $maj_videos = preg_replace("/\.webm$/i","",$maj_videos);
  1872.                 $maj_videos = array_unique($maj_videos);
  1873.        
  1874.                 sort($maj_videos);
  1875.                
  1876.                 $maj_videos_count = count($maj_videos);
  1877.                
  1878.                 if ($maj_videos_count > 0) {
  1879.                
  1880.                         echo " | <a href=\"index.php?entry=$maj_d&show=videos\" class=\"status\">$maj_videos_count ";
  1881.                        
  1882.                         if ($maj_videos_count == 1) {
  1883.                                 echo "video";
  1884.                         }
  1885.                         else {
  1886.                                 echo "videos";
  1887.                         }
  1888.                        
  1889.                         echo "</a>";
  1890.                        
  1891.                         if (file_exists("$maj_data_directory/items/$maj_d/media/videos/views.txt")) {
  1892.                        
  1893.                                 $maj_videos_views = file_get_contents("$maj_data_directory/items/$maj_d/media/videos/views.txt");
  1894.                        
  1895.                                 if ($maj_videos_views > 0) {
  1896.  
  1897.                                         echo " ($maj_videos_views ";
  1898.  
  1899.                                         if ($maj_videos_views == 1) {
  1900.                                                 echo "view";
  1901.                                         }
  1902.                                         else {
  1903.                                                 echo "views";
  1904.                                         }                                      
  1905.                                         echo ")";      
  1906.                                 }
  1907.                         }
  1908.                 }
  1909.         }
  1910.  
  1911.         if (!file_exists("$maj_data_directory/items/$maj_d/filedrop/files")) {
  1912.                 echo " ";
  1913.         }
  1914.         else {
  1915.                 if ($maj_dh_filedrop = opendir("$maj_data_directory/items/$maj_d/filedrop/files")) {
  1916.  
  1917.                         while (($maj_dl_file = readdir($maj_dh_filedrop)) !== false) {
  1918.  
  1919.                                 if ($maj_dl_file != "." && $maj_dl_file != "..") {
  1920.                                         $maj_items_filedrop[] = $maj_dl_file;
  1921.                                 }
  1922.                         }
  1923.                         closedir($maj_dh_filedrop);
  1924.                 }
  1925.  
  1926.                 $maj_filedrop = count($maj_items_filedrop);
  1927.  
  1928.                 echo " | <a href=\"index.php?entry=$maj_d&show=filedrop\" class=\"status\">";
  1929.  
  1930.                 if ($maj_filedrop == 1) {
  1931.                         echo "$maj_filedrop file";
  1932.                 }
  1933.                 elseif ($maj_filedrop < 1) {
  1934.                         echo "filedrop";
  1935.                 }
  1936.                 else {
  1937.                         echo "$maj_filedrop files";
  1938.                 }
  1939.  
  1940.                 echo "</a> ";
  1941.  
  1942.                 unset($maj_items_filedrop);
  1943.         }
  1944.  
  1945.         if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($maj_req_show) and !empty($maj_req_show) and ($maj_req_show == filedrop)) {
  1946.  
  1947.                 if (!file_exists("$maj_data_directory/items/$maj_d/filedrop")) {
  1948.                         mkdir("$maj_data_directory/items/$maj_d/filedrop");
  1949.                 }
  1950.  
  1951.                 if (file_exists("$maj_data_directory/items/$maj_d/filedrop/files") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  1952.  
  1953.                         $maj_filedrop_views_value = file_get_contents("$maj_data_directory/items/$maj_d/filedrop/views.txt");
  1954.  
  1955.                         $maj_filedrop_views_value = $maj_filedrop_views_value + 1;
  1956.  
  1957.                         $maj_fp_filedrop_views_txt = fopen("$maj_data_directory/items/$maj_d/filedrop/views.txt","w");
  1958.                         fwrite($maj_fp_filedrop_views_txt,$maj_filedrop_views_value);
  1959.                         fclose($maj_fp_filedrop_views_txt);
  1960.                 }
  1961.         }
  1962.  
  1963.  
  1964.         $maj_filedrop_views_value = file_get_contents("$maj_data_directory/items/$maj_d/filedrop/views.txt");
  1965.  
  1966.         if ($maj_filedrop_views_value == 1) {
  1967.                 echo " ($maj_filedrop_views_value view) ";
  1968.         }
  1969.         elseif ($maj_filedrop_views_value > 1) {
  1970.                 echo " ($maj_filedrop_views_value views) ";
  1971.         }
  1972.         else {
  1973.                 echo " ";
  1974.         }
  1975.  
  1976.         if (!file_exists("$maj_data_directory/nocomment.txt") or (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) or (file_exists("$maj_data_directory/memcomment.txt") and isset($maj_logged_in_username)) or file_exists("$maj_data_directory/items/$maj_d/ucomment.txt")) {
  1977.                 echo "| <a href=\"index.php?entry=$maj_d\" class=\"status\">permalink</a>";
  1978.         }
  1979.  
  1980.         echo "\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n";
  1981.  
  1982.         maj_panels($maj_entry_panels);
  1983.  
  1984.         if (file_exists("images/$maj_d/album") and (file_exists("$maj_data_directory/items/$maj_d/auto-album.txt") or (isset($maj_req_entry) and !empty($maj_req_entry) and isset($maj_req_show) and !empty($maj_req_show) and ($maj_req_show == album)))) {
  1985.  
  1986.                 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wentry\"><tr><td>";
  1987.  
  1988.                 echo '<div class="panel_wrapper"><div class="panel_title">Album';
  1989.                
  1990.                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  1991.                         echo '<a href=del.php?entry=';
  1992.                         echo $maj_d;
  1993.                         echo '&target=album><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete album"></a>';
  1994.                 }
  1995.                 echo '</div><div class=panel_body>';
  1996.  
  1997.                 if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
  1998.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$maj_d&show=album>here</a> to enter it.";
  1999.                 }
  2000.                 else {
  2001.                         if (file_exists("images/$maj_d/thumbnails")) {
  2002.                                 if ($maj_dh_album = opendir("images/$maj_d/thumbnails")) {
  2003.                                         while (($maj_thumbnail_album = readdir($maj_dh_album)) !== false) {
  2004.                                                 if ($maj_thumbnail_album != "." && $maj_thumbnail_album != "..") {
  2005.                                                         $maj_current_thumbnail = "images/$maj_d/thumbnails/$maj_thumbnail_album";
  2006.                                                         $maj_parent_image = str_replace("-thumbnail.jpg","",$maj_thumbnail_album);
  2007.                                                         $maj_parent_image = "images/$maj_d/album/$maj_parent_image";
  2008.                                                         if (file_exists($maj_current_thumbnail) and !file_exists($maj_parent_image)) {
  2009.                                                                 unlink($maj_current_thumbnail);
  2010.                                                         }
  2011.                                                 }
  2012.                                         }
  2013.                                 }
  2014.                         }
  2015.  
  2016.                         if (file_exists("$maj_data_directory/items/$maj_d/album/captions")) {
  2017.                                 if ($maj_dh_album = opendir("$maj_data_directory/items/$maj_d/album/captions")) {
  2018.                                         while (($maj_caption_album = readdir($maj_dh_album)) !== false) {
  2019.                                                 if ($maj_caption_album != "." && $maj_caption_album != "..") {
  2020.                                                         $maj_current_caption = "$maj_data_directory/items/$maj_d/album/captions/$maj_caption_album";
  2021.                                                         $maj_parent_image = str_replace(".txt","",$maj_caption_album);
  2022.                                                         $maj_parent_image = "images/$maj_d/album/$maj_parent_image";
  2023.                                                         if (file_exists($maj_current_caption) and !file_exists($maj_parent_image)) {
  2024.                                                                 unlink($maj_current_caption);
  2025.                                                         }
  2026.                                                 }
  2027.                                         }
  2028.                                 }
  2029.                         }
  2030.        
  2031.                         if (file_exists("images/$maj_d/album")) {
  2032.                                 if ($maj_dh_album = opendir("images/$maj_d/album")) {
  2033.                                         while (($maj_entry_album = readdir($maj_dh_album)) !== false) {
  2034.                                                 if ($maj_entry_album != "." && $maj_entry_album != "..") {
  2035.                                                         $maj_sort_album[] = $maj_entry_album;
  2036.                                                 }
  2037.                                         }
  2038.                                 closedir($maj_dh_album);
  2039.                                 }
  2040.        
  2041.                                 sort($maj_sort_album);
  2042.  
  2043.                                 $maj_count_album_entry = count($maj_sort_album);
  2044.                                
  2045.                                 if ($maj_count_album_entry < 1) {
  2046.                                         rmdirr("images/$maj_d/album");
  2047.                                         rmdirr("images/$maj_d/thumbnails");                            
  2048.                                 }
  2049.                                 else {
  2050.                                         foreach($maj_sort_album as $maj_album_entry) {
  2051.                                                 $maj_current_image = "images/$maj_d/album/$maj_album_entry";
  2052.                                                 $maj_current_image_size = getimagesize($maj_current_image);
  2053.                                                 $maj_current_width = $maj_current_image_size[0];
  2054.                                                 $maj_current_height = $maj_current_image_size[1];
  2055.                                                 $maj_max_width = 95;
  2056.                                                 $maj_max_height = 71;
  2057.  
  2058.                                                 if (($maj_current_width > $maj_max_width) || ($maj_current_height > $maj_max_height)) {  
  2059.  
  2060.                                                         if ($maj_current_height > $maj_current_width) {
  2061.                                                                 $maj_sizefactor = (double) ($maj_max_height / $maj_current_height);
  2062.                                                         }
  2063.                                                         else {
  2064.                                                                 $maj_sizefactor = (double) ($maj_max_width / $maj_current_width) ;
  2065.                                                         }
  2066.  
  2067.                                                         $maj_new_width = (int) ($maj_current_width * $maj_sizefactor);
  2068.                                                         $maj_new_height = (int) ($maj_current_height * $maj_sizefactor);
  2069.                                                 }
  2070.                                                 else {
  2071.                                                         $maj_new_width = $maj_current_width;
  2072.                                                         $maj_new_height = $maj_current_height;
  2073.                                                 }
  2074.        
  2075.                                                 if (!file_exists("images/$maj_d/thumbnails/{$maj_album_entry}-thumbnail.jpg")) {
  2076.        
  2077.                                                         $maj_work_thumb = imagecreatetruecolor($maj_new_width,$maj_new_height);
  2078.                                                         $maj_get_mimetype = image_type_to_mime_type(exif_imagetype($maj_current_image));
  2079.  
  2080.                                                         switch($maj_get_mimetype) {
  2081.                                                                 case "image/jpg":
  2082.                                                                 case "image/jpeg":
  2083.                                                                         $maj_work_image = imagecreatefromjpeg($maj_current_image);
  2084.                                                                         break;
  2085.                                                                 case "image/gif":
  2086.                                                                         $maj_work_image = imagecreatefromgif($maj_current_image);
  2087.                                                                         break;
  2088.                                                                 case "image/png":
  2089.                                                                         $maj_work_image = imagecreatefrompng($maj_current_image);
  2090.                                                                         break;
  2091.                                                         }
  2092.        
  2093.                                                         imagecopyresampled($maj_work_thumb,$maj_work_image,0,0,0,0,$maj_new_width,$maj_new_height,$maj_current_width,$maj_current_height);
  2094.        
  2095.                                                         if (!file_exists("images/$maj_d/thumbnails")) {
  2096.                                                                 mkdir("images/$maj_d/thumbnails");
  2097.                                                         }
  2098.        
  2099.                                                         imagejpeg($maj_work_thumb,"images/$maj_d/thumbnails/{$maj_album_entry}-thumbnail.jpg",$maj_aimage);
  2100.  
  2101.                                                         imagedestroy($maj_work_thumb);
  2102.                                                         imagedestroy($maj_work_image);
  2103.                                                 }
  2104.  
  2105.                                                 echo "<a href=\"album.php?entry=$maj_d&show=$maj_album_entry\">";
  2106.  
  2107.                                                 if (!file_exists("images/$maj_d/thumbnails/{$maj_album_entry}-thumbnail.jpg")) {
  2108.                                                         echo "<img src=\"images/$maj_d/album/$maj_album_entry\" width=$maj_new_width height=$maj_new_height border=0 hspace=2 vspace=2";
  2109.                                                 }
  2110.                                                 else {
  2111.                                                         echo "<img src=\"images/$maj_d/thumbnails/{$maj_album_entry}-thumbnail.jpg\" width=$maj_new_width height=$maj_new_height border=0 hspace=2 vspace=2";
  2112.                                                 }
  2113.  
  2114.                                                 if (file_exists("$maj_data_directory/items/$maj_d/album/captions/{$maj_album_entry}.txt")) {
  2115.                                                         echo ' alt="';
  2116.                                                         $maj_img_alt = file_get_contents("$maj_data_directory/items/$maj_d/album/captions/{$maj_album_entry}.txt");
  2117.                                                         $maj_img_alt = strip_tags($maj_img_alt);
  2118.                                                         echo $maj_img_alt;
  2119.                                                         echo '"';
  2120.                                                 }
  2121.                                                 echo "></a>";
  2122.                                         }
  2123.                                         unset($maj_sort_album);
  2124.                                 }
  2125.                         }
  2126.                 }
  2127.                 echo '</div></div>';
  2128.  
  2129.                 echo '</td></tr></table>';
  2130.  
  2131.         }
  2132.        
  2133.         if (file_exists("media/$maj_d/videos") and (file_exists("$maj_data_directory/items/$maj_d/auto-videos.txt") or (isset($maj_req_entry) and !empty($maj_req_entry) and isset($maj_req_show) and !empty($maj_req_show) and ($maj_req_show == videos)))) {
  2134.  
  2135.                 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wentry\"><tr><td>";
  2136.  
  2137.                 echo '<div class="panel_wrapper"><div class="panel_title">Videos</div>';
  2138.                 echo '<div class="panel_body">';
  2139.                                
  2140.                 if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
  2141.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$maj_d&show=videos>here</a> to enter it.";
  2142.                 }
  2143.                 else {
  2144.                         foreach ($maj_videos as $maj_video) {
  2145.                        
  2146.                                 $maj_video_show = basename($maj_video);
  2147.                        
  2148.                                 echo "<a href=\"video.php?entry=$maj_d&show=$maj_video_show\">";
  2149.                                 echo "<video width=\"95\" height=\"71\" preload=\"meta\" style=\"margin: 2px;\">";
  2150.                                                                
  2151.                                 if (file_exists("$maj_video.mp4")) {
  2152.                                         echo "<source src=\"$maj_video.mp4\" type=\"video/mp4\">";
  2153.                                 }
  2154.                        
  2155.                                 if (file_exists("$maj_video.ogv")) {
  2156.                                         echo "<source src=\"$maj_video.ogv\" type=\"video/ogg\">";
  2157.                                 }
  2158.                                
  2159.                                 if (file_exists("$maj_video.webm")) {
  2160.                                         echo "<source src=\"$maj_video.webm\" type=\"video/webm\">";
  2161.                                 }
  2162.                                        
  2163.                                 echo "</video>";
  2164.                                 echo "</a>";
  2165.                                
  2166.                                 unset($maj_video);
  2167.                         }
  2168.                 }
  2169.                 echo "</div></div></td></tr></table>";
  2170.         }      
  2171.  
  2172.         if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($maj_req_show) and !empty($maj_req_show) and ($maj_req_show == filedrop) and file_exists("$maj_data_directory/items/$maj_d/filedrop/files")) {
  2173.  
  2174.                 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wentry\"><tr><td>";
  2175.  
  2176.                 echo "<div class=\"panel_wrapper\"><div class=\"panel_title\">Filedrop";
  2177.  
  2178.                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2179.                         echo "<a href=del.php?entry=$maj_d&target=filedrop><img src=images/widget.del.png border=0 width=11 height=11 align=right alt=\"delete filedrop\"></a>";
  2180.                 }
  2181.                 echo "</div><div class=panel_body>";
  2182.  
  2183.                 if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
  2184.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$maj_d&show=filedrop>here</a> to enter it.";
  2185.                 }
  2186.                 else {
  2187.  
  2188.                         if ($maj_dh_count = opendir("$maj_data_directory/items/$maj_d/filedrop/count")) {
  2189.  
  2190.                                 while (($maj_dl_count = readdir($maj_dh_count)) !== false) {
  2191.  
  2192.                                         if ($maj_dl_count != "." && $maj_dl_count != "..") {
  2193.  
  2194.                                                 $maj_dl_match = mb_substr("$maj_dl_count",0,-4);
  2195.  
  2196.                                                 if (file_exists("$maj_data_directory/items/$maj_d/filedrop/count/$maj_dl_count") and !file_exists("$maj_data_directory/items/$maj_d/filedrop/files/$maj_dl_match")) {
  2197.                                                         unlink("$maj_data_directory/items/$maj_d/filedrop/count/$maj_dl_count");
  2198.                                                 }
  2199.                                         }
  2200.                                 }
  2201.                                 closedir($maj_dh_count);
  2202.                         }
  2203.  
  2204.                         if ($maj_dh_filedrop = opendir("$maj_data_directory/items/$maj_d/filedrop/files")) {
  2205.                                 while (($maj_dl_file = readdir($maj_dh_filedrop)) !== false) {
  2206.                                         if ($maj_dl_file != "." && $maj_dl_file != "..") {
  2207.                                                 $maj_filedrop_files[] = $maj_dl_file;
  2208.                                         }
  2209.                                 }
  2210.                         closedir($maj_dh_filedrop);
  2211.                         }
  2212.  
  2213.                         sort($maj_filedrop_files);
  2214.  
  2215.                         foreach ($maj_filedrop_files as $maj_filedrop_file) {
  2216.  
  2217.                                 echo "<table border=0 cellspacing=0 cellpadding=4><tr><td>";
  2218.                                 echo "<a href=\"index.php?entry=$maj_d&download=$maj_filedrop_file&type=filedrop\">";
  2219.                                 echo "<img src=images/filedrop.png width=36 height=36 border=0 alt=\"download file\"></a></td>";
  2220.                                 echo "<td><b>$maj_filedrop_file</b>";
  2221.  
  2222.                                 if (file_exists("$maj_data_directory/items/$maj_d/filedrop/sha1.txt")) {
  2223.                                         $maj_sha1 = sha1_file("$maj_data_directory/items/$maj_d/filedrop/files/$maj_filedrop_file");
  2224.                                         echo "<br>$maj_sha1 (<a href=\"http://www.faqs.org/rfcs/rfc3174\" target=\"_maj\">sha1</a>)";
  2225.                                 }
  2226.                                 if (file_exists("$maj_data_directory/items/$maj_d/filedrop/md5.txt")) {
  2227.                                         $maj_md5 = md5_file("$maj_data_directory/items/$maj_d/filedrop/files/$maj_filedrop_file");
  2228.                                         echo "<br>$maj_md5 (<a href=\"http://www.faqs.org/rfcs/rfc1321\" target=\"_maj\">md5</a>)";
  2229.                                 }
  2230.  
  2231.                                 $maj_size = filesize("$maj_data_directory/items/$maj_d/filedrop/files/$maj_filedrop_file");
  2232.                                 $maj_size_string = ($maj_size > 512)?(  ($maj_size/1024 > 512)  ?sprintf("%.02f MB",($maj_size/1024)/1024)  :sprintf("%.02f KB",$maj_size/1024))  :sprintf("%d B",$maj_size);
  2233.  
  2234.                                 echo "<br>$maj_size_string";
  2235.  
  2236.                                 if (file_exists("$maj_data_directory/items/$maj_d/filedrop/count/{$maj_filedrop_file}.txt")) {
  2237.  
  2238.                                         $maj_filedrop_count = file_get_contents("$maj_data_directory/items/$maj_d/filedrop/count/{$maj_filedrop_file}.txt");
  2239.  
  2240.                                         echo "<br>$maj_filedrop_count";
  2241.                                
  2242.                                         if ($maj_filedrop_count == 1) {
  2243.                                                 echo " download";
  2244.                                         }
  2245.                                         if ($maj_filedrop_count > 1) {
  2246.                                                 echo " downloads";
  2247.                                         }
  2248.                                 }
  2249.                                 echo "</td></tr></table>";
  2250.                         }
  2251.                 }
  2252.                 echo "</div></div>";
  2253.  
  2254.                 echo '</td></tr></table>';
  2255.         }
  2256.  
  2257.         if (isset($maj_req_entry) and !empty($maj_req_entry) and isset($maj_req_show) and !empty($maj_req_show) and ($maj_req_show == comments) and (file_exists("$maj_data_directory/items/$maj_req_entry/ucomment.txt") or !file_exists("$maj_data_directory/nocomment.txt") or (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) or (file_exists("$maj_data_directory/memcomment.txt") and isset($maj_logged_in_username)))) {
  2258.  
  2259.                 if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
  2260.                 }
  2261.                 else {
  2262.                         echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wentry\"><tr><td>";
  2263.  
  2264.                         if ($maj_dh_comments = opendir("$maj_data_directory/items/$maj_d/comments/live")) {
  2265.                                 while (($maj_live_comment = readdir($maj_dh_comments)) !== false) {
  2266.                                         if ($maj_live_comment != "." && $maj_live_comment != "..") {
  2267.                                                 $maj_show_comments[] = $maj_live_comment;
  2268.                                         }
  2269.                                 }
  2270.                         closedir($maj_dh_comments);
  2271.                         }
  2272.        
  2273.                         asort($maj_show_comments);
  2274.                        
  2275.                         foreach ($maj_show_comments as $maj_comment) {
  2276.  
  2277.                                 echo "<a name=\"$maj_comment\"></a>";
  2278.  
  2279.                                 echo '<div class="panel_wrapper"><div class="panel_title">';
  2280.        
  2281.                                 if (file_exists("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/url.txt")) {
  2282.                                         echo '<a target=_maj href=';
  2283.                                         readfile("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/url.txt");
  2284.                                         echo '>';
  2285.                                 }
  2286.        
  2287.                                 readfile("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/firstname.txt");
  2288.                                 echo ' ';
  2289.                                 readfile("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/lastname.txt");
  2290.        
  2291.                                 if (file_exists("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/url.txt")) {
  2292.                                         echo '</a>';
  2293.                                 }
  2294.        
  2295.                                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2296.                                         echo '  &lt;';
  2297.                                         readfile("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/email.txt");
  2298.                                         echo '&gt;';
  2299.                                 }
  2300.        
  2301.                                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2302.                                         echo '<a href=del.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.del.png width=11 height=11 border=0 align=right alt="delete comment"></a>';
  2303.                                         echo '<a href=move.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.move.png width=11 height=11 border=0 align=right alt="move comment"></a>';
  2304.                                         echo '<a href=edit.php?entry=' . $maj_d . '&comment=' . $maj_comment . '&type=live><img src=images/widget.edit.png width=11 height=11 border=0 align=right alt="edit comment"></a>';
  2305.                                 }
  2306.                                 echo '</div><div class=panel_body><table border=0 cellspacing=0 cellpadding=0 width=100%><tr>';
  2307.                                
  2308.                                 if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/avatar.txt") and file_exists("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/author.txt")) {
  2309.  
  2310.                                         echo "<td width=\"$maj_ablock\" valign=\"top\">";
  2311.                                
  2312.                                         $maj_c_author = file_get_contents("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/author.txt");
  2313.  
  2314.                                         maj_avatar_image($maj_c_author,$maj_aimage);
  2315.                                        
  2316.                                         if ($maj_c_dh_posts = opendir("$maj_data_directory/items")) {
  2317.                                                 while (($maj_c_entry_posts = readdir($maj_c_dh_posts)) !== false) {
  2318.                        
  2319.                                                         if (file_exists("$maj_data_directory/items/$maj_c_entry_posts/private.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  2320.                                                                 continue;
  2321.                                                         }
  2322.                        
  2323.                                                         if (file_exists("$maj_data_directory/items/$maj_c_entry_posts/member.txt") and (!isset($maj_logged_in_username))) {
  2324.                                                                 continue;
  2325.                                                         }
  2326.  
  2327.                                                         $maj_private_categories = "0";
  2328.                                
  2329.                                                         if (file_exists("$maj_data_directory/items/$maj_entry_c_entry_posts/categories")) {
  2330.                                                        
  2331.                                                                 if ($maj_dh_cat2_c_entry_posts = opendir("$maj_data_directory/items/$maj_entry_c_entry_posts/categories")) {
  2332.                                                        
  2333.                                                                         while (($maj_entry_cat2_c_entry_posts = readdir($maj_dh_cat2_c_entry_posts)) !== false) {
  2334.                                                        
  2335.                                                                                 if ($maj_entry_cat2_c_entry_posts != "." && $maj_entry_cat2_c_entry_posts != "..") {
  2336.                                                        
  2337.                                                                                         if (file_exists("$maj_data_directory/categories/$maj_entry_cat2_c_entry_posts/private.txt")) {
  2338.                                                                                                 $maj_private_categories = $maj_private_categories + 1;
  2339.                                                                                         }
  2340.                                                                                 }
  2341.                                                                         }
  2342.                                                                         closedir($maj_dh_cat2_c_entry_posts);
  2343.                                                                 }
  2344.                                                         }
  2345.  
  2346.                                                         if (($maj_private_categories > 0) and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and !file_exists("$maj_data_directory/items/$maj_c_entry_posts/cat.txt")) {
  2347.                                                                 continue;
  2348.                                                         }
  2349.                        
  2350.                                                         if ($maj_c_entry_posts != "." && $maj_c_entry_posts != "..") {
  2351.                                                                 if (file_exists("$maj_data_directory/members/active/$maj_c_author") and file_exists("$maj_data_directory/bb.txt")) {
  2352.                                                                         if (file_exists("$maj_data_directory/items/$maj_c_entry_posts/author.txt") and (file_get_contents("$maj_data_directory/items/$maj_c_entry_posts/author.txt") == $maj_c_author)) {
  2353.                                                                                 $maj_c_items_posts[] = $maj_c_entry_posts;
  2354.                                                                         }
  2355.                                                                 }
  2356.                                                                 elseif (!file_exists("$maj_data_directory/members/active/$maj_c_author") and ($maj_admin_username == $maj_c_author) and file_exists("$maj_data_directory/bb.txt")) {
  2357.                                                                         if (file_exists("$maj_data_directory/items/$maj_c_entry_posts/author.txt") and (file_get_contents("$maj_data_directory/items/$maj_c_entry_posts/author.txt") == $maj_c_author)) {
  2358.                                                                                 $maj_c_items_posts[] = $maj_c_entry_posts;
  2359.                                                                         }
  2360.                                                                 }
  2361.                                                         }
  2362.                                                 }
  2363.                                         closedir($maj_c_dh_posts);
  2364.                                         }
  2365.                                         $maj_c_posts = count($maj_c_items_posts);
  2366.                                         if ($maj_c_posts == 1) {
  2367.                                                 echo "$maj_c_posts post";
  2368.                                         }
  2369.                                         if ($maj_c_posts > 1) {
  2370.                                                 echo "$maj_c_posts posts";
  2371.                                         }
  2372.                                         unset($maj_c_items_posts);
  2373.                        
  2374.                                         echo "</td>";
  2375.                                 }
  2376.  
  2377.                                 echo "<td valign=top>";
  2378.  
  2379.                                 echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
  2380.  
  2381.                                 if ((file_exists("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/author.txt") and (file_exists("$maj_data_directory/bb.txt") and !file_exists("$maj_data_directory/avatar.txt")) or (file_exists("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/author.txt") and (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username) and !file_exists("$maj_data_directory/avatar.txt"))))) {
  2382.                                         $maj_cxavatar_author = file_get_contents("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/author.txt");
  2383.                                         echo "<a href=\"member.php?id=$maj_cxavatar_author\" style=\"font-size: $maj_font_Spx;\">$maj_cxavatar_author</a> - ";
  2384.                                 }
  2385.  
  2386.                                 entry2date($maj_comment);
  2387.  
  2388.                                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2389.  
  2390.                                         if (file_exists("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/revisions.txt")) {
  2391.                                                 echo '  (Revision ';
  2392.                                                 readfile("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/revisions.txt");
  2393.                                                 echo ')';
  2394.                                         }
  2395.                                 }
  2396.  
  2397.                                 echo "</font><div style=\"height: 10px;\"></div>";
  2398.  
  2399.                                 $maj_entry_comment = file_get_contents("$maj_data_directory/items/$maj_d/comments/live/$maj_comment/comment.txt");
  2400.  
  2401.                                 if (file_exists("$maj_data_directory/pf.txt") and file_exists("$maj_data_directory/pf-badwords.txt") and (!isset($maj_logged_in_username) or empty($maj_logged_in_username) or (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username)))) {
  2402.                                         $maj_badwords = file_get_contents("$maj_data_directory/pf-badwords.txt");
  2403.                                         if (file_exists("$maj_data_directory/pf-censor.txt")) {
  2404.                                                 $maj_censor = file_get_contents("$maj_data_directory/pf-censor.txt");
  2405.                                         }
  2406.                                         else {
  2407.                                                 $maj_censor = "[expletive]";
  2408.                                         }
  2409.                                         $maj_entry_comment = preg_replace("/\b($maj_badwords)\b/i",$maj_censor,$maj_entry_comment);
  2410.                                 }
  2411.                                 echo $maj_entry_comment;
  2412.                                 echo '</tr></table></div></div>';
  2413.                         }
  2414.                         unset($maj_show_comments);
  2415.                         echo '</td></tr></table>';
  2416.  
  2417.                         if (isset($maj_logged_in_username)) {
  2418.  
  2419.                                 if (($maj_logged_in_username == $maj_admin_username) and file_exists("$maj_data_directory/comments/unread/$maj_d")) {
  2420.                                         rmdirr("$maj_data_directory/comments/unread/$maj_d");
  2421.  
  2422.                                         if (count(glob("$maj_data_directory/comments/unread/*")) < 1) {
  2423.                                                 rmdirr("$maj_data_directory/comments/unread");
  2424.                                         }
  2425.                                 }
  2426.                                 else {
  2427.                                         if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/comments/unread/$maj_d")) {
  2428.                                                 rmdirr("$maj_data_directory/members/active/$maj_logged_in_username/comments/unread/$maj_d");
  2429.  
  2430.                                                 if (count(glob("$maj_data_directory/members/active/$maj_logged_in_username/comments/unread/*")) < 1) {
  2431.                                                         rmdirr("$maj_data_directory/members/active/$maj_logged_in_username/comments/unread");
  2432.                                                 }
  2433.                                         }
  2434.                                 }
  2435.                         }
  2436.                 }
  2437.  
  2438.                 echo "<a name=\"end\"></a>";
  2439.  
  2440.                 if (!file_exists("$maj_data_directory/nocomment.txt") or (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) or (file_exists("$maj_data_directory/memcomment.txt") and isset($maj_logged_in_username)) or file_exists("$maj_data_directory/items/$maj_d/ucomment.txt")) {
  2441.  
  2442.                         echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wentry\"><tr><td>";
  2443.  
  2444.                         if (!isset($maj_logged_in_username) or (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username"))) {
  2445.        
  2446.                                 if (isset($maj_req_show) and !empty($maj_req_show) and isset($_POST['captcha_put']) and !empty($_REQUEST['captcha_get']) and isset($_POST['firstname']) and !empty($_POST['firstname']) and isset($_POST['lastname']) and !empty($_POST['lastname']) and isset($_POST['email']) and !empty($_POST['email']) and isset($_POST['new_comment']) and !empty($_POST['new_comment']) and isset($_POST['captcha_put']) and !empty($_POST['captcha_put']) and ($_REQUEST['captcha_get'] == sha1($_POST['captcha_put'])) and (mb_ereg("@",$_POST['email'])) and (mb_ereg("\.",$_POST['email']))) {
  2447.                                         echo "<font style=\"font-size: $maj_font_Lpx;\"><b>Thanks!</b></font><p>Your comment has been submitted for approval. Please check back soon to see if it has been posted.</p>";
  2448.                                 }
  2449.                         }
  2450.  
  2451.                         echo "<font style=\"font-size: $maj_font_Lpx;\"><b>Add Comment</b></font>";
  2452.  
  2453.                         if (file_exists("$maj_data_directory/items/$maj_d/passwd.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and (!isset($_REQUEST['passwd']) or ($maj_crypt_passwd != $maj_passwd))) {
  2454.                                 echo "<p>This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$maj_d&show=comments>here</a> to enter it.</p>";
  2455.                         }
  2456.                         else {
  2457.                                 $maj_captcha_rand = str_rand(7);
  2458.                                
  2459.                                 $maj_captcha_show = sha1($maj_captcha_rand);
  2460.                
  2461.                                 echo "<p>Fill out the form below";
  2462.  
  2463.                                 if (!isset($maj_logged_in_username)) {
  2464.                                         echo " and enter <b>$maj_captcha_rand</b> in the CAPTCHA field";
  2465.                                 }
  2466.  
  2467.                                 echo " to add your comment.";
  2468.  
  2469.                                 if ((!isset($maj_logged_in_username) and !file_exists("$maj_data_directory/xscreen.txt")) or (!file_exists("$maj_data_directory/xscreen.txt") and isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username))) {
  2470.                                         echo " Please wait for your comment to be approved and posted.";
  2471.  
  2472.                                         if (!isset($maj_logged_in_username) or (isset($maj_logged_in_username) and !file_exists("$maj_data_directory/members/active/$maj_logged_in_username"))) {
  2473.                                                 echo " Comments with bogus contact information or spam will be discarded.";
  2474.                                         }
  2475.                                 }
  2476.                                 echo "</p>";
  2477.  
  2478.                                 ?>
  2479.                        
  2480.                                 <table border=0 cellspacing=2 cellpadding=0>
  2481.                                 <form enctype="multipart/form-data" action="index.php?entry=<?php echo $maj_d; ?>&show=comments" method="post">
  2482.                                 <input type=hidden name=captcha_get value="<?php echo $maj_captcha_show; ?>">
  2483.                                 <tr>
  2484.  
  2485.                                 <?php
  2486.                                
  2487.                                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2488.                                
  2489.                                         $maj_logged_in_author = explode(" ",file_get_contents("$maj_data_directory/author.txt"));
  2490.                                         $maj_logged_in_author_words = count($maj_logged_in_author);
  2491.                                         $maj_logged_in_author_last = $maj_logged_in_author_words - 1;
  2492.                                        
  2493.                                         if ($maj_logged_in_author_words == 2) {
  2494.                                                
  2495.                                                 $maj_logged_in_author_fname = str_replace(",","",$maj_logged_in_author[0]);
  2496.                                                 $maj_logged_in_author_lname = str_replace(",","",$maj_logged_in_author[1]);                                            
  2497.                                         }
  2498.                                        
  2499.                                         if ($maj_logged_in_author_words > 2) {
  2500.                                        
  2501.                                                 $maj_logged_in_author_mkfname = 0;
  2502.                                        
  2503.                                                 while ($maj_logged_in_author_mkfname < $maj_logged_in_author_last) {
  2504.                                                
  2505.                                                         $maj_logged_in_author_fname .= $maj_logged_in_author[$maj_logged_in_author_mkfname] . " ";
  2506.                                                        
  2507.                                                         $maj_logged_in_author_mkfname = $maj_logged_in_author_mkfname + 1;                                             
  2508.                                                 }
  2509.                                                
  2510.                                                 $maj_logged_in_author_lname = $maj_logged_in_author[$maj_logged_in_author_last];
  2511.                                         }
  2512.  
  2513.                                 ?>
  2514.                                         <td width=75></td><td><input type=hidden name=cauthor value="<?php echo $maj_logged_in_username; ?>">
  2515.                                        
  2516.                                         <input type="hidden" name="firstname" value="<?php echo $maj_logged_in_author_fname; ?>"></td>
  2517.  
  2518.                                         <?php
  2519.                                 }
  2520.                                 elseif (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username") and file_exists("$maj_data_directory/bb.txt")) {
  2521.                                         ?>
  2522.                                         <td width=75></td><td><input type=hidden name=cauthor value="<?php echo $maj_logged_in_username; ?>"><input type=hidden name=firstname value="<?php echo file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/firstname.txt"); ?>"></td>
  2523.                                         <?php
  2524.                                 }
  2525.                                 else {
  2526.                                         ?>
  2527.                                         <td width=75><nobr>First Name*</nobr></td><td width=300><input required class=input type=text autocomplete=off name=firstname maxlength=30></td>
  2528.                                         <?php
  2529.                                 }
  2530.                                 ?>
  2531.                                 <td rowspan=7 valign=top width=75 align=right>
  2532.                                 <table border=0 cellspacing=1 cellpadding=2>
  2533.                                 <tr><td><img src="images/smileys/crying.png" border="0"></td><td>:((</td><td >crying</td></tr>
  2534.                                 <tr><td><img src="images/smileys/frown.png" border="0"></td><td>:(</td><td>frown</td></tr>
  2535.                                 <tr><td><img src="images/smileys/indifferent.png" border="0"></td><td>:|</td><td>indifferent</td></tr>
  2536.                                 <tr><td><img src="images/smileys/laughing.png" border="0"></td><td>:D</td><td>laughing</td></tr>
  2537.                                 <tr><td><img src="images/smileys/lick.png" border="0"></td><td>:P</td><td>lick</td></tr>
  2538.                                 <tr><td><img src="images/smileys/ohno.png" border="0"></td><td>:O</td><td>oh no!</td></tr>
  2539.                                 <tr><td><img src="images/smileys/smile.png" border="0"></td><td>:)</td><td>smile</td></tr>
  2540.                                 <tr><td><img src="images/smileys/surprised.png" border="0"></td><td>=)</td><td>surprised</td></tr>
  2541.                                 <tr><td><img src="images/smileys/undecided.png" border="0"></td><td>:\</td><td>undecided</td></tr>
  2542.                                 <tr><td><img src="images/smileys/wink.png" border="0"></td><td>;)</td><td>wink</td></tr>
  2543.                                 </td></tr>
  2544.                                 </table>
  2545.  
  2546.                                 <?php
  2547.                                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2548.                                         ?>
  2549.                                         <td width=75></td><td><input type=hidden name=lastname value="<?php echo $maj_logged_in_author_lname; ?>"></td>
  2550.                                         <?php
  2551.                                 }
  2552.                                 elseif (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username") and file_exists("$maj_data_directory/bb.txt")) {
  2553.                                         ?>
  2554.                                         <td width=75></td><td><input type=hidden name=lastname value="<?php echo file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/lastname.txt"); ?>"></td>
  2555.                                         <?php
  2556.                                 }
  2557.                                 else {
  2558.                                         ?>
  2559.                                         <tr><td><nobr>Last Name*</nobr></td><td><input required class=input type=text autocomplete=off name=lastname maxlength=30></td></tr>
  2560.                                         <?php
  2561.                                 }
  2562.  
  2563.                                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2564.  
  2565.                                         if (file_exists("$maj_data_directory/email.txt")) {
  2566.                                                 ?>
  2567.                                                 <td width=75></td><td colspan=2><input type=hidden name=email value="<?php echo file_get_contents("$maj_data_directory/email.txt"); ?>"></td>
  2568.                                                 <?php
  2569.                                         }
  2570.                                         else {
  2571.                                                 echo "<tr><td><nobr>E-mail*</nobr></td><td colspan=2><input class=input type=email autocomplete=off name=email maxlength=60></td></tr>";
  2572.                                         }
  2573.                                 }
  2574.                                 elseif (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username") and file_exists("$maj_data_directory/bb.txt")) {
  2575.                                         ?>
  2576.                                         <td width=75></td><td colspan=2><input type=hidden name=email value="<?php echo file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/email.txt"); ?>"></td>
  2577.                                         <?php
  2578.                                 }
  2579.                                 else {
  2580.                                         ?>
  2581.                                         <tr><td><nobr>E-mail*</nobr></td><td colspan=2><input required class=input type=email autocomplete=off name=email maxlength=60></td></tr>
  2582.                                         <?php
  2583.                                 }
  2584.  
  2585.                                 if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username)) {
  2586.                                         ?>
  2587.                                         <td width=75></td><td colspan=2><input type=hidden name=url value="<?php file_get_contents("$maj_data_directory/url.txt"); ?>"></td>
  2588.                                         <?php
  2589.                                 }
  2590.                                 elseif (isset($maj_logged_in_username) and ($maj_logged_in_username != $maj_admin_username) and file_exists("$maj_data_directory/members/active/$maj_logged_in_username") and file_exists("$maj_data_directory/bb.txt")) {
  2591.                                         ?>
  2592.                                         <td width=75></td><td colspan=2><input type=hidden name=url value="<?php if (file_exists("$maj_data_directory/members/active/$maj_logged_in_username/url.txt")) { echo file_get_contents("$maj_data_directory/members/active/$maj_logged_in_username/url.txt"); } ?>"></td>
  2593.                                         <?php
  2594.                                 }
  2595.                                 else {
  2596.                                         ?>
  2597.                                         <tr><td><nobr>Website</nobr></td><td colspan=2><input class=input type=url autocomplete=off name=url maxlength=300></td></tr>
  2598.                                         <?php
  2599.                                 }
  2600.                                 ?>
  2601.                                 <tr><td><nobr>Comment*</nobr></td><td><textarea required class=input name=new_comment rows=15></textarea></td></tr>
  2602.                                 <?php
  2603.  
  2604.                                 if (isset($maj_logged_in_username)) {
  2605.                                         echo "<input type=hidden name=captcha_put value=\"$maj_captcha_rand\">";
  2606.                                 }
  2607.                                 else {
  2608.                                         echo "<tr><td><nobr>CAPTCHA*</nobr></td><td><input required class=input type=text autocomplete=off name=captcha_put maxlength=7></td></tr>";
  2609.                                 }
  2610.  
  2611.                                 ?>
  2612.                                 <tr><td></td><td><input class="click" type="submit" value="click here to submit your comment"></td></tr>
  2613.                                 </form>
  2614.                                 </table>
  2615.                                 <?php
  2616.                         }
  2617.                         ?>
  2618.                         </td></tr></table><div style="height: 10px;"></div>
  2619.                         <?php
  2620.                 }
  2621.         }
  2622.  
  2623.         if (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username) and isset($maj_req_entry) and !empty($maj_req_entry)) {
  2624.        
  2625.                 if ($maj_dh_pending_comments = opendir("$maj_data_directory/items/$maj_d/comments/pending")) {
  2626.        
  2627.                         while (($maj_entry_pending_comments = readdir($maj_dh_pending_comments)) !== false) {
  2628.        
  2629.                                 if ($maj_entry_pending_comments != "." && $maj_entry_pending_comments != "..") {
  2630.                                         $maj_show_pending_comments[] = $maj_entry_pending_comments;
  2631.                                 }
  2632.                         }
  2633.                         closedir($maj_dh_pending_comments);
  2634.                 }
  2635.        
  2636.                 asort($maj_show_pending_comments);
  2637.        
  2638.                 $maj_count_pending_comments = count($maj_show_pending_comments);
  2639.  
  2640.                 if ($maj_count_pending_comments > 0) {
  2641.  
  2642.                         echo '<a name="pending"></a>';
  2643.        
  2644.                         if ($maj_count_pending_comments == 1) {
  2645.                                 echo '<p><b>Pending Comment</b></p>';
  2646.                         }
  2647.                         else {
  2648.                                 echo '<p><b>Pending Comments</b></p>';
  2649.                         }
  2650.  
  2651.                         foreach ($maj_show_pending_comments as $maj_pending_comment) {
  2652.  
  2653.                                 echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"$maj_wentry\"><tr><td>";
  2654.        
  2655.                                 echo '<div class="panel_wrapper"><div class="panel_title">';
  2656.        
  2657.                                 if (file_exists("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/url.txt")) {
  2658.                                         echo '<a target=_maj href=';
  2659.                                         readfile("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/url.txt");
  2660.                                         echo '>';
  2661.                                 }
  2662.                
  2663.                                 readfile("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/firstname.txt");
  2664.                                 echo ' ';
  2665.                                 readfile("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/lastname.txt");
  2666.                
  2667.                                 if (file_exists("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/url.txt")) {
  2668.                                         echo '</a>';
  2669.                                 }
  2670.                
  2671.                                 echo ' &lt;';
  2672.                                 readfile("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/email.txt");
  2673.                                 echo '&gt;';
  2674.        
  2675.                                 echo '<a href=del.php?entry=' . $maj_d . '&comment=' . $maj_pending_comment . '&type=pending><img src=images/widget.del.png width=11 height=11 border=0 align=right alt="delete comment"></a>';
  2676.        
  2677.                                 $maj_pending_comment_login_key = file_get_contents("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/key.txt");
  2678.        
  2679.                                 echo "<a href=\"index.php?entry=$maj_d&comment=$maj_pending_comment&key=$maj_pending_comment_login_key&action=approve\"><img src=\"images/widget.cat.png\" width=\"11\" height=\"11\" border=\"0\" align=\"right\" alt=\"post comment\"></a>";
  2680.        
  2681.                                 echo "<a href=\"move.php?entry=$maj_d&comment=$maj_pending_comment&type=pending\"><img src=\"images/widget.move.png\" width=\"11\" height=\"11\" border=\"0\" align=\"right\" alt=\"move comment\"></a>";
  2682.        
  2683.                                 echo '<a href=edit.php?entry=' . $maj_d . '&comment=' . $maj_pending_comment . '&type=pending><img src=images/widget.edit.png width=11 height=11 border=0 align=right alt="edit comment"></a>';
  2684.        
  2685.                                 echo '</div><div class=panel_body><table border=0 cellspacing=0 cellpadding=0 width=100%><tr>';
  2686.        
  2687.                                 if (file_exists("$maj_data_directory/bb.txt") and file_exists("$maj_data_directory/avatar.txt") and file_exists("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/author.txt")) {
  2688.        
  2689.                                         echo "<td width=\"$maj_ablock\" valign=\"top\">";
  2690.        
  2691.                                         $maj_pc_author = file_get_contents("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/author.txt");
  2692.                                        
  2693.                                         maj_avatar_image($maj_pc_author,$maj_aimage);
  2694.        
  2695.                                         if ($maj_pc_dh_posts = opendir("$maj_data_directory/items")) {
  2696.        
  2697.                                                 while (($maj_pc_entry_posts = readdir($maj_pc_dh_posts)) !== false) {
  2698.                        
  2699.                                                         if (file_exists("$maj_data_directory/items/$maj_pc_entry_posts/private.txt") and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username))) {
  2700.                                                                 continue;
  2701.                                                         }
  2702.                        
  2703.                                                         if (file_exists("$maj_data_directory/items/$maj_pc_entry_posts/member.txt") and (!isset($maj_logged_in_username))) {
  2704.                                                                 continue;
  2705.                                                         }
  2706.        
  2707.                                                         $maj_private_categories = "0";
  2708.        
  2709.                                                         if (file_exists("$maj_data_directory/items/$maj_entry_pc_entry_posts/categories")) {
  2710.                                
  2711.                                                                 if ($maj_dh_cat2_pc_entry_posts = opendir("$maj_data_directory/items/$maj_entry_pc_entry_posts/categories")) {
  2712.                                
  2713.                                                                         while (($maj_entry_cat2_pc_entry_posts = readdir($maj_dh_cat2_pc_entry_posts)) !== false) {
  2714.                                
  2715.                                                                                 if ($maj_entry_cat2_pc_entry_posts != "." && $maj_entry_cat2_pc_entry_posts != "..") {
  2716.                                
  2717.                                                                                         if (file_exists("$maj_data_directory/categories/$maj_entry_cat2_pc_entry_posts/private.txt")) {
  2718.                                                                                                 $maj_private_categories = $maj_private_categories + 1;
  2719.                                                                                         }
  2720.                                                                                 }
  2721.                                                                         }
  2722.                                                                         closedir($maj_dh_cat2_pc_entry_posts);
  2723.                                                                 }
  2724.                                                         }
  2725.        
  2726.                                                         if (($maj_private_categories > 0) and (!isset($maj_logged_in_username) or ($maj_logged_in_username != $maj_admin_username)) and !file_exists("$maj_data_directory/items/$maj_pc_entry_posts/cat.txt")) {
  2727.                                                                 continue;
  2728.                                                         }
  2729.                        
  2730.                                                         if ($maj_pc_entry_posts != "." && $maj_pc_entry_posts != "..") {
  2731.                                                                 if (file_exists("$maj_data_directory/members/active/$maj_pc_author") and file_exists("$maj_data_directory/bb.txt")) {
  2732.                                                                         if (file_exists("$maj_data_directory/items/$maj_pc_entry_posts/author.txt") and (file_get_contents("$maj_data_directory/items/$maj_pc_entry_posts/author.txt") == $maj_pc_author)) {
  2733.                                                                                 $maj_pc_items_posts[] = $maj_pc_entry_posts;
  2734.                                                                         }
  2735.                                                                 }
  2736.                                                                 elseif (!file_exists("$maj_data_directory/members/active/$maj_pc_author") and ($maj_admin_username == $maj_pc_author) and file_exists("$maj_data_directory/bb.txt")) {
  2737.                                                                         if (file_exists("$maj_data_directory/items/$maj_pc_entry_posts/author.txt") and (file_get_contents("$maj_data_directory/items/$maj_pc_entry_posts/author.txt") == $maj_pc_author)) {
  2738.                                                                                 $maj_pc_items_posts[] = $maj_pc_entry_posts;
  2739.                                                                         }
  2740.                                                                 }
  2741.                                                         }
  2742.                                                 }
  2743.                                                 closedir($maj_pc_dh_posts);
  2744.                                         }
  2745.                                         $maj_pc_posts = count($maj_pc_items_posts);
  2746.                                         if ($maj_pc_posts == 1) {
  2747.                                                 echo "$maj_pc_posts post";
  2748.                                         }
  2749.                                         if ($maj_pc_posts > 1) {
  2750.                                                 echo "$maj_pc_posts posts";
  2751.                                         }
  2752.                                         unset($maj_pc_items_posts);
  2753.                        
  2754.                                         echo "</td>";
  2755.                                 }
  2756.  
  2757.                                 echo "<td valign=\"top\">";
  2758.        
  2759.                                 echo "<font style=\"font-size: $maj_font_Spx; color: #999999;\">";
  2760.        
  2761.                                 if ((file_exists("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/author.txt") and (file_exists("$maj_data_directory/bb.txt") and !file_exists("$maj_data_directory/avatar.txt")) or (file_exists("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/author.txt") and (isset($maj_logged_in_username) and ($maj_logged_in_username == $maj_admin_username) and !file_exists("$maj_data_directory/avatar.txt"))))) {
  2762.                                         $maj_pxavatar_author = file_get_contents("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/author.txt");
  2763.                                         echo "<a href=\"member.php?id=$maj_pxavatar_author\" style=\"font-size: $maj_font_Spx;\">$maj_pxavatar_author</a> - ";
  2764.                                 }
  2765.                                 readfile("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/timestamp.txt");
  2766.        
  2767.                                 if (file_exists("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/revisions.txt")) {
  2768.                                         echo '  (Revision ';
  2769.                                         readfile("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/revisions.txt");
  2770.                                         echo ')';
  2771.                                 }
  2772.        
  2773.                                 echo "</font><div style=\"height: 10px;\"></div>";
  2774.                                 readfile("$maj_data_directory/items/$maj_d/comments/pending/$maj_pending_comment/comment.txt");
  2775.                                 echo '</tr></table></div></div>';
  2776.        
  2777.                                 unset($maj_show_pending_comments);
  2778.                                 echo '</td></tr></table>';
  2779.                         }
  2780.                 }
  2781.         }
  2782. }
  2783.  
  2784. maj_panels($maj_bottom_panels);
  2785.  
  2786. ?>
  2787.  
  2788. <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr>
  2789.  
  2790. <?php
  2791.  
  2792. if (($maj_start >= $maj_increase) and ($maj_start != 0)) {
  2793.  
  2794.         echo "<td align=left><a href=\"index.php?";
  2795.  
  2796.         if (isset($maj_req_category) and !empty($maj_req_category) and file_exists("$maj_data_directory/categories/$maj_req_category")) {
  2797.                 echo "category=$maj_req_category";
  2798.         }
  2799.  
  2800.         if (isset($maj_req_archive) and !empty($maj_req_archive)) {
  2801.                 echo "archive=$maj_req_archive";
  2802.         }
  2803.  
  2804.         if (isset($maj_req_author) and !empty($maj_req_author) and file_exists("$maj_data_directory/members/active/$maj_req_author") and file_exists("$maj_data_directory/bb.txt")) {
  2805.                 echo "author=$maj_req_author";
  2806.         }
  2807.  
  2808.         if (isset($maj_req_author) and !empty($maj_req_author) and !file_exists("$maj_data_directory/members/active/$maj_req_author") and ($maj_admin_username == $maj_req_author) and file_exists("$maj_data_directory/bb.txt")) {
  2809.                 echo "author=$maj_req_author";
  2810.         }
  2811.  
  2812.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "private")) {
  2813.                 echo "find=private";
  2814.         }
  2815.  
  2816.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "member")) {
  2817.                 echo "find=member";
  2818.         }
  2819.  
  2820.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "unfiled")) {
  2821.                 echo "find=unfiled";
  2822.         }
  2823.  
  2824.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "passwd")) {
  2825.                 echo "find=passwd";
  2826.         }
  2827.  
  2828.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "comments")) {
  2829.                 echo "find=comments";
  2830.         }
  2831.  
  2832.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "album")) {
  2833.                 echo "find=album";
  2834.         }
  2835.  
  2836.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "filedrop")) {
  2837.                 echo "find=filedrop";
  2838.         }
  2839.  
  2840.         echo "&start=" . ($maj_start-$maj_increase) . "\">previous</a></td>";
  2841. }
  2842.  
  2843. if ($maj_end < sizeof($maj_items)) {
  2844.  
  2845.         echo "<td align=right><a href=\"index.php?";
  2846.  
  2847.         if (isset($maj_req_category) and !empty($maj_req_category) and file_exists("$maj_data_directory/categories/$maj_req_category")) {
  2848.                 echo "category=$maj_req_category";
  2849.         }
  2850.         if (isset($maj_req_archive) and !empty($maj_req_archive)) {
  2851.                 echo "archive=$maj_req_archive";
  2852.         }
  2853.         if (isset($maj_req_author) and !empty($maj_req_author) and file_exists("$maj_data_directory/members/active/$maj_req_author") and file_exists("$maj_data_directory/bb.txt")) {
  2854.                 echo "author=$maj_req_author";
  2855.         }
  2856.         if (isset($maj_req_author) and !empty($maj_req_author) and !file_exists("$maj_data_directory/members/active/$maj_req_author") and ($maj_admin_username == $maj_req_author) and file_exists("$maj_data_directory/bb.txt")) {
  2857.                 echo "author=$maj_req_author";
  2858.         }
  2859.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "private")) {
  2860.                 echo "find=private";
  2861.         }
  2862.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "member")) {
  2863.                 echo "find=member";
  2864.         }
  2865.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "unfiled")) {
  2866.                 echo "find=unfiled";
  2867.         }
  2868.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "passwd")) {
  2869.                 echo "find=passwd";
  2870.         }
  2871.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "comments")) {
  2872.                 echo "find=comments";
  2873.         }
  2874.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "album")) {
  2875.                 echo "find=album";
  2876.         }
  2877.         if (isset($maj_req_find) and !empty($maj_req_find) and ($maj_req_find == "filedrop")) {
  2878.                 echo "find=filedrop";
  2879.         }
  2880.         echo "&start=" . ($maj_start+$maj_increase) . "\">next</a></td>";
  2881. }
  2882.  
  2883. echo "</tr></table></td>";
  2884.  
  2885. // right side
  2886.  
  2887. if (!file_exists("$maj_data_directory/panels-l.txt")) {
  2888.  
  2889.         echo "<td width=\"$maj_wpanel\" valign=\"top\">";
  2890.  
  2891.         if (file_exists("$maj_data_directory/panels-r.txt")) {
  2892.                 maj_profile();
  2893.                 maj_navigation();
  2894.                 maj_quick_links();
  2895.         }
  2896.  
  2897.         maj_pending_comments();
  2898.         maj_unread_comments();
  2899.         maj_pending_members();
  2900.         maj_bb_stats();
  2901.         maj_search();
  2902.         maj_find();
  2903.         maj_categories();
  2904.         maj_statistics();
  2905.         maj_recent();
  2906.         maj_albums();
  2907.         maj_random();
  2908.         maj_archives();
  2909.  
  2910.         if (file_exists("$maj_data_directory/panels-r.txt")) {
  2911.                 maj_panels($maj_left_panels);
  2912.         }
  2913.  
  2914.         maj_panels($maj_right_panels);
  2915.         maj_badges();
  2916.  
  2917.         echo "</td>";
  2918. }
  2919.  
  2920. echo "</tr>";
  2921.  
  2922. if (file_exists("$maj_data_directory/panels-l.txt") or file_exists("$maj_data_directory/panels-r.txt")) {
  2923.         echo "<tr><td colspan=\"5\" height=\"$maj_wspace\"><div style=\"height: {$maj_wspace}px;\"></div></td></tr>";
  2924. }
  2925. else {
  2926.         echo "<tr><td colspan=\"7\" height=\"$maj_wspace\"><div style=\"height: {$maj_wspace}px;\"></div></td></tr>";
  2927. }
  2928.  
  2929. echo "</table>";
  2930.  
  2931. if (file_exists("$maj_data_directory/footer.txt")) {
  2932.  
  2933.         $maj_footer_panel = file_get_contents("$maj_data_directory/footer.txt");
  2934.  
  2935.         if (file_exists("$maj_data_directory/panels/$maj_footer_panel") and (!file_exists("$maj_data_directory/panels/$maj_footer_panel/private.txt") or isset($maj_logged_in_username))) {
  2936.                 include("$maj_data_directory/panels/$maj_footer_panel/panel.php");
  2937.         }
  2938.  
  2939. }
  2940.  
  2941. if (file_exists("$maj_data_directory/center.txt")) {
  2942.         echo "</center>";
  2943. }
  2944.  
  2945. ?>
  2946.  
filedropmaj.git-01822e4.tar.bz2
147.95 KB
62 downloads
filedropmaj.git-01822e4.zip
201.96 KB
19 downloads
filedropmaj.git-0291349.tar.bz2
152.85 KB
60 downloads
filedropmaj.git-0291349.zip
211.90 KB
19 downloads
filedropmaj.git-02cb3b7.tar.bz2
151.48 KB
63 downloads
filedropmaj.git-02cb3b7.zip
209.82 KB
19 downloads
filedropmaj.git-0811dd5.tar.bz2
152.90 KB
60 downloads
filedropmaj.git-0811dd5.zip
211.90 KB
18 downloads
filedropmaj.git-083625f.tar.bz2
132.92 KB
59 downloads
filedropmaj.git-083625f.zip
179.59 KB
20 downloads
filedropmaj.git-0885d7b.tar.bz2
92.63 KB
60 downloads
filedropmaj.git-0885d7b.zip
132.34 KB
17 downloads
filedropmaj.git-09c6f33.tar.bz2
151.51 KB
59 downloads
filedropmaj.git-09c6f33.zip
202.12 KB
18 downloads
filedropmaj.git-0b26a85.tar.bz2
151.44 KB
57 downloads
filedropmaj.git-0b26a85.zip
209.75 KB
16 downloads
filedropmaj.git-0b32424.tar.bz2
151.66 KB
58 downloads
filedropmaj.git-0b32424.zip
206.72 KB
17 downloads
filedropmaj.git-0f3ac59.tar.bz2
152.14 KB
57 downloads
filedropmaj.git-0f3ac59.zip
211.45 KB
13 downloads
filedropmaj.git-11d4582.tar.bz2
143.02 KB
55 downloads
filedropmaj.git-11d4582.zip
195.12 KB
12 downloads
filedropmaj.git-17f105a.tar.bz2
137.96 KB
53 downloads
filedropmaj.git-17f105a.zip
193.02 KB
13 downloads
filedropmaj.git-183270b.tar.bz2
137.54 KB
57 downloads
filedropmaj.git-183270b.zip
187.93 KB
13 downloads
filedropmaj.git-197a49d.tar.bz2
152.03 KB
55 downloads
filedropmaj.git-197a49d.zip
211.32 KB
16 downloads
filedropmaj.git-1b9af25.tar.bz2
152.87 KB
53 downloads
filedropmaj.git-1b9af25.zip
211.96 KB
14 downloads
filedropmaj.git-1be2914.tar.bz2
149.30 KB
55 downloads
filedropmaj.git-1be2914.zip
203.09 KB
13 downloads
filedropmaj.git-1bed800.tar.bz2
138.15 KB
51 downloads
filedropmaj.git-1bed800.zip
190.15 KB
17 downloads
filedropmaj.git-1d330de.tar.bz2
151.65 KB
54 downloads
filedropmaj.git-1d330de.zip
210.80 KB
15 downloads
filedropmaj.git-1df190d.tar.bz2
151.72 KB
55 downloads
filedropmaj.git-1df190d.zip
210.85 KB
13 downloads
filedropmaj.git-1ee1167.tar.bz2
151.52 KB
56 downloads
filedropmaj.git-1ee1167.zip
202.16 KB
14 downloads
filedropmaj.git-2057838.tar.bz2
151.76 KB
52 downloads
filedropmaj.git-2057838.zip
202.36 KB
14 downloads
filedropmaj.git-2075213.tar.bz2
155.81 KB
52 downloads
filedropmaj.git-2075213.zip
208.39 KB
13 downloads
filedropmaj.git-211b7b0.tar.bz2
142.53 KB
55 downloads
filedropmaj.git-211b7b0.zip
194.64 KB
14 downloads
filedropmaj.git-2331f5a.tar.bz2
75.55 KB
55 downloads
filedropmaj.git-2331f5a.zip
100.32 KB
16 downloads
filedropmaj.git-25e3c4c.tar.bz2
147.57 KB
53 downloads
filedropmaj.git-25e3c4c.zip
201.46 KB
13 downloads
filedropmaj.git-2622313.tar.bz2
151.47 KB
50 downloads
filedropmaj.git-2622313.zip
206.44 KB
12 downloads
filedropmaj.git-273e4b2.tar.bz2
152.60 KB
52 downloads
filedropmaj.git-273e4b2.zip
203.40 KB
15 downloads
filedropmaj.git-2753e51.tar.bz2
136.37 KB
55 downloads
filedropmaj.git-2753e51.zip
184.34 KB
12 downloads
filedropmaj.git-2c1a589.tar.bz2
155.89 KB
49 downloads
filedropmaj.git-2c1a589.zip
208.69 KB
13 downloads
filedropmaj.git-2c3d544.tar.bz2
151.33 KB
51 downloads
filedropmaj.git-2c3d544.zip
206.23 KB
14 downloads
filedropmaj.git-2c85f72.tar.bz2
143.23 KB
50 downloads
filedropmaj.git-2c85f72.zip
194.84 KB
12 downloads
filedropmaj.git-2dc622c.tar.bz2
151.76 KB
48 downloads
filedropmaj.git-2dc622c.zip
202.35 KB
14 downloads
filedropmaj.git-2fabf8a.tar.bz2
151.35 KB
53 downloads
filedropmaj.git-2fabf8a.zip
206.24 KB
15 downloads
filedropmaj.git-322736b.tar.bz2
137.81 KB
45 downloads
filedropmaj.git-322736b.zip
190.18 KB
13 downloads
filedropmaj.git-374279c.tar.bz2
137.54 KB
46 downloads
filedropmaj.git-374279c.zip
189.58 KB
12 downloads
filedropmaj.git-37e852d.tar.bz2
151.32 KB
42 downloads
filedropmaj.git-37e852d.zip
206.21 KB
11 downloads
filedropmaj.git-38636de.tar.bz2
147.35 KB
42 downloads
filedropmaj.git-38636de.zip
201.16 KB
69 downloads
filedropmaj.git-3b25d71.tar.bz2
147.88 KB
35 downloads
filedropmaj.git-3b25d71.zip
201.85 KB
14 downloads
filedropmaj.git-3b6df7a.tar.bz2
153.39 KB
33 downloads
filedropmaj.git-3b6df7a.zip
204.55 KB
17 downloads
filedropmaj.git-3bf6bd2.tar.bz2
137.77 KB
38 downloads
filedropmaj.git-3bf6bd2.zip
190.16 KB
14 downloads
filedropmaj.git-3e012ff.tar.bz2
152.83 KB
34 downloads
filedropmaj.git-3e012ff.zip
211.89 KB
16 downloads
filedropmaj.git-4129ab8.tar.bz2
135.86 KB
42 downloads
filedropmaj.git-4129ab8.zip
184.30 KB
14 downloads
filedropmaj.git-414dbb4.tar.bz2
91.09 KB
40 downloads
filedropmaj.git-414dbb4.zip
130.29 KB
14 downloads
filedropmaj.git-43755d0.tar.bz2
150.25 KB
33 downloads
filedropmaj.git-43755d0.zip
204.44 KB
14 downloads
filedropmaj.git-4c20005.tar.bz2
55.59 KB
37 downloads
filedropmaj.git-4c20005.zip
74.20 KB
14 downloads
filedropmaj.git-4ccdbcd.tar.bz2
136.38 KB
38 downloads
filedropmaj.git-4ccdbcd.zip
185.22 KB
16 downloads
filedropmaj.git-4cd1a1c.tar.bz2
155.25 KB
35 downloads
filedropmaj.git-4cd1a1c.zip
207.88 KB
16 downloads
filedropmaj.git-4cf16d1.tar.bz2
76.32 KB
38 downloads
filedropmaj.git-4cf16d1.zip
101.80 KB
12 downloads
filedropmaj.git-4ec45a0.tar.bz2
131.16 KB
35 downloads
filedropmaj.git-4ec45a0.zip
172.66 KB
14 downloads
filedropmaj.git-4f73c22.tar.bz2
134.46 KB
35 downloads
filedropmaj.git-4f73c22.zip
182.45 KB
13 downloads
filedropmaj.git-5457969.tar.bz2
155.21 KB
38 downloads
filedropmaj.git-5457969.zip
207.63 KB
14 downloads
filedropmaj.git-57ee8a1.tar.bz2
145.49 KB
38 downloads
filedropmaj.git-57ee8a1.zip
198.12 KB
66 downloads
filedropmaj.git-592978d.tar.bz2
138.38 KB
36 downloads
filedropmaj.git-592978d.zip
190.58 KB
13 downloads
filedropmaj.git-5935b42.tar.bz2
135.60 KB
34 downloads
filedropmaj.git-5935b42.zip
183.28 KB
15 downloads
filedropmaj.git-5b443b6.tar.bz2
152.00 KB
36 downloads
filedropmaj.git-5b443b6.zip
211.07 KB
13 downloads
filedropmaj.git-5b4a9bf.tar.bz2
155.29 KB
34 downloads
filedropmaj.git-5b4a9bf.zip
207.93 KB
12 downloads
filedropmaj.git-5b6c01d.tar.bz2
147.13 KB
35 downloads
filedropmaj.git-5b6c01d.zip
200.86 KB
16 downloads
filedropmaj.git-5da45f7.tar.bz2
147.27 KB
36 downloads
filedropmaj.git-5da45f7.zip
201.02 KB
13 downloads
filedropmaj.git-5e53618.tar.bz2
75.57 KB
38 downloads
filedropmaj.git-5e53618.zip
100.78 KB
14 downloads
filedropmaj.git-5f8ca35.tar.bz2
136.39 KB
33 downloads
filedropmaj.git-5f8ca35.zip
185.32 KB
13 downloads
filedropmaj.git-61e3d7b.tar.bz2
153.52 KB
33 downloads
filedropmaj.git-61e3d7b.zip
204.73 KB
15 downloads
filedropmaj.git-62a635c.tar.bz2
155.90 KB
37 downloads
filedropmaj.git-62a635c.zip
208.73 KB
14 downloads
filedropmaj.git-6390d34.tar.bz2
138.39 KB
37 downloads
filedropmaj.git-6390d34.zip
190.56 KB
17 downloads
filedropmaj.git-649dfbe.tar.bz2
151.78 KB
37 downloads
filedropmaj.git-649dfbe.zip
210.91 KB
14 downloads
filedropmaj.git-65d6570.tar.bz2
151.63 KB
39 downloads
filedropmaj.git-65d6570.zip
210.80 KB
16 downloads
filedropmaj.git-660433f.tar.bz2
151.67 KB
36 downloads
filedropmaj.git-660433f.zip
206.68 KB
14 downloads
filedropmaj.git-6619ae5.tar.bz2
153.23 KB
46 downloads
filedropmaj.git-6619ae5.zip
204.28 KB
13 downloads
filedropmaj.git-68e4e3a.tar.bz2
135.13 KB
34 downloads
filedropmaj.git-68e4e3a.zip
182.91 KB
13 downloads
filedropmaj.git-6995297.tar.bz2
144.93 KB
38 downloads
filedropmaj.git-6995297.zip
197.18 KB
12 downloads
filedropmaj.git-69d6fd3.tar.bz2
143.23 KB
34 downloads
filedropmaj.git-69d6fd3.zip
194.89 KB
16 downloads
filedropmaj.git-6aa872a.tar.bz2
142.95 KB
39 downloads
filedropmaj.git-6aa872a.zip
195.11 KB
15 downloads
filedropmaj.git-6bad5c7.tar.bz2
147.04 KB
38 downloads
filedropmaj.git-6bad5c7.zip
200.79 KB
14 downloads
filedropmaj.git-6e96a2d.tar.bz2
152.13 KB
37 downloads
filedropmaj.git-6e96a2d.zip
207.21 KB
67 downloads
filedropmaj.git-73d46de.tar.bz2
138.42 KB
36 downloads
filedropmaj.git-73d46de.zip
190.59 KB
13 downloads
filedropmaj.git-75e0478.tar.bz2
144.54 KB
38 downloads
filedropmaj.git-75e0478.zip
196.70 KB
15 downloads
filedropmaj.git-784fc35.tar.bz2
143.07 KB
38 downloads
filedropmaj.git-784fc35.zip
195.01 KB
13 downloads
filedropmaj.git-7872a83.tar.bz2
138.51 KB
39 downloads
filedropmaj.git-7872a83.zip
190.69 KB
13 downloads
filedropmaj.git-788fb89.tar.bz2
138.30 KB
37 downloads
filedropmaj.git-788fb89.zip
191.26 KB
18 downloads
filedropmaj.git-796d8a3.tar.bz2
138.92 KB
35 downloads
filedropmaj.git-796d8a3.zip
191.24 KB
13 downloads
filedropmaj.git-79a5e8d.tar.bz2
132.43 KB
38 downloads
filedropmaj.git-79a5e8d.zip
176.90 KB
14 downloads
filedropmaj.git-7b3b2e0.tar.bz2
147.24 KB
36 downloads
filedropmaj.git-7b3b2e0.zip
201.05 KB
14 downloads
filedropmaj.git-7e28eed.tar.bz2
138.89 KB
33 downloads
filedropmaj.git-7e28eed.zip
191.24 KB
14 downloads
filedropmaj.git-8279296.tar.bz2
135.56 KB
38 downloads
filedropmaj.git-8279296.zip
183.25 KB
14 downloads
filedropmaj.git-84c17fe.tar.bz2
152.87 KB
38 downloads
filedropmaj.git-84c17fe.zip
211.90 KB
14 downloads
filedropmaj.git-87c5d5f.tar.bz2
135.78 KB
36 downloads
filedropmaj.git-87c5d5f.zip
183.64 KB
12 downloads
filedropmaj.git-8a48901.tar.bz2
147.27 KB
39 downloads
filedropmaj.git-8a48901.zip
201.06 KB
14 downloads
filedropmaj.git-8ad9892.tar.bz2
164.04 KB
36 downloads
filedropmaj.git-8ad9892.zip
224.42 KB
13 downloads
filedropmaj.git-8b4cf2a.tar.bz2
134.06 KB
37 downloads
filedropmaj.git-8b4cf2a.zip
180.78 KB
14 downloads
filedropmaj.git-8b7e38d.tar.bz2
138.04 KB
41 downloads
filedropmaj.git-8b7e38d.zip
190.39 KB
70 downloads
filedropmaj.git-8df6e40.tar.bz2
143.11 KB
38 downloads
filedropmaj.git-8df6e40.zip
194.66 KB
18 downloads
filedropmaj.git-8e80c84.tar.bz2
138.18 KB
36 downloads
filedropmaj.git-8e80c84.zip
190.30 KB
14 downloads
filedropmaj.git-8ec0fba.tar.bz2
138.37 KB
39 downloads
filedropmaj.git-8ec0fba.zip
191.39 KB
14 downloads
filedropmaj.git-8f7abf6.tar.bz2
153.36 KB
38 downloads
filedropmaj.git-8f7abf6.zip
211.80 KB
13 downloads
filedropmaj.git-923f11a.tar.bz2
138.14 KB
36 downloads
filedropmaj.git-923f11a.zip
191.03 KB
15 downloads
filedropmaj.git-955e82e.tar.bz2
42.71 KB
35 downloads
filedropmaj.git-955e82e.zip
59.77 KB
14 downloads
filedropmaj.git-95add4a.tar.bz2
151.23 KB
40 downloads
filedropmaj.git-95add4a.zip
205.91 KB
14 downloads
filedropmaj.git-96fe0ba.tar.bz2
137.68 KB
32 downloads
filedropmaj.git-96fe0ba.zip
190.34 KB
13 downloads
filedropmaj.git-99a90ce.tar.bz2
137.82 KB
39 downloads
filedropmaj.git-99a90ce.zip
191.20 KB
16 downloads
filedropmaj.git-9a69bb9.tar.bz2
143.19 KB
39 downloads
filedropmaj.git-9a69bb9.zip
194.70 KB
15 downloads
filedropmaj.git-9b6538e.tar.bz2
151.45 KB
36 downloads
filedropmaj.git-9b6538e.zip
202.15 KB
13 downloads
filedropmaj.git-9c4292d.tar.bz2
132.06 KB
37 downloads
filedropmaj.git-9c4292d.zip
176.93 KB
13 downloads
filedropmaj.git-9c78d40.tar.bz2
137.70 KB
37 downloads
filedropmaj.git-9c78d40.zip
190.49 KB
15 downloads
filedropmaj.git-9f1363f.tar.bz2
43.12 KB
40 downloads
filedropmaj.git-9f1363f.zip
60.31 KB
13 downloads
filedropmaj.git-a16c3eb.tar.bz2
90.22 KB
34 downloads
filedropmaj.git-a16c3eb.zip
128.62 KB
14 downloads
filedropmaj.git-a3aa72d.tar.bz2
153.00 KB
37 downloads
filedropmaj.git-a3aa72d.zip
203.86 KB
16 downloads
filedropmaj.git-a6886e4.tar.bz2
144.69 KB
37 downloads
filedropmaj.git-a6886e4.zip
196.95 KB
13 downloads
filedropmaj.git-a8669dc.tar.bz2
135.60 KB
35 downloads
filedropmaj.git-a8669dc.zip
183.34 KB
14 downloads
filedropmaj.git-a9477f1.tar.bz2
135.59 KB
37 downloads
filedropmaj.git-a9477f1.zip
183.45 KB
14 downloads
filedropmaj.git-aa285db.tar.bz2
151.73 KB
38 downloads
filedropmaj.git-aa285db.zip
210.85 KB
14 downloads
filedropmaj.git-aa6ae87.tar.bz2
135.44 KB
37 downloads
filedropmaj.git-aa6ae87.zip
183.88 KB
14 downloads
filedropmaj.git-ab6bc22.tar.bz2
151.71 KB
33 downloads
filedropmaj.git-ab6bc22.zip
210.84 KB
16 downloads
filedropmaj.git-adef726.tar.bz2
153.48 KB
36 downloads
filedropmaj.git-adef726.zip
212.32 KB
14 downloads
filedropmaj.git-afe5877.tar.bz2
144.73 KB
32 downloads
filedropmaj.git-afe5877.zip
197.01 KB
13 downloads
filedropmaj.git-b2d9f8e.tar.bz2
133.22 KB
35 downloads
filedropmaj.git-b2d9f8e.zip
179.27 KB
13 downloads
filedropmaj.git-b41f320.tar.bz2
151.56 KB
33 downloads
filedropmaj.git-b41f320.zip
209.85 KB
18 downloads
filedropmaj.git-b4432ce.tar.bz2
152.96 KB
34 downloads
filedropmaj.git-b4432ce.zip
203.86 KB
14 downloads
filedropmaj.git-b67b08f.tar.bz2
151.27 KB
36 downloads
filedropmaj.git-b67b08f.zip
206.15 KB
16 downloads
filedropmaj.git-b899831.tar.bz2
143.12 KB
35 downloads
filedropmaj.git-b899831.zip
194.60 KB
14 downloads
filedropmaj.git-b8b49c1.tar.bz2
132.59 KB
33 downloads
filedropmaj.git-b8b49c1.zip
178.90 KB
13 downloads
filedropmaj.git-b9c5bcf.tar.bz2
155.92 KB
34 downloads
filedropmaj.git-b9c5bcf.zip
208.70 KB
12 downloads
filedropmaj.git-bbddb1f.tar.bz2
151.63 KB
33 downloads
filedropmaj.git-bbddb1f.zip
209.92 KB
16 downloads
filedropmaj.git-bcaa744.tar.bz2
146.98 KB
37 downloads
filedropmaj.git-bcaa744.zip
200.79 KB
15 downloads
filedropmaj.git-c1ff9dc.tar.bz2
138.39 KB
38 downloads
filedropmaj.git-c1ff9dc.zip
191.43 KB
97 downloads
filedropmaj.git-c20c4b0.tar.bz2
151.64 KB
35 downloads
filedropmaj.git-c20c4b0.zip
210.79 KB
13 downloads
filedropmaj.git-c37f3f7.tar.bz2
145.45 KB
49 downloads
filedropmaj.git-c37f3f7.zip
198.11 KB
22 downloads
filedropmaj.git-c532394.tar.bz2
146.39 KB
37 downloads
filedropmaj.git-c532394.zip
199.91 KB
15 downloads
filedropmaj.git-c6317a4.tar.bz2
152.01 KB
36 downloads
filedropmaj.git-c6317a4.zip
207.08 KB
13 downloads
filedropmaj.git-c748176.tar.bz2
89.44 KB
34 downloads
filedropmaj.git-c748176.zip
126.35 KB
14 downloads
filedropmaj.git-c9ed81f.tar.bz2
135.56 KB
34 downloads
filedropmaj.git-c9ed81f.zip
183.28 KB
16 downloads
filedropmaj.git-c9f9b80.tar.bz2
138.50 KB
34 downloads
filedropmaj.git-c9f9b80.zip
190.66 KB
15 downloads
filedropmaj.git-ca65b73.tar.bz2
152.69 KB
35 downloads
filedropmaj.git-ca65b73.zip
207.87 KB
15 downloads
filedropmaj.git-cd80b77.tar.bz2
153.12 KB
35 downloads
filedropmaj.git-cd80b77.zip
212.01 KB
12 downloads
filedropmaj.git-cffbb2a.tar.bz2
138.22 KB
33 downloads
filedropmaj.git-cffbb2a.zip
190.28 KB
14 downloads
filedropmaj.git-d061ad7.tar.bz2
55.78 KB
47 downloads
filedropmaj.git-d061ad7.zip
74.39 KB
15 downloads
filedropmaj.git-d0af4d6.tar.bz2
57.28 KB
35 downloads
filedropmaj.git-d0af4d6.zip
78.56 KB
15 downloads
filedropmaj.git-d1caa0a.tar.bz2
144.57 KB
37 downloads
filedropmaj.git-d1caa0a.zip
196.63 KB
14 downloads
filedropmaj.git-d5679b5.tar.bz2
152.37 KB
34 downloads
filedropmaj.git-d5679b5.zip
207.52 KB
15 downloads
filedropmaj.git-d72f459.tar.bz2
147.90 KB
36 downloads
filedropmaj.git-d72f459.zip
201.92 KB
13 downloads
filedropmaj.git-d958c91.tar.bz2
144.67 KB
37 downloads
filedropmaj.git-d958c91.zip
196.88 KB
17 downloads
filedropmaj.git-d96784f.tar.bz2
135.58 KB
36 downloads
filedropmaj.git-d96784f.zip
183.46 KB
12 downloads
filedropmaj.git-da4b73f.tar.bz2
152.62 KB
33 downloads
filedropmaj.git-da4b73f.zip
203.48 KB
13 downloads
filedropmaj.git-dd24240.tar.bz2
138.27 KB
33 downloads
filedropmaj.git-dd24240.zip
190.45 KB
72 downloads
filedropmaj.git-e11e772.tar.bz2
152.09 KB
33 downloads
filedropmaj.git-e11e772.zip
211.33 KB
14 downloads
filedropmaj.git-e61478e.tar.bz2
135.95 KB
37 downloads
filedropmaj.git-e61478e.zip
183.91 KB
14 downloads
filedropmaj.git-e7a2547.tar.bz2
133.80 KB
33 downloads
filedropmaj.git-e7a2547.zip
180.05 KB
16 downloads
filedropmaj.git-e8a3b95.tar.bz2
138.15 KB
37 downloads
filedropmaj.git-e8a3b95.zip
191.04 KB
12 downloads
filedropmaj.git-eac86d5.tar.bz2
155.65 KB
33 downloads
filedropmaj.git-eac86d5.zip
208.28 KB
12 downloads
filedropmaj.git-ed83bf9.tar.bz2
135.16 KB
34 downloads
filedropmaj.git-ed83bf9.zip
182.91 KB
15 downloads
filedropmaj.git-ee50d40.tar.bz2
135.59 KB
36 downloads
filedropmaj.git-ee50d40.zip
183.48 KB
16 downloads
filedropmaj.git-efdb4df.tar.bz2
155.87 KB
36 downloads
filedropmaj.git-efdb4df.zip
208.72 KB
14 downloads
filedropmaj.git-f1554f8.tar.bz2
151.30 KB
37 downloads
filedropmaj.git-f1554f8.zip
206.22 KB
16 downloads
filedropmaj.git-f72a07b.tar.bz2
153.44 KB
37 downloads
filedropmaj.git-f72a07b.zip
212.11 KB
17 downloads
filedropmaj.git-f7ea5a1.tar.bz2
147.46 KB
36 downloads
filedropmaj.git-f7ea5a1.zip
201.32 KB
17 downloads
filedropmaj.git-f8a7353.tar.bz2
138.49 KB
36 downloads
filedropmaj.git-f8a7353.zip
190.66 KB
18 downloads
filedropmaj.git-fb84a8d.tar.bz2
137.61 KB
41 downloads
filedropmaj.git-fb84a8d.zip
190.70 KB
18 downloads
filedropmaj.git-fdcf5d3.tar.bz2
152.34 KB
40 downloads
filedropmaj.git-fdcf5d3.zip
207.53 KB
17 downloads
filedropmaj.git-feca42d.tar.bz2
132.90 KB
38 downloads
filedropmaj.git-feca42d.zip
179.44 KB
19 downloads