maj.world

maj.world

Git

This blob has been accessed 343 times via Git panel.

  1. <?php
  2.  
  3. ini_set("session.use_trans_sid", 0);
  4.  
  5. session_start();
  6. header("Cache-control: private");
  7.  
  8. error_reporting(E_ERROR);
  9.  
  10. $dir = "data/items";
  11.  
  12. $default_title = file_get_contents("data/title.txt");
  13.  
  14.  
  15. if (file_exists("data/offset.txt")) {
  16.         $offset = file_get_contents("data/offset.txt");
  17. }
  18. else {
  19.         $offset = 0;
  20. }
  21.  
  22. if (file_exists("data/increase.txt")) {
  23.         $increase = file_get_contents("data/increase.txt");
  24. }
  25. else {
  26.         $increase = 5;
  27. }
  28.  
  29. $default_blog_title = "My Activity Journal";
  30. $default_username = "maj";
  31. $default_password = "php";
  32. $default_blog_profile = "This cool site is powered by <a href=http://engels.mortega.net/index.php?entry=20050521000019 target=_maj>My Activity Journal</a>, a dead-simple, <a href=http://php.net/ target=_maj>PHP</a>-based, <a href=http://www.opensource.org/licenses/gpl-license.php target=_maj>GPL</a>'ed blog written from scratch as a spare time family project by <a href=http://engels.mortega.net/ target=_maj>Engels</a>, <a href=http://gaffud.com/ target=_maj>Magie</a>, and <a href=http://psylocke.org/ target=_maj>Psylocke</a> Antonio.";
  33. $default_blog_author = "My Activity Journal";
  34.  
  35. if (!file_exists("data")) {
  36.         mkdir("data");
  37. }
  38.  
  39. if (!file_exists("data/.htaccess")) {
  40.         $htaccess = "Order deny,allow\nDeny from all";
  41.         $fp_htaccess_txt = fopen("data/.htaccess","w");
  42.         fwrite($fp_htaccess_txt, $htaccess);
  43.         fclose($fp_htaccess_txt);
  44. }
  45.  
  46. if (!file_exists("data/title.txt")) {
  47.         $fp_default_title_txt = fopen("data/title.txt","w");
  48.         fwrite($fp_default_title_txt, $default_blog_title);
  49.         fclose($fp_default_title_txt);
  50. }
  51.  
  52. if (!file_exists("data/username.txt")) {
  53.         $fp_htaccess_txt = fopen("data/username.txt","w");
  54.         fwrite($fp_htaccess_txt, $default_username);
  55.         fclose($fp_htaccess_txt);
  56. }
  57.  
  58. if (!file_exists("data/password.txt")) {
  59.         $default_password = sha1($default_password);
  60.         $default_password = md5($default_password);
  61.         $default_password = crypt($default_password, $default_password);
  62.         $fp_htaccess_txt = fopen("data/password.txt","w");
  63.         fwrite($fp_htaccess_txt, $default_password);
  64.         fclose($fp_htaccess_txt);
  65. }
  66.  
  67. if (!file_exists("data/profile.php")) {
  68.         $fp_default_profile_txt = fopen("data/profile.php","w");
  69.         fwrite($fp_default_profile_txt, $default_blog_profile);
  70.         fclose($fp_default_profile_txt);
  71. }
  72.  
  73. if (!file_exists("data/author.txt")) {
  74.         $fp_default_author_txt = fopen("data/author.txt","w");
  75.         fwrite($fp_default_author_txt, $default_blog_author);
  76.         fclose($fp_default_author_txt);
  77. }
  78.  
  79. $login_username = file_get_contents("data/username.txt");
  80.  
  81. if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  82.         $global_hits_file = fopen("data/hits.txt", "r");
  83.         $global_hits_count = fread($global_hits_file, filesize("data/hits.txt"));
  84.         fclose($global_hits_file);
  85.         $global_hits_count = $global_hits_count + 1;
  86.         $global_hits_file = fopen("data/hits.txt", "w");
  87.         fwrite($global_hits_file, $global_hits_count);
  88.         fclose($global_hits_file);
  89. }
  90.  
  91. $agent = $_SERVER['HTTP_USER_AGENT'];
  92.  
  93. if (@ereg("Google", $agent)) {
  94.         $google_hits_file = fopen("data/google.txt", "r");
  95.         $google_hits_count = fread($google_hits_file, filesize("data/google.txt"));
  96.         fclose($google_hits_file);
  97.         $google_hits_count = $google_hits_count + 1;
  98.         $google_hits_file = fopen("data/google.txt", "w");
  99.         fwrite($google_hits_file, $google_hits_count);
  100.         fclose($google_hits_file);
  101. }
  102.  
  103. function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789')
  104. {
  105.     $str = '';
  106.     $seeds_count = strlen($seeds);
  107.  
  108.     list($usec, $sec) = explode(' ', microtime());
  109.     $seed = (float) $sec + ((float) $usec * 100000);
  110.     mt_srand($seed);
  111.  
  112.     for ($i = 0; $length > $i; $i++) {
  113.         $str .= $seeds{mt_rand(0, $seeds_count - 1)};
  114.     }
  115.  
  116.     return $str;
  117. }
  118.  
  119. function rmdirr($recurse_dirname)
  120. {
  121.  
  122.     if (!file_exists($recurse_dirname)) {
  123.         return false;
  124.     }
  125.  
  126.     if (is_file($recurse_dirname)) {
  127.         return unlink($recurse_dirname);
  128.     }
  129.  
  130.     $recurse_dir = dir($recurse_dirname);
  131.     while (false !== $recurse_entry = $recurse_dir->read()) {
  132.  
  133.         if ($recurse_entry == '.' || $recurse_entry == '..') {
  134.             continue;
  135.         }
  136.  
  137.         rmdirr("$recurse_dirname/$recurse_entry");
  138.     }
  139.  
  140.     $recurse_dir->close();
  141.     return rmdir($recurse_dirname);
  142. }
  143.  
  144. if (isset($_REQUEST['download']) and !empty($_REQUEST['download'])) {
  145.         ini_set('zlib.output_compression','off');
  146.         $file = str_replace('../','', @$_REQUEST['download']);
  147.         go_download($file);
  148.         die();
  149. }
  150.  
  151. function go_download($dl_file) {
  152.         $d = $_REQUEST['entry'];
  153.  
  154.         if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == pdf)) {
  155.                 $dl_path = "data/items/$d/pdf/file";
  156.                 $count_path = "data/items/$d/pdf/count";
  157.                 $count_file = "dl.txt";
  158.         }
  159.         if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == filedrop)) {
  160.                 $dl_path = "data/items/$d/filedrop/files";
  161.                 $count_path = "data/items/$d/filedrop/count";
  162.                 $count_file = "{$dl_file}.txt";
  163.         }      
  164.  
  165.         header("Cache-Control: ");
  166.         header("Pragma: ");
  167.         header("Content-type: application/octet-stream");
  168.         header("Content-Disposition: attachment; filename=\"" . $dl_file . "\"");
  169.         header("Content-length: " . filesize("$dl_path/$dl_file"));
  170.         $get_it = fopen("$dl_path/$dl_file", 'rb');
  171.  
  172.         while (!feof($get_it)) {
  173.                 $buf = fread($get_it, 4096);
  174.                 echo $buf;
  175.                 $bytes_sent+=strlen($buf);
  176.         }
  177.  
  178.         if ($bytes_sent==filesize("$dl_path/$dl_file")) {
  179.  
  180.                 if (!file_exists($count_path)) {
  181.                         mkdir($count_path);
  182.                 }
  183.  
  184.                 $unique_downloads = "$count_path/$count_file";
  185.                 $fp_unique_downloads = fopen($unique_downloads, "r");
  186.                 $count_unique_downloads = fread($fp_unique_downloads, filesize($unique_downloads));
  187.                 fclose($fp_unique_downloads);
  188.                 $count_unique_downloads = $count_unique_downloads + 1;
  189.                 $fp_unique_downloads = fopen($unique_downloads, "w");
  190.                 fwrite($fp_unique_downloads, $count_unique_downloads);
  191.                 fclose($fp_unique_downloads);
  192.         }
  193. }
  194.  
  195. if (isset($_REQUEST['entry']) and !empty($_REQUEST['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'])) {
  196.                 $comment_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/pending/' . $_REQUEST['comment'];
  197.                 $key_file = $comment_dir . '/key.txt';
  198.                 $open_key_file = fopen($key_file,"r");
  199.                 $login_key = fread($open_key_file,filesize($key_file));
  200.                 fclose($open_key_file);
  201.  
  202.                 if ($_REQUEST['key'] == $login_key) {
  203.                         if ($_REQUEST['action'] == "approve") {
  204.                                 $live_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/live/' . $_REQUEST['comment'];
  205.                                 rename($comment_dir, $live_dir);
  206.                                 unlink("$live_dir/key.txt");
  207.                         }
  208.                         if ($_REQUEST['action'] == "delete") {
  209.                                 rmdirr($comment_dir);
  210.                         }
  211.                         $pending_comment_flag_dir = $_REQUEST['entry'];
  212.                         $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
  213.                         $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
  214.                         fclose($fp_comment_count_txt);
  215.                         if ($comment_count_value <= 1) {
  216.                                 rmdirr("data/comments/pending/$pending_comment_flag_dir");
  217.                         }
  218.                         else {
  219.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
  220.                                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
  221.                                 fclose($fp_comment_count_txt);
  222.                                 $comment_count_value = $comment_count_value - 1;
  223.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","w");
  224.                                 fwrite($fp_comment_count_txt, $comment_count_value);
  225.                                 fclose($fp_comment_count_txt);
  226.                         }
  227.  
  228.                         header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '?entry=' . $_REQUEST['entry'] . '&show=comments');
  229.                 }
  230. }
  231.  
  232. if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  233.         $check = $dir . '/' . $_REQUEST['entry'];
  234.  
  235.         if (file_exists("$check")) {
  236.                 $filter = $_REQUEST['entry'];
  237.                 echo '<title>';
  238.                 $title = $check . '/title.txt';
  239.                 readfile($title);
  240.                 echo '</title>';
  241.                 $views = $check . '/views.txt';
  242.                 if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  243.                         $fp_views = fopen($views, "r");
  244.                         $count_views = fread($fp_views, filesize($views));
  245.                         fclose($fp_views);
  246.                         $count_views = $count_views + 1;
  247.                         $fp_views = fopen($views, "w");
  248.                         fwrite($fp_views, $count_views);
  249.                         fclose($fp_views);
  250.                 }
  251.                
  252.                 if (isset($_REQUEST['show']) and !empty($_REQUEST['show']) and isset($_REQUEST['capcha_put']) and !empty($_REQUEST['capcha_get']) and isset($_REQUEST['firstname']) and !empty($_REQUEST['firstname']) and isset($_REQUEST['lastname']) and !empty($_REQUEST['lastname']) and isset($_REQUEST['email']) and !empty($_REQUEST['email']) and isset($_REQUEST['new_comment']) and !empty($_REQUEST['new_comment']) and isset($_REQUEST['capcha_put']) and !empty($_REQUEST['capcha_put']) and ($_REQUEST['capcha_get'] == $_REQUEST['capcha_put']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
  253.                
  254.                 if (!file_exists("$check/comments")) {
  255.                         mkdir("$check/comments");
  256.                 }
  257.                 if (!file_exists("$check/comments/pending")) {
  258.                         mkdir("$check/comments/pending");
  259.                 }
  260.  
  261.                 if (!file_exists("$check/comments/live")) {
  262.                         mkdir("$check/comments/live");
  263.                 }
  264.  
  265.                 // GNU date format
  266.                 //$timestamp = date("D M j H:i:s \P\H\T Y", time() + $offset);
  267.  
  268.                 // Simple PHP Blog format
  269.                 $timestamp = date("l, M j, Y, g:i A", time() + $offset);
  270.  
  271.                 $comment_entry_dir = date("YmdHis", time() + $offset);
  272.  
  273.                 mkdir("$check/comments/pending/$comment_entry_dir");
  274.  
  275.                 $body_content = ucfirst($_REQUEST['new_comment']);
  276.                 $body_content = htmlentities($body_content, ENT_NOQUOTES);
  277.                 // $body_content = str_replace('href=', 'target=_maj href=', $body_content);
  278.                 $body_content = str_replace("\n", '<br />', $body_content);
  279.                 $body_content = trim($body_content);
  280.  
  281.                 $body_content = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $body_content);
  282.  
  283.                 $body_content = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $body_content);
  284.  
  285.                 $body_content = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $body_content);
  286.  
  287.                 $body_content = str_replace(':D', '<img src=images/smileys/laughing.png border=0>', $body_content);
  288.  
  289.                 $body_content = str_replace(':P', '<img src=images/smileys/lick.png border=0>', $body_content);
  290.  
  291.                 $body_content = str_replace(':O', '<img src=images/smileys/ohno.png border=0>', $body_content);
  292.  
  293.                 $body_content = str_replace(':)', '<img src=images/smileys/smile.png border=0>', $body_content);
  294.  
  295.                 $body_content = str_replace('=)', '<img src=images/smileys/surprised.png border=0>', $body_content);
  296.  
  297.                 $body_content = str_replace(':\\', '<img src=images/smileys/undecided.png border=0>', $body_content);
  298.  
  299.                 $body_content = str_replace(';)', '<img src=images/smileys/wink.png border=0>', $body_content);
  300.  
  301.                 $fp_body_txt = fopen("$check/comments/pending/$comment_entry_dir/comment.txt","w");
  302.                 fwrite($fp_body_txt,$body_content);
  303.                 fclose($fp_body_txt);
  304.  
  305.                 $fp_timestamp_txt = fopen("$check/comments/pending/$comment_entry_dir/timestamp.txt","w");
  306.                 fwrite($fp_timestamp_txt,$timestamp);
  307.                 fclose($fp_timestamp_txt);
  308.  
  309.                 $fp_firstname_txt = fopen("$check/comments/pending/$comment_entry_dir/firstname.txt","w");
  310.                 $firstname = ucwords($_REQUEST['firstname']);
  311.                 $firstname = trim($firstname);
  312.                 $firstname = htmlentities($firstname, ENT_NOQUOTES);
  313.                 fwrite($fp_firstname_txt,$firstname);
  314.                 fclose($fp_firstname_txt);
  315.  
  316.                 $fp_lastname_txt = fopen("$check/comments/pending/$comment_entry_dir/lastname.txt","w");
  317.                 $lastname = ucwords($_REQUEST['lastname']);
  318.                 $lastname = trim($lastname);
  319.                 $lastname = htmlentities($lastname, ENT_NOQUOTES);
  320.                 fwrite($fp_lastname_txt,$lastname);
  321.                 fclose($fp_lastname_txt);
  322.  
  323.                 $fp_email_txt = fopen("$check/comments/pending/$comment_entry_dir/email.txt","w");
  324.                 $email = str_replace('@', ' at ', $_REQUEST['email']);
  325.                 $email = strtolower($email);
  326.                 $email = trim($email);
  327.                 $email = htmlentities($email, ENT_NOQUOTES);
  328.                 fwrite($fp_email_txt,$email);
  329.                 fclose($fp_email_txt);
  330.  
  331.                 if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
  332.                         $fp_url_txt = fopen("$check/comments/pending/$comment_entry_dir/url.txt","w");
  333.                         $url = str_replace('http://', '', $_REQUEST['url']);
  334.                         $url = strtolower($url);
  335.                         $url = trim($url);
  336.                         $url = 'http://' . $url;
  337.                         $url = htmlentities($url, ENT_NOQUOTES);
  338.                         fwrite($fp_url_txt,$url);
  339.                         fclose($fp_url_txt);
  340.                 }
  341.  
  342.                 $key_rand = str_rand(14);
  343.                 $fp_key_txt = fopen("$check/comments/pending/$comment_entry_dir/key.txt","w");
  344.                 fwrite($fp_key_txt,$key_rand);
  345.                 fclose($fp_key_txt);
  346.  
  347.                 $comment_quote = ucfirst($_REQUEST['new_comment']);
  348.                 $comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
  349.  
  350.                 $sig_author_file = "data/author.txt";
  351.                 $fp_sig_author = fopen($sig_author_file, "r");
  352.                 $sig_author = fread($fp_sig_author, filesize($sig_author_file));
  353.                 fclose($fp_sig_author);
  354.  
  355.                 $sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  356.                 $sig_url = str_replace('//', '/', $sig_url);
  357.                 $sig_url = "http://" . $sig_url;
  358.  
  359.                 $email_to = strtolower($_REQUEST['email']);
  360.                 $email_to = $firstname . " " . $lastname . ' <' . $email_to . '>';
  361.  
  362.                 if (file_exists("data/email.txt")) {
  363.                         $from_email_file = "data/email.txt";
  364.                         $fp_from_email = fopen($from_email_file, "r");
  365.                         $from_email = fread($fp_from_email, filesize($from_email_file));
  366.                         fclose($fp_from_email);
  367.                 }
  368.  
  369.                 $mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
  370.  
  371.                 $commented_entry_title_file = "data/items/{$_REQUEST['entry']}/title.txt";
  372.                 $fp_commented_entry_title = fopen($commented_entry_title_file, "r");
  373.                 $commented_entry_title = fread($fp_commented_entry_title, filesize($commented_entry_title_file));
  374.                 fclose($fp_commented_entry_title);
  375.  
  376.                 if (!file_exists("data/nak.txt") and file_exists("data/email.txt")) {
  377.                         $comment_thanks = "Hi $firstname,\n\nThanks for submitting the following comment last $timestamp:\n\n\"$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{$sig_url}index.php?entry={$_REQUEST['entry']}&show=comments\n\nThanks again! =)\n\n--\n$sig_author\n$sig_url\n";
  378.  
  379.                         $comment_thanks = wordwrap($comment_thanks);
  380.  
  381.                         mail($email_to, "Thanks for posting a comment on my blog!", $comment_thanks,
  382.                                 "From: $from_email\r\n" .
  383.                                 "Reply-To: $from_email\r\n" .
  384.                                 "X-Mailer: $mailer");
  385.                 }
  386.  
  387.                 if (file_exists("data/email.txt")) {
  388.                         $comment_notice = "The following comment was submitted by $email_to last $timestamp for the entry \"$commented_entry_title\":\n\n\"$comment_quote\"\n\nVisit the link below to approve and post this pending comment:\n\n{$sig_url}index.php?entry={$_REQUEST['entry']}&comment={$comment_entry_dir}&key={$key_rand}&action=approve\n\nVisit the link below to disapprove and delete this pending comment:\n\n{$sig_url}index.php?entry={$_REQUEST['entry']}&comment={$comment_entry_dir}&key={$key_rand}&action=delete\n\nYou can also approve or disapprove pending comments at a later time by logging on to your blog.";
  389.  
  390.                         $comment_notice = wordwrap($comment_notice);
  391.  
  392.                         mail($from_email, "Pending Blog Comment", $comment_notice,
  393.                                 "From: $from_email\r\n" .
  394.                                 "Reply-To: $from_email\r\n" .
  395.                                 "X-Mailer: $mailer");
  396.                 }
  397.  
  398.                 if (!file_exists("data/comments")) {
  399.                         mkdir("data/comments");
  400.                 }
  401.  
  402.                 if (!file_exists("data/comments/pending")) {
  403.                         mkdir("data/comments/pending");
  404.                 }
  405.  
  406.                 $pending_comment_flag = $_REQUEST['entry'];
  407.  
  408.                 if (!file_exists("data/comments/pending/$pending_comment_flag")) {
  409.                         mkdir("data/comments/pending/$pending_comment_flag");
  410.                 }
  411.  
  412.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","r");
  413.                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag/count.txt"));
  414.                 fclose($fp_comment_count_txt);
  415.                 $comment_count_value = $comment_count_value + 1;
  416.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","w");
  417.                 fwrite($fp_comment_count_txt, $comment_count_value);
  418.                 fclose($fp_comment_count_txt);
  419.  
  420.                 }
  421.  
  422.         }
  423.         else {
  424.                 echo '<title>' . $default_title . '</title>';
  425.                 if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  426.                         $filter = $_REQUEST['archive'] . "*";
  427.                 }
  428.                 else {
  429.                         $filter = "*";
  430.                 }
  431.         }
  432. }
  433. else {
  434.         echo '<title>' . $default_title . '</title>';
  435.         if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  436.                 $filter = $_REQUEST['archive'] . "*";
  437.         }
  438.         else {
  439.                 $filter = "*";
  440.         }
  441. }
  442.  
  443. ?>
  444.  
  445. <?php
  446.  
  447. if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and file_exists("data/items/{$_REQUEST['entry']}")) {
  448.  
  449.         $cat_dir = file_get_contents("data/items/{$_REQUEST['entry']}/category.txt");
  450.  
  451.         if (!file_exists("data/categories/$cat_dir/private.txt")) {
  452.  
  453.                 if (!file_exists("data/items/{$_REQUEST['entry']}/passwd.txt")) {
  454.  
  455.                         if (!file_exists("data/items/{$_REQUEST['entry']}/private.txt")) {
  456.  
  457.                                 $description = file_get_contents("data/items/{$_REQUEST['entry']}/body.txt");
  458.                                 $description = strip_tags($description);
  459.                                 $description = html_entity_decode($description);
  460.                                 $description = str_replace("&","&amp;",$description);
  461.                                 $description = str_replace("<","&lt;",$description);
  462.                                 $description = str_replace(">","&gt;",$description);
  463.                                 $description = str_replace("<br>"," ",$description);
  464.                                 $description = str_replace("<br />"," ",$description);
  465.                                 $description = str_replace("\r"," ",$description);
  466.                                 $description = str_replace("\n"," ",$description);
  467.                                 $description = str_replace(chr(10)," ",$description);
  468.                                 $description = str_replace(chr(13)," ",$description);
  469.                                 $description = trim($description);
  470.                                 $description = substr($description,0,210);
  471.                                 $description = htmlentities($description, ENT_NOQUOTES);
  472.  
  473.                                 echo "<meta name=\"description\" content=\"{$description}\">";
  474.                         }
  475.                 }
  476.         }
  477.  
  478. }
  479.  
  480. ?>
  481.  
  482. <style>
  483.  
  484. body
  485. {
  486.         color: <?php
  487. if (file_exists("data/colors/font.txt")) {
  488.         $font_color = file_get_contents("data/colors/font.txt");
  489.         echo $font_color;
  490. }
  491. else {
  492.         echo "#666666";
  493. }
  494. ?>;
  495.         margin: 0px 0px 10px 10px;
  496.         padding: 0px;
  497.         text-align: left;
  498.         font-family: verdana, helvetica, sans-serif;
  499.         background-color: <?php
  500. if (file_exists("data/colors/bg.txt")) {
  501.         $background_color = file_get_contents("data/colors/bg.txt");
  502.         echo $background_color;
  503. }
  504. else {
  505.         echo "#FFFFFF";
  506. }
  507. ?>;
  508.         <?php
  509.         if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  510.         background-image: url('images/background.gif');
  511.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  512.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  513.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  514.         <?php
  515.         }
  516.         if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  517.         background-image: url('images/background.jpg');
  518.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  519.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  520.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  521.         <?php
  522.         }
  523.         if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>
  524.         background-image: url('images/background.png');
  525.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  526.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  527.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  528.         <?php
  529.         }
  530.         ?>
  531. }
  532.  
  533. p, td
  534. {
  535.         font-size: 11px;
  536. }
  537.  
  538. a
  539. {
  540.         font-weight: bold;
  541.         text-decoration: none;
  542. }
  543.  
  544. a:link
  545. {
  546.         color: <?php
  547. if (file_exists("data/colors/link.txt")) {
  548.         $a_link_color = file_get_contents("data/colors/link.txt");
  549.         echo $a_link_color;
  550. }
  551. else {
  552.         echo "#666666";
  553. }
  554. ?>;
  555. }
  556.  
  557. a:visited
  558. {
  559.         color: <?php
  560. if (file_exists("data/colors/vlink.txt")) {
  561.         $a_visited_color = file_get_contents("data/colors/vlink.txt");
  562.         echo $a_visited_color;
  563. }
  564. else {
  565.         echo "#666666";
  566. }
  567. ?>;
  568. }
  569.  
  570. a:hover
  571. {
  572.         color: <?php
  573. if (file_exists("data/colors/hover.txt")) {
  574.         $a_hover_color = file_get_contents("data/colors/hover.txt");
  575.         echo $a_hover_color;
  576. }
  577. else {
  578.         echo "#336699";
  579. }
  580. ?>;
  581. }
  582.  
  583. a:active {
  584.         color: <?php
  585. if (file_exists("data/colors/hover.txt")) {
  586.         $a_active_color = file_get_contents("data/colors/hover.txt");
  587.         echo $a_active_color;
  588. }
  589. else {
  590.         echo "#336699";
  591. }
  592. ?>;
  593. }
  594. #panel_title
  595. {
  596.         font-family: verdana, helvetica, sans-serif;
  597.         font-size: 12px;
  598.         font-weight: bold;
  599.         color: <?php
  600. if (file_exists("data/colors/pt-font.txt")) {
  601.         $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
  602.         echo $panel_title_font_color;
  603. }
  604. else {
  605.         echo "#666666";
  606. }
  607. ?>;
  608.         padding: 5px 5px 5px 5px;
  609.         background-color: <?php
  610. if (file_exists("data/colors/pt-bg.txt")) {
  611.         $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
  612.         echo $panel_title_background_color;
  613. }
  614. else {
  615.         echo "transparent";
  616. }
  617. ?>;
  618.         margin: 10px 0px 0px 0px;
  619.         border-color: <?php
  620. if (file_exists("data/colors/border.txt")) {
  621.         $panel_title_border_color = file_get_contents("data/colors/border.txt");
  622.         echo $panel_title_border_color;
  623. }
  624. else {
  625.         echo "#CCCCCC";
  626. }
  627. ?>;
  628.         border-width: 1px 1px 0px 1px;
  629.         border-style: solid solid none solid;
  630. }
  631. #panel_body
  632. {
  633.         font-family: verdana, helvetica, sans-serif;
  634.         font-size: 11px;
  635.         color: <?php
  636. if (file_exists("data/colors/pb-font.txt")) {
  637.         $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
  638.         echo $panel_body_font_color;
  639. }
  640. else {
  641.         echo "#666666";
  642. }
  643. ?>;
  644.         padding: 5px 5px 5px 5px;
  645.         background-color: <?php
  646. if (file_exists("data/colors/pb-bg.txt")) {
  647.         $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
  648.         echo $panel_body_background_color;
  649. }
  650. else {
  651.         echo "transparent";
  652. }
  653. ?>;
  654.         margin: 0px;
  655.         border-color: <?php
  656. if (file_exists("data/colors/border.txt")) {
  657.         $panel_body_border_color = file_get_contents("data/colors/border.txt");
  658.         echo $panel_body_border_color;
  659. }
  660. else {
  661.         echo "#CCCCCC";
  662. }
  663. ?>;
  664.         border-width: 1px 1px 1px 1px;
  665.         border-style: solid solid solid solid;
  666. }
  667. #panel_footer
  668. {
  669.         font-family: verdana, helvetica, sans-serif;
  670.         font-size: 11px;
  671.         color: <?php
  672. if (file_exists("data/colors/pf-font.txt")) {
  673.         $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
  674.         echo $panel_footer_font_color;
  675. }
  676. else {
  677.         echo "#666666";
  678. }
  679. ?>;
  680.         padding: 5px 5px 5px 5px;
  681.         background-color: <?php
  682. if (file_exists("data/colors/pf-bg.txt")) {
  683.         $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
  684.         echo $panel_footer_background_color;
  685. }
  686. else {
  687.         echo "transparent";
  688. }
  689. ?>;
  690.         margin: 0px;
  691.         border-color: <?php
  692. if (file_exists("data/colors/border.txt")) {
  693.         $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  694.         echo $panel_footer_border_color;
  695. }
  696. else {
  697.         echo "#CCCCCC";
  698. }
  699. ?>;
  700.         border-width: 0px 1px 1px 1px;
  701.         border-style: none solid solid solid;
  702.         text-align: right;
  703. }
  704. .input {        
  705.         color: <?php
  706. if (file_exists("data/colors/border.txt")) {
  707.         $input_color = file_get_contents("data/colors/border.txt");
  708.         echo $input_color;
  709. }
  710. else {
  711.         echo "#666666";
  712. }
  713. ?>;
  714.         background: #FFFFFF;
  715.         border: <?php
  716. if (file_exists("data/colors/border.txt")) {
  717.         $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  718.         echo $panel_footer_border_color;
  719. }
  720. else {
  721.         echo "#999999";
  722. }
  723. ?> solid 1px;
  724.         width: 300px;
  725.         font-family: verdana,helvetica,sans-serif;
  726.         font-size: 11px;
  727. }
  728. .search {      
  729.         color: #666666;
  730.         background: #FFFFFF;
  731.         width: 100%;
  732.         font-family: verdana,helvetica,sans-serif;
  733.         font-size: 11px;
  734. }
  735. #panel_free {
  736.         padding: 0px 5px 0px 5px;
  737.         margin: 10px 0px 0px 0px;
  738. }
  739. </style>
  740.  
  741. <link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="rss.php?ver=0.91">
  742. <link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="rss.php?ver=1.0">
  743. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss.php?ver=2.0">
  744.  
  745. <?php
  746. if (file_exists("header.php")) {
  747.         include("header.php");
  748.         echo '<p></p>';
  749. }
  750. ?>
  751.  
  752. <table border=0 cellspacing=0 cellpadding=0 width=905>
  753. <tr><td width=175 valign=top>
  754.  
  755. <div id=panel_title>Profile</div>
  756. <div id=panel_body>
  757. <?php
  758. if (file_exists("images/profile.gif")) {
  759.         $profile_gif_image_size = getimagesize("images/profile.gif");
  760.         $profile_gif_image_width = $profile_gif_image_size[0];
  761.         $profile_gif_image_height = $profile_gif_image_size[1];
  762.  
  763.         $max_profile_gif_image_width = 163;
  764.  
  765.         if ($profile_gif_image_width > $max_profile_gif_image_width) {  
  766.                 $sizefactor = (double) ($max_profile_gif_image_width / $profile_gif_image_width) ;
  767.                 $profile_gif_image_width = (int) ($profile_gif_image_width * $sizefactor);
  768.                 $profile_gif_image_height = (int) ($profile_gif_image_height * $sizefactor);
  769.         }
  770.  
  771.         echo "<img src=images/profile.gif border=0 width=";
  772.         echo $profile_gif_image_width;
  773.         echo " height=";
  774.         echo $profile_gif_image_height;
  775.         echo " align=left>";
  776. }
  777. if (file_exists("images/profile.jpg")) {
  778.         $profile_jpg_image_size = getimagesize("images/profile.jpg");
  779.         $profile_jpg_image_width = $profile_jpg_image_size[0];
  780.         $profile_jpg_image_height = $profile_jpg_image_size[1];
  781.  
  782.         $max_profile_jpg_image_width = 163;
  783.  
  784.         if ($profile_jpg_image_width > $max_profile_jpg_image_width) {  
  785.                 $sizefactor = (double) ($max_profile_jpg_image_width / $profile_jpg_image_width) ;
  786.                 $profile_jpg_image_width = (int) ($profile_jpg_image_width * $sizefactor);
  787.                 $profile_jpg_image_height = (int) ($profile_jpg_image_height * $sizefactor);
  788.         }
  789.  
  790.         echo "<img src=images/profile.jpg border=0 width=";
  791.         echo $profile_jpg_image_width;
  792.         echo " height=";
  793.         echo $profile_jpg_image_height;
  794.         echo " align=left>";
  795. }
  796. if (file_exists("images/profile.png")) {
  797.         $profile_png_image_size = getimagesize("images/profile.png");
  798.         $profile_png_image_width = $profile_png_image_size[0];
  799.         $profile_png_image_height = $profile_png_image_size[1];
  800.  
  801.         $max_profile_png_image_width = 163;
  802.  
  803.         if ($profile_png_image_width > $max_profile_png_image_width) {  
  804.                 $sizefactor = (double) ($max_profile_png_image_width / $profile_png_image_width) ;
  805.                 $profile_png_image_width = (int) ($profile_png_image_width * $sizefactor);
  806.                 $profile_png_image_height = (int) ($profile_png_image_height * $sizefactor);
  807.         }
  808.  
  809.         echo "<img src=images/profile.png border=0 width=";
  810.         echo $profile_png_image_width;
  811.         echo " height=";
  812.         echo $profile_png_image_height;
  813.         echo " align=left>";
  814. }
  815. include("data/profile.php");
  816. ?>
  817. </div>
  818.  
  819. <div id=panel_title>Navigation</div>
  820. <div id=panel_body>
  821. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
  822.  
  823. <?php
  824. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  825.         echo '<a href=add.php>Add Entry</a><br>';
  826.         echo '<a href=settings.php>Settings</a><br>';
  827.         echo '<a href=panels.php>Panels</a><br>';
  828.         echo '<a href=cat.php>Categories</a><br>';
  829.         echo '<a href=colors.php>Colors</a><br>';
  830.         echo '<a href=login.php>Logout</a>';
  831. }
  832. else {
  833.         echo '<a href=login.php>Login</a>';
  834. }
  835. ?>
  836.  
  837. </div>
  838.  
  839. <?php
  840. if (file_exists("data/sticky")) {
  841.         if ($dh_sticky_list = opendir("data/sticky")) {
  842.                 while (($entry_sticky_list = readdir($dh_sticky_list)) !== false) {
  843.  
  844.                         if (file_exists("data/items/$entry_sticky_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  845.                                 continue;
  846.                         }
  847.  
  848.                         $get_cat_dir = file_get_contents("data/items/$entry_sticky_list/category.txt");
  849.  
  850.                         if (file_exists("data/categories/$get_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_sticky_list/cat.txt")) {
  851.                                 continue;
  852.                         }
  853.  
  854.                         if ($entry_sticky_list != "." && $entry_sticky_list != ".." && fnmatch("*", $entry_sticky_list)) {
  855.                                 $show_sticky_list[] = $entry_sticky_list;
  856.                         }
  857.                 }
  858.                 closedir($dh_sticky_list);
  859.         }
  860.  
  861.         sort($show_sticky_list);
  862.         reset($show_sticky_list);
  863.         $count_sticky_list = count($show_sticky_list);
  864.        
  865.         if ($count_sticky_list > 0) {
  866.                 echo '<div id=panel_title>Quick Links</div>';
  867.                 echo '<div id=panel_body>';
  868.                 foreach ($show_sticky_list as $sticky_list_entry) {
  869.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
  870.                         echo $sticky_list_entry;
  871.                         echo '>';
  872.                         readfile("data/items/$sticky_list_entry/title.txt");
  873.                         echo '</a><br>';
  874.                 }
  875.                 echo '</div>';
  876.         }
  877. }
  878. ?>
  879.  
  880.  
  881.  
  882. <?php
  883. if (file_exists("data/panels")) {
  884.         if ($dh_panel_list = opendir("data/panels")) {
  885.                 while (($entry_panel_list = readdir($dh_panel_list)) !== false) {
  886.  
  887.                         if (file_exists("data/panels/$entry_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  888.                                 continue;
  889.                         }
  890.  
  891.                         if (file_exists("data/panels/$entry_panel_list/right.txt")) {
  892.                                 continue;
  893.                         }
  894.  
  895.                         if ($entry_panel_list != "." && $entry_panel_list != ".." && fnmatch("*", $entry_panel_list)) {
  896.                                 $show_panel_list[] = $entry_panel_list;
  897.                         }
  898.                 }
  899.                 closedir($dh_panel_list);
  900.         }
  901.  
  902.         sort($show_panel_list);
  903.         reset($show_panel_list);
  904.         $count_panel_list = count($show_panel_list);
  905.        
  906.         if ($count_panel_list > 0) {
  907.                 foreach ($show_panel_list as $panel_list_entry) {
  908.                         if (!file_exists("data/panels/$panel_list_entry/free.txt")) {
  909.                                 echo '<div id=panel_title>';
  910.                                 readfile("data/panels/$panel_list_entry/title.txt");
  911.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  912.                                         echo "<a href=panels.php#{$panel_list_entry}>";
  913.                                         echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
  914.                                 }
  915.                                 echo '</div><div id=panel_body>';
  916.                         }
  917.                         if (file_exists("data/panels/$panel_list_entry/free.txt")) {
  918.                                 echo '<div id=panel_free>';
  919.                         }
  920.                         include("data/panels/$panel_list_entry/panel.php");
  921.                         echo '</div>';
  922.                 }
  923.         }
  924. }
  925. ?>
  926.  
  927. </td><td width=15>&nbsp;</td><td valign=top width=525>
  928.  
  929. <?php
  930.  
  931. if (is_dir($dir)) {
  932.         if ($dh = opendir($dir)) {
  933.                 while (($entry_main = readdir($dh)) !== false) {
  934.  
  935.                         if (file_exists("data/items/$entry_main/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  936.                                 continue;
  937.                         }
  938.  
  939.                         $cat_dir = file_get_contents("data/items/$entry_main/category.txt");
  940.  
  941.                         if (file_exists("data/categories/$cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_main/cat.txt")) {
  942.                                 continue;
  943.                         }
  944.  
  945.                         if (file_exists("data/nocat.txt") and file_exists("data/items/$entry_main/category.txt") and !file_exists("data/items/$entry_main/cat.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['category']) or empty($_REQUEST['category'])) and (!isset($_REQUEST['entry']) or empty($_REQUEST['entry']))) {
  946.                                 continue;
  947.                         }
  948.  
  949.                         if ($entry_main != "." && $entry_main != ".." && fnmatch($filter, $entry_main)) {
  950.                                 if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "-", "data/categories/{$_REQUEST['category']}"))))) {
  951.                                         $category = str_replace(" ", "-", $_REQUEST['category']);
  952.                                         $category = strtolower($category);
  953.                                         $category = strip_tags($category);
  954.                                         if (file_exists("data/items/$entry_main/category.txt") and (file_get_contents("data/items/$entry_main/category.txt") == "$category")) {
  955.                                                 $items[] = $entry_main;
  956.                                         }
  957.                                 }
  958.                                 else {
  959.                                         $items[] = $entry_main;
  960.                                 }
  961.                         }
  962.                 }
  963.                 closedir($dh);
  964.         }
  965. }
  966.  
  967. if (!file_exists("data/old.txt")) {
  968.         rsort($items);
  969. }
  970.  
  971. if (file_exists("data/old.txt")) {
  972.         sort($items);
  973. }
  974.  
  975. if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
  976.  
  977.         $category = str_replace(" ", "-", $_REQUEST['category']);
  978.         $category = strtolower($category);
  979.         $category = strip_tags($category);
  980.  
  981.         if (file_exists("data/categories/$category/book.txt")) {
  982.                 sort($items);
  983.         }
  984. }
  985.  
  986. reset($items);
  987.  
  988. $start = $_REQUEST['start'];
  989.  
  990. if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
  991.         $start = 0;
  992. }
  993.  
  994. $end=$start+$increase;
  995.    
  996. $disp=array_slice($items,$start,$increase);
  997.  
  998. foreach ($disp as $d) {
  999.  
  1000.         if (file_exists("$dir/$d/category.txt")) {
  1001.                 $category_check = 'data/categories/' . file_get_contents("$dir/$d/category.txt");
  1002.                 if (!file_exists($category_check)) {
  1003.                         unlink("$dir/$d/category.txt");
  1004.                 }
  1005.         }
  1006.  
  1007.         if (file_exists("$dir/$d/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1008.                 continue;
  1009.         }
  1010.  
  1011.         echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#CCCCCC style="background-color: transparent;"><tr><td width=525><div id=panel_title>';
  1012.         readfile("$dir/$d/title.txt");
  1013.        
  1014.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1015.                 echo '<a href=del.php?entry=';
  1016.                 echo $d;
  1017.                 echo '><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete entry"></a>';
  1018.                 echo '<a href=edit.php?entry=';
  1019.                 echo $d;
  1020.                 echo '><img src=images/widget.edit.png border=0 width=11 height=11 align=right alt="edit entry"></a>';
  1021.                 if (file_exists("$dir/$d/passwd.txt")) {
  1022.                         echo '<img src=images/widget.protected.png border=0 width=11 height=11 align=right alt="protected entry">';
  1023.                 }
  1024.  
  1025.                 if (file_exists("$dir/$d/private.txt")) {
  1026.                         echo '<img src=images/widget.private.png border=0 width=11 height=11 align=right alt="private entry">';
  1027.                 }
  1028.                 if (file_exists("$dir/$d/cat.txt")) {
  1029.                         echo '<img src=images/widget.cat.png border=0 width=11 height=11 align=right alt="always display">';
  1030.                 }
  1031.                 if (file_exists("$dir/$d/category.txt")) {
  1032.  
  1033.                         $read_cat_dir = file_get_contents("$dir/$d/category.txt");
  1034.  
  1035.                         if (file_exists("data/categories/$read_cat_dir/private.txt")) {
  1036.                                 echo '<img src=images/widget.hidden.png border=0 width=11 height=11 align=right alt="category hidden">';
  1037.                         }
  1038.  
  1039.                         if (file_exists("data/nocat.txt")) {
  1040.                                 echo '<img src=images/widget.isolated.png border=0 width=11 height=11 align=right alt="category isolated">';
  1041.                         }
  1042.  
  1043.                         if (file_exists("data/categories/$read_cat_dir/book.txt")) {
  1044.                                 echo '<img src=images/widget.booked.png border=0 width=11 height=11 align=right alt="category booked">';
  1045.                         }
  1046.  
  1047.                         echo '<img src=images/widget.filed.png border=0 width=11 height=11 align=right alt="filed under ';
  1048.                         readfile("$dir/$d/category.txt");
  1049.                         echo '">';
  1050.                 }
  1051.  
  1052.         }
  1053.  
  1054.         echo '</div><div id=panel_body>';
  1055.  
  1056.         if (file_exists("$dir/$d/passwd.txt")) {
  1057.                 $passwd = file_get_contents("$dir/$d/passwd.txt");
  1058.         }
  1059.  
  1060.         if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd'])) {
  1061.                 $crypt_passwd = sha1($_REQUEST['passwd']);
  1062.                 $crypt_passwd = md5($crypt_passwd);
  1063.                 $crypt_passwd = crypt($crypt_passwd, $crypt_passwd);
  1064.         }
  1065.  
  1066.         echo '<font style="font-size: 10px; color: #999999;">';
  1067.         readfile("$dir/$d/date.txt");
  1068.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1069.                 if (file_exists("$dir/$d/revisions.txt")) {
  1070.                         echo ' (Revision ';
  1071.                         readfile("$dir/$d/revisions.txt");
  1072.                         echo ')';
  1073.                 }
  1074.                 if (file_exists("$dir/$d/category.txt")) {
  1075.                         echo ' Filed under ';
  1076.                         $category_key = file_get_contents("$dir/$d/category.txt");
  1077.                         $category_key = strtolower($category_key);
  1078.                         if (file_exists("data/categories/{$category_key}/title.txt")) {
  1079.                                 $category_dsp = file_get_contents("data/categories/{$category_key}/title.txt");
  1080.                                 echo "$category_key ($category_dsp)";
  1081.                         }
  1082.                         else {
  1083.                                 echo "$category_key";
  1084.                         }
  1085.                 }
  1086.         }
  1087.         echo '</font><font style="font-size: 5px;"><br><br></font>';
  1088.  
  1089.         if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  1090.                 echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d>here</a> to enter it.";
  1091.         }
  1092.         else {
  1093.                 readfile("$dir/$d/body.txt");
  1094.         }
  1095.  
  1096.         echo '</div><div id=panel_footer>';
  1097.         echo '<font style="font-size: 10px; color: ';
  1098.         if (file_exists("data/colors/pf-font.txt")) {
  1099.                 readfile("data/colors/pf-font.txt");
  1100.         }
  1101.         else {
  1102.                 echo "#999999";
  1103.         }
  1104.         echo ';">';
  1105.  
  1106. if (!file_exists("data/nocomment.txt")) {
  1107.  
  1108.         if (!file_exists("$dir/$d/comments/live")) {
  1109.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>add comment</a>';
  1110.         }
  1111.         else {
  1112.                 if ($dh_comments = opendir("$dir/$d/comments/live")) {
  1113.                         while (($entry_comments = readdir($dh_comments)) !== false) {
  1114.                                 if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {
  1115.                                         $items_comments[] = $entry_comments;
  1116.                                 }
  1117.                         }
  1118.                 closedir($dh_comments);
  1119.                 }
  1120.                 $comments = count($items_comments);
  1121.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>';
  1122.                 if ($comments == 1) {
  1123.                         echo $comments . ' comment';
  1124.                 }
  1125.                 elseif ($comments < 1) {
  1126.                         echo 'add comment';
  1127.                 }
  1128.                 else {
  1129.                         echo $comments . ' comments';
  1130.                 }
  1131.                 echo '</a>';
  1132.                 unset($items_comments);
  1133.         }
  1134.  
  1135. }
  1136. else {
  1137.         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a>';
  1138. }
  1139.  
  1140.         if (file_exists("$dir/$d/views.txt")) {
  1141.                 $fp_views_txt = fopen("$dir/$d/views.txt","r");
  1142.                 $views_value = fread($fp_views_txt,filesize("$dir/$d/views.txt"));
  1143.                 fclose($fp_views_txt);
  1144.                 if ($views_value == 1) {
  1145.                         echo ' ( ' . $views_value . ' view ) ';
  1146.                 }
  1147.                 elseif ($views_value > 1) {
  1148.                         echo ' ( ' . $views_value . ' views ) ';
  1149.                 }
  1150.                 else {
  1151.                         echo ' ';
  1152.                 }
  1153.         }
  1154.  
  1155.         if (!file_exists("images/$d/album")) {
  1156.                 echo ' ';
  1157.         }
  1158.         else {
  1159.                 if ($dh_album = opendir("images/$d/album")) {
  1160.                         while (($entry_album = readdir($dh_album)) !== false) {
  1161.                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  1162.                                         $items_album[] = $entry_album;
  1163.                                 }
  1164.                         }
  1165.                 closedir($dh_album);
  1166.                 }
  1167.                 $album = count($items_album);
  1168.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=album>';
  1169.                 if ($album == 1) {
  1170.                         echo $album . ' image';
  1171.                 }
  1172.                 elseif ($album < 1) {
  1173.                         echo 'album';
  1174.                 }
  1175.                 else {
  1176.                         echo $album . ' images';
  1177.                 }
  1178.                 echo '</a>';
  1179.                 unset($items_album);
  1180.         }
  1181.  
  1182.         if (file_exists("images/$d/album") and isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == album)) {
  1183.                 if (!file_exists("$dir/$d/album")) {
  1184.                         mkdir("$dir/$d/album");
  1185.                 }
  1186.                 if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1187.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  1188.                         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  1189.                         fclose($fp_album_views_txt);
  1190.                         $album_views_value = $album_views_value + 1;
  1191.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","w");
  1192.                         fwrite($fp_album_views_txt, $album_views_value);
  1193.                         fclose($fp_album_views_txt);
  1194.                 }
  1195.         }
  1196.  
  1197.         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  1198.         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  1199.         fclose($fp_album_views_txt);
  1200.         if ($album_views_value == 1) {
  1201.                 echo ' ( ' . $album_views_value . ' view ) ';
  1202.         }
  1203.         elseif ($album_views_value > 1) {
  1204.                 echo ' ( ' . $album_views_value . ' views ) ';
  1205.         }
  1206.         else {
  1207.                 echo ' ';
  1208.         }
  1209.  
  1210.         if (!file_exists("data/items/$d/filedrop/files")) {
  1211.                 echo ' ';
  1212.         }
  1213.         else {
  1214.                 if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  1215.                         while (($dl_file = readdir($dh_filedrop)) !== false) {
  1216.                                 if ($dl_file != "." && $dl_file != ".." && fnmatch("*", $dl_file)) {
  1217.                                         $items_filedrop[] = $dl_file;
  1218.                                 }
  1219.                         }
  1220.                 closedir($dh_filedrop);
  1221.                 }
  1222.                 $filedrop = count($items_filedrop);
  1223.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=filedrop>';
  1224.                 if ($filedrop == 1) {
  1225.                         echo $filedrop . ' file';
  1226.                 }
  1227.                 elseif ($filedrop < 1) {
  1228.                         echo 'filedrop';
  1229.                 }
  1230.                 else {
  1231.                         echo $filedrop . ' files';
  1232.                 }
  1233.                 echo '</a> ';
  1234.                 unset($items_filedrop);
  1235.         }
  1236.  
  1237.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop)) {
  1238.                 if (!file_exists("$dir/$d/filedrop")) {
  1239.                         mkdir("$dir/$d/filedrop");
  1240.                 }
  1241.                 if (file_exists("data/items/$d/filedrop/files") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1242.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  1243.                         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  1244.                         fclose($fp_filedrop_views_txt);
  1245.                         $filedrop_views_value = $filedrop_views_value + 1;
  1246.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","w");
  1247.                         fwrite($fp_filedrop_views_txt, $filedrop_views_value);
  1248.                         fclose($fp_filedrop_views_txt);
  1249.                 }
  1250.         }
  1251.  
  1252.         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  1253.         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  1254.         fclose($fp_filedrop_views_txt);
  1255.         if ($filedrop_views_value == 1) {
  1256.                 echo ' ( ' . $filedrop_views_value . ' view ) ';
  1257.         }
  1258.         elseif ($filedrop_views_value > 1) {
  1259.                 echo ' ( ' . $filedrop_views_value . ' views ) ';
  1260.         }
  1261.         else {
  1262.                 echo ' ';
  1263.         }
  1264.  
  1265.         if (!file_exists("data/nopdf.txt") and file_exists("$dir/$d/pdf/file")) {
  1266.  
  1267.                 echo "| <a href={$_SERVER['PHP_SELF']}?entry=$d&show=pdf>pdf</a> ";
  1268.  
  1269.                 if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) {
  1270.                         $pdf_views_value = file_get_contents("$dir/$d/pdf/count/views.txt");
  1271.                         $pdf_views_value = $pdf_views_value + 1;
  1272.                         $fp_pdf_views_txt = fopen("$dir/$d/pdf/count/views.txt","w");
  1273.                         fwrite($fp_pdf_views_txt, $pdf_views_value);
  1274.                         fclose($fp_pdf_views_txt);
  1275.                 }
  1276.  
  1277.                 $pdf_views_value = file_get_contents("$dir/$d/pdf/count/views.txt");
  1278.                 if ($pdf_views_value == 1) {
  1279.                         echo ' ( ' . $pdf_views_value . ' view ) ';
  1280.                 }
  1281.                 elseif ($pdf_views_value > 1) {
  1282.                         echo ' ( ' . $pdf_views_value . ' views ) ';
  1283.                 }
  1284.                 else {
  1285.                         echo ' ';
  1286.                 }
  1287.         }
  1288.  
  1289.         if (!file_exists("data/nocomment.txt")) {
  1290.                 echo '| <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a></font>';
  1291.         }
  1292.  
  1293.         echo '</div></td></tr></table>';
  1294.  
  1295.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == album) and file_exists("images/$d/album")) {
  1296.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1297.                 echo '<div id=panel_title>Album';
  1298.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1299.                         echo '<a href=del.php?entry=';
  1300.                         echo $d;
  1301.                         echo '&target=album><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete album"></a>';
  1302.                 }
  1303.                 echo '</div><div id=panel_body>';
  1304.  
  1305.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  1306.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=album>here</a> to enter it.";
  1307.                 }
  1308.                 else {
  1309.        
  1310.                         /* thumbnail auto-clean-up (20060409) - This should delete thumbnails of non-existent album images. */
  1311.        
  1312.                         if (file_exists("images/$d/thumbnails")) {
  1313.                                 if ($dh_album = opendir("images/$d/thumbnails")) {
  1314.                                         while (($thumbnail_album = readdir($dh_album)) !== false) {
  1315.                                                 if ($thumbnail_album != "." && $thumbnail_album != ".." && fnmatch("*", $thumbnail_album)) {
  1316.                                                         $current_thumbnail = "images/$d/thumbnails/$thumbnail_album";
  1317.                                                         $parent_image = str_replace("-thumbnail.jpg","",$thumbnail_album);
  1318.                                                         $parent_image = "images/$d/album/$parent_image";
  1319.                                                         if (file_exists($current_thumbnail) and !file_exists($parent_image)) {
  1320.                                                                 unlink($current_thumbnail);
  1321.                                                         }
  1322.                                                 }
  1323.                                         }
  1324.                                 }
  1325.                         }
  1326.        
  1327.                         /* auto-sort entries (20060409) - MAJ previously relied on readdir() alone, causing entries to be displayed in the order in which they are stored by the filesystem. */
  1328.        
  1329.                         if (file_exists("images/$d/album")) {
  1330.                                 if ($dh_album = opendir("images/$d/album")) {
  1331.                                         while (($entry_album = readdir($dh_album)) !== false) {
  1332.                                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  1333.                                                         $sort_album[] = $entry_album;
  1334.                                                 }
  1335.                                         }
  1336.                                 closedir($dh_album);
  1337.                                 }
  1338.        
  1339.                                 sort($sort_album);
  1340.                                 reset($sort_album);
  1341.                                 $count_album_entry = count($sort_album);
  1342.                                
  1343.                                 if ($count_album_entry < 1) {
  1344.                                         rmdirr("images/$d/album");
  1345.                                         rmdirr("images/$d/thumbnails");                        
  1346.                                 }
  1347.                                 else {
  1348.                                         foreach($sort_album as $album_entry) {
  1349.                                                 $current_image = "images/$d/album/$album_entry";
  1350.                                                 $current_image_size = getimagesize($current_image);
  1351.                                                 $current_width = $current_image_size[0];
  1352.                                                 $current_height = $current_image_size[1];
  1353.                                                 $max_width = 98;
  1354.                                                 $max_height = 73;
  1355.        
  1356.                                                 if (($current_width > $max_width) || ($current_height > $max_height)) {  
  1357.                                                         if ($current_height > $current_width) {
  1358.                                                                 $sizefactor = (double) ($max_height / $current_height);
  1359.                                                         }
  1360.                                                         else {
  1361.                                                                 $sizefactor = (double) ($max_width / $current_width) ;
  1362.                                                         }
  1363.                                                 }
  1364.        
  1365.                                                 $new_width = (int) ($current_width * $sizefactor);
  1366.                                                 $new_height = (int) ($current_height * $sizefactor);
  1367.        
  1368.                                                 /* auto-thumbnails (20060213) - In maj-0.14-20060131, album thumbnails were simply the original images displayed with smaller "width=" and "height=" values. Album index loading was painfully slow since the browser had to download the original images from the server. This should speed things up. We placed the "function" here instead of edit.php or add.php to make auto-thumbnail generation available for maj-0.14-20060131 users who may already have existing albums. */
  1369.        
  1370.                                                 if (!file_exists("images/$d/thumbnails/{$album_entry}-thumbnail.jpg")) {
  1371.        
  1372.                                                         $work_thumb = imagecreatetruecolor($new_width,$new_height);
  1373.                                                         $get_mimetype = image_type_to_mime_type(exif_imagetype($current_image));
  1374.                                                         switch($get_mimetype) {
  1375.                                                                 case "image/jpg":
  1376.                                                                 case "image/jpeg":
  1377.                                                                         $work_image = imagecreatefromjpeg($current_image);
  1378.                                                                         break;
  1379.                                                                 case "image/gif":
  1380.                                                                         $work_image = imagecreatefromgif($current_image);
  1381.                                                                         break;
  1382.                                                                 case "image/png":
  1383.                                                                         $work_image = imagecreatefrompng($current_image);
  1384.                                                                         break;
  1385.                                                         }
  1386.        
  1387.                                                         imagecopyresampled($work_thumb, $work_image ,0, 0, 0, 0, $new_width, $new_height, $current_width, $current_height);
  1388.        
  1389.                                                         if (!file_exists("images/$d/thumbnails")) {
  1390.                                                                 mkdir("images/$d/thumbnails");
  1391.                                                         }
  1392.        
  1393.                                                         imagejpeg($work_thumb, "images/$d/thumbnails/{$album_entry}-thumbnail.jpg", 80);
  1394.        
  1395.                                                 }
  1396.                                                 echo "<a href=\"images/$d/album/$album_entry\">";
  1397.  
  1398.                                                 /* auto-thumbnails (20060519) - Just in case php-gd does not exist, do it the old way. */
  1399.  
  1400.                                                 if (!file_exists("images/$d/thumbnails/{$album_entry}-thumbnail.jpg")) {
  1401.                                                         echo "<img src=\"images/$d/album/$album_entry\" width=$new_width height=$new_height border=0 hspace=2 vspace=2";
  1402.                                                 }
  1403.                                                 else {
  1404.                                                         echo "<img src=\"images/$d/thumbnails/{$album_entry}-thumbnail.jpg\" width=$new_width height=$new_height border=0 hspace=2 vspace=2";
  1405.                                                 }
  1406.  
  1407.                                                 if (file_exists("data/items/$d/album/captions/{$album_entry}.txt")) {
  1408.                                                         echo ' alt="';
  1409.                                                         readfile("data/items/$d/album/captions/{$album_entry}.txt");
  1410.                                                         echo '"';
  1411.                                                 }
  1412.                                                 echo "></a>";
  1413.                                         }
  1414.                                 }
  1415.                         }
  1416.                 }
  1417.                 echo '</div></td></tr></table>';
  1418.  
  1419.         }
  1420.  
  1421.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop) and file_exists("$dir/$d/filedrop/files")) {
  1422.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1423.                 echo '<div id=panel_title>Filedrop';
  1424.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1425.                         echo '<a href=del.php?entry=';
  1426.                         echo $d;
  1427.                         echo '&target=filedrop><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete filedrop"></a>';
  1428.                 }
  1429.                 echo '</div><div id=panel_body>';
  1430.  
  1431.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  1432.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=filedrop>here</a> to enter it.";
  1433.                 }
  1434.                 else {
  1435.  
  1436.                         if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  1437.                                 while (($dl_file = readdir($dh_filedrop)) !== false) {
  1438.                                         if ($dl_file != "." && $dl_file != ".." && fnmatch("*", $dl_file)) {
  1439.                                                 echo '<table border=0 cellspacing=0 cellpadding=4><tr><td>';
  1440.                                                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&download=' . $dl_file. '&type=filedrop>';
  1441.                                                 echo '<img src=images/filedrop.png width=36 height=36 border=0 alt="download file"></a></td>';
  1442.                                                 echo '<td><p><b>';
  1443.                                                 echo $dl_file;
  1444.                                                 echo'</b>';
  1445.                                                 if (file_exists("data/items/$d/filedrop/sha1.txt")) {
  1446.                                                         $sha1 = sha1_file("data/items/$d/filedrop/files/$dl_file");
  1447.                                                         echo "<br />$sha1 (<a href=http://www.faqs.org/rfcs/rfc3174 target=_maj>sha1</a>)";
  1448.                                                 }
  1449.                                                 if (file_exists("data/items/$d/filedrop/md5.txt")) {
  1450.                                                         $md5 = md5_file("data/items/$d/filedrop/files/$dl_file");
  1451.                                                         echo "<br />$md5 (<a href=http://www.faqs.org/rfcs/rfc1321 target=_maj>md5</a>)";
  1452.                                                 }
  1453.                                                 $size = filesize("data/items/$d/filedrop/files/$dl_file");
  1454.                                                 $size_string = ($size > 512)?(  ($size/1024 > 512)  ?sprintf("%.02f MB",($size/1024)/1024)  :sprintf("%.02f KB",$size/1024))  :sprintf("%d B",$size);
  1455.                                                 echo "<br />$size_string";
  1456.                                                 $filedrop_count_file = "data/items/$d/filedrop/count/$dl_file" . '.txt';
  1457.                                                 if (file_exists($filedrop_count_file)) {
  1458.                                                         $fp_filedrop_count = fopen($filedrop_count_file, "r");
  1459.                                                         $filedrop_count = fread($fp_filedrop_count, filesize($filedrop_count_file));
  1460.                                                         fclose($fp_filedrop_count);
  1461.                                                         echo '<br>';
  1462.                                                         echo $filedrop_count;
  1463.                                                         if ($filedrop_count == 1) {
  1464.                                                                 echo ' download';
  1465.                                                         }
  1466.                                                         if ($filedrop_count > 1) {
  1467.                                                                 echo ' downloads';
  1468.                                                         }
  1469.                                                 }
  1470.                                                 echo '</p></td></tr></table>';
  1471.                                         }
  1472.                                 }
  1473.                         closedir($dh_filedrop);
  1474.                         }
  1475.                 }
  1476.                 echo '</div></td></tr></table>';
  1477.         }
  1478.  
  1479.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == pdf) and file_exists("data/items/$d/pdf/file")) {
  1480.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1481.                 echo '<div id=panel_title>PDF';
  1482.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1483.                         echo '<a href=del.php?entry=';
  1484.                         echo $d;
  1485.                         echo '&target=pdf><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete pdf"></a>';
  1486.                 }
  1487.                 echo '</div><div id=panel_body>';
  1488.  
  1489.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  1490.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=pdf>here</a> to enter it.";
  1491.                 }
  1492.                 else {
  1493.  
  1494.                         if ($dh_pdf = opendir("data/items/$d/pdf/file")) {
  1495.                                 while (($dl_file = readdir($dh_pdf)) !== false) {
  1496.                                         if ($dl_file != "." && $dl_file != ".." && fnmatch("*", $dl_file)) {
  1497.                                                 echo '<table border=0 cellspacing=0 cellpadding=4><tr><td>';
  1498.                                                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&download=' . $dl_file. '&type=pdf>';
  1499.                                                 echo '<img src=images/pdf.png width=48 height=48 border=0 alt="download file"></a></td>';
  1500.                                                 echo '<td><p><b>';
  1501.                                                 echo $dl_file;
  1502.                                                 echo'</b><br>';
  1503.                                                 $size = filesize("data/items/$d/pdf/file/$dl_file");
  1504.                                                 $size_string = ($size > 512)?(  ($size/1024 > 512)  ?sprintf("%.02f MB",($size/1024)/1024)  :sprintf("%.02f KB",$size/1024))  :sprintf("%d B",$size);
  1505.                                                 echo $size_string;
  1506.                                                 $pdf_count_file = "data/items/$d/pdf/count/dl.txt";
  1507.                                                 if (file_exists($pdf_count_file)) {
  1508.                                                         $fp_pdf_count = fopen($pdf_count_file, "r");
  1509.                                                         $pdf_count = fread($fp_pdf_count, filesize($pdf_count_file));
  1510.                                                         fclose($fp_pdf_count);
  1511.                                                         echo '<br>';
  1512.                                                         echo $pdf_count;
  1513.                                                         if ($pdf_count == 1) {
  1514.                                                                 echo ' download';
  1515.                                                         }
  1516.                                                         if ($pdf_count > 1) {
  1517.                                                                 echo ' downloads';
  1518.                                                         }
  1519.                                                 }
  1520.                                                 echo '</p></td></tr></table>';
  1521.                                         }
  1522.                                 }
  1523.                         closedir($dh_pdf);
  1524.                         }
  1525.                 }
  1526.                 echo '</div></td></tr></table>';
  1527.         }
  1528.  
  1529.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == comments) and !file_exists("data/nocomment.txt")) {
  1530.  
  1531.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  1532.                 }
  1533.                 else {
  1534.                         echo '<table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1535.                         if ($dh_comments = opendir("$dir/$d/comments/live")) {
  1536.                                 while (($entry_comments = readdir($dh_comments)) !== false) {
  1537.                                         if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {                                       $show_comments[] = $entry_comments;
  1538.                                         }
  1539.                                 }
  1540.                         closedir($dh_comments);
  1541.                         }
  1542.        
  1543.                         asort($show_comments);
  1544.                         reset($show_comments);
  1545.                         foreach ($show_comments as $comment) {
  1546.                                 echo '<div id=panel_title>';
  1547.        
  1548.                                 if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  1549.                                         echo '<a target=_maj href=';
  1550.                                         readfile("$dir/$d/comments/live/$comment/url.txt");
  1551.                                         echo '>';
  1552.                                 }
  1553.        
  1554.                                 readfile("$dir/$d/comments/live/$comment/firstname.txt");
  1555.                                 echo ' ';
  1556.                                 readfile("$dir/$d/comments/live/$comment/lastname.txt");
  1557.        
  1558.                                 if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  1559.                                         echo '</a>';
  1560.                                 }
  1561.        
  1562.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1563.                                         echo '  &lt;';
  1564.                                         readfile("$dir/$d/comments/live/$comment/email.txt");
  1565.                                         echo '&gt;';
  1566.                                 }
  1567.        
  1568.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1569.                                         echo '<a href=del.php?entry=' . $d . '&comment=' . $comment . '&type=live><img src=images/widget.del.png width=10 height=10 border=0 align=right alt="delete comment"></a>';
  1570.                                         echo '<a href=edit.php?entry=' . $d . '&comment=' . $comment . '><img src=images/widget.edit.png width=11 height=11 border=0 align=right alt="edit comment"></a>';
  1571.                                 }
  1572.                                 echo '</div>';
  1573.                                 echo '<div id=panel_body>';
  1574.                                 echo '<font style="font-size: 10px; color: #999999;">';
  1575.                                 readfile("$dir/$d/comments/live/$comment/timestamp.txt");
  1576.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1577.                                         if (file_exists("$dir/$d/comments/live/$comment/revisions.txt")) {
  1578.                                                 echo '  (Revision ';
  1579.                                                 readfile("$dir/$d/comments/live/$comment/revisions.txt");
  1580.                                                 echo ')';
  1581.                                         }
  1582.                                 }
  1583.                                 echo '</font><font style="font-size: 5px;"><br><br></font>';
  1584.                                 readfile("$dir/$d/comments/live/$comment/comment.txt");
  1585.                                 echo '</div>';
  1586.                         }
  1587.                         unset($show_comments);
  1588.                         echo '</td></tr></table>';
  1589.                 }
  1590.  
  1591. if (!file_exists("data/nocomment.txt")) {
  1592.  
  1593.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1594.                 echo '<p><font style="font-size: 12px;"><b>Add Comment</b></font></p>';
  1595.  
  1596.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  1597.                         echo "<p>This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
  1598.                 }
  1599.                 else {
  1600.        
  1601.                         $capcha_rand = str_rand(7);
  1602.        
  1603.                         echo '<p>Fill out the form below and enter <b>' . $capcha_rand . '</b> in the anti-spam field to add your comment. Note that it will not be posted immediately, but will be ';
  1604.                        
  1605.                         if (file_exists("data/email.txt")) {
  1606.                                 echo "e-mailed";
  1607.                         }
  1608.                         else {
  1609.                                 echo "sent";
  1610.                         }
  1611.  
  1612.                         echo ' to me first. Comments with bogus contact information will be discarded.</p>';
  1613.        
  1614.                         ?>
  1615.                        
  1616.                         <table border=0 cellspacing=2 cellpadding=0 width=500>
  1617.                         <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>?entry=<?php echo $d; ?>&show=comments" method="post">
  1618.                         <input type=hidden name=capcha_get value="<?php echo $capcha_rand; ?>">
  1619.                         <tr><td width=75><p>First Name*</p></td><td width=300><input class=input type=text autocomplete=off name=firstname maxlength=30></td><td rowspan=7 valign=top width=75 align=right>
  1620.                         <table border=0 cellspacing=1 cellpadding=2>
  1621.                         <tr><td><img src=images/smileys/crying.png border=0></td><td><p>:((</p></td><td ><p>crying</p></td></tr>
  1622.                         <tr><td><img src=images/smileys/frown.png border=0></td><td><p>:(</p></td><td><p>frown</p></td></tr>
  1623.                         <tr><td><img src=images/smileys/indifferent.png border=0></td><td><p>:|</p></td><td><p>indifferent</p></td></tr>
  1624.                         <tr><td><img src=images/smileys/laughing.png border=0></td><td><p>:D</p></td><td><p>laughing</p></td></tr>
  1625.                         <tr><td><img src=images/smileys/lick.png border=0></td><td><p>:P</p></td><td><p>lick</p></td></tr>
  1626.                         <tr><td><img src=images/smileys/ohno.png border=0></td><td><p>:O</p></td><td><p>oh no!</p></td></tr>
  1627.                         <tr><td><img src=images/smileys/smile.png border=0></td><td><p>:)</p></td><td><p>smile</p></td></tr>
  1628.                         <tr><td><img src=images/smileys/surprised.png border=0></td><td><p>=)</p></td><td><p>surprised</p></td></tr>
  1629.                         <tr><td><img src=images/smileys/undecided.png border=0></td><td><p>:\</p></td><td><p>undecided</p></td></tr>
  1630.                         <tr><td><img src=images/smileys/wink.png border=0></td><td><p>;)</p></td><td><p>wink</p></td></tr>
  1631.                         </td></tr>
  1632.                         </table>
  1633.                         <tr><td><p>Last Name*</p></td><td><input class=input type=text autocomplete=off name=lastname maxlength=30></td></tr>
  1634.                         <tr><td><p>E-mail*</p></td><td colspan=2><input class=input type=text autocomplete=off name=email maxlength=60></td></tr>
  1635.                         <tr><td><p>Website</p></td><td colspan=2><input class=input type=text autocomplete=off name=url maxlength=300></td></tr>
  1636.                         <tr><td ><p>Comment*</p></td><td ><textarea class=input name=new_comment rows=10></textarea></td></tr>
  1637.                         <tr><td><p>Anti-Spam*</p></td><td><input class=input type=text autocomplete=off name=capcha_put maxlength=7></td></tr>
  1638.                         <tr><td><p></p></td><td><input class=input type=submit value="click here to submit your comment"></td></tr>
  1639.                         </form>
  1640.                         </table>
  1641.                 <?php } ?>
  1642.                 </td></tr></table></p>
  1643.  
  1644. <?php
  1645. }
  1646.  
  1647. if (!isset($_SESSION['logged_in'])) {
  1648.         if (isset($_REQUEST['show']) and !empty($_REQUEST['show']) and isset($_REQUEST['capcha_put']) and !empty($_REQUEST['capcha_get']) and isset($_REQUEST['firstname']) and !empty($_REQUEST['firstname']) and isset($_REQUEST['lastname']) and !empty($_REQUEST['lastname']) and isset($_REQUEST['email']) and !empty($_REQUEST['email']) and isset($_REQUEST['new_comment']) and !empty($_REQUEST['new_comment']) and isset($_REQUEST['capcha_put']) and !empty($_REQUEST['capcha_put']) and ($_REQUEST['capcha_get'] == $_REQUEST['capcha_put']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
  1649.                 echo '<p><table border=0 cellspacing=0 cellpadding=0><tr><td><p><font style="font-size: 12px;"><b>Thanks!</b></font></p><p>Your comment has been submitted for approval.<br>Please check back soon to see if it has been posted.</p></td></tr></table></p>';
  1650.         }
  1651. }
  1652.  ?>
  1653.        
  1654.  
  1655.  
  1656.                 <?php
  1657.         }
  1658. }
  1659. ?>
  1660.  
  1661. <?php
  1662. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  1663.         if ($dh_pending_comments = opendir("$dir/$d/comments/pending")) {
  1664.                 while (($entry_pending_comments = readdir($dh_pending_comments)) !== false) {
  1665.                         if ($entry_pending_comments != "." && $entry_pending_comments != ".." && fnmatch("*", $entry_pending_comments)) {
  1666.                                 $show_pending_comments[] = $entry_pending_comments;
  1667.                         }
  1668.                 }
  1669.                 closedir($dh_pending_comments);
  1670.         }
  1671.  
  1672.         asort($show_pending_comments);
  1673.         reset($show_pending_comments);
  1674.         $count_pending_comments = count($show_pending_comments);
  1675.  
  1676.         if ($count_pending_comments > 0) {
  1677.                 if ($count_pending_comments == 1) {
  1678.                         echo '<p><b>Pending Comment</b></p>';
  1679.                 }
  1680.                 else {
  1681.                         echo '<p><b>Pending Comments</b></p>';
  1682.                 }
  1683.                 foreach ($show_pending_comments as $pending_comment) {
  1684.                         echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1685.                         echo '<div id=panel_title>';
  1686.  
  1687.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  1688.                                 echo '<a target=_maj href=';
  1689.                                 readfile("$dir/$d/comments/pending/$pending_comment/url.txt");
  1690.                                 echo '>';
  1691.                         }
  1692.        
  1693.                         readfile("$dir/$d/comments/pending/$pending_comment/firstname.txt");
  1694.                         echo ' ';
  1695.                         readfile("$dir/$d/comments/pending/$pending_comment/lastname.txt");
  1696.        
  1697.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  1698.                                 echo '</a>';
  1699.                         }
  1700.        
  1701.                         echo ' &lt;';
  1702.                         readfile("$dir/$d/comments/pending/$pending_comment/email.txt");
  1703.                         echo '&gt;';
  1704.                         echo '<a href=del.php?entry=' . $d . '&comment=' . $pending_comment . '&type=pending><img src=images/widget.del.png width=10 height=10 border=0 align=right alt="delete comment"></a>';
  1705.  
  1706.                         $pending_comment_key_file = "$dir/$d/comments/pending/$pending_comment/key.txt";
  1707.                         $open_pending_comment_key_file = fopen($pending_comment_key_file,"r");
  1708.                         $pending_comment_login_key = fread($open_pending_comment_key_file,filesize($pending_comment_key_file));
  1709.                         fclose($open_pending_comment_key_file);
  1710.  
  1711.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&comment=' . $pending_comment . '&key=' . $pending_comment_login_key . '&action=approve><img src=images/widget.cat.png width=11 height=11 border=0 align=right alt="post comment"></a>';
  1712.                         echo '</div>';
  1713.                         echo '<div id=panel_body>';
  1714.                         echo '<font style="font-size: 10px; color: #999999;">';
  1715.                         readfile("$dir/$d/comments/pending/$pending_comment/timestamp.txt");
  1716.                         echo '</font><font style="font-size: 5px;"><br><br></font>';
  1717.                         readfile("$dir/$d/comments/pending/$pending_comment/comment.txt");
  1718.                         echo '</div>';
  1719.                         unset($show_pending_comments);
  1720.                         echo '</td></tr></table></p>';
  1721.                 }
  1722.         }
  1723. }
  1724. ?>
  1725.  
  1726. <p><table border=0 cellspacing=0 cellpadding=0 width=100%><tr>
  1727.  
  1728. <?php
  1729. if (($start >= $increase) and ($start != 0)) {
  1730.         echo "<td align=left><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  1731.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  1732.                 echo "category={$_REQUEST['category']}&";
  1733.         }
  1734.         if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  1735.                 echo "archive={$_REQUEST['archive']}&";
  1736.         }
  1737.         echo "start=" . ($start-$increase) . "\">previous</a></p></td>";
  1738. }
  1739.  
  1740. if ($end < sizeof($items)) {
  1741.         echo "<td align=right><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  1742.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  1743.                 echo "category={$_REQUEST['category']}&";
  1744.         }
  1745.         if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  1746.                 echo "archive={$_REQUEST['archive']}&";
  1747.         }
  1748.         echo "start=" . ($start+$increase) . "\">next</a></p></td>";
  1749. }
  1750. ?>
  1751.  
  1752. </tr></table></p>
  1753.  
  1754. </td>
  1755.  
  1756. <td width=15>&nbsp;</td>
  1757. <td width=175 valign=top>
  1758.  
  1759. <?php
  1760. if ($dh_latest_items = opendir($dir)) {
  1761.         while (($entry_latest_items = readdir($dh_latest_items)) !== false) {
  1762.  
  1763.                 if (file_exists("data/items/$entry_latest_items/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1764.                         continue;
  1765.                 }
  1766.  
  1767.                 $cat_dir = file_get_contents("data/items/$entry_latest_items/category.txt");
  1768.  
  1769.                 if (file_exists("data/categories/$cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_latest_items/cat.txt")) {
  1770.                         continue;
  1771.                 }
  1772.  
  1773.                 if (file_exists("data/nocat.txt") and file_exists("data/items/$entry_latest_items/category.txt") and !file_exists("data/items/$entry_latest_items/cat.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1774.                         continue;
  1775.                 }
  1776.  
  1777.                 if ($entry_latest_items != "." && $entry_latest_items != ".." && fnmatch("*", $entry_latest_items)) {
  1778.                         $show_latest_items[] = $entry_latest_items;
  1779.                 }
  1780.         }
  1781.         closedir($dh_latest_items);
  1782. }
  1783.  
  1784. rsort($show_latest_items);
  1785. reset($show_latest_items);
  1786. $count_latest_items = count($show_latest_items);
  1787.  
  1788. if ($count_latest_items > 0) {
  1789.  
  1790.         echo '<div id=panel_title>Recent Entries</div><div id=panel_body>';
  1791.  
  1792.         $increment_recent_entries = 0;
  1793.  
  1794.         if (($count_latest_items <= $increase) or ($count_latest_items <= $increase * 2)) {
  1795.                 $increase = $count_latest_items;
  1796.                 $show_recent_entries = $increase - 1;
  1797.         }
  1798.         else {
  1799.                 $show_recent_entries = $increase * 2 - 1;
  1800.         }
  1801.  
  1802.         while ($increment_recent_entries <= $show_recent_entries) {
  1803.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
  1804.                 readfile("$dir/$show_latest_items[$increment_recent_entries]/title.txt");
  1805.                 echo '</a><br>';
  1806.                 $increment_recent_entries = $increment_recent_entries + 1;
  1807.         }
  1808. }
  1809.  
  1810. if ($count_latest_items > 0) {
  1811.         echo '</div>';
  1812. ?>
  1813.  
  1814. <form enctype="multipart/form-data" action="dig.php" method="post">
  1815. <div id=panel_title>Search</div>
  1816. <div id=panel_body>
  1817. <input type=text class=search name=search autocomplete=off maxlength=55>
  1818. </div>
  1819. </form>
  1820.  
  1821. <?php
  1822.         if (file_exists("data/categories")) {
  1823.                 if ($dh_categories = opendir("data/categories")) {
  1824.                         while (($entry_categories = readdir($dh_categories)) !== false) {
  1825.  
  1826.                                 if (file_exists("data/xcat.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1827.                                         continue;
  1828.                                 }
  1829.  
  1830.                                 if (file_exists("data/categories/$entry_categories/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1831.                                         continue;
  1832.                                 }
  1833.  
  1834.  
  1835.                                 if ($entry_categories != "." && $entry_categories != ".." && fnmatch("*", $entry_categories)) {
  1836.                                         $show_categories[] = $entry_categories;
  1837.                                 }
  1838.                         }
  1839.                         closedir($dh_categories);
  1840.                 }
  1841.  
  1842.                 sort($show_categories);
  1843.                 reset($show_categories);
  1844.                 $count_categories = count($show_categories);
  1845.  
  1846.                 if ($count_categories > 0) {
  1847.                         echo '<div id=panel_title>Categories</div><div id=panel_body>';
  1848.                         foreach ($show_categories as $category) {
  1849.                                 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
  1850.                                 if (file_exists("data/categories/$category/title.txt")) {
  1851.                                         $category_title = file_get_contents("data/categories/$category/title.txt");
  1852.                                 }
  1853.                                 else {
  1854.                                         $category_title = ucfirst($category);
  1855.                                 }
  1856.                                 echo $category_title;
  1857.                                 echo "</a><br />";
  1858.                         }
  1859.                         echo '</div>';
  1860.                 }
  1861.         }
  1862.  
  1863.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1864.                 echo '<div id=panel_title>Statistics</div><div id=panel_body>';
  1865.                 echo "Total Entries: $count_latest_items";
  1866.                 if (file_exists("data/hits.txt")) {
  1867.                         echo '<br>Site Hits: ';
  1868.                         readfile("data/hits.txt");
  1869.                 }
  1870.                 if (file_exists("data/google.txt")) {
  1871.                         echo '<br>Google Visits: ';
  1872.                         readfile("data/google.txt");
  1873.                 }
  1874.                 if (file_exists("data/rss-0.91.txt")) {
  1875.                         echo '<br>RSS 0.91 Hits: ';
  1876.                         readfile("data/rss-0.91.txt");
  1877.                 }
  1878.                 if (file_exists("data/rss-1.0.txt")) {
  1879.                         echo '<br>RSS 1.0 Hits: ';
  1880.                         readfile("data/rss-1.0.txt");
  1881.                 }
  1882.                 if (file_exists("data/rss-2.0.txt")) {
  1883.                         echo '<br>RSS 2.0 Hits: ';
  1884.                         readfile("data/rss-2.0.txt");
  1885.                 }
  1886.                 if (file_exists("data/sitemap.txt")) {
  1887.                         echo '<br>Sitemap Requests: ';
  1888.                         readfile("data/sitemap.txt");
  1889.                 }
  1890.                 echo '</div>';
  1891.         }
  1892. }
  1893.  
  1894. ?>
  1895.  
  1896.  
  1897.  
  1898. <?php
  1899. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1900.         if ($dh_pending_comment_flags = opendir("data/comments/pending")) {
  1901.                 while (($entry_pending_comment_flags = readdir($dh_pending_comment_flags)) !== false) {
  1902.                         if ($entry_pending_comment_flags != "." && $entry_pending_comment_flags != ".." && fnmatch("*", $entry_pending_comment_flags)) {
  1903.                                 $show_pending_comment_flags[] = $entry_pending_comment_flags;
  1904.                         }
  1905.                 }
  1906.                 closedir($dh_pending_comment_flags);
  1907.         }
  1908.  
  1909.         rsort($show_pending_comment_flags);
  1910.         reset($show_pending_comment_flags);
  1911.         $count_pending_comment_flags = count($show_pending_comment_flags);
  1912.  
  1913.         if (($count_latest_items > 0) and ($count_pending_comment_flags > 0)) {
  1914.                 echo '<div id=panel_title>Pending Comments</div>';
  1915.                 echo '<div id=panel_body>';
  1916.                 if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
  1917.                         while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
  1918.                                 if ($entry_list_pending_comment_flags != "." && $entry_list_pending_comment_flags != ".." && fnmatch("*", $entry_list_pending_comment_flags)) {
  1919.                                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments>';
  1920.                                         readfile("data/items/$entry_list_pending_comment_flags/title.txt");
  1921.                                         echo '</a><br><font style="font-size: 10px; color: #999999;">';
  1922.                                         $fp_comment_count_txt = fopen("data/comments/pending/$entry_list_pending_comment_flags/count.txt","r");
  1923.                                         $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$entry_list_pending_comment_flags/count.txt"));
  1924.                                         fclose($fp_comment_count_txt);
  1925.                                         if ($comment_count_value == 1) {
  1926.                                                 echo ' ( ' . $comment_count_value . ' comment ) ';
  1927.                                         }
  1928.                                         elseif ($comment_count_value > 1) {
  1929.                                                 echo ' ( ' . $comment_count_value . ' comments ) ';
  1930.                                         }
  1931.                                         else {
  1932.                                                 echo '';
  1933.                                         }
  1934.                                         echo '</font><br>';
  1935.                                 }
  1936.                         }
  1937.                         closedir($dh_list_pending_comment_flags);
  1938.                 }
  1939.                 echo '</div>';
  1940.         }
  1941. }
  1942. ?>
  1943.  
  1944.  
  1945.  
  1946. <?php
  1947. if (file_exists("data/albums")) {
  1948.         if ($dh_album_list = opendir("data/albums")) {
  1949.                 while (($entry_album_list = readdir($dh_album_list)) !== false) {
  1950.  
  1951.                         if (file_exists("data/items/$entry_album_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1952.                                 continue;
  1953.                         }
  1954.  
  1955.                         $pull_cat_dir = file_get_contents("data/items/$entry_album_list/category.txt");
  1956.  
  1957.                         if (file_exists("data/categories/$pull_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_album_list/cat.txt")) {
  1958.                                 continue;
  1959.                         }
  1960.  
  1961.                         if ($entry_album_list != "." && $entry_album_list != ".." && fnmatch("*", $entry_album_list)) {
  1962.                                 $show_album_list[] = $entry_album_list;
  1963.                         }
  1964.                 }
  1965.                 closedir($dh_album_list);
  1966.         }
  1967.  
  1968.         rsort($show_album_list);
  1969.         reset($show_album_list);
  1970.         $count_album_list = count($show_album_list);
  1971.        
  1972.         if ($count_album_list > 0) {
  1973.                 echo '<div id=panel_title>Albums</div>';
  1974.                 echo '<div id=panel_body>';
  1975.                 foreach ($show_album_list as $album_list_entry) {
  1976.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
  1977.                         echo $album_list_entry;
  1978.                         echo '&show=album>';
  1979.                         readfile("data/items/$album_list_entry/title.txt");
  1980.                         echo '</a><br>';
  1981.                 }
  1982.                 echo '</div>';
  1983.         }
  1984. }
  1985. ?>
  1986.  
  1987.  
  1988.  
  1989. <?php
  1990. if (file_exists("data/items")) {
  1991.         if ($dh_archive_list = opendir("data/items")) {
  1992.                 while (($entry_archive_list = readdir($dh_archive_list)) !== false) {
  1993.  
  1994.                         if (file_exists("data/xarc.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1995.                                 continue;
  1996.                         }
  1997.  
  1998.                         if (file_exists("data/items/$entry_archive_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1999.                                 continue;
  2000.                         }
  2001.  
  2002.                         $get_cat_dir = file_get_contents("data/items/$entry_archive_list/category.txt");
  2003.  
  2004.                         if (file_exists("data/categories/$get_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_archive_list/cat.txt")) {
  2005.                                 continue;
  2006.                         }
  2007.  
  2008.                         if ($entry_archive_list != "." && $entry_archive_list != ".." && fnmatch("*", $entry_archive_list)) {
  2009.                                 $entry_archive_list = substr("$entry_archive_list",0,6);
  2010.                                 $show_archive_list[] = $entry_archive_list;
  2011.                         }
  2012.                 }
  2013.                 closedir($dh_archive_list);
  2014.         }
  2015.  
  2016.         rsort($show_archive_list);
  2017.         reset($show_archive_list);
  2018.         $count_archive_list = count($show_archive_list);
  2019.        
  2020.         if ($count_archive_list > 0) {
  2021.  
  2022.                 $archive_entries = implode(" ",$show_archive_list);
  2023.                 $unique_archive_list = array_unique($show_archive_list);
  2024.                 echo "<div id=panel_title>Archives ($count_archive_list)</div>";
  2025.                 echo "<div id=panel_body>";
  2026.                 foreach ($unique_archive_list as $archive_list_entry) {
  2027.                         $archive_list_value = substr($archive_list_entry,0,6);
  2028.                         $archive_list_year = substr($archive_list_entry,0,4);
  2029.                         $archive_list_month = substr($archive_list_entry,4,2);
  2030.                         $archive_list_month = date("F",mktime(0,0,0,$archive_list_month));
  2031.                         echo "<a href=\"index.php?archive=$archive_list_value\">$archive_list_month $archive_list_year</a> (";
  2032.                         echo substr_count($archive_entries,$archive_list_entry);
  2033.                         echo ")<br>";
  2034.                 }
  2035.                 echo "</select></div></form>";
  2036.         }
  2037. }
  2038.  
  2039. ?>
  2040.  
  2041.  
  2042.  
  2043. <?php
  2044.  
  2045. if (file_exists("data/clustrmaps.php")) {
  2046.         echo '<div id=panel_title>ClustrMaps</div>';
  2047.         echo '<div id=panel_body><center>';
  2048.         include("data/clustrmaps.php");
  2049.         echo '</center></div>';
  2050. }
  2051. ?>
  2052.  
  2053. <?php
  2054.  
  2055. if (file_exists("data/adsense.php")) {
  2056.         echo '<div id=panel_title>AdSense</div>';
  2057.         echo '<div id=panel_body><center>';
  2058.         include("data/adsense.php");   
  2059.         echo '</center></div>';
  2060. }
  2061. ?>
  2062.  
  2063. <?php
  2064. if (file_exists("data/panels")) {
  2065.         if ($dh_right_panel_list = opendir("data/panels")) {
  2066.                 while (($entry_right_panel_list = readdir($dh_right_panel_list)) !== false) {
  2067.  
  2068.                         if (file_exists("data/panels/$entry_right_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  2069.                                 continue;
  2070.                         }
  2071.  
  2072.                         if (!file_exists("data/panels/$entry_right_panel_list/right.txt")) {
  2073.                                 continue;
  2074.                         }
  2075.  
  2076.                         if ($entry_right_panel_list != "." && $entry_right_panel_list != ".." && fnmatch("*", $entry_right_panel_list)) {
  2077.                                 $show_right_panel_list[] = $entry_right_panel_list;
  2078.                         }
  2079.                 }
  2080.                 closedir($dh_right_panel_list);
  2081.         }
  2082.  
  2083.         sort($show_right_panel_list);
  2084.         reset($show_right_panel_list);
  2085.         $count_right_panel_list = count($show_right_panel_list);
  2086.        
  2087.         if ($count_right_panel_list > 0) {
  2088.                 foreach ($show_right_panel_list as $right_panel_list_entry) {
  2089.                         if (!file_exists("data/panels/$right_panel_list_entry/free.txt")) {
  2090.                                 echo '<div id=panel_title>';
  2091.                                 readfile("data/panels/$right_panel_list_entry/title.txt");
  2092.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2093.                                         echo "<a href=panels.php#{$right_panel_list_entry}>";
  2094.                                         echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
  2095.                                 }
  2096.                                 echo '</div><div id=panel_body>';
  2097.                         }
  2098.                         if (file_exists("data/panels/$right_panel_list_entry/free.txt")) {
  2099.                                 echo '<div id=panel_free>';
  2100.                         }
  2101.                         include("data/panels/$right_panel_list_entry/panel.php");
  2102.                         echo '</div>';
  2103.                 }
  2104.         }
  2105. }
  2106. ?>
  2107.  
  2108. <?php
  2109.  
  2110. if ($count_latest_items > 0) {
  2111.         echo '<p><table border=0 cellspacing=2 cellpadding=0 width=100%>';
  2112.         echo '<tr><td align=center><a target="_button" href="http://engels.mortega.net/index.php?entry=20050521000019"><img src=images/button.maj.png border=0 width=80 height=15></a></td></tr>';
  2113.         echo '<tr><td align=center><a target="_button" href="http://php.net/"><img src=images/button.php.png border=0 width=80 height=15></a></td></tr>';
  2114.         $validate_uri = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  2115.         $validate_uri = str_replace('//', '/', $validate_uri);
  2116.         $validate_uri = "http://" . $validate_uri;
  2117.         echo '<tr><td align=center><a target="_button" href="http://jigsaw.w3.org/css-validator/validator?uri=' . $validate_uri . '"><img src=images/button.w3c.css.png border=0 width=80 height=15></a></td></tr>';
  2118.         echo '<tr><td align=center><a target="_button" href="rss.php?ver=0.91"><img src=images/button.rss-0.91.png border=0 width=80 height=15></a></td></tr>';
  2119.         echo '<tr><td align=center><a target="_button" href="rss.php?ver=1.0"><img src=images/button.rss-1.0.png border=0 width=80 height=15></a></td></tr>';
  2120.         echo '<tr><td align=center><a target="_button" href="rss.php?ver=2.0"><img src=images/button.rss-2.0.png border=0 width=80 height=15></a></td></tr>';
  2121.         echo '<tr><td align=center><a target="_button" href="sitemap.php"><img src=images/button.sitemap.png border=0 width=80 height=15></a></td></tr>';
  2122.         if (file_exists("data/sfx.txt")) {
  2123.                 $fp_sfx = fopen("data/sfx.txt", "r");
  2124.                 $sfx = fread($fp_sfx, filesize("data/sfx.txt"));
  2125.                 fclose($fp_sfx);
  2126.                 echo '<tr><td align=center><a target="_button" href="http://www.spreadfirefox.com/?q=affiliates&amp;id=' . $sfx . '&amp;t=85"><img src=images/button.firefox.png border=0 width=80 height=15></a></td></tr>';
  2127.         }
  2128.         echo '</table></p>';
  2129.  
  2130. }
  2131.  
  2132. ?>
  2133.  
  2134. <p></p>
  2135.  
  2136. </td></tr>
  2137. </table>
  2138.  
  2139. <?php
  2140. if (file_exists("footer.php")) {
  2141.         echo '<p></p>';
  2142.         include("footer.php");
  2143. }
  2144. ?>
  2145.  
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