maj.world

maj.world

Git

This blob has been accessed 371 times via Git panel.

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