maj.world

maj.world

Git

This blob has been accessed 454 times via Git panel.

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