maj.world

maj.world

Git

This blob has been accessed 303 times via Git panel.

  1. <?php
  2.  
  3. session_start();
  4. header("Cache-control: private");
  5.  
  6. $dir = "data/items";
  7.  
  8. $default_title = file_get_contents("data/title.txt");
  9.  
  10.  
  11. if (file_exists("data/offset.txt")) {
  12.         $offset = file_get_contents("data/offset.txt");
  13. }
  14. else {
  15.         $offset = 0;
  16. }
  17.  
  18. if (file_exists("data/increase.txt")) {
  19.         $increase = file_get_contents("data/increase.txt");
  20. }
  21. else {
  22.         $increase = 5;
  23. }
  24.  
  25. $default_blog_title = "My Activity Journal";
  26. $default_username = "maj";
  27. $default_password = "php";
  28. $default_blog_profile = "This cool site is powered by <a href=http://engels.mortega.net/index.php?entry=20050521000019 target=_blank>My Activity Journal</a>, a dead-simple, <a href=http://php.net/ target=_blank>PHP</a>-based, <a href=http://www.opensource.org/licenses/gpl-license.php target=_blank>GPL</a>'ed blog written from scratch as a spare time family project by <a href=http://engels.mortega.net/ target=_blank>Engels</a>, <a href=http://gaffud.com/ target=_blank>Magie</a>, and <a href=http://psylocke.org/ target=_blank>Psylocke</a> Antonio.";
  29. $default_blog_author = "My Activity Journal";
  30. $default_blog_email = "root@localhost";
  31.  
  32. if (!file_exists("data")) {
  33.         mkdir("data");
  34.         chmod("data", 0777);
  35.         chmod("images/smileys", 0777);
  36. }
  37.  
  38. if (!file_exists("data/.htaccess")) {
  39.         $htaccess = "Order deny,allow\nDeny from all";
  40.         $fp_htaccess_txt = fopen("data/.htaccess","w");
  41.         fwrite($fp_htaccess_txt, $htaccess);
  42.         fclose($fp_htaccess_txt);
  43. }
  44.  
  45. if (!file_exists("data/title.txt")) {
  46.         $fp_default_title_txt = fopen("data/title.txt","w");
  47.         fwrite($fp_default_title_txt, $default_blog_title);
  48.         fclose($fp_default_title_txt);
  49.         chmod("data/title.txt", 0666);
  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.         chmod("data/username.txt", 0666);
  57. }
  58.  
  59. if (!file_exists("data/password.txt")) {
  60.         $default_password = sha1($default_password);
  61.         $default_password = md5($default_password);
  62.         $default_password = crypt($default_password, $default_password);
  63.         $fp_htaccess_txt = fopen("data/password.txt","w");
  64.         fwrite($fp_htaccess_txt, $default_password);
  65.         fclose($fp_htaccess_txt);
  66.         chmod("data/password.txt", 0666);
  67. }
  68.  
  69. if (!file_exists("data/profile.php")) {
  70.         $fp_default_profile_txt = fopen("data/profile.php","w");
  71.         fwrite($fp_default_profile_txt, $default_blog_profile);
  72.         fclose($fp_default_profile_txt);
  73.         chmod("data/profile.php", 0666);
  74. }
  75.  
  76. if (!file_exists("data/author.txt")) {
  77.         $fp_default_author_txt = fopen("data/author.txt","w");
  78.         fwrite($fp_default_author_txt, $default_blog_author);
  79.         fclose($fp_default_author_txt);
  80.         chmod("data/author.txt", 0666);
  81. }
  82.  
  83. if (!file_exists("data/email.txt")) {
  84.         $fp_default_email_txt = fopen("data/email.txt","w");
  85.         fwrite($fp_default_email_txt, $default_blog_email);
  86.         fclose($fp_default_email_txt);
  87.         chmod("data/email.txt", 0666);
  88. }
  89.  
  90. $username_file = 'data/username.txt';
  91. $open_username_file = fopen($username_file,"r");
  92. $login_username = fread($open_username_file,filesize($username_file));
  93. fclose($open_username_file);
  94.  
  95. if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  96.         $global_hits_file = fopen("data/hits.txt", "r");
  97.         $global_hits_count = fread($global_hits_file, filesize("data/hits.txt"));
  98.         fclose($global_hits_file);
  99.         $global_hits_count = $global_hits_count + 1;
  100.         $global_hits_file = fopen("data/hits.txt", "w");
  101.         fwrite($global_hits_file, $global_hits_count);
  102.         fclose($global_hits_file);
  103.         chmod("data/hits.txt", 0666);
  104. }
  105.  
  106. $agent = $_SERVER['HTTP_USER_AGENT'];
  107.  
  108. if (@ereg("Google", $agent)) {
  109.         $google_hits_file = fopen("data/google.txt", "r");
  110.         $google_hits_count = fread($google_hits_file, filesize("data/google.txt"));
  111.         fclose($google_hits_file);
  112.         $google_hits_count = $google_hits_count + 1;
  113.         $google_hits_file = fopen("data/google.txt", "w");
  114.         fwrite($google_hits_file, $google_hits_count);
  115.         fclose($google_hits_file);
  116.         chmod("data/google.txt", 0666);
  117. }
  118.  
  119. function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789')
  120. {
  121.     $str = '';
  122.     $seeds_count = strlen($seeds);
  123.  
  124.     list($usec, $sec) = explode(' ', microtime());
  125.     $seed = (float) $sec + ((float) $usec * 100000);
  126.     mt_srand($seed);
  127.  
  128.     for ($i = 0; $length > $i; $i++) {
  129.         $str .= $seeds{mt_rand(0, $seeds_count - 1)};
  130.     }
  131.  
  132.     return $str;
  133. }
  134.  
  135. function rmdirr($recurse_dirname)
  136. {
  137.  
  138.     if (!file_exists($recurse_dirname)) {
  139.         return false;
  140.     }
  141.  
  142.     if (is_file($recurse_dirname)) {
  143.         return unlink($recurse_dirname);
  144.     }
  145.  
  146.     $recurse_dir = dir($recurse_dirname);
  147.     while (false !== $recurse_entry = $recurse_dir->read()) {
  148.  
  149.         if ($recurse_entry == '.' || $recurse_entry == '..') {
  150.             continue;
  151.         }
  152.  
  153.         rmdirr("$recurse_dirname/$recurse_entry");
  154.     }
  155.  
  156.     $recurse_dir->close();
  157.     return rmdir($recurse_dirname);
  158. }
  159.  
  160. if (isset($_REQUEST['download']) and !empty($_REQUEST['download'])) {
  161.         ini_set('zlib.output_compression','off');
  162.         $file = str_replace('../','', @$_REQUEST['download']);
  163.         go_download($file);
  164.         die();
  165. }
  166.  
  167. function go_download($entry_filedrop) {
  168.         $d = $_REQUEST['entry'];
  169.         header("Cache-Control: ");
  170.         header("Pragma: ");
  171.         header("Content-type: application/octet-stream");
  172.         header("Content-Disposition: attachment; filename=\"" . $entry_filedrop . "\"");
  173.         header("Content-length: " . filesize("data/items/$d/filedrop/files/$entry_filedrop"));
  174.         $get_it = fopen("data/items/$d/filedrop/files/$entry_filedrop", 'rb');
  175.  
  176.         while (!feof($get_it)) {
  177.                 $buf = fread($get_it, 4096);
  178.                 echo $buf;
  179.                 $bytes_sent+=strlen($buf);
  180.         }
  181.  
  182.         if ($bytes_sent==filesize("data/items/$d/filedrop/files/$entry_filedrop")) {
  183.  
  184.                 $filedrop_dl_count_dir = 'data/items/' . $_REQUEST['entry'] . '/filedrop/count';
  185.                 if (!file_exists($filedrop_dl_count_dir)) {
  186.                         mkdir($filedrop_dl_count_dir);
  187.                         chmod($filedrop_dl_count_dir, 0777);
  188.                 }
  189.  
  190.                 $unique_downloads = $filedrop_dl_count_dir . '/' . $entry_filedrop . '.txt';
  191.                 $fp_unique_downloads = fopen($unique_downloads, "r");
  192.                 $count_unique_downloads = fread($fp_unique_downloads, filesize($unique_downloads));
  193.                 fclose($fp_unique_downloads);
  194.                 $count_unique_downloads = $count_unique_downloads + 1;
  195.                 $fp_unique_downloads = fopen($unique_downloads, "w");
  196.                 fwrite($fp_unique_downloads, $count_unique_downloads);
  197.                 fclose($fp_unique_downloads);
  198.                 chmod($unique_downloads, 0666);
  199.         }
  200. }
  201.  
  202. 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'])) {
  203.                 $comment_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/pending/' . $_REQUEST['comment'];
  204.                 $key_file = $comment_dir . '/key.txt';
  205.                 $open_key_file = fopen($key_file,"r");
  206.                 $login_key = fread($open_key_file,filesize($key_file));
  207.                 fclose($open_key_file);
  208.  
  209.                 if ($_REQUEST['key'] == $login_key) {
  210.                         if ($_REQUEST['action'] == "approve") {
  211.                                 $live_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/live/' . $_REQUEST['comment'];
  212.                                 rename($comment_dir, $live_dir);
  213.                                 unlink("$live_dir/key.txt");
  214.                         }
  215.                         if ($_REQUEST['action'] == "delete") {
  216.                                 rmdirr($comment_dir);
  217.                         }
  218.                         $pending_comment_flag_dir = $_REQUEST['entry'];
  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.                         if ($comment_count_value <= 1) {
  223.                                 rmdirr("data/comments/pending/$pending_comment_flag_dir");
  224.                         }
  225.                         else {
  226.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
  227.                                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
  228.                                 fclose($fp_comment_count_txt);
  229.                                 $comment_count_value = $comment_count_value - 1;
  230.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","w");
  231.                                 fwrite($fp_comment_count_txt, $comment_count_value);
  232.                                 fclose($fp_comment_count_txt);
  233.                                 chmod("data/comments/pending/$pending_comment_flag_dir/count.txt", 0666);
  234.                         }
  235.  
  236.                         header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '?entry=' . $_REQUEST['entry'] . '&show=comments');
  237.                 }
  238. }
  239.  
  240. if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  241.         $check = $dir . '/' . $_REQUEST['entry'];
  242.  
  243.         if (file_exists("$check")) {
  244.                 $filter = $_REQUEST['entry'];
  245.                 echo '<title>';
  246.                 $title = $check . '/title.txt';
  247.                 readfile($title);
  248.                 echo '</title>';
  249.                 $views = $check . '/views.txt';
  250.                 if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  251.                         $fp_views = fopen($views, "r");
  252.                         $count_views = fread($fp_views, filesize($views));
  253.                         fclose($fp_views);
  254.                         $count_views = $count_views + 1;
  255.                         $fp_views = fopen($views, "w");
  256.                         fwrite($fp_views, $count_views);
  257.                         fclose($fp_views);
  258.                         chmod($views, 0666);
  259.                 }
  260.                
  261.                 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']))) {
  262.                
  263.                 if (!file_exists("$check/comments")) {
  264.                         mkdir("$check/comments");
  265.                         chmod("$check/comments", 0777);
  266.                 }
  267.                 if (!file_exists("$check/comments/pending")) {
  268.                         mkdir("$check/comments/pending");
  269.                         chmod("$check/comments/pending", 0777);
  270.                 }
  271.  
  272.                 if (!file_exists("$check/comments/live")) {
  273.                         mkdir("$check/comments/live");
  274.                         chmod("$check/comments/live", 0777);
  275.                 }
  276.  
  277.                 // GNU date format
  278.                 //$timestamp = date("D M j H:i:s \P\H\T Y", time() + $offset);
  279.  
  280.                 // Simple PHP Blog format
  281.                 $timestamp = date("l, M j, Y, g:i A", time() + $offset);
  282.  
  283.                 $comment_entry_dir = date("YmdHis", time() + $offset);
  284.  
  285.                 mkdir("$check/comments/pending/$comment_entry_dir");
  286.                 chmod("$check/comments/pending/$comment_entry_dir", 0777);
  287.  
  288.                 $body_content = ucfirst($_REQUEST['new_comment']);
  289.                 $body_content = htmlentities($body_content, ENT_NOQUOTES);
  290.                 // $body_content = str_replace('href=', 'rel=nofollow target=_blank href=', $body_content);
  291.                 $body_content = str_replace("\n", '<br />', $body_content);
  292.                 $body_content = trim($body_content);
  293.  
  294.                 $body_content = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $body_content);
  295.  
  296.                 $body_content = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $body_content);
  297.  
  298.                 $body_content = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $body_content);
  299.  
  300.                 $body_content = str_replace(':D', '<img src=images/smileys/laughing.png border=0>', $body_content);
  301.  
  302.                 $body_content = str_replace(':P', '<img src=images/smileys/lick.png border=0>', $body_content);
  303.  
  304.                 $body_content = str_replace(':O', '<img src=images/smileys/ohno.png border=0>', $body_content);
  305.  
  306.                 $body_content = str_replace(':)', '<img src=images/smileys/smile.png border=0>', $body_content);
  307.  
  308.                 $body_content = str_replace('=)', '<img src=images/smileys/surprised.png border=0>', $body_content);
  309.  
  310.                 $body_content = str_replace(':\\', '<img src=images/smileys/undecided.png border=0>', $body_content);
  311.  
  312.                 $body_content = str_replace(';)', '<img src=images/smileys/wink.png border=0>', $body_content);
  313.  
  314.                 $fp_body_txt = fopen("$check/comments/pending/$comment_entry_dir/comment.txt","w");
  315.                 chmod($fp_body_txt, 0666);
  316.                 fwrite($fp_body_txt,$body_content);
  317.                 fclose($fp_body_txt);
  318.  
  319.                 $fp_timestamp_txt = fopen("$check/comments/pending/$comment_entry_dir/timestamp.txt","w");
  320.                 chmod($fp_timestamp_txt, 0666);
  321.                 fwrite($fp_timestamp_txt,$timestamp);
  322.                 fclose($fp_timestamp_txt);
  323.  
  324.                 $fp_firstname_txt = fopen("$check/comments/pending/$comment_entry_dir/firstname.txt","w");
  325.                 chmod($fp_firstname_txt, 0666);
  326.                 $firstname = ucwords($_REQUEST['firstname']);
  327.                 $firstname = trim($firstname);
  328.                 $firstname = htmlentities($firstname, ENT_NOQUOTES);
  329.                 fwrite($fp_firstname_txt,$firstname);
  330.                 fclose($fp_firstname_txt);
  331.  
  332.                 $fp_lastname_txt = fopen("$check/comments/pending/$comment_entry_dir/lastname.txt","w");
  333.                 chmod($fp_lastname_txt, 0666);
  334.                 $lastname = ucwords($_REQUEST['lastname']);
  335.                 $lastname = trim($lastname);
  336.                 $lastname = htmlentities($lastname, ENT_NOQUOTES);
  337.                 fwrite($fp_lastname_txt,$lastname);
  338.                 fclose($fp_lastname_txt);
  339.  
  340.                 $fp_email_txt = fopen("$check/comments/pending/$comment_entry_dir/email.txt","w");
  341.                 chmod($fp_email_txt, 0666);
  342.                 $email = str_replace('@', ' at ', $_REQUEST['email']);
  343.                 $email = strtolower($email);
  344.                 $email = trim($email);
  345.                 $email = htmlentities($email, ENT_NOQUOTES);
  346.                 fwrite($fp_email_txt,$email);
  347.                 fclose($fp_email_txt);
  348.  
  349.                 if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
  350.                         $fp_url_txt = fopen("$check/comments/pending/$comment_entry_dir/url.txt","w");
  351.                         chmod($fp_url_txt, 0666);
  352.                         $url = str_replace('http://', '', $_REQUEST['url']);
  353.                         $url = strtolower($url);
  354.                         $url = trim($url);
  355.                         $url = 'http://' . $url;
  356.                         $url = htmlentities($url, ENT_NOQUOTES);
  357.                         fwrite($fp_url_txt,$url);
  358.                         fclose($fp_url_txt);
  359.                 }
  360.  
  361.                 $key_rand = str_rand(14);
  362.                 $fp_key_txt = fopen("$check/comments/pending/$comment_entry_dir/key.txt","w");
  363.                 chmod($fp_key_txt, 0666);
  364.                 fwrite($fp_key_txt,$key_rand);
  365.                 fclose($fp_key_txt);
  366.  
  367.                 $comment_quote = ucfirst($_REQUEST['new_comment']);
  368.                 $comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
  369.  
  370.                 $sig_author_file = "data/author.txt";
  371.                 $fp_sig_author = fopen($sig_author_file, "r");
  372.                 $sig_author = fread($fp_sig_author, filesize($sig_author_file));
  373.                 fclose($fp_sig_author);
  374.  
  375.                 $sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  376.                 $sig_url = str_replace('//', '/', $sig_url);
  377.                 $sig_url = "http://" . $sig_url;
  378.  
  379.                 $email_to = strtolower($_REQUEST['email']);
  380.                 $email_to = $firstname . " " . $lastname . ' <' . $email_to . '>';
  381.  
  382.                 $from_email_file = "data/email.txt";
  383.                 $fp_from_email = fopen($from_email_file, "r");
  384.                 $from_email = fread($fp_from_email, filesize($from_email_file));
  385.                 fclose($fp_from_email);
  386.  
  387.                 $mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
  388.  
  389.                 $commented_entry_title_file = "data/items/{$_REQUEST['entry']}/title.txt";
  390.                 $fp_commented_entry_title = fopen($commented_entry_title_file, "r");
  391.                 $commented_entry_title = fread($fp_commented_entry_title, filesize($commented_entry_title_file));
  392.                 fclose($fp_commented_entry_title);
  393.  
  394.                 if (!file_exists("data/nak.txt")) {
  395.                         $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";
  396.  
  397.                         $comment_thanks = wordwrap($comment_thanks);
  398.  
  399.                         mail($email_to, "Thanks for posting a comment on my blog!", $comment_thanks,
  400.                                 "From: $from_email\r\n" .
  401.                                 "Reply-To: $from_email\r\n" .
  402.                                 "X-Mailer: $mailer");
  403.                 }
  404.  
  405.                 $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.";
  406.  
  407.                 $comment_notice = wordwrap($comment_notice);
  408.  
  409.                 mail($from_email, "Pending Blog Comment", $comment_notice,
  410.                         "From: $from_email\r\n" .
  411.                         "Reply-To: $from_email\r\n" .
  412.                         "X-Mailer: $mailer");
  413.  
  414.                 if (!file_exists("data/comments")) {
  415.                         mkdir("data/comments");
  416.                         chmod("data/comments", 0777);
  417.                 }
  418.  
  419.                 if (!file_exists("data/comments/pending")) {
  420.                         mkdir("data/comments/pending");
  421.                         chmod("data/comments/pending", 0777);
  422.                 }
  423.  
  424.                 $pending_comment_flag = $_REQUEST['entry'];
  425.  
  426.                 if (!file_exists("data/comments/pending/$pending_comment_flag")) {
  427.                         mkdir("data/comments/pending/$pending_comment_flag");
  428.                         chmod("data/comments/pending/$pending_comment_flag", 0777);
  429.                 }
  430.  
  431.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","r");
  432.                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag/count.txt"));
  433.                 fclose($fp_comment_count_txt);
  434.                 $comment_count_value = $comment_count_value + 1;
  435.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","w");
  436.                 fwrite($fp_comment_count_txt, $comment_count_value);
  437.                 fclose($fp_comment_count_txt);
  438.                 chmod("data/comments/pending/$pending_comment_flag/count.txt", 0666);
  439.  
  440.                 }
  441.  
  442.         }
  443.         else {
  444.                 echo '<title>' . $default_title . '</title>';
  445.                 $filter = "*";
  446.         }
  447. }
  448. else {
  449.         echo '<title>' . $default_title . '</title>';
  450.         $filter = "*";
  451. }
  452.  
  453. ?>
  454.  
  455. <style>
  456.  
  457. body
  458. {
  459.         color: <?php
  460. if (file_exists("data/colors/font.txt")) {
  461.         $font_color = file_get_contents("data/colors/font.txt");
  462.         echo $font_color;
  463. }
  464. else {
  465.         echo "#666666";
  466. }
  467. ?>;
  468.         margin: 10px;
  469.         padding: 0px;
  470.         text-align: left;
  471.         font-family: verdana, helvetica, sans-serif;
  472.         background-color: <?php
  473. if (file_exists("data/colors/background.txt")) {
  474.         $background_color = file_get_contents("data/colors/background.txt");
  475.         echo $background_color;
  476. }
  477. else {
  478.         echo "#FFFFFF";
  479. }
  480. ?>;
  481.         <?php
  482.         if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  483.         background-image: url('images/background.gif');
  484.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  485.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  486.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  487.         <?php
  488.         }
  489.         if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  490.         background-image: url('images/background.jpg');
  491.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  492.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  493.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  494.         <?php
  495.         }
  496.         if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>
  497.         background-image: url('images/background.png');
  498.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  499.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  500.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  501.         <?php
  502.         }
  503.         ?>
  504. }
  505.  
  506. p, td
  507. {
  508.         font-size: 11px;
  509. }
  510.  
  511. a
  512. {
  513.         font-weight: bold;
  514.         text-decoration: none;
  515. }
  516.  
  517. a:link
  518. {
  519.         color: <?php
  520. if (file_exists("data/colors/a-link.txt")) {
  521.         $a_link_color = file_get_contents("data/colors/a-link.txt");
  522.         echo $a_link_color;
  523. }
  524. else {
  525.         echo "#666666";
  526. }
  527. ?>;
  528. }
  529.  
  530. a:visited
  531. {
  532.         color: <?php
  533. if (file_exists("data/colors/a-visited.txt")) {
  534.         $a_visited_color = file_get_contents("data/colors/a-visited.txt");
  535.         echo $a_visited_color;
  536. }
  537. else {
  538.         echo "#666666";
  539. }
  540. ?>;
  541. }
  542.  
  543. a:hover
  544. {
  545.         color: <?php
  546. if (file_exists("data/colors/a-hover.txt")) {
  547.         $a_hover_color = file_get_contents("data/colors/a-hover.txt");
  548.         echo $a_hover_color;
  549. }
  550. else {
  551.         echo "#336699";
  552. }
  553. ?>;
  554. }
  555.  
  556. a:active {
  557.         color: <?php
  558. if (file_exists("data/colors/a-active.txt")) {
  559.         $a_active_color = file_get_contents("data/colors/a-active.txt");
  560.         echo $a_active_color;
  561. }
  562. else {
  563.         echo "#336699";
  564. }
  565. ?>;
  566. }
  567. #panel_title
  568. {
  569.         font-family: verdana, helvetica, sans-serif;
  570.         font-size: 12px;
  571.         font-weight: bold;
  572.         color: <?php
  573. if (file_exists("data/colors/panel-title-font.txt")) {
  574.         $panel_title_font_color = file_get_contents("data/colors/panel-title-font.txt");
  575.         echo $panel_title_font_color;
  576. }
  577. else {
  578.         echo "#666666";
  579. }
  580. ?>;
  581.         padding: 5px 5px 5px 5px;
  582.         background-color: <?php
  583. if (file_exists("data/colors/panel-title-background.txt")) {
  584.         $panel_title_background_color = file_get_contents("data/colors/panel-title-background.txt");
  585.         echo $panel_title_background_color;
  586. }
  587. else {
  588.         echo "#FFFFFF";
  589. }
  590. ?>;
  591.         margin: 0px;
  592.         border-color: <?php
  593. if (file_exists("data/colors/border.txt")) {
  594.         $panel_title_border_color = file_get_contents("data/colors/border.txt");
  595.         echo $panel_title_border_color;
  596. }
  597. else {
  598.         echo "#CCCCCC";
  599. }
  600. ?>;
  601.         border-width: 1px 1px 0px 1px;
  602.         border-style: solid solid none solid;
  603. }
  604. #panel_body
  605. {
  606.         font-family: verdana, helvetica, sans-serif;
  607.         font-size: 11px;
  608.         color: <?php
  609. if (file_exists("data/colors/panel-body-font.txt")) {
  610.         $panel_body_font_color = file_get_contents("data/colors/panel-body-font.txt");
  611.         echo $panel_body_font_color;
  612. }
  613. else {
  614.         echo "#666666";
  615. }
  616. ?>;
  617.         padding: 5px 5px 5px 5px;
  618.         background-color: <?php
  619. if (file_exists("data/colors/panel-body-background.txt")) {
  620.         $panel_body_background_color = file_get_contents("data/colors/panel-body-background.txt");
  621.         echo $panel_body_background_color;
  622. }
  623. else {
  624.         echo "#FFFFFF";
  625. }
  626. ?>;
  627.         margin: 0px;
  628.         border-color: <?php
  629. if (file_exists("data/colors/border.txt")) {
  630.         $panel_body_border_color = file_get_contents("data/colors/border.txt");
  631.         echo $panel_body_border_color;
  632. }
  633. else {
  634.         echo "#CCCCCC";
  635. }
  636. ?>;
  637.         border-width: 1px 1px 1px 1px;
  638.         border-style: solid solid solid solid;
  639. }
  640. #panel_footer
  641. {
  642.         font-family: verdana, helvetica, sans-serif;
  643.         font-size: 11px;
  644.         color: <?php
  645. if (file_exists("data/colors/panel-footer-font.txt")) {
  646.         $panel_footer_font_color = file_get_contents("data/colors/panel-footer-font.txt");
  647.         echo $panel_footer_font_color;
  648. }
  649. else {
  650.         echo "#666666";
  651. }
  652. ?>;
  653.         padding: 5px 5px 5px 5px;
  654.         background-color: <?php
  655. if (file_exists("data/colors/panel-footer-background.txt")) {
  656.         $panel_footer_background_color = file_get_contents("data/colors/panel-footer-background.txt");
  657.         echo $panel_footer_background_color;
  658. }
  659. else {
  660.         echo "#FFFFFF";
  661. }
  662. ?>;
  663.         margin: 0px;
  664.         border-color: <?php
  665. if (file_exists("data/colors/border.txt")) {
  666.         $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  667.         echo $panel_footer_border_color;
  668. }
  669. else {
  670.         echo "#CCCCCC";
  671. }
  672. ?>;
  673.         border-width: 0px 1px 1px 1px;
  674.         border-style: none solid solid solid;
  675. }
  676. .input {        
  677.         color: <?php
  678. if (file_exists("data/colors/border.txt")) {
  679.         $input_color = file_get_contents("data/colors/border.txt");
  680.         echo $input_color;
  681. }
  682. else {
  683.         echo "#666666";
  684. }
  685. ?>;
  686.         background: #FFFFFF;
  687.         border: <?php
  688. if (file_exists("data/colors/border.txt")) {
  689.         $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  690.         echo $panel_footer_border_color;
  691. }
  692. else {
  693.         echo "#999999";
  694. }
  695. ?> solid 1px;
  696.         width: 300px;
  697.         font-family: verdana,helvetica,sans-serif;
  698.         font-size: 11px;
  699. }
  700. .search {      
  701.         color: #666666;
  702.         background: #FFFFFF;
  703.         width: 100%;
  704.         font-family: verdana,helvetica,sans-serif;
  705.         font-size: 11px;
  706. }
  707. </style>
  708.  
  709. <link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="rss.php?ver=0.91">
  710. <link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="rss.php?ver=1.0">
  711. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss.php?ver=2.0">
  712.  
  713. <?php
  714. if (file_exists("header.php")) {
  715.         include("header.php");
  716.         echo '<p></p>';
  717. }
  718. ?>
  719.  
  720. <table border=0 cellspacing=0 cellpadding=0 width=905>
  721. <tr><td width=175 valign=top>
  722.  
  723. <div id=panel_title>Profile</div>
  724. <div id=panel_body>
  725. <?php
  726. if (file_exists("images/profile.gif")) {
  727.         $profile_gif_image_size = getimagesize("images/profile.gif");
  728.         $profile_gif_image_width = $profile_gif_image_size[0];
  729.         $profile_gif_image_height = $profile_gif_image_size[1];
  730.  
  731.         $max_profile_gif_image_width = 163;
  732.  
  733.         if ($profile_gif_image_width > $max_profile_gif_image_width) {  
  734.                 $sizefactor = (double) ($max_profile_gif_image_width / $profile_gif_image_width) ;
  735.                 $profile_gif_image_width = (int) ($profile_gif_image_width * $sizefactor);
  736.                 $profile_gif_image_height = (int) ($profile_gif_image_height * $sizefactor);
  737.         }
  738.  
  739.         echo "<img src=images/profile.gif border=0 width=";
  740.         echo $profile_gif_image_width;
  741.         echo " height=";
  742.         echo $profile_gif_image_height;
  743.         echo " align=left>";
  744. }
  745. if (file_exists("images/profile.jpg")) {
  746.         $profile_jpg_image_size = getimagesize("images/profile.jpg");
  747.         $profile_jpg_image_width = $profile_jpg_image_size[0];
  748.         $profile_jpg_image_height = $profile_jpg_image_size[1];
  749.  
  750.         $max_profile_jpg_image_width = 163;
  751.  
  752.         if ($profile_jpg_image_width > $max_profile_jpg_image_width) {  
  753.                 $sizefactor = (double) ($max_profile_jpg_image_width / $profile_jpg_image_width) ;
  754.                 $profile_jpg_image_width = (int) ($profile_jpg_image_width * $sizefactor);
  755.                 $profile_jpg_image_height = (int) ($profile_jpg_image_height * $sizefactor);
  756.         }
  757.  
  758.         echo "<img src=images/profile.jpg border=0 width=";
  759.         echo $profile_jpg_image_width;
  760.         echo " height=";
  761.         echo $profile_jpg_image_height;
  762.         echo " align=left>";
  763. }
  764. if (file_exists("images/profile.png")) {
  765.         $profile_png_image_size = getimagesize("images/profile.png");
  766.         $profile_png_image_width = $profile_png_image_size[0];
  767.         $profile_png_image_height = $profile_png_image_size[1];
  768.  
  769.         $max_profile_png_image_width = 163;
  770.  
  771.         if ($profile_png_image_width > $max_profile_png_image_width) {  
  772.                 $sizefactor = (double) ($max_profile_png_image_width / $profile_png_image_width) ;
  773.                 $profile_png_image_width = (int) ($profile_png_image_width * $sizefactor);
  774.                 $profile_png_image_height = (int) ($profile_png_image_height * $sizefactor);
  775.         }
  776.  
  777.         echo "<img src=images/profile.png border=0 width=";
  778.         echo $profile_png_image_width;
  779.         echo " height=";
  780.         echo $profile_png_image_height;
  781.         echo " align=left>";
  782. }
  783. include("data/profile.php");
  784. ?>
  785. </div>
  786. <p></p>
  787. <div id=panel_title>Navigation</div>
  788. <div id=panel_body>
  789. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
  790.  
  791. <?php
  792. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  793.         echo '<a href=add.php>Add Entry</a><br>';
  794.         echo '<a href=settings.php>Settings</a><br>';
  795.         echo '<a href=cat.php>Categories</a><br>';
  796.         echo '<a href=login.php>Logout</a>';
  797. }
  798. else {
  799.         echo '<a href=login.php>Login</a>';
  800. }
  801. ?>
  802.  
  803. </div>
  804.  
  805.  
  806. <p></p>
  807.  
  808. <?php
  809. if (file_exists("data/sticky")) {
  810.         if ($dh_sticky_list = opendir("data/sticky")) {
  811.                 while (($entry_sticky_list = readdir($dh_sticky_list)) !== false) {
  812.  
  813.                         if (file_exists("data/items/$entry_sticky_list/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  814.                                 continue;
  815.                         }
  816.  
  817.                         $get_cat_dir = file_get_contents("data/items/$entry_sticky_list/category.txt");
  818.  
  819.                         if (file_exists("data/categories/$get_cat_dir/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and !file_exists("data/items/$entry_sticky_list/cat.txt")) {
  820.                                 continue;
  821.                         }
  822.  
  823.                         if ($entry_sticky_list != "." && $entry_sticky_list != ".." && fnmatch("*", $entry_sticky_list)) {
  824.                                 $show_sticky_list[] = $entry_sticky_list;
  825.                         }
  826.                 }
  827.                 closedir($dh_sticky_list);
  828.         }
  829.  
  830.         sort($show_sticky_list);
  831.         reset($show_sticky_list);
  832.         $count_sticky_list = count($show_sticky_list);
  833.        
  834.         if ($count_sticky_list > 0) {
  835.                 echo '<div id=panel_title>Links</div>';
  836.                 echo '<div id=panel_body>';
  837.                 foreach ($show_sticky_list as $sticky_list_entry) {
  838.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
  839.                         echo $sticky_list_entry;
  840.                         echo '>';
  841.                         readfile("data/items/$sticky_list_entry/title.txt");
  842.                         echo '</a><br>';
  843.                 }
  844.                 echo '</div>';
  845.         }
  846. }
  847. ?>
  848.  
  849. <p></p>
  850. </td><td width=15></td><td valign=top>
  851.  
  852. <?php
  853.  
  854. if (is_dir($dir)) {
  855.         if ($dh = opendir($dir)) {
  856.                 while (($entry_main = readdir($dh)) !== false) {
  857.  
  858.                         if (file_exists("data/items/$entry_main/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  859.                                 continue;
  860.                         }
  861.  
  862.                         $cat_dir = file_get_contents("data/items/$entry_main/category.txt");
  863.  
  864.                         if (file_exists("data/categories/$cat_dir/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and !file_exists("data/items/$entry_main/cat.txt")) {
  865.                                 continue;
  866.                         }
  867.  
  868.                         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']) and ($_SESSION['logged_in'] != $login_username) and (!isset($_REQUEST['category']) or empty($_REQUEST['category'])) and (!isset($_REQUEST['entry']) or empty($_REQUEST['entry']))) {
  869.                                 continue;
  870.                         }
  871.  
  872.                         if ($entry_main != "." && $entry_main != ".." && fnmatch($filter, $entry_main)) {
  873.                                 if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "-", "data/categories/{$_REQUEST['category']}"))))) {
  874.                                         $category = str_replace(" ", "-", $_REQUEST['category']);
  875.                                         $category = strtolower($category);
  876.                                         $category = strip_tags($category);
  877.                                         if (file_exists("data/items/$entry_main/category.txt") and (file_get_contents("data/items/$entry_main/category.txt") == "$category")) {
  878.                                                 $items[] = $entry_main;
  879.                                         }
  880.                                 }
  881.                                 else {
  882.                                         $items[] = $entry_main;
  883.                                 }
  884.                         }
  885.                 }
  886.                 closedir($dh);
  887.         }
  888. }
  889.  
  890. if (!file_exists("data/old.txt")) {
  891.         rsort($items);
  892. }
  893.  
  894. if (file_exists("data/old.txt")) {
  895.         sort($items);
  896. }
  897.  
  898. if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
  899.  
  900.         $category = str_replace(" ", "-", $_REQUEST['category']);
  901.         $category = strtolower($category);
  902.         $category = strip_tags($category);
  903.  
  904.         if (file_exists("data/categories/$category/book.txt")) {
  905.                 sort($items);
  906.         }
  907. }
  908.  
  909. reset($items);
  910.  
  911. $start = $_REQUEST['start'];
  912.  
  913. if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
  914.         $start = 0;
  915. }
  916.  
  917. $end=$start+$increase;
  918.    
  919. $disp=array_slice($items,$start,$increase);
  920.  
  921. foreach ($disp as $d) {
  922.  
  923.         if (file_exists("$dir/$d/category.txt")) {
  924.                 $category_check = 'data/categories/' . file_get_contents("$dir/$d/category.txt");
  925.                 if (!file_exists($category_check)) {
  926.                         unlink("$dir/$d/category.txt");
  927.                 }
  928.         }
  929.  
  930.         if (file_exists("$dir/$d/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  931.                 continue;
  932.         }
  933.  
  934.         echo '<p><table border=0 cellspacing=0 cellpadding=0 bgcolor=#CCCCCC style="background-color: transparent;"><tr><td width=525><div id=panel_title>';
  935.         readfile("$dir/$d/title.txt");
  936.        
  937.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  938.                 echo '<a href=del.php?entry=';
  939.                 echo $d;
  940.                 echo '><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete entry"></a>';
  941.                 echo '<a href=edit.php?entry=';
  942.                 echo $d;
  943.                 echo '><img src=images/widget.edit.png border=0 width=11 height=11 align=right alt="edit entry"></a>';
  944.                 if (file_exists("$dir/$d/private.txt")) {
  945.                         echo '<img src=images/widget.private.png border=0 width=11 height=11 align=right alt="private entry">';
  946.                 }
  947.                 if (file_exists("$dir/$d/cat.txt")) {
  948.                         echo '<img src=images/widget.cat.png border=0 width=11 height=11 align=right alt="always display">';
  949.                 }
  950.                 if (file_exists("$dir/$d/category.txt")) {
  951.  
  952.                         $read_cat_dir = file_get_contents("$dir/$d/category.txt");
  953.  
  954.                         if (file_exists("data/categories/$read_cat_dir/private.txt")) {
  955.                                 echo '<img src=images/widget.hidden.png border=0 width=11 height=11 align=right alt="category hidden">';
  956.                         }
  957.  
  958.                         if (file_exists("data/nocat.txt")) {
  959.                                 echo '<img src=images/widget.isolated.png border=0 width=11 height=11 align=right alt="category isolated">';
  960.                         }
  961.  
  962.                         if (file_exists("data/categories/$read_cat_dir/book.txt")) {
  963.                                 echo '<img src=images/widget.booked.png border=0 width=11 height=11 align=right alt="category booked">';
  964.                         }
  965.  
  966.                         echo '<img src=images/widget.filed.png border=0 width=11 height=11 align=right alt="filed under ';
  967.                         readfile("$dir/$d/category.txt");
  968.                         echo '">';
  969.                 }
  970.  
  971.         }
  972.  
  973.         echo '</div><div id=panel_body>';
  974.         echo '<font style="font-size: 10px; color: #999999;">';
  975.         readfile("$dir/$d/date.txt");
  976.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  977.                 if (file_exists("$dir/$d/revisions.txt")) {
  978.                         echo ' (Revision ';
  979.                         readfile("$dir/$d/revisions.txt");
  980.                         echo ')';
  981.                 }
  982.                 if (file_exists("$dir/$d/category.txt")) {
  983.                         echo ' Filed under ';
  984.                         $category_key = file_get_contents("$dir/$d/category.txt");
  985.                         $category_key = strtolower($category_key);
  986.                         if (file_exists("data/categories/{$category_key}/title.txt")) {
  987.                                 $category_dsp = file_get_contents("data/categories/{$category_key}/title.txt");
  988.                                 echo "$category_key ($category_dsp)";
  989.                         }
  990.                         else {
  991.                                 echo "$category_key";
  992.                         }
  993.                 }
  994.         }
  995.         echo '</font><font style="font-size: 5px;"><br><br></font>';
  996.         readfile("$dir/$d/body.txt");
  997.         echo '</div><div id=panel_footer>';
  998.         echo '<table border=0 cellspacing=0 cellpadding=0 width=513><tr><td align=right>';
  999.         echo '<font style="font-size: 10px; color: #999999;">';
  1000.  
  1001. if (!file_exists("data/nocomment.txt")) {
  1002.  
  1003.         if (!file_exists("$dir/$d/comments/live")) {
  1004.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>add comment</a>';
  1005.         }
  1006.         else {
  1007.                 if ($dh_comments = opendir("$dir/$d/comments/live")) {
  1008.                         while (($entry_comments = readdir($dh_comments)) !== false) {
  1009.                                 if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {
  1010.                                         $items_comments[] = $entry_comments;
  1011.                                 }
  1012.                         }
  1013.                 closedir($dh_comments);
  1014.                 }
  1015.                 $comments = count($items_comments);
  1016.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>';
  1017.                 if ($comments == 1) {
  1018.                         echo $comments . ' comment';
  1019.                 }
  1020.                 elseif ($comments < 1) {
  1021.                         echo 'add comment';
  1022.                 }
  1023.                 else {
  1024.                         echo $comments . ' comments';
  1025.                 }
  1026.                 echo '</a>';
  1027.                 unset($items_comments);
  1028.         }
  1029.  
  1030. }
  1031. else {
  1032.         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a>';
  1033. }
  1034.  
  1035.         if (file_exists("$dir/$d/views.txt")) {
  1036.                 $fp_views_txt = fopen("$dir/$d/views.txt","r");
  1037.                 $views_value = fread($fp_views_txt,filesize("$dir/$d/views.txt"));
  1038.                 fclose($fp_views_txt);
  1039.                 if ($views_value == 1) {
  1040.                         echo ' ( ' . $views_value . ' view ) ';
  1041.                 }
  1042.                 elseif ($views_value > 1) {
  1043.                         echo ' ( ' . $views_value . ' views ) ';
  1044.                 }
  1045.                 else {
  1046.                         echo ' ';
  1047.                 }
  1048.         }
  1049.  
  1050.         if (!file_exists("images/$d/album")) {
  1051.                 echo ' ';
  1052.         }
  1053.         else {
  1054.                 if ($dh_album = opendir("images/$d/album")) {
  1055.                         while (($entry_album = readdir($dh_album)) !== false) {
  1056.                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  1057.                                         $items_album[] = $entry_album;
  1058.                                 }
  1059.                         }
  1060.                 closedir($dh_album);
  1061.                 }
  1062.                 $album = count($items_album);
  1063.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=album>';
  1064.                 if ($album == 1) {
  1065.                         echo $album . ' image';
  1066.                 }
  1067.                 elseif ($album < 1) {
  1068.                         echo 'album';
  1069.                 }
  1070.                 else {
  1071.                         echo $album . ' images';
  1072.                 }
  1073.                 echo '</a>';
  1074.                 unset($items_album);
  1075.         }
  1076.  
  1077.         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)) {
  1078.                 if (!file_exists("$dir/$d/album")) {
  1079.                         mkdir("$dir/$d/album", 0777);
  1080.                         chmod("$dir/$d/album", 0777);
  1081.                 }
  1082.                 if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1083.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  1084.                         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  1085.                         fclose($fp_album_views_txt);
  1086.                         $album_views_value = $album_views_value + 1;
  1087.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","w");
  1088.                         fwrite($fp_album_views_txt, $album_views_value);
  1089.                         fclose($fp_album_views_txt);
  1090.                         chmod("$dir/$d/album/views.txt", 0666);
  1091.                 }
  1092.         }
  1093.  
  1094.         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  1095.         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  1096.         fclose($fp_album_views_txt);
  1097.         if ($album_views_value == 1) {
  1098.                 echo ' ( ' . $album_views_value . ' view ) ';
  1099.         }
  1100.         elseif ($album_views_value > 1) {
  1101.                 echo ' ( ' . $album_views_value . ' views ) ';
  1102.         }
  1103.         else {
  1104.                 echo ' ';
  1105.         }
  1106.  
  1107.         if (!file_exists("data/items/$d/filedrop/files")) {
  1108.                 echo ' ';
  1109.         }
  1110.         else {
  1111.                 if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  1112.                         while (($entry_filedrop = readdir($dh_filedrop)) !== false) {
  1113.                                 if ($entry_filedrop != "." && $entry_filedrop != ".." && fnmatch("*", $entry_filedrop)) {
  1114.                                         $items_filedrop[] = $entry_filedrop;
  1115.                                 }
  1116.                         }
  1117.                 closedir($dh_filedrop);
  1118.                 }
  1119.                 $filedrop = count($items_filedrop);
  1120.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=filedrop>';
  1121.                 if ($filedrop == 1) {
  1122.                         echo $filedrop . ' file';
  1123.                 }
  1124.                 elseif ($filedrop < 1) {
  1125.                         echo 'filedrop';
  1126.                 }
  1127.                 else {
  1128.                         echo $filedrop . ' files';
  1129.                 }
  1130.                 echo '</a> ';
  1131.                 unset($items_filedrop);
  1132.         }
  1133.  
  1134.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop)) {
  1135.                 if (!file_exists("$dir/$d/filedrop")) {
  1136.                         mkdir("$dir/$d/filedrop", 0777);
  1137.                         chmod("$dir/$d/filedrop", 0777);
  1138.                 }
  1139.                 if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1140.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  1141.                         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  1142.                         fclose($fp_filedrop_views_txt);
  1143.                         $filedrop_views_value = $filedrop_views_value + 1;
  1144.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","w");
  1145.                         fwrite($fp_filedrop_views_txt, $filedrop_views_value);
  1146.                         fclose($fp_filedrop_views_txt);
  1147.                         chmod("$dir/$d/filedrop/views.txt", 0666);
  1148.                 }
  1149.         }
  1150.  
  1151.         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  1152.         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  1153.         fclose($fp_filedrop_views_txt);
  1154.         if ($filedrop_views_value == 1) {
  1155.                 echo ' ( ' . $filedrop_views_value . ' view ) ';
  1156.         }
  1157.         elseif ($filedrop_views_value > 1) {
  1158.                 echo ' ( ' . $filedrop_views_value . ' views ) ';
  1159.         }
  1160.         else {
  1161.                 echo ' ';
  1162.         }
  1163.  
  1164.         if (!file_exists("data/nocomment.txt")) {
  1165.                 echo '| <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a>';
  1166.         }
  1167.         echo '</font></td></tr></table></div>';
  1168.  
  1169.         echo '</td></tr></table></p>';
  1170.  
  1171.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == album)) {
  1172.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1173.                 echo '<div id=panel_title>Album';
  1174.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1175.                         echo '<a href=del.php?entry=';
  1176.                         echo $d;
  1177.                         echo '&target=album><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete album"></a>';
  1178.                 }
  1179.                 echo '</div><div id=panel_body>';
  1180.  
  1181.                 if ($dh_album = opendir("images/$d/album")) {
  1182.                         while (($entry_album = readdir($dh_album)) !== false) {
  1183.                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  1184.  
  1185.                                         $current_image = "images/$d/album/$entry_album";
  1186.                                         $current_image_size = getimagesize($current_image);
  1187.                                         $current_width = $current_image_size[0];
  1188.                                         $current_height = $current_image_size[1];
  1189.                                         $max_width = 98;
  1190.                                         $max_height = 73;
  1191.  
  1192.                                         if (($current_width > $max_width) || ($current_height > $max_height)) {  
  1193.                                                 if ($current_height > $current_width) {
  1194.                                                         $sizefactor = (double) ($max_height / $current_height);
  1195.                                                 }
  1196.                                                 else {
  1197.                                                         $sizefactor = (double) ($max_width / $current_width) ;
  1198.                                                 }
  1199.                                         }
  1200.  
  1201.                                         $new_width = (int) ($current_width * $sizefactor);
  1202.                                         $new_height = (int) ($current_height * $sizefactor);
  1203.  
  1204.                                         /* 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. */
  1205.  
  1206.                                         if (!file_exists("images/$d/thumbnails/{$entry_album}-thumbnail.jpg")) {
  1207.  
  1208.                                                 $work_thumb = imagecreatetruecolor($new_width,$new_height);
  1209.                                                 $get_mimetype = image_type_to_mime_type(exif_imagetype($current_image));
  1210.                                                 switch($get_mimetype) {
  1211.                                                         case "image/jpg":
  1212.                                                         case "image/jpeg":
  1213.                                                                 $work_image = imagecreatefromjpeg($current_image);
  1214.                                                                 break;
  1215.                                                         case "image/gif":
  1216.                                                                 $work_image = imagecreatefromgif($current_image);
  1217.                                                                 break;
  1218.                                                         case "image/png":
  1219.                                                                 $work_image = imagecreatefrompng($current_image);
  1220.                                                                 break;
  1221.                                                 }
  1222.  
  1223.                                                 imagecopyresampled($work_thumb, $work_image ,0, 0, 0, 0, $new_width, $new_height, $current_width, $current_height);
  1224.  
  1225.                                                 if (!file_exists("images/$d/thumbnails")) {
  1226.                                                         mkdir("images/$d/thumbnails", 0777);
  1227.                                                         chmod("images/$d/thumbnails", 0777);
  1228.                                                 }
  1229.  
  1230.                                                 imagejpeg($work_thumb, "images/$d/thumbnails/{$entry_album}-thumbnail.jpg", 80);
  1231.  
  1232. }
  1233.  
  1234.                                         echo "<a href=images/$d/album/$entry_album>";
  1235.                                         echo "<img src=images/$d/thumbnails/{$entry_album}-thumbnail.jpg width=$new_width height=$new_height border=0 hspace=2 vspace=2";
  1236.                                         if (file_exists("data/items/$d/album/captions/{$entry_album}.txt")) {
  1237.                                                 echo ' alt="';
  1238.                                                 readfile("data/items/$d/album/captions/{$entry_album}.txt");
  1239.                                                 echo '"';
  1240.                                         }
  1241.                                         echo "></a>";
  1242.  
  1243.                                 }
  1244.                         }
  1245.                 closedir($dh_album);
  1246.                 }
  1247.                 echo '</div></td></tr></table></p>';
  1248.  
  1249.         }
  1250.  
  1251.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop)) {
  1252.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1253.                 echo '<div id=panel_title>Filedrop';
  1254.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1255.                         echo '<a href=del.php?entry=';
  1256.                         echo $d;
  1257.                         echo '&target=filedrop><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete filedrop"></a>';
  1258.                 }
  1259.                 echo '</div><div id=panel_body>';
  1260.  
  1261.                 if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  1262.                         while (($entry_filedrop = readdir($dh_filedrop)) !== false) {
  1263.                                 if ($entry_filedrop != "." && $entry_filedrop != ".." && fnmatch("*", $entry_filedrop)) {
  1264.                                         echo '<table border=0 cellspacing=0 cellpadding=4><tr><td>';
  1265.                                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&download=' . $entry_filedrop. '>';
  1266.                                         echo '<img src=images/filedrop.png width=36 height=36 border=0 alt="download file"></a></td>';
  1267.                                         echo '<td><p><b>';
  1268.                                         echo $entry_filedrop;
  1269.                                         echo'</b><br>';
  1270.                                         $size = filesize("data/items/$d/filedrop/files/$entry_filedrop");
  1271.                                         $size_string = ($size > 512)?(  ($size/1024 > 512)  ?sprintf("%.02f MB",($size/1024)/1024)  :sprintf("%.02f KB",$size/1024))  :sprintf("%d B",$size);
  1272.                                         echo $size_string;
  1273.                                         $filedrop_count_file = "data/items/$d/filedrop/count/$entry_filedrop" . '.txt';
  1274.                                         if (file_exists($filedrop_count_file)) {
  1275.                                                 $fp_filedrop_count = fopen($filedrop_count_file, "r");
  1276.                                                 $filedrop_count = fread($fp_filedrop_count, filesize($filedrop_count_file));
  1277.                                                 fclose($fp_filedrop_count);
  1278.                                                 echo '<br>';
  1279.                                                 echo $filedrop_count;
  1280.                                                 if ($filedrop_count == 1) {
  1281.                                                         echo ' download';
  1282.                                                 }
  1283.                                                 if ($filedrop_count > 1) {
  1284.                                                         echo ' downloads';
  1285.                                                 }
  1286.                                         }
  1287.                                         echo '</p></td></tr></table>';
  1288.                                 }
  1289.                         }
  1290.                 closedir($dh_filedrop);
  1291.                 }
  1292.                 echo '</div></td></tr></table></p>';
  1293.  
  1294.         }
  1295.  
  1296.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == comments)) {
  1297.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1298.                 if ($dh_comments = opendir("$dir/$d/comments/live")) {
  1299.                         while (($entry_comments = readdir($dh_comments)) !== false) {
  1300.                                 if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {                                       $show_comments[] = $entry_comments;
  1301.                                 }
  1302.                         }
  1303.                 closedir($dh_comments);
  1304.                 }
  1305.  
  1306.                 asort($show_comments);
  1307.                 reset($show_comments);
  1308.                 foreach ($show_comments as $comment) {
  1309.                         echo '<div id=panel_title>';
  1310.  
  1311.                         if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  1312.                                 echo '<a rel=nofollow target=_blank href=';
  1313.                                 readfile("$dir/$d/comments/live/$comment/url.txt");
  1314.                                 echo '>';
  1315.                         }
  1316.  
  1317.                         readfile("$dir/$d/comments/live/$comment/firstname.txt");
  1318.                         echo ' ';
  1319.                         readfile("$dir/$d/comments/live/$comment/lastname.txt");
  1320.  
  1321.                         if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  1322.                                 echo '</a>';
  1323.                         }
  1324.  
  1325.                         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1326.                                 echo '  &lt;';
  1327.                                 readfile("$dir/$d/comments/live/$comment/email.txt");
  1328.                                 echo '&gt;';
  1329.                         }
  1330.  
  1331.                         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1332.                                 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>';
  1333.                                 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>';
  1334.                         }
  1335.                         echo '</div>';
  1336.                         echo '<div id=panel_body>';
  1337.                         echo '<font style="font-size: 10px; color: #999999;">';
  1338.                         readfile("$dir/$d/comments/live/$comment/timestamp.txt");
  1339.                         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1340.                                 if (file_exists("$dir/$d/comments/live/$comment/revisions.txt")) {
  1341.                                         echo '  (Revision ';
  1342.                                         readfile("$dir/$d/comments/live/$comment/revisions.txt");
  1343.                                         echo ')';
  1344.                                 }
  1345.                         }
  1346.                         echo '</font><font style="font-size: 5px;"><br><br></font>';
  1347.                         readfile("$dir/$d/comments/live/$comment/comment.txt");
  1348.                         echo '</div><p></p>';
  1349.                 }
  1350.                 unset($show_comments);
  1351.                 echo '</td></tr></table></p>';
  1352.  
  1353. if (!file_exists("data/nocomment.txt")) {
  1354.  
  1355.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1356.                 echo '<p></p><p><font style="font-size: 12px;"><b>Add Comment</b></font></p>';
  1357.  
  1358.                 $capcha_rand = str_rand(7);
  1359.  
  1360.                 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 e-mailed to me first.<br><br>';
  1361.  
  1362.                 ?>
  1363.                
  1364.                 <table border=0 cellspacing=2 cellpadding=0 width=500>
  1365.                 <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>?entry=<?php echo $d; ?>&show=comments" method="post">
  1366.                 <input type=hidden name=capcha_get value="<?php echo $capcha_rand; ?>">
  1367.                 <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>
  1368. <table border=0 cellspacing=1 cellpadding=2>
  1369. <tr><td><img src=images/smileys/crying.png border=0></td><td><p>:((</p></td><td ><p>crying</p></td></tr>
  1370. <tr><td><img src=images/smileys/frown.png border=0></td><td><p>:(</p></td><td><p>frown</p></td></tr>
  1371. <tr><td><img src=images/smileys/indifferent.png border=0></td><td><p>:|</p></td><td><p>indifferent</p></td></tr>
  1372. <tr><td><img src=images/smileys/laughing.png border=0></td><td><p>:D</p></td><td><p>laughing</p></td></tr>
  1373. <tr><td><img src=images/smileys/lick.png border=0></td><td><p>:P</p></td><td><p>lick</p></td></tr>
  1374. <tr><td><img src=images/smileys/ohno.png border=0></td><td><p>:O</p></td><td><p>oh no!</p></td></tr>
  1375. <tr><td><img src=images/smileys/smile.png border=0></td><td><p>:)</p></td><td><p>smile</p></td></tr>
  1376. <tr><td><img src=images/smileys/surprised.png border=0></td><td><p>=)</p></td><td><p>surprised</p></td></tr>
  1377. <tr><td><img src=images/smileys/undecided.png border=0></td><td><p>:\</p></td><td><p>undecided</p></td></tr>
  1378. <tr><td><img src=images/smileys/wink.png border=0></td><td><p>;)</p></td><td><p>wink</p></td></tr>
  1379. </td></tr>
  1380. </table>
  1381.                 <tr><td><p>Last Name*</p></td><td><input class=input type=text autocomplete=off name=lastname maxlength=30></td></tr>
  1382.                 <tr><td><p>E-mail*</p></td><td colspan=2><input class=input type=text autocomplete=off name=email maxlength=60></td></tr>
  1383.                 <tr><td><p>Website</p></td><td colspan=2><input class=input type=text autocomplete=off name=url maxlength=300></td></tr>
  1384.                 <tr><td ><p>Comment*</p></td><td ><textarea class=input name=new_comment rows=10></textarea></td></tr>
  1385.                 <tr><td><p>Anti-Spam*</p></td><td><input class=input type=text autocomplete=off name=capcha_put maxlength=7></td></tr>
  1386.                 <tr><td><p></p></td><td><input class=input type=submit value="click here to submit your comment"></td></tr>
  1387.                 </form>
  1388.                 </table>
  1389.                 </td></tr></table></p>
  1390.  
  1391. <?php
  1392. }
  1393.  
  1394. if (!isset($_SESSION['logged_in'])) {
  1395.         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']))) {
  1396.                 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>';
  1397.         }
  1398. }
  1399.  ?>
  1400.        
  1401.  
  1402.  
  1403.                 <?php
  1404.         }
  1405. }
  1406. ?>
  1407.  
  1408. <?php
  1409. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  1410.         if ($dh_pending_comments = opendir("$dir/$d/comments/pending")) {
  1411.                 while (($entry_pending_comments = readdir($dh_pending_comments)) !== false) {
  1412.                         if ($entry_pending_comments != "." && $entry_pending_comments != ".." && fnmatch("*", $entry_pending_comments)) {
  1413.                                 $show_pending_comments[] = $entry_pending_comments;
  1414.                         }
  1415.                 }
  1416.                 closedir($dh_pending_comments);
  1417.         }
  1418.  
  1419.         asort($show_pending_comments);
  1420.         reset($show_pending_comments);
  1421.         $count_pending_comments = count($show_pending_comments);
  1422.  
  1423.         if ($count_pending_comments > 0) {
  1424.                 if ($count_pending_comments == 1) {
  1425.                         echo '<p><b>Pending Comment</b></p>';
  1426.                 }
  1427.                 else {
  1428.                         echo '<p><b>Pending Comments</b></p>';
  1429.                 }
  1430.                 foreach ($show_pending_comments as $pending_comment) {
  1431.                         echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1432.                         echo '<div id=panel_title>';
  1433.  
  1434.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  1435.                                 echo '<a rel=nofollow target=_blank href=';
  1436.                                 readfile("$dir/$d/comments/pending/$pending_comment/url.txt");
  1437.                                 echo '>';
  1438.                         }
  1439.        
  1440.                         readfile("$dir/$d/comments/pending/$pending_comment/firstname.txt");
  1441.                         echo ' ';
  1442.                         readfile("$dir/$d/comments/pending/$pending_comment/lastname.txt");
  1443.        
  1444.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  1445.                                 echo '</a>';
  1446.                         }
  1447.        
  1448.                         echo ' &lt;';
  1449.                         readfile("$dir/$d/comments/pending/$pending_comment/email.txt");
  1450.                         echo '&gt;';
  1451.                         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>';
  1452.  
  1453.                         $pending_comment_key_file = "$dir/$d/comments/pending/$pending_comment/key.txt";
  1454.                         $open_pending_comment_key_file = fopen($pending_comment_key_file,"r");
  1455.                         $pending_comment_login_key = fread($open_pending_comment_key_file,filesize($pending_comment_key_file));
  1456.                         fclose($open_pending_comment_key_file);
  1457.  
  1458.                         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>';
  1459.                         echo '</div>';
  1460.                         echo '<div id=panel_body>';
  1461.                         echo '<font style="font-size: 10px; color: #999999;">';
  1462.                         readfile("$dir/$d/comments/pending/$pending_comment/timestamp.txt");
  1463.                         echo '</font><font style="font-size: 5px;"><br><br></font>';
  1464.                         readfile("$dir/$d/comments/pending/$pending_comment/comment.txt");
  1465.                         echo '</div><p></p>';
  1466.                         unset($show_pending_comments);
  1467.                         echo '</td></tr></table></p>';
  1468.                 }
  1469.         }
  1470. }
  1471. ?>
  1472.  
  1473. <p><table border=0 cellspacing=0 cellpadding=0 width=100%><tr>
  1474.  
  1475. <?php
  1476. if (($start >= $increase) and ($start != 0)) {
  1477.         echo "<td align=left><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  1478.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  1479.                 echo "category={$_REQUEST['category']}&";
  1480.         }
  1481.         echo "start=" . ($start-$increase) . "\">previous</a></p></td>";
  1482. }
  1483.  
  1484. if ($end < sizeof($items)) {
  1485.         echo "<td align=right><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  1486.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  1487.                 echo "category={$_REQUEST['category']}&";
  1488.         }
  1489.         echo "start=" . ($start+$increase) . "\">next</a></p></td>";
  1490. }
  1491. ?>
  1492.  
  1493. </tr></table></p>
  1494.  
  1495. </td>
  1496.  
  1497. <td width=15></td>
  1498. <td width=175 valign=top>
  1499.  
  1500. <?php
  1501. if ($dh_latest_items = opendir($dir)) {
  1502.         while (($entry_latest_items = readdir($dh_latest_items)) !== false) {
  1503.  
  1504.                 if (file_exists("data/items/$entry_latest_items/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1505.                         continue;
  1506.                 }
  1507.  
  1508.                 $cat_dir = file_get_contents("data/items/$entry_latest_items/category.txt");
  1509.  
  1510.                 if (file_exists("data/categories/$cat_dir/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and !file_exists("data/items/$entry_latest_items/cat.txt")) {
  1511.                         continue;
  1512.                 }
  1513.  
  1514.                 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']) and ($_SESSION['logged_in'] != $login_username)) {
  1515.                         continue;
  1516.                 }
  1517.  
  1518.                 if ($entry_latest_items != "." && $entry_latest_items != ".." && fnmatch("*", $entry_latest_items)) {
  1519.                         $show_latest_items[] = $entry_latest_items;
  1520.                 }
  1521.         }
  1522.         closedir($dh_latest_items);
  1523. }
  1524.  
  1525. rsort($show_latest_items);
  1526. reset($show_latest_items);
  1527. $count_latest_items = count($show_latest_items);
  1528.  
  1529. if ($count_latest_items > 0) {
  1530.  
  1531.         echo '<div id=panel_title>Recent Entries</div><div id=panel_body>';
  1532.  
  1533.         $increment_recent_entries = 0;
  1534.  
  1535.         if (($count_latest_items <= $increase) or ($count_latest_items <= $increase * 2)) {
  1536.                 $increase = $count_latest_items;
  1537.                 $show_recent_entries = $increase - 1;
  1538.         }
  1539.         else {
  1540.                 $show_recent_entries = $increase * 2 - 1;
  1541.         }
  1542.  
  1543.         while ($increment_recent_entries <= $show_recent_entries) {
  1544.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
  1545.                 readfile("$dir/$show_latest_items[$increment_recent_entries]/title.txt");
  1546.                 echo '</a><br>';
  1547.                 $increment_recent_entries = $increment_recent_entries + 1;
  1548.         }
  1549. }
  1550.  
  1551. if ($count_latest_items > 0) {
  1552.         echo '</div>';
  1553. ?>
  1554.  
  1555. <p></p>
  1556. <form enctype="multipart/form-data" action="dig.php" method="post">
  1557. <div id=panel_title>Search</div>
  1558. <div id=panel_body>
  1559. <input type=text class=search name=search autocomplete=off maxlength=55>
  1560. </div>
  1561. </form>
  1562.  
  1563. <?php
  1564.         if (file_exists("data/categories")) {
  1565.                 if ($dh_categories = opendir("data/categories")) {
  1566.                         while (($entry_categories = readdir($dh_categories)) !== false) {
  1567.  
  1568.                                 if (file_exists("data/xcat.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1569.                                         continue;
  1570.                                 }
  1571.  
  1572.                                 if (file_exists("data/categories/$entry_categories/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1573.                                         continue;
  1574.                                 }
  1575.  
  1576.  
  1577.                                 if ($entry_categories != "." && $entry_categories != ".." && fnmatch("*", $entry_categories)) {
  1578.                                         $show_categories[] = $entry_categories;
  1579.                                 }
  1580.                         }
  1581.                         closedir($dh_categories);
  1582.                 }
  1583.  
  1584.                 sort($show_categories);
  1585.                 reset($show_categories);
  1586.                 $count_categories = count($show_categories);
  1587.  
  1588.                 if ($count_categories > 0) {
  1589.                         echo '<p></p><div id=panel_title>Categories</div><div id=panel_body>';
  1590.                         foreach ($show_categories as $category) {
  1591.                                 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
  1592.                                 if (file_exists("data/categories/$category/title.txt")) {
  1593.                                         $category_title = file_get_contents("data/categories/$category/title.txt");
  1594.                                 }
  1595.                                 else {
  1596.                                         $category_title = ucfirst($category);
  1597.                                 }
  1598.                                 echo $category_title;
  1599.                                 echo "</a><br />";
  1600.                         }
  1601.                         echo '</div>';
  1602.                 }
  1603.         }
  1604.  
  1605.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1606.                 echo '<p></p><div id=panel_title>Statistics</div><div id=panel_body>';
  1607.                 echo "Total Entries: $count_latest_items";
  1608.                 if (file_exists("data/hits.txt")) {
  1609.                         echo '<br>Site Hits: ';
  1610.                         readfile("data/hits.txt");
  1611.                 }
  1612.                 if (file_exists("data/google.txt")) {
  1613.                         echo '<br>Google Visits: ';
  1614.                         readfile("data/google.txt");
  1615.                 }
  1616.                 if (file_exists("data/rss-0.91.txt")) {
  1617.                         echo '<br>RSS 0.91 Hits: ';
  1618.                         readfile("data/rss-0.91.txt");
  1619.                 }
  1620.                 if (file_exists("data/rss-1.0.txt")) {
  1621.                         echo '<br>RSS 1.0 Hits: ';
  1622.                         readfile("data/rss-1.0.txt");
  1623.                 }
  1624.                 if (file_exists("data/rss-2.0.txt")) {
  1625.                         echo '<br>RSS 2.0 Hits: ';
  1626.                         readfile("data/rss-2.0.txt");
  1627.                 }
  1628.                 if (file_exists("data/sitemap.txt")) {
  1629.                         echo '<br>Sitemap Requests: ';
  1630.                         readfile("data/sitemap.txt");
  1631.                 }
  1632.                 echo '</div>';
  1633.         }
  1634. }
  1635.  
  1636. ?>
  1637.  
  1638. <p></p>
  1639.  
  1640. <?php
  1641. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1642.         if ($dh_pending_comment_flags = opendir("data/comments/pending")) {
  1643.                 while (($entry_pending_comment_flags = readdir($dh_pending_comment_flags)) !== false) {
  1644.                         if ($entry_pending_comment_flags != "." && $entry_pending_comment_flags != ".." && fnmatch("*", $entry_pending_comment_flags)) {
  1645.                                 $show_pending_comment_flags[] = $entry_pending_comment_flags;
  1646.                         }
  1647.                 }
  1648.                 closedir($dh_pending_comment_flags);
  1649.         }
  1650.  
  1651.         rsort($show_pending_comment_flags);
  1652.         reset($show_pending_comment_flags);
  1653.         $count_pending_comment_flags = count($show_pending_comment_flags);
  1654.  
  1655.         if (($count_latest_items > 0) and ($count_pending_comment_flags > 0)) {
  1656.                 echo '<div id=panel_title>Pending Comments</div>';
  1657.                 echo '<div id=panel_body>';
  1658.                 if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
  1659.                         while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
  1660.                                 if ($entry_list_pending_comment_flags != "." && $entry_list_pending_comment_flags != ".." && fnmatch("*", $entry_list_pending_comment_flags)) {
  1661.                                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments>';
  1662.                                         readfile("data/items/$entry_list_pending_comment_flags/title.txt");
  1663.                                         echo '</a><br><font style="font-size: 10px; color: #999999;">';
  1664.                                         $fp_comment_count_txt = fopen("data/comments/pending/$entry_list_pending_comment_flags/count.txt","r");
  1665.                                         $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$entry_list_pending_comment_flags/count.txt"));
  1666.                                         fclose($fp_comment_count_txt);
  1667.                                         if ($comment_count_value == 1) {
  1668.                                                 echo ' ( ' . $comment_count_value . ' comment ) ';
  1669.                                         }
  1670.                                         elseif ($comment_count_value > 1) {
  1671.                                                 echo ' ( ' . $comment_count_value . ' comments ) ';
  1672.                                         }
  1673.                                         else {
  1674.                                                 echo '';
  1675.                                         }
  1676.                                         echo '</font><br>';
  1677.                                 }
  1678.                         }
  1679.                         closedir($dh_list_pending_comment_flags);
  1680.                 }
  1681.                 echo '</div>';
  1682.         }
  1683. }
  1684. ?>
  1685.  
  1686. <p></p>
  1687.  
  1688. <?php
  1689. if (file_exists("data/albums")) {
  1690.         if ($dh_album_list = opendir("data/albums")) {
  1691.                 while (($entry_album_list = readdir($dh_album_list)) !== false) {
  1692.  
  1693.                         if (file_exists("data/items/$entry_album_list/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1694.                                 continue;
  1695.                         }
  1696.  
  1697.                         $pull_cat_dir = file_get_contents("data/items/$entry_album_list/category.txt");
  1698.  
  1699.                         if (file_exists("data/categories/$pull_cat_dir/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and !file_exists("data/items/$entry_album_list/cat.txt")) {
  1700.                                 continue;
  1701.                         }
  1702.  
  1703.                         if ($entry_album_list != "." && $entry_album_list != ".." && fnmatch("*", $entry_album_list)) {
  1704.                                 $show_album_list[] = $entry_album_list;
  1705.                         }
  1706.                 }
  1707.                 closedir($dh_album_list);
  1708.         }
  1709.  
  1710.         rsort($show_album_list);
  1711.         reset($show_album_list);
  1712.         $count_album_list = count($show_album_list);
  1713.        
  1714.         if ($count_album_list > 0) {
  1715.                 echo '<div id=panel_title>Albums</div>';
  1716.                 echo '<div id=panel_body>';
  1717.                 foreach ($show_album_list as $album_list_entry) {
  1718.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
  1719.                         echo $album_list_entry;
  1720.                         echo '&show=album>';
  1721.                         readfile("data/items/$album_list_entry/title.txt");
  1722.                         echo '</a><br>';
  1723.                 }
  1724.                 echo '</div>';
  1725.         }
  1726. }
  1727. ?>
  1728.  
  1729. <p></p>
  1730.  
  1731. <?php
  1732.  
  1733. if ($count_latest_items > 0) {
  1734.         echo '<p><table border=0 cellspacing=2 cellpadding=0 width=100%>';
  1735.         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>';
  1736.         echo '<tr><td align=center><a target="_button" rel="nofollow" href="http://php.net/"><img src=images/button.php.png border=0 width=80 height=15></a></td></tr>';
  1737.         $validate_uri = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  1738.         $validate_uri = str_replace('//', '/', $validate_uri);
  1739.         $validate_uri = "http://" . $validate_uri;
  1740.         echo '<tr><td align=center><a target="_button" rel="nofollow" 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>';
  1741.         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>';
  1742.         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>';
  1743.         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>';
  1744.         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>';
  1745.         if (file_exists("data/sfx.txt")) {
  1746.                 $fp_sfx = fopen("data/sfx.txt", "r");
  1747.                 $sfx = fread($fp_sfx, filesize("data/sfx.txt"));
  1748.                 fclose($fp_sfx);
  1749.                 echo '<tr><td align=center><a target="_button" rel="nofollow" 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>';
  1750.         }
  1751.         echo '</table></p>';
  1752.  
  1753. }
  1754.  
  1755. ?>
  1756.  
  1757. <p></p>
  1758.  
  1759. </td></tr>
  1760. </table>
  1761.  
  1762. <?php
  1763. if (file_exists("footer.php")) {
  1764.         echo '<p></p>';
  1765.         include("footer.php");
  1766. }
  1767. ?>
  1768.  
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