maj.world

maj.world

Git

This blob has been accessed 174 times via Git panel.

  1. <?php
  2.   session_start();
  3.  
  4.   header("Cache-control: private");
  5.  
  6.   error_reporting(E_ERROR);
  7.  
  8.   require("core.php");
  9.  
  10.   if (isset($_SESSION['logged_in']) and ($_SESSION['user_agent'] != $_SERVER['HTTP_USER_AGENT'])) {
  11.       header("Location: login.php");
  12.   }
  13.  
  14.   $login_username = file_get_contents("data/username.txt");
  15.  
  16.   if (isset($_POST['title_input']) and isset($_POST['body_input'])) {
  17.       header("Location: edit.php?entry={$_REQUEST['entry']}");
  18.   }
  19.  
  20.   if (!isset($_REQUEST['entry'])) {
  21.       exit();
  22.   }
  23.  
  24.   if (!file_exists("data/items/{$_REQUEST['entry']}")) {
  25.       exit();
  26.   }
  27.  
  28.   if (!isset($_SESSION['logged_in'])) {
  29.       exit();
  30.   }
  31.  
  32.   $do = 0;
  33.  
  34.   if (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-rw.txt") and file_exists("data/wiki.txt") and (file_exists("data/items/{$_REQUEST['entry']}/edit.txt") or (file_get_contents("data/items/{$_REQUEST['entry']}/author.txt") == $_SESSION['logged_in']))) {
  35.       $do = 1;
  36.   }
  37.  
  38.   if (file_exists("data/items/{$_REQUEST['entry']}/lock.txt")) {
  39.       $do = 0;
  40.   }
  41.  
  42.   if ($_SESSION['logged_in'] == $login_username) {
  43.       $do = 1;
  44.   }
  45.  
  46.   if ($do == 0) {
  47.       exit();
  48.   }
  49.  
  50.   $title_file = "data/items/{$_REQUEST['entry']}/title.txt";
  51.   $body_file = "data/items/{$_REQUEST['entry']}/body.txt";
  52.   $date_file = "data/items/{$_REQUEST['entry']}/date.txt";
  53.   $img_file = "data/items/{$_REQUEST['entry']}/image.txt";
  54.   $revisions_file = "data/items/{$_REQUEST['entry']}/revisions.txt";
  55.  
  56.   $server_upload_max_filesize = return_bytes(ini_get('upload_max_filesize'));
  57.   $server_post_max_size = return_bytes(ini_get('post_max_size'));
  58.   $server_memory_limit = return_bytes(ini_get('memory_limit'));
  59.  
  60.   $max_file_size = $server_upload_max_filesize;
  61.  
  62.   if ($server_upload_max_filesize > $server_post_max_size) {
  63.       $max_file_size = $server_post_max_size;
  64.   }
  65.  
  66.   if ($server_post_max_size > $server_memory_limit) {
  67.       $max_file_size = $server_memory_limit;
  68.   }
  69. ?>
  70.  
  71. <title>Edit</title>
  72.  
  73. <style>
  74.  
  75. body {
  76.   color: #666666;
  77.   margin: 10px;
  78.   padding: 0px;
  79.   text-align: left;
  80.   font-family: <?php
  81.   if (file_exists("data/fonts/body.txt")) {
  82.       $font_body = file_get_contents("data/fonts/body.txt");
  83.       echo "{$font_body},";
  84.   }
  85. ?> arial, helvetica, sans-serif;
  86.   background-color: #ffffff;
  87. }
  88.  
  89. p, td {
  90.   font-size: 11px;
  91. }
  92.  
  93. a {
  94.   font-weight: bold;
  95.   text-decoration: none;
  96. }
  97.  
  98. a:link, a:visited {
  99.   color: #666666;
  100. }
  101.  
  102. a:hover {
  103.   color: #336699;
  104. }
  105.  
  106. a:active {
  107.   color: #336699;
  108. }
  109.  
  110. .input_title {  
  111.   color: #666666;
  112.   background: #ffffff;
  113.   border: #999999 solid 1px;
  114.   width: 520px;
  115.   font-family: <?php
  116.   if (file_exists("data/fonts/panel-title.txt")) {
  117.       $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
  118.       echo "{$font_panel_title},";
  119.   }
  120. ?> arial, helvetica, sans-serif;
  121.   font-size: 11px;
  122.   font-weight: bold
  123. }
  124.  
  125. .input_body {  
  126.   color: #666666;
  127.   background: #ffffff;
  128.   border: #999999 solid 1px;
  129.   width: 520px;
  130.   font-family: <?php
  131.   if (file_exists("data/fonts/panel-body.txt")) {
  132.       $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
  133.       echo "{$font_panel_body},";
  134.   }
  135. ?> arial, helvetica, sans-serif;
  136.   font-size: 11px
  137. }
  138.  
  139. #panel_title {
  140.   font-family: <?php
  141.   if (file_exists("data/fonts/panel-title.txt")) {
  142.       $font_panel_title = file_get_contents("data/fonts/panel-title.txt");
  143.       echo "{$font_panel_title},";
  144.   }
  145. ?> arial, helvetica, sans-serif;
  146.   font-size: 12px;
  147.   font-weight: bold;
  148.   color: #666666;
  149.   padding: 4px 4px 4px 4px;
  150.   background-color: #ffffff;
  151.   margin: 0px;
  152.   border-color: #cccccc;
  153.   border-width: 1px 1px 0px 1px;
  154.   border-style: solid solid none solid;
  155. }
  156.  
  157. #panel_body {
  158.   font-family: <?php
  159.   if (file_exists("data/fonts/panel-body.txt")) {
  160.       $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
  161.       echo "{$font_panel_body},";
  162.   }
  163. ?> arial, helvetica, sans-serif;
  164.   font-size: 11px;
  165.   color: #666666;
  166.   padding: 4px 4px 4px 4px;
  167.   background-color: #ffffff;
  168.   margin: 0px;
  169.   border-color: #cccccc;
  170.   border-width: 1px 1px 1px 1px;
  171.   border-style: solid solid solid solid;
  172. }
  173.  
  174. #panel_footer {
  175.   font-family: <?php
  176.   if (file_exists("data/fonts/panel-footer.txt")) {
  177.       $font_panel_footer = file_get_contents("data/fonts/panel-footer.txt");
  178.       echo "{$font_panel_footer},";
  179.   }
  180. ?> arial, helvetica, sans-serif;
  181.   font-size: 11px;
  182.   color: #666666;
  183.   padding: 4px 4px 4px 4px;
  184.   background-color: #ffffff;
  185.   margin: 0px;
  186.   border-color: #cccccc;
  187.   border-width: 0px 1px 1px 1px;
  188.   border-style: none solid solid solid;
  189. }
  190.  
  191. .input_cat {  
  192.   color: #666666;
  193.   background: #ffffff;
  194.   border: #999999 solid 1px;
  195.   width: 40px;
  196.   font-family: <?php
  197.   if (file_exists("data/fonts/panel-body.txt")) {
  198.       $font_panel_body = file_get_contents("data/fonts/panel-body.txt");
  199.       echo "{$font_panel_body},";
  200.   }
  201. ?> arial, helvetica, sans-serif;
  202.   font-size: 11px
  203. }
  204.  
  205. <?php
  206.   if (file_exists("data/css.txt")) {
  207.       readfile("data/css.txt");
  208.   }
  209. ?>
  210.  
  211. </style>
  212.  
  213. <?php
  214.   if (isset($_POST['auth_member']) and !empty($_POST['auth_member']) and isset($_POST['auth_toggle']) and !empty($_POST['auth_toggle'])) {
  215.       if (($_POST['auth_toggle'] == "ack") and file_exists("data/members/active/{$_POST['auth_member']}")) {
  216.           if (!file_exists("data/items/{$_REQUEST['entry']}/members")) {
  217.               mkdir("data/items/{$_REQUEST['entry']}/members");
  218.           }
  219.          
  220.           if (!file_exists("data/items/{$_REQUEST['entry']}/members/{$_POST['auth_member']}")) {
  221.               mkdir("data/items/{$_REQUEST['entry']}/members/{$_POST['auth_member']}");
  222.           }
  223.          
  224.           if (!file_exists("data/items/{$_REQUEST['entry']}/imembers")) {
  225.               mkdir("data/items/{$_REQUEST['entry']}/imembers");
  226.           }
  227.          
  228.           if (!file_exists("data/items/{$_REQUEST['entry']}/imembers/{$_POST['auth_member']}")) {
  229.               mkdir("data/items/{$_REQUEST['entry']}/imembers/{$_POST['auth_member']}");
  230.           }
  231.       }
  232.      
  233.       if (($_POST['auth_toggle'] == "nak") and file_exists("data/members/active/{$_POST['auth_member']}")) {
  234.           if (file_exists("data/items/{$_REQUEST['entry']}/members/{$_POST['auth_member']}")) {
  235.               rmdirr("data/items/{$_REQUEST['entry']}/members/{$_POST['auth_member']}");
  236.           }
  237.          
  238.           if (file_exists("data/items/{$_REQUEST['entry']}/imembers/{$_POST['auth_member']}")) {
  239.               rmdirr("data/items/{$_REQUEST['entry']}/imembers/{$_POST['auth_member']}");
  240.           }
  241.       }
  242.   }
  243.  
  244.   if (isset($_POST['category']) and !empty($_POST['category'])) {
  245.       if (file_exists("data/categories/{$_REQUEST['category']}/members")) {
  246.           if ($dh_cat_members = opendir("data/categories/{$_REQUEST['category']}/members")) {
  247.               while (($get_cat_member = readdir($dh_cat_members)) !== false) {
  248.                   if ($get_cat_member != "." && $get_cat_member != "..") {
  249.                       if (file_exists("data/members/active/$get_cat_member")) {
  250.                           $get_cat_members[] = $get_cat_member;
  251.                       } else {
  252.                           rmdirr("data/categories/{$_REQUEST['category']}/members/$get_cat_member");
  253.                       }
  254.                   }
  255.               }
  256.               closedir($dh_cat_members);
  257.           }
  258.       }
  259.      
  260.       if (($_POST['do'] == "unfile") and file_exists("data/items/{$_REQUEST['entry']}/categories/{$_REQUEST['category']}")) {
  261.           rmdirr("data/items/{$_REQUEST['entry']}/categories/{$_REQUEST['category']}");
  262.          
  263.           if (count(glob("data/items/{$_REQUEST['entry']}/categories/*")) < 1) {
  264.               rmdirr("data/items/{$_REQUEST['entry']}/categories");
  265.           }
  266.          
  267.           if (file_exists("data/categories")) {
  268.               if ($dh_get_categories = opendir("data/categories")) {
  269.                   while (($get_category = readdir($dh_get_categories)) !== false) {
  270.                       if ($get_category != "." && $get_category != "..") {
  271.                           $get_categories[] = $get_category;
  272.                       }
  273.                   }
  274.                   closedir($dh_get_categories);
  275.               }
  276.              
  277.               foreach ($get_cat_members as $get_cat_mem) {
  278.                   $count_mem = 0;
  279.                  
  280.                   foreach ($get_categories as $get_category) {
  281.                       if (file_exists("data/categories/$get_category/members/$get_cat_mem") and ($_REQUEST['category'] != $get_category) and file_exists("data/items/{$_REQUEST['entry']}/categories/$get_category")) {
  282.                           $count_mem = $count_mem + 1;
  283.                       }
  284.                   }
  285.                  
  286.                   if (($count_mem < 1) and !file_exists("data/items/{$_REQUEST['entry']}/imembers/$get_cat_mem")) {
  287.                       rmdirr("data/items/{$_REQUEST['entry']}/members/$get_cat_mem");
  288.                   }
  289.               }
  290.           }
  291.       }
  292.      
  293.       if (($_POST['do'] == "file") and !file_exists("data/items/{$_REQUEST['entry']}/categories/{$_REQUEST['category']}")) {
  294.           if (!file_exists("data/items/{$_REQUEST['entry']}/categories")) {
  295.               mkdir("data/items/{$_REQUEST['entry']}/categories");
  296.           }
  297.          
  298.           mkdir("data/items/{$_REQUEST['entry']}/categories/{$_REQUEST['category']}");
  299.          
  300.           foreach ($get_cat_members as $get_cat_mem) {
  301.               if (!file_exists("data/items/{$_REQUEST['entry']}/members/$get_cat_mem")) {
  302.                   mkdir("data/items/{$_REQUEST['entry']}/members/$get_cat_mem");
  303.               }
  304.           }
  305.       }
  306.   }
  307.  
  308.   if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_POST['comment_txt']) and !empty($_POST['comment_txt']) and isset($_REQUEST['type']) and !empty($_REQUEST['type']) and (($_REQUEST['type'] == "live") or ($_REQUEST['type'] == "pending"))) {
  309.       $comment_txt = ucfirst($_POST['comment_txt']);
  310.       $comment_txt = str_replace("\n", '<br />', $comment_txt);
  311.       $comment_txt = str_replace(':((', '<img src="images/smileys/crying.png" border="0">', $comment_txt);
  312.       $comment_txt = str_replace(':(', '<img src="images/smileys/frown.png" border="0">', $comment_txt);
  313.       $comment_txt = str_replace(':|', '<img src="images/smileys/indifferent.png" border="0">', $comment_txt);
  314.       $comment_txt = str_replace(':D', '<img src="images/smileys/laughing.png" border="0">', $comment_txt);
  315.       $comment_txt = str_replace(':P', '<img src="images/smileys/lick.png" border="0">', $comment_txt);
  316.       $comment_txt = str_replace(':O', '<img src="images/smileys/ohno.png" border="0">', $comment_txt);
  317.       $comment_txt = str_replace(':)', '<img src="images/smileys/smile.png" border="0">', $comment_txt);
  318.       $comment_txt = str_replace('=)', '<img src="images/smileys/surprised.png" border="0">', $comment_txt);
  319.       $comment_txt = str_replace(':\\', '<img src="images/smileys/undecided.png" border="0">', $comment_txt);
  320.       $comment_txt = str_replace(';)', '<img src="images/smileys/wink.png" border="0">', $comment_txt);
  321.       $comment_txt_file = "data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/comment.txt";
  322.       $open_comment_txt_file = fopen($comment_txt_file, "w");
  323.       fwrite($open_comment_txt_file, $comment_txt);
  324.       fclose($open_comment_txt_file);
  325.      
  326.       $comment_revisions_file = "data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/revisions.txt";
  327.       $fp_comment_revisions_file = fopen($comment_revisions_file, "r");
  328.       $comment_revisions_count = fread($fp_comment_revisions_file, filesize($comment_revisions_file));
  329.       fclose($fp_comment_revisions_file);
  330.      
  331.       $comment_revisions_count = $comment_revisions_count + 1;
  332.       $fp_comment_revisions_file = fopen($comment_revisions_file, "w");
  333.       fwrite($fp_comment_revisions_file, $comment_revisions_count);
  334.       fclose($fp_comment_revisions_file);
  335.   }
  336.  
  337.   if (isset($_REQUEST['comment']) and !empty($_REQUEST['comment']) and isset($_REQUEST['type']) and !empty($_REQUEST['type']) and (($_REQUEST['type'] == "live") or ($_REQUEST['type'] == "pending"))) {
  338.       if (!file_exists("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}")) {
  339.           exit();
  340.       }
  341. ?>
  342.   <table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="520">
  343.   <div id="panel_title"><?php
  344.       readfile("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/firstname.txt");
  345. ?>&nbsp;<?php
  346.       readfile("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/lastname.txt");
  347. ?>&nbsp;&lt;<?php
  348.       readfile("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/email.txt");
  349. ?>&gt;</div>
  350.   <div id="panel_body"><?php
  351.       readfile("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/comment.txt");
  352. ?></div>
  353.   <div id="panel_footer"><font style="font-size: 10px; color: #999999;">
  354.   <?php
  355.       entry2date($_REQUEST['comment']);
  356.      
  357.       if (file_exists("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/revisions.txt")) {
  358.           echo " (Revision ";
  359.           readfile("data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/revisions.txt");
  360.           echo ")";
  361.       }
  362. ?>
  363.   </font></div>
  364.   </td></tr></table>
  365.  
  366.   <table border="0" cellspacing="2" cellpadding="0">
  367.   <form enctype="multipart/form-data" action="edit.php" method="post">
  368.   <tr><td><textarea class="input_body" name="comment_txt" rows="10"><?php
  369.       $comment_txt_file = "data/items/{$_REQUEST['entry']}/comments/{$_REQUEST['type']}/{$_REQUEST['comment']}/comment.txt";
  370.       $open_comment_txt_file = fopen($comment_txt_file, "r");
  371.       $read_comment_txt_file = fread($open_comment_txt_file, filesize($comment_txt_file));
  372.       fclose($open_comment_txt_file);
  373.      
  374.       $comment_smiley2emoticon = str_replace('<br />', "\n", $read_comment_txt_file);
  375.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/crying.png" border="0">', ':((', $comment_smiley2emoticon);
  376.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/frown.png" border="0">', ':(', $comment_smiley2emoticon);
  377.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/indifferent.png" border="0">', ':|', $comment_smiley2emoticon);
  378.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/laughing.png" border="0">', ':D', $comment_smiley2emoticon);
  379.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/lick.png" border="0">', ':P', $comment_smiley2emoticon);
  380.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/ohno.png" border="0">', ':O', $comment_smiley2emoticon);
  381.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/smile.png" border="0">', ':)', $comment_smiley2emoticon);
  382.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/surprised.png" border="0">', '=)', $comment_smiley2emoticon);
  383.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/undecided.png" border="0">', ':\\', $comment_smiley2emoticon);
  384.       $comment_smiley2emoticon = str_replace('<img src="images/smileys/wink.png" border="0">', ';)', $comment_smiley2emoticon);
  385.      
  386.       echo $comment_smiley2emoticon;
  387. ?></textarea></td></tr>
  388.   <tr><td><input type="hidden" name="entry" value="<?php
  389.      echo $_REQUEST['entry'];
  390. ?>"></td></tr>
  391.   <tr><td><input type="hidden" name="comment" value="<?php
  392.      echo $_REQUEST['comment'];
  393. ?>"></td></tr>
  394.   <tr><td><input type="hidden" name="type" value="<?php
  395.      echo $_REQUEST['type'];
  396. ?>"></td></tr>
  397.   <tr><td><input class="input_body" type="submit" value="click here to update this comment"></td></tr>
  398.   </form>
  399.  
  400.   <form enctype="multipart/form-data" action="index.php?entry=<?php
  401.      echo $_REQUEST['entry'];
  402. ?>&show=comments" method="post">
  403.   <tr><td><input class="input_body" type="submit" value="click here to view posted entry"></td></tr>
  404.   </form>
  405.  
  406.   <form enctype="multipart/form-data" action="index.php" method="post">
  407.   <tr><td><input class="input_body" type="submit" value="click here to go to the index page"></td></tr>
  408.   </form>
  409.   </table>
  410.  
  411. <?php
  412.       exit();
  413.   }
  414. ?>
  415.  
  416. <table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top">
  417.  
  418. <table border="0" cellspacing="0" cellpadding="0" bgcolor="#cccccc"><tr><td width="520">
  419.  
  420. <div id="panel_title"><?php
  421.   readfile($title_file);
  422. ?></div>
  423. <div id="panel_body"><table border="0" cellspacing="0" cellpadding="0"><tr><td><?php
  424.   readfile($body_file);
  425. ?></td></tr></table></div>
  426. <div id="panel_footer"><font style="font-size: 10px; color: #999999;"><?php
  427.   if (file_exists("data/items/{$_REQUEST['entry']}/author.txt")) {
  428.       readfile("data/items/{$_REQUEST['entry']}/author.txt");
  429.       echo " - ";
  430.   }
  431.  
  432.   entry2date($_REQUEST['entry']);
  433.  
  434.   if (file_exists($revisions_file)) {
  435.       echo ' (Revision ';
  436.       readfile($revisions_file);
  437.       echo " - ";
  438.       echo date("l, M j, Y, g:i A", filemtime("data/items/{$_REQUEST['entry']}/body.txt"));
  439.       echo ')';
  440.   }
  441. ?>
  442.  
  443. </font></div>
  444. </td></tr></table>
  445.  
  446. <form enctype="multipart/form-data" action="edit.php" method="post">
  447.  
  448. <p><table border="0" cellspacing="2" cellpadding="0" bgcolor="#ffffff">
  449.  
  450. <?php
  451.   if (($_SESSION['logged_in'] == $login_username) or (file_exists("data/members/active/{$_SESSION['logged_in']}/bb-ul.txt") and file_exists("data/members/active/{$_SESSION['logged_in']}/bb-rw.txt"))) {
  452. ?>
  453.  
  454. <input type="hidden" name="max_file_size" value="<?php
  455.      echo $max_file_size;
  456. ?>">
  457.  
  458. <tr><td><input autocomplete="off" type="file" name="album_image_input"> Upload optional album image. Enter optional caption below.</td></tr>
  459. <tr><td><input autocomplete="off" type="text" name="caption" class="input_body"></td></tr>
  460. <tr><td><input type="hidden" name="max_file_size" value="<?php
  461.      echo $max_file_size;
  462. ?>"></td></tr>
  463. <tr><td><input autocomplete="off" type="file" name="entry_image_input"> Upload optional GIF, JPG, or PNG entry image.</td></tr>
  464. <tr><td><input type="hidden" name="max_file_size" value="<?php
  465.      echo $max_file_size;
  466. ?>"></td></tr>
  467. <tr><td><input autocomplete="off" type="file" name="file_input"> Upload optional file. Max size supported by server is <?php
  468.       echo($max_file_size / (1024 * 1024));
  469. ?>MB.</td></tr>
  470.  
  471. <?php
  472.   }
  473.  
  474.   if ($_SESSION['logged_in'] == $login_username) {
  475. ?>
  476.  
  477.   <tr><td><input autocomplete="off" type="password" name="passwd" <?php
  478.       if (file_exists("data/items/{$_REQUEST['entry']}/passwd.txt")) {
  479.           echo "value=\"password\"";
  480.       }
  481. ?>
  482.  
  483.   > <?php
  484.       if (file_exists("data/items/{$_REQUEST['entry']}/passwd.txt")) {
  485.           echo "Enter new password or clear field to disable password protection.";
  486.       } else {
  487.           echo "Enter optional password.";
  488.       }
  489. ?></td></tr>
  490.  
  491.   <tr><td><input autocomplete="off" type="text" name="maxlines" <?php
  492.       if (file_exists("data/items/{$_REQUEST['entry']}/maxlines.txt")) {
  493.           echo "value=\"";
  494.           readfile("data/items/{$_REQUEST['entry']}/maxlines.txt");
  495.           echo "\"";
  496.       }
  497. ?>
  498.  
  499.   > <?php
  500.       if (file_exists("data/items/{$_REQUEST['entry']}/maxlines.txt")) {
  501.           echo "Enter new maximum lines for initial display or clear field to disable.";
  502.       } else {
  503.           echo "Enter optional maximum lines for initial display.";
  504.       }
  505. ?></td></tr>
  506.  
  507.   <tr><td><input type="checkbox" name="sticky" <?php
  508.       $sticky_sem = 'data/sticky/' . $_REQUEST['entry'];
  509.       if (file_exists($sticky_sem)) {
  510.           echo checked;
  511.       }
  512. ?>>Put entry title in Quick Links box.</td></tr>
  513.   <tr><td><input type="checkbox" name="pdf" <?php
  514.       if (file_exists("data/items/{$_REQUEST['entry']}/pdf/file")) {
  515.           echo checked;
  516.       }
  517. ?>>Allow PDF generation for this entry.</td></tr>
  518.   <tr><td><input type="checkbox" name="display" <?php
  519.       $display_sem = "data/items/{$_REQUEST['entry']}/cat.txt";
  520.       if (file_exists($display_sem)) {
  521.           echo checked;
  522.       }
  523. ?>>Always display. If this is not a private entry, it will be displayed even if its category is hidden or isolated.</td></tr>
  524.   <tr><td><input type="checkbox" name="private" <?php
  525.       $private_sem = "data/items/{$_REQUEST['entry']}/private.txt";
  526.       if (file_exists($private_sem)) {
  527.           echo checked;
  528.       }
  529. ?>>Private entry. This entry will unconditionally be invisible to visitors<?php
  530.       if (file_exists("data/ml.txt")) {
  531.           echo " and to the mailing list";
  532.       }
  533. ?>, even if always display is set.</td></tr>
  534.  
  535.   <?php
  536.       if (file_exists("data/bb.txt")) {
  537. ?>
  538.  
  539.   <tr><td><input type="checkbox" name="member" <?php
  540.           $member_sem = "data/items/{$_REQUEST['entry']}/member.txt";
  541.           if (file_exists($member_sem)) {
  542.               echo checked;
  543.           }
  544. ?>>Only registered members can view this entry.</td></tr>
  545.  
  546.   <?php
  547.       }
  548. ?>
  549.  
  550.   <?php
  551.       if (file_exists("data/bb.txt") and file_exists("data/wiki.txt")) {
  552. ?>
  553.  
  554.   <tr><td><input type="checkbox" name="edit" <?php
  555.           $edit_sem = "data/items/{$_REQUEST['entry']}/edit.txt";
  556.           if (file_exists($edit_sem)) {
  557.               echo checked;
  558.           }
  559. ?>>Registered members can edit this entry.</td></tr>
  560.   <tr><td><input type="checkbox" name="lock" <?php
  561.           if (file_exists("data/items/{$_REQUEST['entry']}/lock.txt")) {
  562.               echo checked;
  563.           }
  564. ?>>Only the administrator can edit this entry. </td></tr>
  565.  
  566.   <?php
  567.       }
  568. ?>
  569.  
  570.   <tr><td><input type="checkbox" name="xtitle" <?php
  571.       $lastmod_sem = "data/items/{$_REQUEST['entry']}/xtitle.txt";
  572.       if (file_exists($lastmod_sem)) {
  573.           echo checked;
  574.       }
  575. ?>>Do not display the entry title.</td></tr>
  576.  
  577. <?php
  578.   }
  579. ?>
  580.  
  581.   <tr><td><input type="checkbox" name="xdate" <?php
  582.       $lastmod_sem = "data/items/{$_REQUEST['entry']}/xdate.txt";
  583.       if (file_exists($lastmod_sem)) {
  584.           echo checked;
  585.       }
  586. ?>>Do not display the entry date.</td></tr>
  587.  
  588. <?php
  589.  
  590. if (!file_exists("data/avatar.txt")) {
  591.  
  592.         echo "<tr><td><input type=\"checkbox\" name=\"xauthor\"";
  593.  
  594.         if (file_exists("data/items/{$_REQUEST['entry']}/xauthor.txt")) {
  595.                 echo checked;
  596.         }
  597.        
  598.         echo ">Do not display the entry author.</td></tr>";
  599. }
  600. else {
  601.         echo "<tr><td><input type=\"checkbox\" name=\"xavatar\"";
  602.  
  603.         if (file_exists("data/items/{$_REQUEST['entry']}/xavatar.txt")) {
  604.                 echo checked;
  605.         }
  606.        
  607.         echo ">Do not display the entry avatar.</td></tr>";
  608. }
  609.  
  610. ?>
  611.  
  612.  
  613.   <tr><td><input type="checkbox" name="lastmod" <?php
  614.       $lastmod_sem = "data/items/{$_REQUEST['entry']}/lastmod.txt";
  615.       if (file_exists($lastmod_sem)) {
  616.           echo checked;
  617.       }
  618. ?>>Display last modification date and time.</td></tr>
  619.  
  620.   <tr><td><input type="checkbox" name="fb" <?php
  621.       $lastmod_sem = "data/items/{$_REQUEST['entry']}/fb.txt";
  622.       if (file_exists($lastmod_sem)) {
  623.           echo checked;
  624.       }
  625. ?>>Enable Facebook support.</td></tr>
  626.  
  627.  
  628. <?php
  629.  
  630. if (file_exists("images/{$_REQUEST['entry']}/album")) {
  631.  
  632.         $count_album_images = count(glob("images/{$_REQUEST['entry']}/album/*"));
  633.        
  634.         if ($count_album_images < 1) {
  635.                 rmdirr("images/{$_REQUEST['entry']}/album");
  636.         }
  637.         else {
  638.                 if (file_exists("data/items/{$_REQUEST['entry']}/auto-album.txt")) {
  639.                         echo "<tr><td><input type=\"checkbox\" name=\"auto_album\" checked>";
  640.                 }
  641.                 else {
  642.                         echo "<tr><td><input type=\"checkbox\" name=\"auto_album\">";
  643.                 }
  644.        
  645.                 if ($count_album_images > 1) {
  646.                         echo "Automatically display album (<a href=\"index.php?entry={$_REQUEST['entry']}&show=album\">$count_album_images images</a>).</td></tr>";
  647.                 }
  648.                 else {
  649.                         echo "Automatically display album (<a href=\"index.php?entry={$_REQUEST['entry']}&show=album\">$count_album_images image</a>).</td></tr>";
  650.                 }
  651.         }
  652. }
  653.  
  654. ?>
  655.  
  656. </table></p>
  657.  
  658. <input type="hidden" name="entry" value="<?php
  659.  echo $_REQUEST['entry'];
  660. ?>">
  661.  
  662. <table border="0" cellspacing="0" cellpadding="0"><tr><td>
  663.  
  664. <table border="0" cellspacing="2" cellpadding="0">
  665. <tr><td><input required autocomplete="off" class="input_title" type="text" name="title_input" value="<?php
  666.  readfile($title_file);
  667. ?>"></td></tr>
  668. <tr><td><textarea class="input_body" name="body_input" rows="15" required>
  669. <?php
  670.   $open_body_file = fopen($body_file, "r");
  671.   $read_body_file = fread($open_body_file, filesize($body_file));
  672.   fclose($open_body_file);
  673.  
  674.   $body_read_content = str_replace('<br />', "\n", $read_body_file);
  675.   $body_read_content = str_replace('<img src="images/smileys/crying.png" border="0">', ':((', $body_read_content);
  676.   $body_read_content = str_replace('<img src="images/smileys/frown.png" border="0">', ':(', $body_read_content);
  677.   $body_read_content = str_replace('<img src="images/smileys/indifferent.png" border="0">', ':|', $body_read_content);
  678.   $body_read_content = str_replace('<img src="images/smileys/laughing.png" border="0">', ':D', $body_read_content);
  679.   $body_read_content = str_replace('<img src="images/smileys/lick.png" border="0">', ':P', $body_read_content);
  680.   $body_read_content = str_replace('<img src="images/smileys/ohno.png" border="0">', ':O', $body_read_content);
  681.   $body_read_content = str_replace('<img src="images/smileys/smile.png" border="0">', ':)', $body_read_content);
  682.   $body_read_content = str_replace('<img src="images/smileys/surprised.png" border="0">', '=)', $body_read_content);
  683.   $body_read_content = str_replace('<img src="images/smileys/undecided.png" border="0">', ':\\', $body_read_content);
  684.   $body_read_content = str_replace('<img src="images/smileys/wink.png" border="0">', ';)', $body_read_content);
  685.   $body_read_content = str_replace('<!-- html -->', '<html>', $body_read_content);
  686.   $body_read_content = str_replace('<!-- /html -->', '</html>', $body_read_content);
  687.   $body_read_content = str_replace('<span style="background-color: #ffff00;">', '<highlight>', $body_read_content);
  688.   $body_read_content = str_replace('</span>', '</highlight>', $body_read_content);
  689.  
  690.   echo $body_read_content;
  691. ?>
  692. </textarea></td></tr>
  693. <tr><td><input class="input_body" type="submit" value="click here to update this entry"></td></tr>
  694. </form>
  695.  
  696. <form enctype="multipart/form-data" action="index.php?entry=<?php
  697.  echo $_REQUEST['entry'];
  698. ?>" method="post">
  699. <tr><td><input class=input_body type=submit value="click here to view posted entry"></td></tr>
  700. </form>
  701.  
  702. <form enctype="multipart/form-data" action="index.php" method="post">
  703. <tr><td><input class="input_body" type="submit" value="click here to go to the index page"></td></tr>
  704. </form>
  705.  
  706. </table>
  707.  
  708. </td><td width="10"></td><td>
  709.  
  710. <table border="0" cellspacing="1" cellpadding="2">
  711. <tr><td><img src="images/smileys/crying.png" border="0"></td><td>:((</td><td >crying</td></tr>
  712. <tr><td><img src="images/smileys/frown.png" border="0"></td><td>:(</td><td>frown</td></tr>
  713. <tr><td><img src="images/smileys/indifferent.png" border="0"></td><td>:|</td><td>indifferent</td></tr>
  714. <tr><td><img src="images/smileys/laughing.png" border="0"></td><td>:D</td><td>laughing</td></tr>
  715. <tr><td><img src="images/smileys/lick.png" border="0"></td><td>:P</td><td>lick</td></tr>
  716. <tr><td><img src="images/smileys/ohno.png" border="0"></td><td>:O</td><td>oh no!</td></tr>
  717. <tr><td><img src="images/smileys/smile.png" border="0"></td><td>:)</td><td>smile</td></tr>
  718. <tr><td><img src="images/smileys/surprised.png" border="0"></td><td>=)</td><td>surprised</td></tr>
  719. <tr><td><img src="images/smileys/undecided.png" border="0"></td><td>:\</td><td>undecided</td></tr>
  720. <tr><td><img src="images/smileys/wink.png" border="0"></td><td>;)</td><td>wink</td></tr>
  721. </table>
  722.  
  723. </td></tr></table>
  724.  
  725. </td><td width="25"></td><td valign="top">
  726.  
  727. <?php
  728.   // improve category handling (20100221) - start
  729.  
  730.   if (file_exists("data/categories")) {
  731.       echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td valign=\"top\" width=\"150\">";
  732.      
  733.       if ($dh_cat = opendir("data/categories")) {
  734.           while (($entry_cat = readdir($dh_cat)) !== false) {
  735.               if ($entry_cat != "." && $entry_cat != "..") {
  736.                   if (file_exists("data/categories/$entry_cat/private.txt") and ($login_username != $_SESSION['logged_in'])) {
  737.                       continue;
  738.                   }
  739.                  
  740.                   if (file_exists("data/items/{$_REQUEST['entry']}/categories/$entry_cat")) {
  741.                       $filed_cat[] = $entry_cat;
  742.                   }
  743.                  
  744.                   if (!file_exists("data/items/{$_REQUEST['entry']}/categories/$entry_cat")) {
  745.                       $unfiled_cat[] = $entry_cat;
  746.                   }
  747.               }
  748.           }
  749.           closedir($dh_cat);
  750.          
  751.           sort($filed_cat);
  752.           sort($unfiled_cat);
  753.          
  754.           reset($filed_cat);
  755.           reset($unfiled_cat);
  756.          
  757.           $count_filed_cat = count($filed_cat);
  758.           $count_unfiled_cat = count($unfiled_cat);
  759.       }
  760.      
  761.       if ($count_filed_cat > 0) {
  762.           echo "<p><b>Filed Under</b></p>";
  763.          
  764.           echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\" width=\"150\">";
  765.          
  766.           foreach ($filed_cat as $filed_category) {
  767.               echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">";
  768.               echo "<input type=\"hidden\" name=\"entry\" value=\"{$_REQUEST['entry']}\">";
  769.               echo "<input type=\"hidden\" name=\"category\" value=\"$filed_category\">";
  770.               echo "<input type=\"hidden\" name=\"do\" value=\"unfile\">";
  771.               echo "<tr bgcolor=\"#ffffff\"><td><a href=\"index.php?category=$filed_category\">$filed_category</a></td>";
  772.               echo "<td width=\"14\"><input type=\"image\" src=\"images/widget.x.png\"></td></tr>";
  773.               echo "</form>";
  774.           }
  775.          
  776.           echo "</table>";
  777.       }
  778.      
  779.       echo "</td><td width=\"25\"></td><td valign=\"top\" width=\"150\">";
  780.      
  781.       if ($count_unfiled_cat > 0) {
  782.           echo "<p><b>Available Categories</b></p>";
  783.          
  784.           echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\" width=\"150\">";
  785.          
  786.           foreach ($unfiled_cat as $unfiled_category) {
  787.               echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">";
  788.               echo "<input type=\"hidden\" name=\"entry\" value=\"{$_REQUEST['entry']}\">";
  789.               echo "<input type=\"hidden\" name=\"category\" value=\"$unfiled_category\">";
  790.               echo "<input type=\"hidden\" name=\"do\" value=\"file\">";
  791.               echo "<tr bgcolor=\"#ffffff\"><td width=\"14\"><input type=\"image\" src=\"images/widget.ok.png\"></td>";
  792.               echo "<td align=\"right\"><a href=\"index.php?category=$unfiled_category\">$unfiled_category</a></td></tr>";
  793.               echo "</form>";
  794.           }
  795.          
  796.           echo "</table>";
  797.       }
  798.      
  799.       echo "</td></tr></table><br>";
  800.   }
  801.  
  802.   // improve category handling (20100221) - end
  803.  
  804.   // add member authorization (20100221) - start
  805.  
  806.   if (file_exists("data/members/active")) {
  807.       echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td valign=\"top\" width=\"150\">";
  808.      
  809.       if ($dh_ack_members = opendir("data/items/{$_REQUEST['entry']}/members")) {
  810.           while (($ack_member = readdir($dh_ack_members)) !== false) {
  811.               if ($ack_member != "." && $ack_member != "..") {
  812.                   if (file_exists("data/members/active/$ack_member")) {
  813.                       $ack_members[] = $ack_member;
  814.                   } else {
  815.                       rmdirr("data/items/{$_REQUEST['entry']}/members/$ack_member");
  816.                   }
  817.               }
  818.           }
  819.           closedir($dh_ack_members);
  820.           sort($ack_members);
  821.           reset($ack_members);
  822.           $count_ack_members = count($ack_members);
  823.       }
  824.      
  825.       if ($dh_nak_members = opendir("data/members/active")) {
  826.           while (($nak_member = readdir($dh_nak_members)) !== false) {
  827.               if ($nak_member != "." && $nak_member != "..") {
  828.                   if (file_exists("data/items/{$_REQUEST['entry']}/members/$nak_member")) {
  829.                       continue;
  830.                   }
  831.                  
  832.                   if (!file_exists("data/items/{$_REQUEST['entry']}/members/$nak_member")) {
  833.                       $nak_members[] = $nak_member;
  834.                   }
  835.               }
  836.           }
  837.           closedir($dh_nak_members);
  838.           sort($nak_members);
  839.           reset($nak_members);
  840.           $count_nak_members = count($nak_members);
  841.       }
  842.      
  843.       if ($count_ack_members > 0) {
  844.           echo "<p><b>Authorized Members</b></p>";
  845.          
  846.           echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\" width=\"150\">";
  847.          
  848.           foreach ($ack_members as $ack_member) {
  849.  
  850.                 if ($_SESSION['logged_in'] == $nak_member) {
  851.                         continue;
  852.                 }
  853.                          
  854.               echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">";
  855.               echo "<input type=\"hidden\" name=\"entry\" value=\"{$_REQUEST['entry']}\">";
  856.               echo "<input type=\"hidden\" name=\"auth_member\" value=\"$ack_member\">";
  857.               echo "<input type=\"hidden\" name=\"auth_toggle\" value=\"nak\">";
  858.               echo "<tr bgcolor=\"#ffffff\"><td><a href=\"member.php?id=$ack_member\">$ack_member</a></td>";
  859.               echo "<td width=\"14\"><input type=\"image\" src=\"images/widget.x.png\"></td></tr>";
  860.               echo "</form>";
  861.           }
  862.           echo "</table>";
  863.       }
  864.      
  865.       echo "</td><td width=\"25\"></td><td valign=\"top\" width=\"150\">";
  866.      
  867.       if ($count_nak_members > 0) {
  868.           echo "<p><b>Registered Members</b></p>";
  869.          
  870.           echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"#cccccc\" width=\"150\">";
  871.          
  872.           foreach ($nak_members as $nak_member) {
  873.          
  874.                 if ($_SESSION['logged_in'] == $nak_member) {
  875.                         continue;
  876.                 }
  877.          
  878.               echo "<form enctype=\"multipart/form-data\" action=\"edit.php\" method=\"post\">";
  879.               echo "<input type=\"hidden\" name=\"entry\" value=\"{$_REQUEST['entry']}\">";
  880.               echo "<input type=\"hidden\" name=\"auth_member\" value=\"$nak_member\">";
  881.               echo "<input type=\"hidden\" name=\"auth_toggle\" value=\"ack\">";
  882.               echo "<tr bgcolor=\"#ffffff\"><td width=\"14\"><input type=\"image\" src=\"images/widget.ok.png\"></td>";
  883.               echo "<td align=\"right\"><a href=\"member.php?id=$nak_member\">$nak_member</a></td></tr>";
  884.               echo "</form>";
  885.           }
  886.           echo "</table>";
  887.       }
  888.      
  889.       echo "</td></tr></table><br>";
  890.   }
  891.  
  892.   // add member authorization (20100221) - end
  893. ?>
  894.  
  895. </td></tr></table>
  896.  
  897. <?php
  898.   if (!isset($_POST['title_input']) or !isset($_POST['body_input']) or empty($_POST['title_input']) or empty($_POST['body_input'])) {
  899.       exit();
  900.   }
  901.  
  902.   if (file_exists("data/items/{$_REQUEST['entry']}/title.old")) {
  903.       unlink("data/items/{$_REQUEST['entry']}/title.old");
  904.   }
  905.  
  906.   if (file_exists("data/items/{$_REQUEST['entry']}/body.old")) {
  907.       unlink("data/items/{$_REQUEST['entry']}/body.old");
  908.   }
  909.  
  910.   copy("data/items/{$_REQUEST['entry']}/title.txt", "data/items/{$_REQUEST['entry']}/title.old");
  911.   copy("data/items/{$_REQUEST['entry']}/body.txt", "data/items/{$_REQUEST['entry']}/body.old");
  912.  
  913.   $title_write_content = format_title_put($_POST['title_input']);
  914.   $body_write_content = format_body_put($_POST['body_input']);
  915.  
  916.   $fp_revisions_file = fopen($revisions_file, "r");
  917.   $revisions_count = fread($fp_revisions_file, filesize($revisions_file));
  918.   fclose($fp_revisions_file);
  919.  
  920.   $revisions_count = $revisions_count + 1;
  921.  
  922.   $fp_revisions_file = fopen($revisions_file, "w");
  923.   fwrite($fp_revisions_file, $revisions_count);
  924.   fclose($fp_revisions_file);
  925.  
  926.   if (isset($_FILES['album_image_input']) and !empty($_FILES['album_image_input'])) {
  927.       if (is_uploaded_file($_FILES['album_image_input']['tmp_name'])) {
  928.           if ($_FILES['album_image_input']['size'] <= $max_file_size) {
  929.               if (($_FILES['album_image_input']['type'] == "image/gif") || ($_FILES['album_image_input']['type'] == "image/pjpeg") || ($_FILES['album_image_input']['type'] == "image/jpeg") || ($_FILES['album_image_input']['type'] == "image/png")) {
  930.                   $album_image_input_name = str_replace(" ", "_", $_FILES['album_image_input']['name']);
  931.                  
  932.                   if (!file_exists("images/{$_REQUEST['entry']}/album/$album_image_input_name")) {
  933.                       if (!file_exists("images/{$_REQUEST['entry']}")) {
  934.                           mkdir("images/{$_REQUEST['entry']}");
  935.                       }
  936.                      
  937.                       if (!file_exists("images/{$_REQUEST['entry']}/album")) {
  938.                           mkdir("images/{$_REQUEST['entry']}/album");
  939.                       }
  940.                      
  941.                       if (!file_exists("data/albums")) {
  942.                           mkdir("data/albums");
  943.                       }
  944.                      
  945.                       if (!file_exists("data/albums/{$_REQUEST['entry']}")) {
  946.                           mkdir("data/albums/{$_REQUEST['entry']}");
  947.                       }
  948.                      
  949.                       if (isset($_POST['caption']) and !empty($_POST['caption'])) {
  950.                           if (!file_exists("data/items/{$_REQUEST['entry']}/album")) {
  951.                               mkdir("data/items/{$_REQUEST['entry']}/album");
  952.                           }
  953.                          
  954.                           if (!file_exists("data/items/{$_REQUEST['entry']}/album/captions")) {
  955.                               mkdir("data/items/{$_REQUEST['entry']}/album/captions");
  956.                           }
  957.                          
  958.                           if (!file_exists("data/items/{$_REQUEST['entry']}/album/captions/{$album_image_input_name}.txt")) {
  959.                               $caption_txt = ucfirst($_POST['caption']);
  960.                               $caption_txt = str_replace(':((', '<img src="images/smileys/crying.png" border="0">', $caption_txt);
  961.                               $caption_txt = str_replace(':(', '<img src="images/smileys/frown.png" border="0">', $caption_txt);
  962.                               $caption_txt = str_replace(':|', '<img src="images/smileys/indifferent.png" border="0">', $caption_txt);
  963.                               $caption_txt = str_replace(':D', '<img src="images/smileys/laughing.png" border="0">', $caption_txt);
  964.                               $caption_txt = str_replace(':P', '<img src="images/smileys/lick.png" border="0">', $caption_txt);
  965.                               $caption_txt = str_replace(':O', '<img src="images/smileys/ohno.png" border="0">', $caption_txt);
  966.                               $caption_txt = str_replace(':)', '<img src="images/smileys/smile.png" border="0">', $caption_txt);
  967.                               $caption_txt = str_replace('=)', '<img src="images/smileys/surprised.png" border="0">', $caption_txt);
  968.                               $caption_txt = str_replace(':\\', '<img src="images/smileys/undecided.png" border="0">', $caption_txt);
  969.                               $caption_txt = str_replace(';)', '<img src="images/smileys/wink.png" border="0">', $caption_txt);
  970.                               $caption_txt = str_replace('[code]', '<code>', $caption_txt);
  971.                               $caption_txt = str_replace('[/code]', '</code>', $caption_txt);
  972.                               $caption_txt = str_replace("\n", '<br />', $caption_txt);
  973.                               $caption_txt = str_replace('[b]', '<b>', $caption_txt);
  974.                               $caption_txt = str_replace('[/b]', '</b>', $caption_txt);
  975.                               $caption_txt = str_replace('[i]', '<i>', $caption_txt);
  976.                               $caption_txt = str_replace('[/i]', '</i>', $caption_txt);
  977.                               $caption_txt = str_replace('[u]', '<u>', $caption_txt);
  978.                               $caption_txt = str_replace('[/u]', '</u>', $caption_txt);
  979.                               $caption_txt = str_replace('[strike]', '<strike>', $caption_txt);
  980.                               $caption_txt = str_replace('[/strike]', '</strike>', $caption_txt);
  981.                               $caption_txt = str_replace('[sup]', '<sup>', $caption_txt);
  982.                               $caption_txt = str_replace('[/sup]', '</sup>', $caption_txt);
  983.                               $caption_txt = str_replace('[sub]', '<sub>', $caption_txt);
  984.                               $caption_txt = str_replace('[/sub]', '</sub>', $caption_txt);
  985.                               $caption_txt = str_replace('[highlight]', '<highlight>', $caption_txt);
  986.                               $caption_txt = str_replace('[/highlight]', '</highlight>', $caption_txt);
  987.                               $caption_txt = str_replace('<highlight>', '<span style="background-color: #ffff00;">', $caption_txt);
  988.                               $caption_txt = str_replace('</highlight>', '</span>', $caption_txt);
  989.                              
  990.                               $fp_caption_txt = fopen("data/items/{$_REQUEST['entry']}/album/captions/{$album_image_input_name}.txt", "w");
  991.                               fwrite($fp_caption_txt, $caption_txt);
  992.                               fclose($fp_caption_txt);
  993.                           }
  994.                       }
  995.                      
  996.                      
  997.                       $res = copy($_FILES['album_image_input']['tmp_name'], "images/{$_REQUEST['entry']}/album/$album_image_input_name");
  998.                       unlink($_FILES['album_image_input']['tmp_name']);
  999.                   } else {
  1000.                       unlink($_FILES['album_image_input']['tmp_name']);
  1001.                   }
  1002.               } else {
  1003.                   unlink($_FILES['album_image_input']['tmp_name']);
  1004.               }
  1005.           } else {
  1006.               unlink($_FILES['album_image_input']['tmp_name']);
  1007.           }
  1008.       } else {
  1009.           unlink($_FILES['album_image_input']['tmp_name']);
  1010.       }
  1011.   }
  1012.  
  1013.   if (isset($_FILES['entry_image_input']) and !empty($_FILES['entry_image_input'])) {
  1014.       if (is_uploaded_file($_FILES['entry_image_input']['tmp_name'])) {
  1015.           if ($_FILES['entry_image_input']['size'] <= $max_file_size) {
  1016.               if (($_FILES['entry_image_input']['type'] == "image/gif") || ($_FILES['entry_image_input']['type'] == "image/pjpeg") || ($_FILES['entry_image_input']['type'] == "image/jpeg") || ($_FILES['entry_image_input']['type'] == "image/png")) {
  1017.                   $entry_image_input_name = str_replace(" ", "_", $_FILES['entry_image_input']['name']);
  1018.                  
  1019.                  
  1020.                   if (!file_exists("images/{$_REQUEST['entry']}/$entry_image_input_name")) {
  1021.                       if (!file_exists("images/{$_REQUEST['entry']}")) {
  1022.                           mkdir("images/{$_REQUEST['entry']}");
  1023.                       }
  1024.                      
  1025.                      
  1026.                       $res = copy($_FILES['entry_image_input']['tmp_name'], "images/{$_REQUEST['entry']}/$entry_image_input_name");
  1027.                       unlink($_FILES['entry_image_input']['tmp_name']);
  1028.                      
  1029.                       $entry_image_size = getimagesize("images/{$_REQUEST['entry']}/$entry_image_input_name");
  1030.                       $entry_image_width = $entry_image_size[0];
  1031.                       $entry_image_height = $entry_image_size[1];
  1032.                      
  1033.                       $max_entry_image_width = 510;
  1034.                      
  1035.                       if ($entry_image_width > $max_entry_image_width) {
  1036.                           $sizefactor = (double)($max_entry_image_width / $entry_image_width);
  1037.                           $entry_image_width = (int)($entry_image_width * $sizefactor);
  1038.                           $entry_image_height = (int)($entry_image_height * $sizefactor);
  1039.                       }
  1040.                      
  1041.                       $body_write_content = "<img src=\"images/{$_REQUEST['entry']}/$entry_image_input_name\" border=\"0\" width=\"$entry_image_width\" height=\"$entry_image_height\">\n\r$body_write_content";
  1042.                   } else {
  1043.                       unlink($_FILES['entry_image_input']['tmp_name']);
  1044.                   }
  1045.               } else {
  1046.                   unlink($_FILES['entry_image_input']['tmp_name']);
  1047.               }
  1048.           } else {
  1049.               unlink($_FILES['entry_image_input']['tmp_name']);
  1050.           }
  1051.       } else {
  1052.           unlink($_FILES['entry_image_input']['tmp_name']);
  1053.       }
  1054.   }
  1055.  
  1056.   if (isset($_FILES['file_input']) and !empty($_FILES['file_input'])) {
  1057.       if (is_uploaded_file($_FILES['file_input']['tmp_name'])) {
  1058.           if ($_FILES['file_input']['size'] <= $max_file_size) {
  1059.               if (!file_exists("data/items/{$_REQUEST['entry']}/filedrop")) {
  1060.                   mkdir("data/items/{$_REQUEST['entry']}/filedrop");
  1061.               }
  1062.              
  1063.               if (!file_exists("data/items/{$_REQUEST['entry']}/filedrop/files")) {
  1064.                   mkdir("data/items/{$_REQUEST['entry']}/filedrop/files");
  1065.               }
  1066.              
  1067.               $file_input_name = str_replace(" ", "_", $_FILES['file_input']['name']);
  1068.              
  1069.               if (!file_exists("data/items/{$_REQUEST['entry']}/filedrop/files/$file_input_name")) {
  1070.                   $res = copy($_FILES['file_input']['tmp_name'], "data/items/{$_REQUEST['entry']}/filedrop/files/$file_input_name");
  1071.                   unlink($_FILES['file_input']['tmp_name']);
  1072.                  
  1073.                  
  1074.                   $fp_file_txt = fopen("data/items/{$_REQUEST['entry']}/filedrop/{$file_input_name}.txt", "w");
  1075.                   fwrite($fp_file_txt, "data/items/{$_REQUEST['entry']}/filedrop/files/$file_input_name");
  1076.                   fclose($fp_file_txt);
  1077.               } else {
  1078.                   unlink($_FILES['file_input']['tmp_name']);
  1079.               }
  1080.           } else {
  1081.               unlink($_FILES['file_input']['tmp_name']);
  1082.           }
  1083.       } else {
  1084.           unlink($_FILES['file_input']['tmp_name']);
  1085.       }
  1086.   }
  1087.  
  1088.   if (file_exists("data/wiki.txt")) {
  1089.       $old_title = file_get_contents("data/items/{$_REQUEST['entry']}/title.old");
  1090.       $old_body = file_get_contents("data/items/{$_REQUEST['entry']}/body.old");
  1091.      
  1092.       if (($old_title != $title_write_content) or ($old_body != $body_write_content)) {
  1093.           if (!file_exists("data/items/{$_REQUEST['entry']}/wiki")) {
  1094.               mkdir("data/items/{$_REQUEST['entry']}/wiki");
  1095.           }
  1096.          
  1097.           if (!file_exists("data/items/{$_REQUEST['entry']}/wiki/delta")) {
  1098.               mkdir("data/items/{$_REQUEST['entry']}/wiki/delta");
  1099.           }
  1100.          
  1101.           if (file_exists("data/offset.txt")) {
  1102.               $offset = file_get_contents("data/offset.txt");
  1103.           } else {
  1104.               $offset = 0;
  1105.           }
  1106.          
  1107.           $ddate = date("YmdHis", time() + $offset);
  1108.          
  1109.           if (!file_exists("data/items/{$_REQUEST['entry']}/wiki/delta/$ddate")) {
  1110.               mkdir("data/items/{$_REQUEST['entry']}/wiki/delta/$ddate");
  1111.           }
  1112.          
  1113.           $new_body = fopen("data/items/{$_REQUEST['entry']}/wiki/delta/$ddate/body.txt", "w");
  1114.           fwrite($new_body, $body_write_content);
  1115.           fclose($new_body);
  1116.          
  1117.           $new_title = fopen("data/items/{$_REQUEST['entry']}/wiki/delta/$ddate/title.txt", "w");
  1118.           fwrite($new_title, $title_write_content);
  1119.           fclose($new_title);
  1120.          
  1121.           copy("data/items/{$_REQUEST['entry']}/title.txt", "data/items/{$_REQUEST['entry']}/wiki/delta/$ddate/ptitle.txt");
  1122.           copy("data/items/{$_REQUEST['entry']}/body.txt", "data/items/{$_REQUEST['entry']}/wiki/delta/$ddate/prev.txt");
  1123.           copy("data/items/{$_REQUEST['entry']}/date.txt", "data/items/{$_REQUEST['entry']}/wiki/delta/$ddate/date.txt");
  1124.          
  1125.           if (file_exists("data/items/{$_REQUEST['entry']}/contrib.txt")) {
  1126.               copy("data/items/{$_REQUEST['entry']}/contrib.txt", "data/items/{$_REQUEST['entry']}/wiki/delta/$ddate/contrib.txt");
  1127.           }
  1128.          
  1129.           $open_editor_file = fopen("data/items/{$_REQUEST['entry']}/wiki/delta/$ddate/editor.txt", "w");
  1130.           fwrite($open_editor_file, $_SESSION['logged_in']);
  1131.           fclose($open_editor_file);
  1132.       }
  1133.   }
  1134.  
  1135.   $open_title_file = fopen($title_file, "w");
  1136.   fwrite($open_title_file, $title_write_content);
  1137.   fclose($open_title_file);
  1138.  
  1139.   $open_body_file = fopen($body_file, "w");
  1140.   fwrite($open_body_file, $body_write_content);
  1141.   fclose($open_body_file);
  1142.  
  1143.   if (file_exists("data/wiki.txt") and (file_exists("data/items/{$_REQUEST['entry']}/edit.txt") or (file_get_contents("data/items/{$_REQUEST['entry']}/author.txt") == $_SESSION['logged_in']))) {
  1144.       $open_contrib_file = fopen("data/items/{$_REQUEST['entry']}/contrib.txt", "w");
  1145.       fwrite($open_contrib_file, $_SESSION['logged_in']);
  1146.       fclose($open_contrib_file);
  1147.   }
  1148.  
  1149.   if ($_SESSION['logged_in'] == $login_username) {
  1150.       $sticky_sem = 'data/sticky/' . $_REQUEST['entry'];
  1151.      
  1152.       if (isset($_POST['sticky']) and !empty($_POST['sticky']) and ($_POST['sticky'] == "on")) {
  1153.           if (!file_exists("data/sticky")) {
  1154.               mkdir("data/sticky");
  1155.           }
  1156.           if (!file_exists($sticky_sem)) {
  1157.               touch($sticky_sem);
  1158.           }
  1159.       }
  1160.       if (!isset($_POST['sticky']) or empty($_POST['sticky'])) {
  1161.           if (file_exists($sticky_sem)) {
  1162.               unlink($sticky_sem);
  1163.           }
  1164.       }
  1165.      
  1166.       $display_sem = "data/items/{$_REQUEST['entry']}/cat.txt";
  1167.      
  1168.       if (isset($_POST['display']) and !empty($_POST['display']) and ($_POST['display'] == "on")) {
  1169.           if (!file_exists($display_sem)) {
  1170.               touch($display_sem);
  1171.           }
  1172.       }
  1173.       if (!isset($_POST['display']) or empty($_POST['display'])) {
  1174.           if (file_exists($display_sem)) {
  1175.               unlink($display_sem);
  1176.           }
  1177.       }
  1178.      
  1179.       $private_sem = "data/items/{$_REQUEST['entry']}/private.txt";
  1180.      
  1181.       if (isset($_POST['private']) and !empty($_POST['private']) and ($_POST['private'] == "on")) {
  1182.           if (!file_exists($private_sem)) {
  1183.               touch($private_sem);
  1184.           }
  1185.       }
  1186.       if (!isset($_POST['private']) or empty($_POST['private'])) {
  1187.           if (file_exists($private_sem)) {
  1188.               unlink($private_sem);
  1189.           }
  1190.       }
  1191.      
  1192.       $member_sem = "data/items/{$_REQUEST['entry']}/member.txt";
  1193.      
  1194.       if (isset($_POST['member']) and !empty($_POST['member']) and ($_POST['member'] == "on")) {
  1195.           if (!file_exists($member_sem)) {
  1196.               touch($member_sem);
  1197.           }
  1198.       }
  1199.       if (!isset($_POST['member']) or empty($_POST['member'])) {
  1200.           if (file_exists($member_sem)) {
  1201.               unlink($member_sem);
  1202.           }
  1203.       }
  1204.      
  1205.       $edit_sem = "data/items/{$_REQUEST['entry']}/edit.txt";
  1206.      
  1207.       if (isset($_POST['edit']) and !empty($_POST['edit']) and ($_POST['edit'] == "on")) {
  1208.           if (!file_exists($edit_sem)) {
  1209.               touch($edit_sem);
  1210.           }
  1211.       }
  1212.      
  1213.       if (!isset($_POST['edit']) or empty($_POST['edit'])) {
  1214.           if (file_exists($edit_sem)) {
  1215.               unlink($edit_sem);
  1216.           }
  1217.       }
  1218.      
  1219.       if (isset($_POST['lock']) and !empty($_POST['lock']) and ($_POST['lock'] == "on")) {
  1220.           if (file_exists("data/items/{$_REQUEST['entry']}/edit.txt")) {
  1221.               unlink("data/items/{$_REQUEST['entry']}/edit.txt");
  1222.           }
  1223.          
  1224.           if (!file_exists("data/items/{$_REQUEST['entry']}/lock.txt")) {
  1225.               touch("data/items/{$_REQUEST['entry']}/lock.txt");
  1226.           }
  1227.       }
  1228.       if (!isset($_POST['lock']) or empty($_POST['lock'])) {
  1229.           if (file_exists("data/items/{$_REQUEST['entry']}/lock.txt")) {
  1230.               unlink("data/items/{$_REQUEST['entry']}/lock.txt");
  1231.           }
  1232.       }
  1233.      
  1234.       $xtitle_sem = "data/items/{$_REQUEST['entry']}/xtitle.txt";
  1235.      
  1236.       if (isset($_POST['xtitle']) and !empty($_POST['xtitle']) and ($_POST['xtitle'] == "on")) {
  1237.           if (!file_exists($xtitle_sem)) {
  1238.               touch($xtitle_sem);
  1239.           }
  1240.       }
  1241.      
  1242.       if (!isset($_POST['xtitle']) or empty($_POST['xtitle'])) {
  1243.           if (file_exists($xtitle_sem)) {
  1244.               unlink($xtitle_sem);
  1245.           }
  1246.       }
  1247.  
  1248.       $xdate_sem = "data/items/{$_REQUEST['entry']}/xdate.txt";
  1249.      
  1250.       if (isset($_POST['xdate']) and !empty($_POST['xdate']) and ($_POST['xdate'] == "on")) {
  1251.           if (!file_exists($xdate_sem)) {
  1252.               touch($xdate_sem);
  1253.           }
  1254.       }
  1255.      
  1256.       if (!isset($_POST['xdate']) or empty($_POST['xdate'])) {
  1257.           if (file_exists($xdate_sem)) {
  1258.               unlink($xdate_sem);
  1259.           }
  1260.       }
  1261.  
  1262.       $xauthor_sem = "data/items/{$_REQUEST['entry']}/xauthor.txt";
  1263.      
  1264.       if (isset($_POST['xauthor']) and !empty($_POST['xauthor']) and ($_POST['xauthor'] == "on")) {
  1265.           if (!file_exists($xauthor_sem)) {
  1266.               touch($xauthor_sem);
  1267.           }
  1268.       }
  1269.      
  1270.       if (!isset($_POST['xauthor']) or empty($_POST['xauthor'])) {
  1271.           if (file_exists($xauthor_sem)) {
  1272.               unlink($xauthor_sem);
  1273.           }
  1274.       }
  1275.  
  1276.       $xavatar_sem = "data/items/{$_REQUEST['entry']}/xavatar.txt";
  1277.      
  1278.       if (isset($_POST['xavatar']) and !empty($_POST['xavatar']) and ($_POST['xavatar'] == "on")) {
  1279.           if (!file_exists($xavatar_sem)) {
  1280.               touch($xavatar_sem);
  1281.           }
  1282.       }
  1283.      
  1284.       if (!isset($_POST['xavatar']) or empty($_POST['xavatar'])) {
  1285.           if (file_exists($xavatar_sem)) {
  1286.               unlink($xavatar_sem);
  1287.           }
  1288.       }
  1289.  
  1290.       $fb_sem = "data/items/{$_REQUEST['entry']}/fb.txt";
  1291.      
  1292.       if (isset($_POST['fb']) and !empty($_POST['fb']) and ($_POST['fb'] == "on")) {
  1293.           if (!file_exists($fb_sem)) {
  1294.               touch($fb_sem);
  1295.           }
  1296.       }
  1297.      
  1298.       if (!isset($_POST['fb']) or empty($_POST['fb'])) {
  1299.           if (file_exists($fb_sem)) {
  1300.               unlink($fb_sem);
  1301.           }
  1302.       }
  1303.      
  1304.      
  1305.       $lastmod_sem = "data/items/{$_REQUEST['entry']}/lastmod.txt";
  1306.      
  1307.       if (isset($_POST['lastmod']) and !empty($_POST['lastmod']) and ($_POST['lastmod'] == "on")) {
  1308.           if (!file_exists($lastmod_sem)) {
  1309.               touch($lastmod_sem);
  1310.           }
  1311.       }
  1312.      
  1313.       if (!isset($_POST['lastmod']) or empty($_POST['lastmod'])) {
  1314.           if (file_exists($lastmod_sem)) {
  1315.               unlink($lastmod_sem);
  1316.           }
  1317.       }
  1318.  
  1319.         if (isset($_POST['auto_album']) and !empty($_POST['auto_album']) and ($_POST['auto_album'] == "on")) {
  1320.        
  1321.                 if (!file_exists("data/items/{$_REQUEST['entry']}/auto-album.txt")) {
  1322.                         touch("data/items/{$_REQUEST['entry']}/auto-album.txt");
  1323.                 }
  1324.         }
  1325.        
  1326.         if (!isset($_POST['auto_album']) or empty($_POST['auto_album'])) {
  1327.        
  1328.                 if (file_exists("data/items/{$_REQUEST['entry']}/auto-album.txt")) {
  1329.                         unlink("data/items/{$_REQUEST['entry']}/auto-album.txt");
  1330.                 }
  1331.         }
  1332.      
  1333.       if (isset($_POST['pdf']) and !empty($_POST['pdf']) and ($_POST['pdf'] == "on")) {
  1334.           if (!file_exists("data/items/{$_REQUEST['entry']}/pdf")) {
  1335.               mkdir("data/items/{$_REQUEST['entry']}/pdf");
  1336.           }
  1337.          
  1338.           if (!file_exists("data/items/{$_REQUEST['entry']}/pdf/file")) {
  1339.               mkdir("data/items/{$_REQUEST['entry']}/pdf/file");
  1340.           }
  1341.          
  1342.           if (!file_exists("data/items/{$_REQUEST['entry']}/pdf/count")) {
  1343.               mkdir("data/items/{$_REQUEST['entry']}/pdf/count");
  1344.           }
  1345.          
  1346.           $entry = $_REQUEST['entry'];
  1347.           $author_file = "data/author.txt";
  1348.           $title_file = "data/items/$entry/title.txt";
  1349.           $date_file = "data/items/$entry/date.txt";
  1350.           $body_file = "data/items/$entry/body.txt";
  1351.          
  1352.           $author = file_get_contents($author_file);
  1353.           $title = file_get_contents($title_file);
  1354.           $date = file_get_contents($date_file);
  1355.          
  1356.           $link = "<a href=\"http://{$_SERVER['SERVER_NAME']}{$_SERVER['PHP_SELF']}?entry=$entry\">http://{$_SERVER['SERVER_NAME']}{$_SERVER['PHP_SELF']}?entry=$entry</a>";
  1357.           $link = str_replace("pdf.php?entry=", "index.php?entry=", $link);
  1358.           $link = str_replace("edit.php?entry=", "index.php?entry=", $link);
  1359.          
  1360.           $body = file_get_contents($body_file);
  1361.           $body = str_replace("\n", "<br />", $body);
  1362.          
  1363.           $html = "<br><i>by $author</i><br><br>$date<br><br>Canonical Source<br>$link<br><br><br>$body";
  1364.          
  1365.           $filename = strtolower($title);
  1366.           $filename = strtolower($_SERVER['SERVER_NAME']) . "-" . $entry . "-" . $filename . ".pdf";
  1367.           $filename = str_replace(" ", "-", $filename);
  1368.           $filename = "data/items/$entry/pdf/file/$filename";
  1369.          
  1370.           $pdf = new PDF();
  1371.           $pdf->AddPage();
  1372.           $pdf->SetTitle($title);
  1373.           $pdf->SetAuthor($author);
  1374.           $pdf->SetFont('Helvetica', 'B', 14);
  1375.           $pdf->WriteHTML($title);
  1376.           $pdf->SetFont('Helvetica', '', 10);
  1377.           $pdf->WriteHTML($html);
  1378.           $pdf->Output($filename);
  1379.       }
  1380.      
  1381.       if (!isset($_POST['pdf']) or empty($_POST['pdf'])) {
  1382.           if (file_exists("data/items/{$_REQUEST['entry']}/pdf/file")) {
  1383.               rmdirr("data/items/{$_REQUEST['entry']}/pdf/file");
  1384.           }
  1385.       }
  1386.      
  1387.       $passwd_file = "data/items/{$_REQUEST['entry']}/passwd.txt";
  1388.      
  1389.       if (isset($_POST['passwd']) and !empty($_POST['passwd']) and ($_POST['passwd'] != "password")) {
  1390.           $fp_passwd_txt = fopen("$passwd_file", "w");
  1391.           $passwd_crypt = sha1($_POST['passwd']);
  1392.           $passwd_crypt = md5($passwd_crypt);
  1393.           $passwd_crypt = crypt($passwd_crypt, $passwd_crypt);
  1394.           fwrite($fp_passwd_txt, $passwd_crypt);
  1395.           fclose($fp_passwd_txt);
  1396.       }
  1397.      
  1398.       if (!isset($_POST['passwd']) or empty($_POST['passwd'])) {
  1399.           if (file_exists($passwd_file)) {
  1400.               unlink($passwd_file);
  1401.           }
  1402.       }
  1403.      
  1404.       if (isset($_POST['maxlines']) and !empty($_POST['maxlines']) and is_numeric($_POST['maxlines'])) {
  1405.           $fp_maxlines_txt = fopen("data/items/{$_REQUEST['entry']}/maxlines.txt", "w");
  1406.           fwrite($fp_maxlines_txt, $_POST['maxlines']);
  1407.           fclose($fp_maxlines_txt);
  1408.       }
  1409.      
  1410.       if (!isset($_POST['maxlines']) or empty($_POST['maxlines'])) {
  1411.           if (file_exists("data/items/{$_REQUEST['entry']}/maxlines.txt")) {
  1412.               unlink("data/items/{$_REQUEST['entry']}/maxlines.txt");
  1413.           }
  1414.       }
  1415.   }
  1416.  
  1417.   if (file_exists("data/items/{$_REQUEST['entry']}/title.old")) {
  1418.       unlink("data/items/{$_REQUEST['entry']}/title.old");
  1419.   }
  1420.  
  1421.   if (file_exists("data/items/{$_REQUEST['entry']}/body.old")) {
  1422.       unlink("data/items/{$_REQUEST['entry']}/body.old");
  1423.   }
  1424.  
  1425.   if (file_exists("data/ping.txt")) {
  1426.       $ping_urls = explode("|", file_get_contents("data/ping.txt"));
  1427.      
  1428.       foreach ($ping_urls as $ping_url) {
  1429.           $ping = file_get_contents($ping_url);
  1430.           unset($ping);
  1431.       }
  1432.   }
  1433. ?>
  1434.  
filedropmaj.git-01822e4.tar.bz2
147.95 KB
62 downloads
filedropmaj.git-01822e4.zip
201.96 KB
19 downloads
filedropmaj.git-0291349.tar.bz2
152.85 KB
60 downloads
filedropmaj.git-0291349.zip
211.90 KB
19 downloads
filedropmaj.git-02cb3b7.tar.bz2
151.48 KB
63 downloads
filedropmaj.git-02cb3b7.zip
209.82 KB
19 downloads
filedropmaj.git-0811dd5.tar.bz2
152.90 KB
60 downloads
filedropmaj.git-0811dd5.zip
211.90 KB
18 downloads
filedropmaj.git-083625f.tar.bz2
132.92 KB
59 downloads
filedropmaj.git-083625f.zip
179.59 KB
20 downloads
filedropmaj.git-0885d7b.tar.bz2
92.63 KB
60 downloads
filedropmaj.git-0885d7b.zip
132.34 KB
17 downloads
filedropmaj.git-09c6f33.tar.bz2
151.51 KB
59 downloads
filedropmaj.git-09c6f33.zip
202.12 KB
18 downloads
filedropmaj.git-0b26a85.tar.bz2
151.44 KB
57 downloads
filedropmaj.git-0b26a85.zip
209.75 KB
16 downloads
filedropmaj.git-0b32424.tar.bz2
151.66 KB
58 downloads
filedropmaj.git-0b32424.zip
206.72 KB
17 downloads
filedropmaj.git-0f3ac59.tar.bz2
152.14 KB
57 downloads
filedropmaj.git-0f3ac59.zip
211.45 KB
13 downloads
filedropmaj.git-11d4582.tar.bz2
143.02 KB
55 downloads
filedropmaj.git-11d4582.zip
195.12 KB
12 downloads
filedropmaj.git-17f105a.tar.bz2
137.96 KB
53 downloads
filedropmaj.git-17f105a.zip
193.02 KB
13 downloads
filedropmaj.git-183270b.tar.bz2
137.54 KB
57 downloads
filedropmaj.git-183270b.zip
187.93 KB
13 downloads
filedropmaj.git-197a49d.tar.bz2
152.03 KB
55 downloads
filedropmaj.git-197a49d.zip
211.32 KB
16 downloads
filedropmaj.git-1b9af25.tar.bz2
152.87 KB
53 downloads
filedropmaj.git-1b9af25.zip
211.96 KB
14 downloads
filedropmaj.git-1be2914.tar.bz2
149.30 KB
55 downloads
filedropmaj.git-1be2914.zip
203.09 KB
13 downloads
filedropmaj.git-1bed800.tar.bz2
138.15 KB
51 downloads
filedropmaj.git-1bed800.zip
190.15 KB
17 downloads
filedropmaj.git-1d330de.tar.bz2
151.65 KB
54 downloads
filedropmaj.git-1d330de.zip
210.80 KB
15 downloads
filedropmaj.git-1df190d.tar.bz2
151.72 KB
55 downloads
filedropmaj.git-1df190d.zip
210.85 KB
13 downloads
filedropmaj.git-1ee1167.tar.bz2
151.52 KB
56 downloads
filedropmaj.git-1ee1167.zip
202.16 KB
14 downloads
filedropmaj.git-2057838.tar.bz2
151.76 KB
52 downloads
filedropmaj.git-2057838.zip
202.36 KB
14 downloads
filedropmaj.git-2075213.tar.bz2
155.81 KB
52 downloads
filedropmaj.git-2075213.zip
208.39 KB
13 downloads
filedropmaj.git-211b7b0.tar.bz2
142.53 KB
55 downloads
filedropmaj.git-211b7b0.zip
194.64 KB
14 downloads
filedropmaj.git-2331f5a.tar.bz2
75.55 KB
55 downloads
filedropmaj.git-2331f5a.zip
100.32 KB
16 downloads
filedropmaj.git-25e3c4c.tar.bz2
147.57 KB
53 downloads
filedropmaj.git-25e3c4c.zip
201.46 KB
13 downloads
filedropmaj.git-2622313.tar.bz2
151.47 KB
50 downloads
filedropmaj.git-2622313.zip
206.44 KB
12 downloads
filedropmaj.git-273e4b2.tar.bz2
152.60 KB
52 downloads
filedropmaj.git-273e4b2.zip
203.40 KB
15 downloads
filedropmaj.git-2753e51.tar.bz2
136.37 KB
55 downloads
filedropmaj.git-2753e51.zip
184.34 KB
12 downloads
filedropmaj.git-2c1a589.tar.bz2
155.89 KB
49 downloads
filedropmaj.git-2c1a589.zip
208.69 KB
13 downloads
filedropmaj.git-2c3d544.tar.bz2
151.33 KB
51 downloads
filedropmaj.git-2c3d544.zip
206.23 KB
14 downloads
filedropmaj.git-2c85f72.tar.bz2
143.23 KB
50 downloads
filedropmaj.git-2c85f72.zip
194.84 KB
12 downloads
filedropmaj.git-2dc622c.tar.bz2
151.76 KB
48 downloads
filedropmaj.git-2dc622c.zip
202.35 KB
14 downloads
filedropmaj.git-2fabf8a.tar.bz2
151.35 KB
53 downloads
filedropmaj.git-2fabf8a.zip
206.24 KB
15 downloads
filedropmaj.git-322736b.tar.bz2
137.81 KB
45 downloads
filedropmaj.git-322736b.zip
190.18 KB
13 downloads
filedropmaj.git-374279c.tar.bz2
137.54 KB
46 downloads
filedropmaj.git-374279c.zip
189.58 KB
12 downloads
filedropmaj.git-37e852d.tar.bz2
151.32 KB
42 downloads
filedropmaj.git-37e852d.zip
206.21 KB
11 downloads
filedropmaj.git-38636de.tar.bz2
147.35 KB
42 downloads
filedropmaj.git-38636de.zip
201.16 KB
69 downloads
filedropmaj.git-3b25d71.tar.bz2
147.88 KB
35 downloads
filedropmaj.git-3b25d71.zip
201.85 KB
14 downloads
filedropmaj.git-3b6df7a.tar.bz2
153.39 KB
33 downloads
filedropmaj.git-3b6df7a.zip
204.55 KB
17 downloads
filedropmaj.git-3bf6bd2.tar.bz2
137.77 KB
38 downloads
filedropmaj.git-3bf6bd2.zip
190.16 KB
14 downloads
filedropmaj.git-3e012ff.tar.bz2
152.83 KB
34 downloads
filedropmaj.git-3e012ff.zip
211.89 KB
16 downloads
filedropmaj.git-4129ab8.tar.bz2
135.86 KB
42 downloads
filedropmaj.git-4129ab8.zip
184.30 KB
14 downloads
filedropmaj.git-414dbb4.tar.bz2
91.09 KB
40 downloads
filedropmaj.git-414dbb4.zip
130.29 KB
14 downloads
filedropmaj.git-43755d0.tar.bz2
150.25 KB
33 downloads
filedropmaj.git-43755d0.zip
204.44 KB
14 downloads
filedropmaj.git-4c20005.tar.bz2
55.59 KB
37 downloads
filedropmaj.git-4c20005.zip
74.20 KB
14 downloads
filedropmaj.git-4ccdbcd.tar.bz2
136.38 KB
38 downloads
filedropmaj.git-4ccdbcd.zip
185.22 KB
16 downloads
filedropmaj.git-4cd1a1c.tar.bz2
155.25 KB
35 downloads
filedropmaj.git-4cd1a1c.zip
207.88 KB
16 downloads
filedropmaj.git-4cf16d1.tar.bz2
76.32 KB
38 downloads
filedropmaj.git-4cf16d1.zip
101.80 KB
12 downloads
filedropmaj.git-4ec45a0.tar.bz2
131.16 KB
35 downloads
filedropmaj.git-4ec45a0.zip
172.66 KB
14 downloads
filedropmaj.git-4f73c22.tar.bz2
134.46 KB
35 downloads
filedropmaj.git-4f73c22.zip
182.45 KB
13 downloads
filedropmaj.git-5457969.tar.bz2
155.21 KB
38 downloads
filedropmaj.git-5457969.zip
207.63 KB
14 downloads
filedropmaj.git-57ee8a1.tar.bz2
145.49 KB
38 downloads
filedropmaj.git-57ee8a1.zip
198.12 KB
66 downloads
filedropmaj.git-592978d.tar.bz2
138.38 KB
36 downloads
filedropmaj.git-592978d.zip
190.58 KB
13 downloads
filedropmaj.git-5935b42.tar.bz2
135.60 KB
34 downloads
filedropmaj.git-5935b42.zip
183.28 KB
15 downloads
filedropmaj.git-5b443b6.tar.bz2
152.00 KB
36 downloads
filedropmaj.git-5b443b6.zip
211.07 KB
13 downloads
filedropmaj.git-5b4a9bf.tar.bz2
155.29 KB
34 downloads
filedropmaj.git-5b4a9bf.zip
207.93 KB
12 downloads
filedropmaj.git-5b6c01d.tar.bz2
147.13 KB
35 downloads
filedropmaj.git-5b6c01d.zip
200.86 KB
16 downloads
filedropmaj.git-5da45f7.tar.bz2
147.27 KB
36 downloads
filedropmaj.git-5da45f7.zip
201.02 KB
13 downloads
filedropmaj.git-5e53618.tar.bz2
75.57 KB
38 downloads
filedropmaj.git-5e53618.zip
100.78 KB
14 downloads
filedropmaj.git-5f8ca35.tar.bz2
136.39 KB
33 downloads
filedropmaj.git-5f8ca35.zip
185.32 KB
13 downloads
filedropmaj.git-61e3d7b.tar.bz2
153.52 KB
33 downloads
filedropmaj.git-61e3d7b.zip
204.73 KB
15 downloads
filedropmaj.git-62a635c.tar.bz2
155.90 KB
37 downloads
filedropmaj.git-62a635c.zip
208.73 KB
14 downloads
filedropmaj.git-6390d34.tar.bz2
138.39 KB
37 downloads
filedropmaj.git-6390d34.zip
190.56 KB
17 downloads
filedropmaj.git-649dfbe.tar.bz2
151.78 KB
37 downloads
filedropmaj.git-649dfbe.zip
210.91 KB
14 downloads
filedropmaj.git-65d6570.tar.bz2
151.63 KB
39 downloads
filedropmaj.git-65d6570.zip
210.80 KB
16 downloads
filedropmaj.git-660433f.tar.bz2
151.67 KB
36 downloads
filedropmaj.git-660433f.zip
206.68 KB
14 downloads
filedropmaj.git-6619ae5.tar.bz2
153.23 KB
46 downloads
filedropmaj.git-6619ae5.zip
204.28 KB
13 downloads
filedropmaj.git-68e4e3a.tar.bz2
135.13 KB
34 downloads
filedropmaj.git-68e4e3a.zip
182.91 KB
13 downloads
filedropmaj.git-6995297.tar.bz2
144.93 KB
38 downloads
filedropmaj.git-6995297.zip
197.18 KB
12 downloads
filedropmaj.git-69d6fd3.tar.bz2
143.23 KB
34 downloads
filedropmaj.git-69d6fd3.zip
194.89 KB
16 downloads
filedropmaj.git-6aa872a.tar.bz2
142.95 KB
39 downloads
filedropmaj.git-6aa872a.zip
195.11 KB
15 downloads
filedropmaj.git-6bad5c7.tar.bz2
147.04 KB
38 downloads
filedropmaj.git-6bad5c7.zip
200.79 KB
14 downloads
filedropmaj.git-6e96a2d.tar.bz2
152.13 KB
37 downloads
filedropmaj.git-6e96a2d.zip
207.21 KB
67 downloads
filedropmaj.git-73d46de.tar.bz2
138.42 KB
36 downloads
filedropmaj.git-73d46de.zip
190.59 KB
13 downloads
filedropmaj.git-75e0478.tar.bz2
144.54 KB
38 downloads
filedropmaj.git-75e0478.zip
196.70 KB
15 downloads
filedropmaj.git-784fc35.tar.bz2
143.07 KB
38 downloads
filedropmaj.git-784fc35.zip
195.01 KB
13 downloads
filedropmaj.git-7872a83.tar.bz2
138.51 KB
39 downloads
filedropmaj.git-7872a83.zip
190.69 KB
13 downloads
filedropmaj.git-788fb89.tar.bz2
138.30 KB
37 downloads
filedropmaj.git-788fb89.zip
191.26 KB
18 downloads
filedropmaj.git-796d8a3.tar.bz2
138.92 KB
35 downloads
filedropmaj.git-796d8a3.zip
191.24 KB
13 downloads
filedropmaj.git-79a5e8d.tar.bz2
132.43 KB
38 downloads
filedropmaj.git-79a5e8d.zip
176.90 KB
14 downloads
filedropmaj.git-7b3b2e0.tar.bz2
147.24 KB
36 downloads
filedropmaj.git-7b3b2e0.zip
201.05 KB
14 downloads
filedropmaj.git-7e28eed.tar.bz2
138.89 KB
33 downloads
filedropmaj.git-7e28eed.zip
191.24 KB
14 downloads
filedropmaj.git-8279296.tar.bz2
135.56 KB
38 downloads
filedropmaj.git-8279296.zip
183.25 KB
14 downloads
filedropmaj.git-84c17fe.tar.bz2
152.87 KB
38 downloads
filedropmaj.git-84c17fe.zip
211.90 KB
14 downloads
filedropmaj.git-87c5d5f.tar.bz2
135.78 KB
36 downloads
filedropmaj.git-87c5d5f.zip
183.64 KB
12 downloads
filedropmaj.git-8a48901.tar.bz2
147.27 KB
39 downloads
filedropmaj.git-8a48901.zip
201.06 KB
14 downloads
filedropmaj.git-8ad9892.tar.bz2
164.04 KB
36 downloads
filedropmaj.git-8ad9892.zip
224.42 KB
13 downloads
filedropmaj.git-8b4cf2a.tar.bz2
134.06 KB
37 downloads
filedropmaj.git-8b4cf2a.zip
180.78 KB
14 downloads
filedropmaj.git-8b7e38d.tar.bz2
138.04 KB
41 downloads
filedropmaj.git-8b7e38d.zip
190.39 KB
70 downloads
filedropmaj.git-8df6e40.tar.bz2
143.11 KB
38 downloads
filedropmaj.git-8df6e40.zip
194.66 KB
18 downloads
filedropmaj.git-8e80c84.tar.bz2
138.18 KB
36 downloads
filedropmaj.git-8e80c84.zip
190.30 KB
14 downloads
filedropmaj.git-8ec0fba.tar.bz2
138.37 KB
39 downloads
filedropmaj.git-8ec0fba.zip
191.39 KB
14 downloads
filedropmaj.git-8f7abf6.tar.bz2
153.36 KB
38 downloads
filedropmaj.git-8f7abf6.zip
211.80 KB
13 downloads
filedropmaj.git-923f11a.tar.bz2
138.14 KB
36 downloads
filedropmaj.git-923f11a.zip
191.03 KB
15 downloads
filedropmaj.git-955e82e.tar.bz2
42.71 KB
35 downloads
filedropmaj.git-955e82e.zip
59.77 KB
14 downloads
filedropmaj.git-95add4a.tar.bz2
151.23 KB
40 downloads
filedropmaj.git-95add4a.zip
205.91 KB
14 downloads
filedropmaj.git-96fe0ba.tar.bz2
137.68 KB
32 downloads
filedropmaj.git-96fe0ba.zip
190.34 KB
13 downloads
filedropmaj.git-99a90ce.tar.bz2
137.82 KB
39 downloads
filedropmaj.git-99a90ce.zip
191.20 KB
16 downloads
filedropmaj.git-9a69bb9.tar.bz2
143.19 KB
39 downloads
filedropmaj.git-9a69bb9.zip
194.70 KB
15 downloads
filedropmaj.git-9b6538e.tar.bz2
151.45 KB
36 downloads
filedropmaj.git-9b6538e.zip
202.15 KB
13 downloads
filedropmaj.git-9c4292d.tar.bz2
132.06 KB
37 downloads
filedropmaj.git-9c4292d.zip
176.93 KB
13 downloads
filedropmaj.git-9c78d40.tar.bz2
137.70 KB
37 downloads
filedropmaj.git-9c78d40.zip
190.49 KB
15 downloads
filedropmaj.git-9f1363f.tar.bz2
43.12 KB
40 downloads
filedropmaj.git-9f1363f.zip
60.31 KB
13 downloads
filedropmaj.git-a16c3eb.tar.bz2
90.22 KB
34 downloads
filedropmaj.git-a16c3eb.zip
128.62 KB
14 downloads
filedropmaj.git-a3aa72d.tar.bz2
153.00 KB
37 downloads
filedropmaj.git-a3aa72d.zip
203.86 KB
16 downloads
filedropmaj.git-a6886e4.tar.bz2
144.69 KB
37 downloads
filedropmaj.git-a6886e4.zip
196.95 KB
13 downloads
filedropmaj.git-a8669dc.tar.bz2
135.60 KB
35 downloads
filedropmaj.git-a8669dc.zip
183.34 KB
14 downloads
filedropmaj.git-a9477f1.tar.bz2
135.59 KB
37 downloads
filedropmaj.git-a9477f1.zip
183.45 KB
14 downloads
filedropmaj.git-aa285db.tar.bz2
151.73 KB
38 downloads
filedropmaj.git-aa285db.zip
210.85 KB
14 downloads
filedropmaj.git-aa6ae87.tar.bz2
135.44 KB
37 downloads
filedropmaj.git-aa6ae87.zip
183.88 KB
14 downloads
filedropmaj.git-ab6bc22.tar.bz2
151.71 KB
33 downloads
filedropmaj.git-ab6bc22.zip
210.84 KB
16 downloads
filedropmaj.git-adef726.tar.bz2
153.48 KB
36 downloads
filedropmaj.git-adef726.zip
212.32 KB
14 downloads
filedropmaj.git-afe5877.tar.bz2
144.73 KB
32 downloads
filedropmaj.git-afe5877.zip
197.01 KB
13 downloads
filedropmaj.git-b2d9f8e.tar.bz2
133.22 KB
35 downloads
filedropmaj.git-b2d9f8e.zip
179.27 KB
13 downloads
filedropmaj.git-b41f320.tar.bz2
151.56 KB
33 downloads
filedropmaj.git-b41f320.zip
209.85 KB
18 downloads
filedropmaj.git-b4432ce.tar.bz2
152.96 KB
34 downloads
filedropmaj.git-b4432ce.zip
203.86 KB
14 downloads
filedropmaj.git-b67b08f.tar.bz2
151.27 KB
36 downloads
filedropmaj.git-b67b08f.zip
206.15 KB
16 downloads
filedropmaj.git-b899831.tar.bz2
143.12 KB
35 downloads
filedropmaj.git-b899831.zip
194.60 KB
14 downloads
filedropmaj.git-b8b49c1.tar.bz2
132.59 KB
33 downloads
filedropmaj.git-b8b49c1.zip
178.90 KB
13 downloads
filedropmaj.git-b9c5bcf.tar.bz2
155.92 KB
34 downloads
filedropmaj.git-b9c5bcf.zip
208.70 KB
12 downloads
filedropmaj.git-bbddb1f.tar.bz2
151.63 KB
33 downloads
filedropmaj.git-bbddb1f.zip
209.92 KB
16 downloads
filedropmaj.git-bcaa744.tar.bz2
146.98 KB
37 downloads
filedropmaj.git-bcaa744.zip
200.79 KB
15 downloads
filedropmaj.git-c1ff9dc.tar.bz2
138.39 KB
38 downloads
filedropmaj.git-c1ff9dc.zip
191.43 KB
97 downloads
filedropmaj.git-c20c4b0.tar.bz2
151.64 KB
35 downloads
filedropmaj.git-c20c4b0.zip
210.79 KB
13 downloads
filedropmaj.git-c37f3f7.tar.bz2
145.45 KB
49 downloads
filedropmaj.git-c37f3f7.zip
198.11 KB
22 downloads
filedropmaj.git-c532394.tar.bz2
146.39 KB
37 downloads
filedropmaj.git-c532394.zip
199.91 KB
15 downloads
filedropmaj.git-c6317a4.tar.bz2
152.01 KB
36 downloads
filedropmaj.git-c6317a4.zip
207.08 KB
13 downloads
filedropmaj.git-c748176.tar.bz2
89.44 KB
34 downloads
filedropmaj.git-c748176.zip
126.35 KB
14 downloads
filedropmaj.git-c9ed81f.tar.bz2
135.56 KB
34 downloads
filedropmaj.git-c9ed81f.zip
183.28 KB
16 downloads
filedropmaj.git-c9f9b80.tar.bz2
138.50 KB
34 downloads
filedropmaj.git-c9f9b80.zip
190.66 KB
15 downloads
filedropmaj.git-ca65b73.tar.bz2
152.69 KB
35 downloads
filedropmaj.git-ca65b73.zip
207.87 KB
15 downloads
filedropmaj.git-cd80b77.tar.bz2
153.12 KB
35 downloads
filedropmaj.git-cd80b77.zip
212.01 KB
12 downloads
filedropmaj.git-cffbb2a.tar.bz2
138.22 KB
33 downloads
filedropmaj.git-cffbb2a.zip
190.28 KB
14 downloads
filedropmaj.git-d061ad7.tar.bz2
55.78 KB
47 downloads
filedropmaj.git-d061ad7.zip
74.39 KB
15 downloads
filedropmaj.git-d0af4d6.tar.bz2
57.28 KB
35 downloads
filedropmaj.git-d0af4d6.zip
78.56 KB
15 downloads
filedropmaj.git-d1caa0a.tar.bz2
144.57 KB
37 downloads
filedropmaj.git-d1caa0a.zip
196.63 KB
14 downloads
filedropmaj.git-d5679b5.tar.bz2
152.37 KB
34 downloads
filedropmaj.git-d5679b5.zip
207.52 KB
15 downloads
filedropmaj.git-d72f459.tar.bz2
147.90 KB
36 downloads
filedropmaj.git-d72f459.zip
201.92 KB
13 downloads
filedropmaj.git-d958c91.tar.bz2
144.67 KB
37 downloads
filedropmaj.git-d958c91.zip
196.88 KB
17 downloads
filedropmaj.git-d96784f.tar.bz2
135.58 KB
36 downloads
filedropmaj.git-d96784f.zip
183.46 KB
12 downloads
filedropmaj.git-da4b73f.tar.bz2
152.62 KB
33 downloads
filedropmaj.git-da4b73f.zip
203.48 KB
13 downloads
filedropmaj.git-dd24240.tar.bz2
138.27 KB
33 downloads
filedropmaj.git-dd24240.zip
190.45 KB
72 downloads
filedropmaj.git-e11e772.tar.bz2
152.09 KB
33 downloads
filedropmaj.git-e11e772.zip
211.33 KB
14 downloads
filedropmaj.git-e61478e.tar.bz2
135.95 KB
37 downloads
filedropmaj.git-e61478e.zip
183.91 KB
14 downloads
filedropmaj.git-e7a2547.tar.bz2
133.80 KB
33 downloads
filedropmaj.git-e7a2547.zip
180.05 KB
16 downloads
filedropmaj.git-e8a3b95.tar.bz2
138.15 KB
37 downloads
filedropmaj.git-e8a3b95.zip
191.04 KB
12 downloads
filedropmaj.git-eac86d5.tar.bz2
155.65 KB
33 downloads
filedropmaj.git-eac86d5.zip
208.28 KB
12 downloads
filedropmaj.git-ed83bf9.tar.bz2
135.16 KB
34 downloads
filedropmaj.git-ed83bf9.zip
182.91 KB
15 downloads
filedropmaj.git-ee50d40.tar.bz2
135.59 KB
36 downloads
filedropmaj.git-ee50d40.zip
183.48 KB
16 downloads
filedropmaj.git-efdb4df.tar.bz2
155.87 KB
36 downloads
filedropmaj.git-efdb4df.zip
208.72 KB
14 downloads
filedropmaj.git-f1554f8.tar.bz2
151.30 KB
37 downloads
filedropmaj.git-f1554f8.zip
206.22 KB
16 downloads
filedropmaj.git-f72a07b.tar.bz2
153.44 KB
37 downloads
filedropmaj.git-f72a07b.zip
212.11 KB
17 downloads
filedropmaj.git-f7ea5a1.tar.bz2
147.46 KB
36 downloads
filedropmaj.git-f7ea5a1.zip
201.32 KB
17 downloads
filedropmaj.git-f8a7353.tar.bz2
138.49 KB
36 downloads
filedropmaj.git-f8a7353.zip
190.66 KB
18 downloads
filedropmaj.git-fb84a8d.tar.bz2
137.61 KB
41 downloads
filedropmaj.git-fb84a8d.zip
190.70 KB
18 downloads
filedropmaj.git-fdcf5d3.tar.bz2
152.34 KB
40 downloads
filedropmaj.git-fdcf5d3.zip
207.53 KB
17 downloads
filedropmaj.git-feca42d.tar.bz2
132.90 KB
38 downloads
filedropmaj.git-feca42d.zip
179.44 KB
19 downloads