maj.world

maj.world

Git

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