maj.world

maj.world

Git

This blob has been accessed 246 times via Git panel.

  1. <?php
  2.  
  3. ini_set("session.use_trans_sid", 0);
  4.  
  5. session_start();
  6. header("Cache-control: private");
  7.  
  8. $dir = "data/items";
  9.  
  10. $default_title = file_get_contents("data/title.txt");
  11.  
  12.  
  13. if (file_exists("data/offset.txt")) {
  14.         $offset = file_get_contents("data/offset.txt");
  15. }
  16. else {
  17.         $offset = 0;
  18. }
  19.  
  20. if (file_exists("data/increase.txt")) {
  21.         $increase = file_get_contents("data/increase.txt");
  22. }
  23. else {
  24.         $increase = 5;
  25. }
  26.  
  27. $default_blog_title = "My Activity Journal";
  28. $default_username = "maj";
  29. $default_password = "php";
  30. $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.";
  31. $default_blog_author = "My Activity Journal";
  32. $default_blog_email = "root@localhost";
  33.  
  34. if (!file_exists("data")) {
  35.         mkdir("data");
  36.         chmod("data", 0777);
  37.         chmod("images/smileys", 0777);
  38. }
  39.  
  40. if (!file_exists("data/.htaccess")) {
  41.         $htaccess = "Order deny,allow\nDeny from all";
  42.         $fp_htaccess_txt = fopen("data/.htaccess","w");
  43.         fwrite($fp_htaccess_txt, $htaccess);
  44.         fclose($fp_htaccess_txt);
  45. }
  46.  
  47. if (!file_exists("data/title.txt")) {
  48.         $fp_default_title_txt = fopen("data/title.txt","w");
  49.         fwrite($fp_default_title_txt, $default_blog_title);
  50.         fclose($fp_default_title_txt);
  51.         chmod("data/title.txt", 0666);
  52. }
  53.  
  54. if (!file_exists("data/username.txt")) {
  55.         $fp_htaccess_txt = fopen("data/username.txt","w");
  56.         fwrite($fp_htaccess_txt, $default_username);
  57.         fclose($fp_htaccess_txt);
  58.         chmod("data/username.txt", 0666);
  59. }
  60.  
  61. if (!file_exists("data/password.txt")) {
  62.         $default_password = sha1($default_password);
  63.         $default_password = md5($default_password);
  64.         $default_password = crypt($default_password, $default_password);
  65.         $fp_htaccess_txt = fopen("data/password.txt","w");
  66.         fwrite($fp_htaccess_txt, $default_password);
  67.         fclose($fp_htaccess_txt);
  68.         chmod("data/password.txt", 0666);
  69. }
  70.  
  71. if (!file_exists("data/profile.php")) {
  72.         $fp_default_profile_txt = fopen("data/profile.php","w");
  73.         fwrite($fp_default_profile_txt, $default_blog_profile);
  74.         fclose($fp_default_profile_txt);
  75.         chmod("data/profile.php", 0666);
  76. }
  77.  
  78. if (!file_exists("data/author.txt")) {
  79.         $fp_default_author_txt = fopen("data/author.txt","w");
  80.         fwrite($fp_default_author_txt, $default_blog_author);
  81.         fclose($fp_default_author_txt);
  82.         chmod("data/author.txt", 0666);
  83. }
  84.  
  85. if (!file_exists("data/email.txt")) {
  86.         $fp_default_email_txt = fopen("data/email.txt","w");
  87.         fwrite($fp_default_email_txt, $default_blog_email);
  88.         fclose($fp_default_email_txt);
  89.         chmod("data/email.txt", 0666);
  90. }
  91.  
  92. $login_username = file_get_contents("data/username.txt");
  93.  
  94. if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  95.         $global_hits_file = fopen("data/hits.txt", "r");
  96.         $global_hits_count = fread($global_hits_file, filesize("data/hits.txt"));
  97.         fclose($global_hits_file);
  98.         $global_hits_count = $global_hits_count + 1;
  99.         $global_hits_file = fopen("data/hits.txt", "w");
  100.         fwrite($global_hits_file, $global_hits_count);
  101.         fclose($global_hits_file);
  102.         chmod("data/hits.txt", 0666);
  103. }
  104.  
  105. $agent = $_SERVER['HTTP_USER_AGENT'];
  106.  
  107. if (@ereg("Google", $agent)) {
  108.         $google_hits_file = fopen("data/google.txt", "r");
  109.         $google_hits_count = fread($google_hits_file, filesize("data/google.txt"));
  110.         fclose($google_hits_file);
  111.         $google_hits_count = $google_hits_count + 1;
  112.         $google_hits_file = fopen("data/google.txt", "w");
  113.         fwrite($google_hits_file, $google_hits_count);
  114.         fclose($google_hits_file);
  115.         chmod("data/google.txt", 0666);
  116. }
  117.  
  118. function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789')
  119. {
  120.     $str = '';
  121.     $seeds_count = strlen($seeds);
  122.  
  123.     list($usec, $sec) = explode(' ', microtime());
  124.     $seed = (float) $sec + ((float) $usec * 100000);
  125.     mt_srand($seed);
  126.  
  127.     for ($i = 0; $length > $i; $i++) {
  128.         $str .= $seeds{mt_rand(0, $seeds_count - 1)};
  129.     }
  130.  
  131.     return $str;
  132. }
  133.  
  134. function rmdirr($recurse_dirname)
  135. {
  136.  
  137.     if (!file_exists($recurse_dirname)) {
  138.         return false;
  139.     }
  140.  
  141.     if (is_file($recurse_dirname)) {
  142.         return unlink($recurse_dirname);
  143.     }
  144.  
  145.     $recurse_dir = dir($recurse_dirname);
  146.     while (false !== $recurse_entry = $recurse_dir->read()) {
  147.  
  148.         if ($recurse_entry == '.' || $recurse_entry == '..') {
  149.             continue;
  150.         }
  151.  
  152.         rmdirr("$recurse_dirname/$recurse_entry");
  153.     }
  154.  
  155.     $recurse_dir->close();
  156.     return rmdir($recurse_dirname);
  157. }
  158.  
  159. if (isset($_REQUEST['download']) and !empty($_REQUEST['download'])) {
  160.         ini_set('zlib.output_compression','off');
  161.         $file = str_replace('../','', @$_REQUEST['download']);
  162.         go_download($file);
  163.         die();
  164. }
  165.  
  166. function go_download($entry_filedrop) {
  167.         $d = $_REQUEST['entry'];
  168.         header("Cache-Control: ");
  169.         header("Pragma: ");
  170.         header("Content-type: application/octet-stream");
  171.         header("Content-Disposition: attachment; filename=\"" . $entry_filedrop . "\"");
  172.         header("Content-length: " . filesize("data/items/$d/filedrop/files/$entry_filedrop"));
  173.         $get_it = fopen("data/items/$d/filedrop/files/$entry_filedrop", 'rb');
  174.  
  175.         while (!feof($get_it)) {
  176.                 $buf = fread($get_it, 4096);
  177.                 echo $buf;
  178.                 $bytes_sent+=strlen($buf);
  179.         }
  180.  
  181.         if ($bytes_sent==filesize("data/items/$d/filedrop/files/$entry_filedrop")) {
  182.  
  183.                 $filedrop_dl_count_dir = 'data/items/' . $_REQUEST['entry'] . '/filedrop/count';
  184.                 if (!file_exists($filedrop_dl_count_dir)) {
  185.                         mkdir($filedrop_dl_count_dir);
  186.                         chmod($filedrop_dl_count_dir, 0777);
  187.                 }
  188.  
  189.                 $unique_downloads = $filedrop_dl_count_dir . '/' . $entry_filedrop . '.txt';
  190.                 $fp_unique_downloads = fopen($unique_downloads, "r");
  191.                 $count_unique_downloads = fread($fp_unique_downloads, filesize($unique_downloads));
  192.                 fclose($fp_unique_downloads);
  193.                 $count_unique_downloads = $count_unique_downloads + 1;
  194.                 $fp_unique_downloads = fopen($unique_downloads, "w");
  195.                 fwrite($fp_unique_downloads, $count_unique_downloads);
  196.                 fclose($fp_unique_downloads);
  197.                 chmod($unique_downloads, 0666);
  198.         }
  199. }
  200.  
  201. 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'])) {
  202.                 $comment_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/pending/' . $_REQUEST['comment'];
  203.                 $key_file = $comment_dir . '/key.txt';
  204.                 $open_key_file = fopen($key_file,"r");
  205.                 $login_key = fread($open_key_file,filesize($key_file));
  206.                 fclose($open_key_file);
  207.  
  208.                 if ($_REQUEST['key'] == $login_key) {
  209.                         if ($_REQUEST['action'] == "approve") {
  210.                                 $live_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/live/' . $_REQUEST['comment'];
  211.                                 rename($comment_dir, $live_dir);
  212.                                 unlink("$live_dir/key.txt");
  213.                         }
  214.                         if ($_REQUEST['action'] == "delete") {
  215.                                 rmdirr($comment_dir);
  216.                         }
  217.                         $pending_comment_flag_dir = $_REQUEST['entry'];
  218.                         $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
  219.                         $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
  220.                         fclose($fp_comment_count_txt);
  221.                         if ($comment_count_value <= 1) {
  222.                                 rmdirr("data/comments/pending/$pending_comment_flag_dir");
  223.                         }
  224.                         else {
  225.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
  226.                                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
  227.                                 fclose($fp_comment_count_txt);
  228.                                 $comment_count_value = $comment_count_value - 1;
  229.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","w");
  230.                                 fwrite($fp_comment_count_txt, $comment_count_value);
  231.                                 fclose($fp_comment_count_txt);
  232.                                 chmod("data/comments/pending/$pending_comment_flag_dir/count.txt", 0666);
  233.                         }
  234.  
  235.                         header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '?entry=' . $_REQUEST['entry'] . '&show=comments');
  236.                 }
  237. }
  238.  
  239. if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  240.         $check = $dir . '/' . $_REQUEST['entry'];
  241.  
  242.         if (file_exists("$check")) {
  243.                 $filter = $_REQUEST['entry'];
  244.                 echo '<title>';
  245.                 $title = $check . '/title.txt';
  246.                 readfile($title);
  247.                 echo '</title>';
  248.                 $views = $check . '/views.txt';
  249.                 if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  250.                         $fp_views = fopen($views, "r");
  251.                         $count_views = fread($fp_views, filesize($views));
  252.                         fclose($fp_views);
  253.                         $count_views = $count_views + 1;
  254.                         $fp_views = fopen($views, "w");
  255.                         fwrite($fp_views, $count_views);
  256.                         fclose($fp_views);
  257.                         chmod($views, 0666);
  258.                 }
  259.                
  260.                 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']))) {
  261.                
  262.                 if (!file_exists("$check/comments")) {
  263.                         mkdir("$check/comments");
  264.                         chmod("$check/comments", 0777);
  265.                 }
  266.                 if (!file_exists("$check/comments/pending")) {
  267.                         mkdir("$check/comments/pending");
  268.                         chmod("$check/comments/pending", 0777);
  269.                 }
  270.  
  271.                 if (!file_exists("$check/comments/live")) {
  272.                         mkdir("$check/comments/live");
  273.                         chmod("$check/comments/live", 0777);
  274.                 }
  275.  
  276.                 // GNU date format
  277.                 //$timestamp = date("D M j H:i:s \P\H\T Y", time() + $offset);
  278.  
  279.                 // Simple PHP Blog format
  280.                 $timestamp = date("l, M j, Y, g:i A", time() + $offset);
  281.  
  282.                 $comment_entry_dir = date("YmdHis", time() + $offset);
  283.  
  284.                 mkdir("$check/comments/pending/$comment_entry_dir");
  285.                 chmod("$check/comments/pending/$comment_entry_dir", 0777);
  286.  
  287.                 $body_content = ucfirst($_REQUEST['new_comment']);
  288.                 $body_content = htmlentities($body_content, ENT_NOQUOTES);
  289.                 // $body_content = str_replace('href=', 'rel=nofollow target=_blank href=', $body_content);
  290.                 $body_content = str_replace("\n", '<br />', $body_content);
  291.                 $body_content = trim($body_content);
  292.  
  293.                 $body_content = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $body_content);
  294.  
  295.                 $body_content = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $body_content);
  296.  
  297.                 $body_content = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $body_content);
  298.  
  299.                 $body_content = str_replace(':D', '<img src=images/smileys/laughing.png border=0>', $body_content);
  300.  
  301.                 $body_content = str_replace(':P', '<img src=images/smileys/lick.png border=0>', $body_content);
  302.  
  303.                 $body_content = str_replace(':O', '<img src=images/smileys/ohno.png border=0>', $body_content);
  304.  
  305.                 $body_content = str_replace(':)', '<img src=images/smileys/smile.png border=0>', $body_content);
  306.  
  307.                 $body_content = str_replace('=)', '<img src=images/smileys/surprised.png border=0>', $body_content);
  308.  
  309.                 $body_content = str_replace(':\\', '<img src=images/smileys/undecided.png border=0>', $body_content);
  310.  
  311.                 $body_content = str_replace(';)', '<img src=images/smileys/wink.png border=0>', $body_content);
  312.  
  313.                 $fp_body_txt = fopen("$check/comments/pending/$comment_entry_dir/comment.txt","w");
  314.                 chmod($fp_body_txt, 0666);
  315.                 fwrite($fp_body_txt,$body_content);
  316.                 fclose($fp_body_txt);
  317.  
  318.                 $fp_timestamp_txt = fopen("$check/comments/pending/$comment_entry_dir/timestamp.txt","w");
  319.                 chmod($fp_timestamp_txt, 0666);
  320.                 fwrite($fp_timestamp_txt,$timestamp);
  321.                 fclose($fp_timestamp_txt);
  322.  
  323.                 $fp_firstname_txt = fopen("$check/comments/pending/$comment_entry_dir/firstname.txt","w");
  324.                 chmod($fp_firstname_txt, 0666);
  325.                 $firstname = ucwords($_REQUEST['firstname']);
  326.                 $firstname = trim($firstname);
  327.                 $firstname = htmlentities($firstname, ENT_NOQUOTES);
  328.                 fwrite($fp_firstname_txt,$firstname);
  329.                 fclose($fp_firstname_txt);
  330.  
  331.                 $fp_lastname_txt = fopen("$check/comments/pending/$comment_entry_dir/lastname.txt","w");
  332.                 chmod($fp_lastname_txt, 0666);
  333.                 $lastname = ucwords($_REQUEST['lastname']);
  334.                 $lastname = trim($lastname);
  335.                 $lastname = htmlentities($lastname, ENT_NOQUOTES);
  336.                 fwrite($fp_lastname_txt,$lastname);
  337.                 fclose($fp_lastname_txt);
  338.  
  339.                 $fp_email_txt = fopen("$check/comments/pending/$comment_entry_dir/email.txt","w");
  340.                 chmod($fp_email_txt, 0666);
  341.                 $email = str_replace('@', ' at ', $_REQUEST['email']);
  342.                 $email = strtolower($email);
  343.                 $email = trim($email);
  344.                 $email = htmlentities($email, ENT_NOQUOTES);
  345.                 fwrite($fp_email_txt,$email);
  346.                 fclose($fp_email_txt);
  347.  
  348.                 if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
  349.                         $fp_url_txt = fopen("$check/comments/pending/$comment_entry_dir/url.txt","w");
  350.                         chmod($fp_url_txt, 0666);
  351.                         $url = str_replace('http://', '', $_REQUEST['url']);
  352.                         $url = strtolower($url);
  353.                         $url = trim($url);
  354.                         $url = 'http://' . $url;
  355.                         $url = htmlentities($url, ENT_NOQUOTES);
  356.                         fwrite($fp_url_txt,$url);
  357.                         fclose($fp_url_txt);
  358.                 }
  359.  
  360.                 $key_rand = str_rand(14);
  361.                 $fp_key_txt = fopen("$check/comments/pending/$comment_entry_dir/key.txt","w");
  362.                 chmod($fp_key_txt, 0666);
  363.                 fwrite($fp_key_txt,$key_rand);
  364.                 fclose($fp_key_txt);
  365.  
  366.                 $comment_quote = ucfirst($_REQUEST['new_comment']);
  367.                 $comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
  368.  
  369.                 $sig_author_file = "data/author.txt";
  370.                 $fp_sig_author = fopen($sig_author_file, "r");
  371.                 $sig_author = fread($fp_sig_author, filesize($sig_author_file));
  372.                 fclose($fp_sig_author);
  373.  
  374.                 $sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  375.                 $sig_url = str_replace('//', '/', $sig_url);
  376.                 $sig_url = "http://" . $sig_url;
  377.  
  378.                 $email_to = strtolower($_REQUEST['email']);
  379.                 $email_to = $firstname . " " . $lastname . ' <' . $email_to . '>';
  380.  
  381.                 $from_email_file = "data/email.txt";
  382.                 $fp_from_email = fopen($from_email_file, "r");
  383.                 $from_email = fread($fp_from_email, filesize($from_email_file));
  384.                 fclose($fp_from_email);
  385.  
  386.                 $mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
  387.  
  388.                 $commented_entry_title_file = "data/items/{$_REQUEST['entry']}/title.txt";
  389.                 $fp_commented_entry_title = fopen($commented_entry_title_file, "r");
  390.                 $commented_entry_title = fread($fp_commented_entry_title, filesize($commented_entry_title_file));
  391.                 fclose($fp_commented_entry_title);
  392.  
  393.                 if (!file_exists("data/nak.txt")) {
  394.                         $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";
  395.  
  396.                         $comment_thanks = wordwrap($comment_thanks);
  397.  
  398.                         mail($email_to, "Thanks for posting a comment on my blog!", $comment_thanks,
  399.                                 "From: $from_email\r\n" .
  400.                                 "Reply-To: $from_email\r\n" .
  401.                                 "X-Mailer: $mailer");
  402.                 }
  403.  
  404.                 $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.";
  405.  
  406.                 $comment_notice = wordwrap($comment_notice);
  407.  
  408.                 mail($from_email, "Pending Blog Comment", $comment_notice,
  409.                         "From: $from_email\r\n" .
  410.                         "Reply-To: $from_email\r\n" .
  411.                         "X-Mailer: $mailer");
  412.  
  413.                 if (!file_exists("data/comments")) {
  414.                         mkdir("data/comments");
  415.                         chmod("data/comments", 0777);
  416.                 }
  417.  
  418.                 if (!file_exists("data/comments/pending")) {
  419.                         mkdir("data/comments/pending");
  420.                         chmod("data/comments/pending", 0777);
  421.                 }
  422.  
  423.                 $pending_comment_flag = $_REQUEST['entry'];
  424.  
  425.                 if (!file_exists("data/comments/pending/$pending_comment_flag")) {
  426.                         mkdir("data/comments/pending/$pending_comment_flag");
  427.                         chmod("data/comments/pending/$pending_comment_flag", 0777);
  428.                 }
  429.  
  430.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","r");
  431.                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag/count.txt"));
  432.                 fclose($fp_comment_count_txt);
  433.                 $comment_count_value = $comment_count_value + 1;
  434.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","w");
  435.                 fwrite($fp_comment_count_txt, $comment_count_value);
  436.                 fclose($fp_comment_count_txt);
  437.                 chmod("data/comments/pending/$pending_comment_flag/count.txt", 0666);
  438.  
  439.                 }
  440.  
  441.         }
  442.         else {
  443.                 echo '<title>' . $default_title . '</title>';
  444.                 $filter = "*";
  445.         }
  446. }
  447. else {
  448.         echo '<title>' . $default_title . '</title>';
  449.         $filter = "*";
  450. }
  451.  
  452. ?>
  453.  
  454. <style>
  455.  
  456. body
  457. {
  458.         color: <?php
  459. if (file_exists("data/colors/font.txt")) {
  460.         $font_color = file_get_contents("data/colors/font.txt");
  461.         echo $font_color;
  462. }
  463. else {
  464.         echo "#666666";
  465. }
  466. ?>;
  467.         margin: 10px;
  468.         padding: 0px;
  469.         text-align: left;
  470.         font-family: verdana, helvetica, sans-serif;
  471.         background-color: <?php
  472. if (file_exists("data/colors/bg.txt")) {
  473.         $background_color = file_get_contents("data/colors/bg.txt");
  474.         echo $background_color;
  475. }
  476. else {
  477.         echo "#FFFFFF";
  478. }
  479. ?>;
  480.         <?php
  481.         if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  482.         background-image: url('images/background.gif');
  483.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  484.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  485.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  486.         <?php
  487.         }
  488.         if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  489.         background-image: url('images/background.jpg');
  490.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  491.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  492.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  493.         <?php
  494.         }
  495.         if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>
  496.         background-image: url('images/background.png');
  497.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  498.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  499.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  500.         <?php
  501.         }
  502.         ?>
  503. }
  504.  
  505. p, td
  506. {
  507.         font-size: 11px;
  508. }
  509.  
  510. a
  511. {
  512.         font-weight: bold;
  513.         text-decoration: none;
  514. }
  515.  
  516. a:link
  517. {
  518.         color: <?php
  519. if (file_exists("data/colors/link.txt")) {
  520.         $a_link_color = file_get_contents("data/colors/link.txt");
  521.         echo $a_link_color;
  522. }
  523. else {
  524.         echo "#666666";
  525. }
  526. ?>;
  527. }
  528.  
  529. a:visited
  530. {
  531.         color: <?php
  532. if (file_exists("data/colors/vlink.txt")) {
  533.         $a_visited_color = file_get_contents("data/colors/vlink.txt");
  534.         echo $a_visited_color;
  535. }
  536. else {
  537.         echo "#666666";
  538. }
  539. ?>;
  540. }
  541.  
  542. a:hover
  543. {
  544.         color: <?php
  545. if (file_exists("data/colors/hover.txt")) {
  546.         $a_hover_color = file_get_contents("data/colors/hover.txt");
  547.         echo $a_hover_color;
  548. }
  549. else {
  550.         echo "#336699";
  551. }
  552. ?>;
  553. }
  554.  
  555. a:active {
  556.         color: <?php
  557. if (file_exists("data/colors/hover.txt")) {
  558.         $a_active_color = file_get_contents("data/colors/hover.txt");
  559.         echo $a_active_color;
  560. }
  561. else {
  562.         echo "#336699";
  563. }
  564. ?>;
  565. }
  566. #panel_title
  567. {
  568.         font-family: verdana, helvetica, sans-serif;
  569.         font-size: 12px;
  570.         font-weight: bold;
  571.         color: <?php
  572. if (file_exists("data/colors/pt-font.txt")) {
  573.         $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
  574.         echo $panel_title_font_color;
  575. }
  576. else {
  577.         echo "#666666";
  578. }
  579. ?>;
  580.         padding: 5px 5px 5px 5px;
  581.         background-color: <?php
  582. if (file_exists("data/colors/pt-bg.txt")) {
  583.         $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
  584.         echo $panel_title_background_color;
  585. }
  586. else {
  587.         echo "transparent";
  588. }
  589. ?>;
  590.         margin: 0px;
  591.         border-color: <?php
  592. if (file_exists("data/colors/border.txt")) {
  593.         $panel_title_border_color = file_get_contents("data/colors/border.txt");
  594.         echo $panel_title_border_color;
  595. }
  596. else {
  597.         echo "#CCCCCC";
  598. }
  599. ?>;
  600.         border-width: 1px 1px 0px 1px;
  601.         border-style: solid solid none solid;
  602. }
  603. #panel_body
  604. {
  605.         font-family: verdana, helvetica, sans-serif;
  606.         font-size: 11px;
  607.         color: <?php
  608. if (file_exists("data/colors/pb-font.txt")) {
  609.         $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
  610.         echo $panel_body_font_color;
  611. }
  612. else {
  613.         echo "#666666";
  614. }
  615. ?>;
  616.         padding: 5px 5px 5px 5px;
  617.         background-color: <?php
  618. if (file_exists("data/colors/pb-bg.txt")) {
  619.         $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
  620.         echo $panel_body_background_color;
  621. }
  622. else {
  623.         echo "transparent";
  624. }
  625. ?>;
  626.         margin: 0px;
  627.         border-color: <?php
  628. if (file_exists("data/colors/border.txt")) {
  629.         $panel_body_border_color = file_get_contents("data/colors/border.txt");
  630.         echo $panel_body_border_color;
  631. }
  632. else {
  633.         echo "#CCCCCC";
  634. }
  635. ?>;
  636.         border-width: 1px 1px 1px 1px;
  637.         border-style: solid solid solid solid;
  638. }
  639. #panel_footer
  640. {
  641.         font-family: verdana, helvetica, sans-serif;
  642.         font-size: 11px;
  643.         color: <?php
  644. if (file_exists("data/colors/pf-font.txt")) {
  645.         $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
  646.         echo $panel_footer_font_color;
  647. }
  648. else {
  649.         echo "#666666";
  650. }
  651. ?>;
  652.         padding: 5px 5px 5px 5px;
  653.         background-color: <?php
  654. if (file_exists("data/colors/pf-bg.txt")) {
  655.         $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
  656.         echo $panel_footer_background_color;
  657. }
  658. else {
  659.         echo "transparent";
  660. }
  661. ?>;
  662.         margin: 0px;
  663.         border-color: <?php
  664. if (file_exists("data/colors/border.txt")) {
  665.         $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  666.         echo $panel_footer_border_color;
  667. }
  668. else {
  669.         echo "#CCCCCC";
  670. }
  671. ?>;
  672.         border-width: 0px 1px 1px 1px;
  673.         border-style: none solid solid solid;
  674. }
  675. .input {        
  676.         color: <?php
  677. if (file_exists("data/colors/border.txt")) {
  678.         $input_color = file_get_contents("data/colors/border.txt");
  679.         echo $input_color;
  680. }
  681. else {
  682.         echo "#666666";
  683. }
  684. ?>;
  685.         background: #FFFFFF;
  686.         border: <?php
  687. if (file_exists("data/colors/border.txt")) {
  688.         $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  689.         echo $panel_footer_border_color;
  690. }
  691. else {
  692.         echo "#999999";
  693. }
  694. ?> solid 1px;
  695.         width: 300px;
  696.         font-family: verdana,helvetica,sans-serif;
  697.         font-size: 11px;
  698. }
  699. .search {      
  700.         color: #666666;
  701.         background: #FFFFFF;
  702.         width: 100%;
  703.         font-family: verdana,helvetica,sans-serif;
  704.         font-size: 11px;
  705. }
  706. </style>
  707.  
  708. <link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="rss.php?ver=0.91">
  709. <link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="rss.php?ver=1.0">
  710. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss.php?ver=2.0">
  711.  
  712. <?php
  713. if (file_exists("header.php")) {
  714.         include("header.php");
  715.         echo '<p></p>';
  716. }
  717. ?>
  718.  
  719. <table border=0 cellspacing=0 cellpadding=0 width=905>
  720. <tr><td width=175 valign=top>
  721.  
  722. <div id=panel_title>Profile</div>
  723. <div id=panel_body>
  724. <?php
  725. if (file_exists("images/profile.gif")) {
  726.         $profile_gif_image_size = getimagesize("images/profile.gif");
  727.         $profile_gif_image_width = $profile_gif_image_size[0];
  728.         $profile_gif_image_height = $profile_gif_image_size[1];
  729.  
  730.         $max_profile_gif_image_width = 163;
  731.  
  732.         if ($profile_gif_image_width > $max_profile_gif_image_width) {  
  733.                 $sizefactor = (double) ($max_profile_gif_image_width / $profile_gif_image_width) ;
  734.                 $profile_gif_image_width = (int) ($profile_gif_image_width * $sizefactor);
  735.                 $profile_gif_image_height = (int) ($profile_gif_image_height * $sizefactor);
  736.         }
  737.  
  738.         echo "<img src=images/profile.gif border=0 width=";
  739.         echo $profile_gif_image_width;
  740.         echo " height=";
  741.         echo $profile_gif_image_height;
  742.         echo " align=left>";
  743. }
  744. if (file_exists("images/profile.jpg")) {
  745.         $profile_jpg_image_size = getimagesize("images/profile.jpg");
  746.         $profile_jpg_image_width = $profile_jpg_image_size[0];
  747.         $profile_jpg_image_height = $profile_jpg_image_size[1];
  748.  
  749.         $max_profile_jpg_image_width = 163;
  750.  
  751.         if ($profile_jpg_image_width > $max_profile_jpg_image_width) {  
  752.                 $sizefactor = (double) ($max_profile_jpg_image_width / $profile_jpg_image_width) ;
  753.                 $profile_jpg_image_width = (int) ($profile_jpg_image_width * $sizefactor);
  754.                 $profile_jpg_image_height = (int) ($profile_jpg_image_height * $sizefactor);
  755.         }
  756.  
  757.         echo "<img src=images/profile.jpg border=0 width=";
  758.         echo $profile_jpg_image_width;
  759.         echo " height=";
  760.         echo $profile_jpg_image_height;
  761.         echo " align=left>";
  762. }
  763. if (file_exists("images/profile.png")) {
  764.         $profile_png_image_size = getimagesize("images/profile.png");
  765.         $profile_png_image_width = $profile_png_image_size[0];
  766.         $profile_png_image_height = $profile_png_image_size[1];
  767.  
  768.         $max_profile_png_image_width = 163;
  769.  
  770.         if ($profile_png_image_width > $max_profile_png_image_width) {  
  771.                 $sizefactor = (double) ($max_profile_png_image_width / $profile_png_image_width) ;
  772.                 $profile_png_image_width = (int) ($profile_png_image_width * $sizefactor);
  773.                 $profile_png_image_height = (int) ($profile_png_image_height * $sizefactor);
  774.         }
  775.  
  776.         echo "<img src=images/profile.png border=0 width=";
  777.         echo $profile_png_image_width;
  778.         echo " height=";
  779.         echo $profile_png_image_height;
  780.         echo " align=left>";
  781. }
  782. include("data/profile.php");
  783. ?>
  784. </div>
  785. <p></p>
  786. <div id=panel_title>Navigation</div>
  787. <div id=panel_body>
  788. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
  789.  
  790. <?php
  791. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  792.         echo '<a href=add.php>Add Entry</a><br>';
  793.         echo '<a href=settings.php>Settings</a><br>';
  794.         echo '<a href=cat.php>Categories</a><br>';
  795.         echo '<a href=colors.php>Colors</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: ';
  1000.         if (file_exists("data/colors/pf-font.txt")) {
  1001.                 readfile("data/colors/pf-font.txt");
  1002.         }
  1003.         else {
  1004.                 echo "#999999";
  1005.         }
  1006.         echo ';">';
  1007.  
  1008. if (!file_exists("data/nocomment.txt")) {
  1009.  
  1010.         if (!file_exists("$dir/$d/comments/live")) {
  1011.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>add comment</a>';
  1012.         }
  1013.         else {
  1014.                 if ($dh_comments = opendir("$dir/$d/comments/live")) {
  1015.                         while (($entry_comments = readdir($dh_comments)) !== false) {
  1016.                                 if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {
  1017.                                         $items_comments[] = $entry_comments;
  1018.                                 }
  1019.                         }
  1020.                 closedir($dh_comments);
  1021.                 }
  1022.                 $comments = count($items_comments);
  1023.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>';
  1024.                 if ($comments == 1) {
  1025.                         echo $comments . ' comment';
  1026.                 }
  1027.                 elseif ($comments < 1) {
  1028.                         echo 'add comment';
  1029.                 }
  1030.                 else {
  1031.                         echo $comments . ' comments';
  1032.                 }
  1033.                 echo '</a>';
  1034.                 unset($items_comments);
  1035.         }
  1036.  
  1037. }
  1038. else {
  1039.         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a>';
  1040. }
  1041.  
  1042.         if (file_exists("$dir/$d/views.txt")) {
  1043.                 $fp_views_txt = fopen("$dir/$d/views.txt","r");
  1044.                 $views_value = fread($fp_views_txt,filesize("$dir/$d/views.txt"));
  1045.                 fclose($fp_views_txt);
  1046.                 if ($views_value == 1) {
  1047.                         echo ' ( ' . $views_value . ' view ) ';
  1048.                 }
  1049.                 elseif ($views_value > 1) {
  1050.                         echo ' ( ' . $views_value . ' views ) ';
  1051.                 }
  1052.                 else {
  1053.                         echo ' ';
  1054.                 }
  1055.         }
  1056.  
  1057.         if (!file_exists("images/$d/album")) {
  1058.                 echo ' ';
  1059.         }
  1060.         else {
  1061.                 if ($dh_album = opendir("images/$d/album")) {
  1062.                         while (($entry_album = readdir($dh_album)) !== false) {
  1063.                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  1064.                                         $items_album[] = $entry_album;
  1065.                                 }
  1066.                         }
  1067.                 closedir($dh_album);
  1068.                 }
  1069.                 $album = count($items_album);
  1070.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=album>';
  1071.                 if ($album == 1) {
  1072.                         echo $album . ' image';
  1073.                 }
  1074.                 elseif ($album < 1) {
  1075.                         echo 'album';
  1076.                 }
  1077.                 else {
  1078.                         echo $album . ' images';
  1079.                 }
  1080.                 echo '</a>';
  1081.                 unset($items_album);
  1082.         }
  1083.  
  1084.         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)) {
  1085.                 if (!file_exists("$dir/$d/album")) {
  1086.                         mkdir("$dir/$d/album", 0777);
  1087.                         chmod("$dir/$d/album", 0777);
  1088.                 }
  1089.                 if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1090.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  1091.                         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  1092.                         fclose($fp_album_views_txt);
  1093.                         $album_views_value = $album_views_value + 1;
  1094.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","w");
  1095.                         fwrite($fp_album_views_txt, $album_views_value);
  1096.                         fclose($fp_album_views_txt);
  1097.                         chmod("$dir/$d/album/views.txt", 0666);
  1098.                 }
  1099.         }
  1100.  
  1101.         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  1102.         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  1103.         fclose($fp_album_views_txt);
  1104.         if ($album_views_value == 1) {
  1105.                 echo ' ( ' . $album_views_value . ' view ) ';
  1106.         }
  1107.         elseif ($album_views_value > 1) {
  1108.                 echo ' ( ' . $album_views_value . ' views ) ';
  1109.         }
  1110.         else {
  1111.                 echo ' ';
  1112.         }
  1113.  
  1114.         if (!file_exists("data/items/$d/filedrop/files")) {
  1115.                 echo ' ';
  1116.         }
  1117.         else {
  1118.                 if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  1119.                         while (($entry_filedrop = readdir($dh_filedrop)) !== false) {
  1120.                                 if ($entry_filedrop != "." && $entry_filedrop != ".." && fnmatch("*", $entry_filedrop)) {
  1121.                                         $items_filedrop[] = $entry_filedrop;
  1122.                                 }
  1123.                         }
  1124.                 closedir($dh_filedrop);
  1125.                 }
  1126.                 $filedrop = count($items_filedrop);
  1127.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=filedrop>';
  1128.                 if ($filedrop == 1) {
  1129.                         echo $filedrop . ' file';
  1130.                 }
  1131.                 elseif ($filedrop < 1) {
  1132.                         echo 'filedrop';
  1133.                 }
  1134.                 else {
  1135.                         echo $filedrop . ' files';
  1136.                 }
  1137.                 echo '</a> ';
  1138.                 unset($items_filedrop);
  1139.         }
  1140.  
  1141.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop)) {
  1142.                 if (!file_exists("$dir/$d/filedrop")) {
  1143.                         mkdir("$dir/$d/filedrop", 0777);
  1144.                         chmod("$dir/$d/filedrop", 0777);
  1145.                 }
  1146.                 if (!isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1147.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  1148.                         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  1149.                         fclose($fp_filedrop_views_txt);
  1150.                         $filedrop_views_value = $filedrop_views_value + 1;
  1151.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","w");
  1152.                         fwrite($fp_filedrop_views_txt, $filedrop_views_value);
  1153.                         fclose($fp_filedrop_views_txt);
  1154.                         chmod("$dir/$d/filedrop/views.txt", 0666);
  1155.                 }
  1156.         }
  1157.  
  1158.         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  1159.         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  1160.         fclose($fp_filedrop_views_txt);
  1161.         if ($filedrop_views_value == 1) {
  1162.                 echo ' ( ' . $filedrop_views_value . ' view ) ';
  1163.         }
  1164.         elseif ($filedrop_views_value > 1) {
  1165.                 echo ' ( ' . $filedrop_views_value . ' views ) ';
  1166.         }
  1167.         else {
  1168.                 echo ' ';
  1169.         }
  1170.  
  1171.         if (!file_exists("data/nocomment.txt")) {
  1172.                 echo '| <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a>';
  1173.         }
  1174.         echo '</font></td></tr></table></div>';
  1175.  
  1176.         echo '</td></tr></table></p>';
  1177.  
  1178.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == album)) {
  1179.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1180.                 echo '<div id=panel_title>Album';
  1181.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1182.                         echo '<a href=del.php?entry=';
  1183.                         echo $d;
  1184.                         echo '&target=album><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete album"></a>';
  1185.                 }
  1186.                 echo '</div><div id=panel_body>';
  1187.  
  1188.                 if ($dh_album = opendir("images/$d/album")) {
  1189.                         while (($entry_album = readdir($dh_album)) !== false) {
  1190.                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  1191.  
  1192.                                         $current_image = "images/$d/album/$entry_album";
  1193.                                         $current_image_size = getimagesize($current_image);
  1194.                                         $current_width = $current_image_size[0];
  1195.                                         $current_height = $current_image_size[1];
  1196.                                         $max_width = 98;
  1197.                                         $max_height = 73;
  1198.  
  1199.                                         if (($current_width > $max_width) || ($current_height > $max_height)) {  
  1200.                                                 if ($current_height > $current_width) {
  1201.                                                         $sizefactor = (double) ($max_height / $current_height);
  1202.                                                 }
  1203.                                                 else {
  1204.                                                         $sizefactor = (double) ($max_width / $current_width) ;
  1205.                                                 }
  1206.                                         }
  1207.  
  1208.                                         $new_width = (int) ($current_width * $sizefactor);
  1209.                                         $new_height = (int) ($current_height * $sizefactor);
  1210.  
  1211.                                         /* 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. */
  1212.  
  1213.                                         if (!file_exists("images/$d/thumbnails/{$entry_album}-thumbnail.jpg")) {
  1214.  
  1215.                                                 $work_thumb = imagecreatetruecolor($new_width,$new_height);
  1216.                                                 $get_mimetype = image_type_to_mime_type(exif_imagetype($current_image));
  1217.                                                 switch($get_mimetype) {
  1218.                                                         case "image/jpg":
  1219.                                                         case "image/jpeg":
  1220.                                                                 $work_image = imagecreatefromjpeg($current_image);
  1221.                                                                 break;
  1222.                                                         case "image/gif":
  1223.                                                                 $work_image = imagecreatefromgif($current_image);
  1224.                                                                 break;
  1225.                                                         case "image/png":
  1226.                                                                 $work_image = imagecreatefrompng($current_image);
  1227.                                                                 break;
  1228.                                                 }
  1229.  
  1230.                                                 imagecopyresampled($work_thumb, $work_image ,0, 0, 0, 0, $new_width, $new_height, $current_width, $current_height);
  1231.  
  1232.                                                 if (!file_exists("images/$d/thumbnails")) {
  1233.                                                         mkdir("images/$d/thumbnails", 0777);
  1234.                                                         chmod("images/$d/thumbnails", 0777);
  1235.                                                 }
  1236.  
  1237.                                                 imagejpeg($work_thumb, "images/$d/thumbnails/{$entry_album}-thumbnail.jpg", 80);
  1238.  
  1239. }
  1240.  
  1241.                                         echo "<a href=images/$d/album/$entry_album>";
  1242.                                         echo "<img src=images/$d/thumbnails/{$entry_album}-thumbnail.jpg width=$new_width height=$new_height border=0 hspace=2 vspace=2";
  1243.                                         if (file_exists("data/items/$d/album/captions/{$entry_album}.txt")) {
  1244.                                                 echo ' alt="';
  1245.                                                 readfile("data/items/$d/album/captions/{$entry_album}.txt");
  1246.                                                 echo '"';
  1247.                                         }
  1248.                                         echo "></a>";
  1249.  
  1250.                                 }
  1251.                         }
  1252.                 closedir($dh_album);
  1253.                 }
  1254.                 echo '</div></td></tr></table></p>';
  1255.  
  1256.         }
  1257.  
  1258.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop)) {
  1259.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1260.                 echo '<div id=panel_title>Filedrop';
  1261.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1262.                         echo '<a href=del.php?entry=';
  1263.                         echo $d;
  1264.                         echo '&target=filedrop><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete filedrop"></a>';
  1265.                 }
  1266.                 echo '</div><div id=panel_body>';
  1267.  
  1268.                 if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  1269.                         while (($entry_filedrop = readdir($dh_filedrop)) !== false) {
  1270.                                 if ($entry_filedrop != "." && $entry_filedrop != ".." && fnmatch("*", $entry_filedrop)) {
  1271.                                         echo '<table border=0 cellspacing=0 cellpadding=4><tr><td>';
  1272.                                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&download=' . $entry_filedrop. '>';
  1273.                                         echo '<img src=images/filedrop.png width=36 height=36 border=0 alt="download file"></a></td>';
  1274.                                         echo '<td><p><b>';
  1275.                                         echo $entry_filedrop;
  1276.                                         echo'</b><br>';
  1277.                                         $size = filesize("data/items/$d/filedrop/files/$entry_filedrop");
  1278.                                         $size_string = ($size > 512)?(  ($size/1024 > 512)  ?sprintf("%.02f MB",($size/1024)/1024)  :sprintf("%.02f KB",$size/1024))  :sprintf("%d B",$size);
  1279.                                         echo $size_string;
  1280.                                         $filedrop_count_file = "data/items/$d/filedrop/count/$entry_filedrop" . '.txt';
  1281.                                         if (file_exists($filedrop_count_file)) {
  1282.                                                 $fp_filedrop_count = fopen($filedrop_count_file, "r");
  1283.                                                 $filedrop_count = fread($fp_filedrop_count, filesize($filedrop_count_file));
  1284.                                                 fclose($fp_filedrop_count);
  1285.                                                 echo '<br>';
  1286.                                                 echo $filedrop_count;
  1287.                                                 if ($filedrop_count == 1) {
  1288.                                                         echo ' download';
  1289.                                                 }
  1290.                                                 if ($filedrop_count > 1) {
  1291.                                                         echo ' downloads';
  1292.                                                 }
  1293.                                         }
  1294.                                         echo '</p></td></tr></table>';
  1295.                                 }
  1296.                         }
  1297.                 closedir($dh_filedrop);
  1298.                 }
  1299.                 echo '</div></td></tr></table></p>';
  1300.  
  1301.         }
  1302.  
  1303.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == comments) and !file_exists("data/nocomment.txt")) {
  1304.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1305.                 if ($dh_comments = opendir("$dir/$d/comments/live")) {
  1306.                         while (($entry_comments = readdir($dh_comments)) !== false) {
  1307.                                 if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {                                       $show_comments[] = $entry_comments;
  1308.                                 }
  1309.                         }
  1310.                 closedir($dh_comments);
  1311.                 }
  1312.  
  1313.                 asort($show_comments);
  1314.                 reset($show_comments);
  1315.                 foreach ($show_comments as $comment) {
  1316.                         echo '<div id=panel_title>';
  1317.  
  1318.                         if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  1319.                                 echo '<a rel=nofollow target=_blank href=';
  1320.                                 readfile("$dir/$d/comments/live/$comment/url.txt");
  1321.                                 echo '>';
  1322.                         }
  1323.  
  1324.                         readfile("$dir/$d/comments/live/$comment/firstname.txt");
  1325.                         echo ' ';
  1326.                         readfile("$dir/$d/comments/live/$comment/lastname.txt");
  1327.  
  1328.                         if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  1329.                                 echo '</a>';
  1330.                         }
  1331.  
  1332.                         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1333.                                 echo '  &lt;';
  1334.                                 readfile("$dir/$d/comments/live/$comment/email.txt");
  1335.                                 echo '&gt;';
  1336.                         }
  1337.  
  1338.                         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1339.                                 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>';
  1340.                                 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>';
  1341.                         }
  1342.                         echo '</div>';
  1343.                         echo '<div id=panel_body>';
  1344.                         echo '<font style="font-size: 10px; color: #999999;">';
  1345.                         readfile("$dir/$d/comments/live/$comment/timestamp.txt");
  1346.                         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1347.                                 if (file_exists("$dir/$d/comments/live/$comment/revisions.txt")) {
  1348.                                         echo '  (Revision ';
  1349.                                         readfile("$dir/$d/comments/live/$comment/revisions.txt");
  1350.                                         echo ')';
  1351.                                 }
  1352.                         }
  1353.                         echo '</font><font style="font-size: 5px;"><br><br></font>';
  1354.                         readfile("$dir/$d/comments/live/$comment/comment.txt");
  1355.                         echo '</div><p></p>';
  1356.                 }
  1357.                 unset($show_comments);
  1358.                 echo '</td></tr></table></p>';
  1359.  
  1360. if (!file_exists("data/nocomment.txt")) {
  1361.  
  1362.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1363.                 echo '<p></p><p><font style="font-size: 12px;"><b>Add Comment</b></font></p>';
  1364.  
  1365.                 $capcha_rand = str_rand(7);
  1366.  
  1367.                 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>';
  1368.  
  1369.                 ?>
  1370.                
  1371.                 <table border=0 cellspacing=2 cellpadding=0 width=500>
  1372.                 <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>?entry=<?php echo $d; ?>&show=comments" method="post">
  1373.                 <input type=hidden name=capcha_get value="<?php echo $capcha_rand; ?>">
  1374.                 <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>
  1375. <table border=0 cellspacing=1 cellpadding=2>
  1376. <tr><td><img src=images/smileys/crying.png border=0></td><td><p>:((</p></td><td ><p>crying</p></td></tr>
  1377. <tr><td><img src=images/smileys/frown.png border=0></td><td><p>:(</p></td><td><p>frown</p></td></tr>
  1378. <tr><td><img src=images/smileys/indifferent.png border=0></td><td><p>:|</p></td><td><p>indifferent</p></td></tr>
  1379. <tr><td><img src=images/smileys/laughing.png border=0></td><td><p>:D</p></td><td><p>laughing</p></td></tr>
  1380. <tr><td><img src=images/smileys/lick.png border=0></td><td><p>:P</p></td><td><p>lick</p></td></tr>
  1381. <tr><td><img src=images/smileys/ohno.png border=0></td><td><p>:O</p></td><td><p>oh no!</p></td></tr>
  1382. <tr><td><img src=images/smileys/smile.png border=0></td><td><p>:)</p></td><td><p>smile</p></td></tr>
  1383. <tr><td><img src=images/smileys/surprised.png border=0></td><td><p>=)</p></td><td><p>surprised</p></td></tr>
  1384. <tr><td><img src=images/smileys/undecided.png border=0></td><td><p>:\</p></td><td><p>undecided</p></td></tr>
  1385. <tr><td><img src=images/smileys/wink.png border=0></td><td><p>;)</p></td><td><p>wink</p></td></tr>
  1386. </td></tr>
  1387. </table>
  1388.                 <tr><td><p>Last Name*</p></td><td><input class=input type=text autocomplete=off name=lastname maxlength=30></td></tr>
  1389.                 <tr><td><p>E-mail*</p></td><td colspan=2><input class=input type=text autocomplete=off name=email maxlength=60></td></tr>
  1390.                 <tr><td><p>Website</p></td><td colspan=2><input class=input type=text autocomplete=off name=url maxlength=300></td></tr>
  1391.                 <tr><td ><p>Comment*</p></td><td ><textarea class=input name=new_comment rows=10></textarea></td></tr>
  1392.                 <tr><td><p>Anti-Spam*</p></td><td><input class=input type=text autocomplete=off name=capcha_put maxlength=7></td></tr>
  1393.                 <tr><td><p></p></td><td><input class=input type=submit value="click here to submit your comment"></td></tr>
  1394.                 </form>
  1395.                 </table>
  1396.                 </td></tr></table></p>
  1397.  
  1398. <?php
  1399. }
  1400.  
  1401. if (!isset($_SESSION['logged_in'])) {
  1402.         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']))) {
  1403.                 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>';
  1404.         }
  1405. }
  1406.  ?>
  1407.        
  1408.  
  1409.  
  1410.                 <?php
  1411.         }
  1412. }
  1413. ?>
  1414.  
  1415. <?php
  1416. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  1417.         if ($dh_pending_comments = opendir("$dir/$d/comments/pending")) {
  1418.                 while (($entry_pending_comments = readdir($dh_pending_comments)) !== false) {
  1419.                         if ($entry_pending_comments != "." && $entry_pending_comments != ".." && fnmatch("*", $entry_pending_comments)) {
  1420.                                 $show_pending_comments[] = $entry_pending_comments;
  1421.                         }
  1422.                 }
  1423.                 closedir($dh_pending_comments);
  1424.         }
  1425.  
  1426.         asort($show_pending_comments);
  1427.         reset($show_pending_comments);
  1428.         $count_pending_comments = count($show_pending_comments);
  1429.  
  1430.         if ($count_pending_comments > 0) {
  1431.                 if ($count_pending_comments == 1) {
  1432.                         echo '<p><b>Pending Comment</b></p>';
  1433.                 }
  1434.                 else {
  1435.                         echo '<p><b>Pending Comments</b></p>';
  1436.                 }
  1437.                 foreach ($show_pending_comments as $pending_comment) {
  1438.                         echo '<p><table border=0 cellspacing=0 cellpadding=0 width=525><tr><td>';
  1439.                         echo '<div id=panel_title>';
  1440.  
  1441.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  1442.                                 echo '<a rel=nofollow target=_blank href=';
  1443.                                 readfile("$dir/$d/comments/pending/$pending_comment/url.txt");
  1444.                                 echo '>';
  1445.                         }
  1446.        
  1447.                         readfile("$dir/$d/comments/pending/$pending_comment/firstname.txt");
  1448.                         echo ' ';
  1449.                         readfile("$dir/$d/comments/pending/$pending_comment/lastname.txt");
  1450.        
  1451.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  1452.                                 echo '</a>';
  1453.                         }
  1454.        
  1455.                         echo ' &lt;';
  1456.                         readfile("$dir/$d/comments/pending/$pending_comment/email.txt");
  1457.                         echo '&gt;';
  1458.                         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>';
  1459.  
  1460.                         $pending_comment_key_file = "$dir/$d/comments/pending/$pending_comment/key.txt";
  1461.                         $open_pending_comment_key_file = fopen($pending_comment_key_file,"r");
  1462.                         $pending_comment_login_key = fread($open_pending_comment_key_file,filesize($pending_comment_key_file));
  1463.                         fclose($open_pending_comment_key_file);
  1464.  
  1465.                         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>';
  1466.                         echo '</div>';
  1467.                         echo '<div id=panel_body>';
  1468.                         echo '<font style="font-size: 10px; color: #999999;">';
  1469.                         readfile("$dir/$d/comments/pending/$pending_comment/timestamp.txt");
  1470.                         echo '</font><font style="font-size: 5px;"><br><br></font>';
  1471.                         readfile("$dir/$d/comments/pending/$pending_comment/comment.txt");
  1472.                         echo '</div><p></p>';
  1473.                         unset($show_pending_comments);
  1474.                         echo '</td></tr></table></p>';
  1475.                 }
  1476.         }
  1477. }
  1478. ?>
  1479.  
  1480. <p><table border=0 cellspacing=0 cellpadding=0 width=100%><tr>
  1481.  
  1482. <?php
  1483. if (($start >= $increase) and ($start != 0)) {
  1484.         echo "<td align=left><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  1485.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  1486.                 echo "category={$_REQUEST['category']}&";
  1487.         }
  1488.         echo "start=" . ($start-$increase) . "\">previous</a></p></td>";
  1489. }
  1490.  
  1491. if ($end < sizeof($items)) {
  1492.         echo "<td align=right><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  1493.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  1494.                 echo "category={$_REQUEST['category']}&";
  1495.         }
  1496.         echo "start=" . ($start+$increase) . "\">next</a></p></td>";
  1497. }
  1498. ?>
  1499.  
  1500. </tr></table></p>
  1501.  
  1502. </td>
  1503.  
  1504. <td width=15></td>
  1505. <td width=175 valign=top>
  1506.  
  1507. <?php
  1508. if ($dh_latest_items = opendir($dir)) {
  1509.         while (($entry_latest_items = readdir($dh_latest_items)) !== false) {
  1510.  
  1511.                 if (file_exists("data/items/$entry_latest_items/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1512.                         continue;
  1513.                 }
  1514.  
  1515.                 $cat_dir = file_get_contents("data/items/$entry_latest_items/category.txt");
  1516.  
  1517.                 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")) {
  1518.                         continue;
  1519.                 }
  1520.  
  1521.                 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)) {
  1522.                         continue;
  1523.                 }
  1524.  
  1525.                 if ($entry_latest_items != "." && $entry_latest_items != ".." && fnmatch("*", $entry_latest_items)) {
  1526.                         $show_latest_items[] = $entry_latest_items;
  1527.                 }
  1528.         }
  1529.         closedir($dh_latest_items);
  1530. }
  1531.  
  1532. rsort($show_latest_items);
  1533. reset($show_latest_items);
  1534. $count_latest_items = count($show_latest_items);
  1535.  
  1536. if ($count_latest_items > 0) {
  1537.  
  1538.         echo '<div id=panel_title>Recent Entries</div><div id=panel_body>';
  1539.  
  1540.         $increment_recent_entries = 0;
  1541.  
  1542.         if (($count_latest_items <= $increase) or ($count_latest_items <= $increase * 2)) {
  1543.                 $increase = $count_latest_items;
  1544.                 $show_recent_entries = $increase - 1;
  1545.         }
  1546.         else {
  1547.                 $show_recent_entries = $increase * 2 - 1;
  1548.         }
  1549.  
  1550.         while ($increment_recent_entries <= $show_recent_entries) {
  1551.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
  1552.                 readfile("$dir/$show_latest_items[$increment_recent_entries]/title.txt");
  1553.                 echo '</a><br>';
  1554.                 $increment_recent_entries = $increment_recent_entries + 1;
  1555.         }
  1556. }
  1557.  
  1558. if ($count_latest_items > 0) {
  1559.         echo '</div>';
  1560. ?>
  1561.  
  1562. <p></p>
  1563. <form enctype="multipart/form-data" action="dig.php" method="post">
  1564. <div id=panel_title>Search</div>
  1565. <div id=panel_body>
  1566. <input type=text class=search name=search autocomplete=off maxlength=55>
  1567. </div>
  1568. </form>
  1569.  
  1570. <?php
  1571.         if (file_exists("data/categories")) {
  1572.                 if ($dh_categories = opendir("data/categories")) {
  1573.                         while (($entry_categories = readdir($dh_categories)) !== false) {
  1574.  
  1575.                                 if (file_exists("data/xcat.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1576.                                         continue;
  1577.                                 }
  1578.  
  1579.                                 if (file_exists("data/categories/$entry_categories/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1580.                                         continue;
  1581.                                 }
  1582.  
  1583.  
  1584.                                 if ($entry_categories != "." && $entry_categories != ".." && fnmatch("*", $entry_categories)) {
  1585.                                         $show_categories[] = $entry_categories;
  1586.                                 }
  1587.                         }
  1588.                         closedir($dh_categories);
  1589.                 }
  1590.  
  1591.                 sort($show_categories);
  1592.                 reset($show_categories);
  1593.                 $count_categories = count($show_categories);
  1594.  
  1595.                 if ($count_categories > 0) {
  1596.                         echo '<p></p><div id=panel_title>Categories</div><div id=panel_body>';
  1597.                         foreach ($show_categories as $category) {
  1598.                                 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
  1599.                                 if (file_exists("data/categories/$category/title.txt")) {
  1600.                                         $category_title = file_get_contents("data/categories/$category/title.txt");
  1601.                                 }
  1602.                                 else {
  1603.                                         $category_title = ucfirst($category);
  1604.                                 }
  1605.                                 echo $category_title;
  1606.                                 echo "</a><br />";
  1607.                         }
  1608.                         echo '</div>';
  1609.                 }
  1610.         }
  1611.  
  1612.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1613.                 echo '<p></p><div id=panel_title>Statistics</div><div id=panel_body>';
  1614.                 echo "Total Entries: $count_latest_items";
  1615.                 if (file_exists("data/hits.txt")) {
  1616.                         echo '<br>Site Hits: ';
  1617.                         readfile("data/hits.txt");
  1618.                 }
  1619.                 if (file_exists("data/google.txt")) {
  1620.                         echo '<br>Google Visits: ';
  1621.                         readfile("data/google.txt");
  1622.                 }
  1623.                 if (file_exists("data/rss-0.91.txt")) {
  1624.                         echo '<br>RSS 0.91 Hits: ';
  1625.                         readfile("data/rss-0.91.txt");
  1626.                 }
  1627.                 if (file_exists("data/rss-1.0.txt")) {
  1628.                         echo '<br>RSS 1.0 Hits: ';
  1629.                         readfile("data/rss-1.0.txt");
  1630.                 }
  1631.                 if (file_exists("data/rss-2.0.txt")) {
  1632.                         echo '<br>RSS 2.0 Hits: ';
  1633.                         readfile("data/rss-2.0.txt");
  1634.                 }
  1635.                 if (file_exists("data/sitemap.txt")) {
  1636.                         echo '<br>Sitemap Requests: ';
  1637.                         readfile("data/sitemap.txt");
  1638.                 }
  1639.                 echo '</div>';
  1640.         }
  1641. }
  1642.  
  1643. ?>
  1644.  
  1645. <p></p>
  1646.  
  1647. <?php
  1648. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1649.         if ($dh_pending_comment_flags = opendir("data/comments/pending")) {
  1650.                 while (($entry_pending_comment_flags = readdir($dh_pending_comment_flags)) !== false) {
  1651.                         if ($entry_pending_comment_flags != "." && $entry_pending_comment_flags != ".." && fnmatch("*", $entry_pending_comment_flags)) {
  1652.                                 $show_pending_comment_flags[] = $entry_pending_comment_flags;
  1653.                         }
  1654.                 }
  1655.                 closedir($dh_pending_comment_flags);
  1656.         }
  1657.  
  1658.         rsort($show_pending_comment_flags);
  1659.         reset($show_pending_comment_flags);
  1660.         $count_pending_comment_flags = count($show_pending_comment_flags);
  1661.  
  1662.         if (($count_latest_items > 0) and ($count_pending_comment_flags > 0)) {
  1663.                 echo '<div id=panel_title>Pending Comments</div>';
  1664.                 echo '<div id=panel_body>';
  1665.                 if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
  1666.                         while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
  1667.                                 if ($entry_list_pending_comment_flags != "." && $entry_list_pending_comment_flags != ".." && fnmatch("*", $entry_list_pending_comment_flags)) {
  1668.                                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments>';
  1669.                                         readfile("data/items/$entry_list_pending_comment_flags/title.txt");
  1670.                                         echo '</a><br><font style="font-size: 10px; color: #999999;">';
  1671.                                         $fp_comment_count_txt = fopen("data/comments/pending/$entry_list_pending_comment_flags/count.txt","r");
  1672.                                         $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$entry_list_pending_comment_flags/count.txt"));
  1673.                                         fclose($fp_comment_count_txt);
  1674.                                         if ($comment_count_value == 1) {
  1675.                                                 echo ' ( ' . $comment_count_value . ' comment ) ';
  1676.                                         }
  1677.                                         elseif ($comment_count_value > 1) {
  1678.                                                 echo ' ( ' . $comment_count_value . ' comments ) ';
  1679.                                         }
  1680.                                         else {
  1681.                                                 echo '';
  1682.                                         }
  1683.                                         echo '</font><br>';
  1684.                                 }
  1685.                         }
  1686.                         closedir($dh_list_pending_comment_flags);
  1687.                 }
  1688.                 echo '</div>';
  1689.         }
  1690. }
  1691. ?>
  1692.  
  1693. <p></p>
  1694.  
  1695. <?php
  1696. if (file_exists("data/albums")) {
  1697.         if ($dh_album_list = opendir("data/albums")) {
  1698.                 while (($entry_album_list = readdir($dh_album_list)) !== false) {
  1699.  
  1700.                         if (file_exists("data/items/$entry_album_list/private.txt") and !isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username)) {
  1701.                                 continue;
  1702.                         }
  1703.  
  1704.                         $pull_cat_dir = file_get_contents("data/items/$entry_album_list/category.txt");
  1705.  
  1706.                         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")) {
  1707.                                 continue;
  1708.                         }
  1709.  
  1710.                         if ($entry_album_list != "." && $entry_album_list != ".." && fnmatch("*", $entry_album_list)) {
  1711.                                 $show_album_list[] = $entry_album_list;
  1712.                         }
  1713.                 }
  1714.                 closedir($dh_album_list);
  1715.         }
  1716.  
  1717.         rsort($show_album_list);
  1718.         reset($show_album_list);
  1719.         $count_album_list = count($show_album_list);
  1720.        
  1721.         if ($count_album_list > 0) {
  1722.                 echo '<div id=panel_title>Albums</div>';
  1723.                 echo '<div id=panel_body>';
  1724.                 foreach ($show_album_list as $album_list_entry) {
  1725.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
  1726.                         echo $album_list_entry;
  1727.                         echo '&show=album>';
  1728.                         readfile("data/items/$album_list_entry/title.txt");
  1729.                         echo '</a><br>';
  1730.                 }
  1731.                 echo '</div>';
  1732.         }
  1733. }
  1734. ?>
  1735.  
  1736. <p></p>
  1737.  
  1738. <?php
  1739.  
  1740. if ($count_latest_items > 0) {
  1741.         echo '<p><table border=0 cellspacing=2 cellpadding=0 width=100%>';
  1742.         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>';
  1743.         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>';
  1744.         $validate_uri = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  1745.         $validate_uri = str_replace('//', '/', $validate_uri);
  1746.         $validate_uri = "http://" . $validate_uri;
  1747.         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>';
  1748.         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>';
  1749.         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>';
  1750.         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>';
  1751.         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>';
  1752.         if (file_exists("data/sfx.txt")) {
  1753.                 $fp_sfx = fopen("data/sfx.txt", "r");
  1754.                 $sfx = fread($fp_sfx, filesize("data/sfx.txt"));
  1755.                 fclose($fp_sfx);
  1756.                 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>';
  1757.         }
  1758.         echo '</table></p>';
  1759.  
  1760. }
  1761.  
  1762. ?>
  1763.  
  1764. <p></p>
  1765.  
  1766. </td></tr>
  1767. </table>
  1768.  
  1769. <?php
  1770. if (file_exists("footer.php")) {
  1771.         echo '<p></p>';
  1772.         include("footer.php");
  1773. }
  1774. ?>
  1775.  
filedropmaj.git-01822e4.tar.bz2
147.95 KB
63 downloads
filedropmaj.git-01822e4.zip
201.96 KB
20 downloads
filedropmaj.git-0291349.tar.bz2
152.85 KB
61 downloads
filedropmaj.git-0291349.zip
211.90 KB
20 downloads
filedropmaj.git-02cb3b7.tar.bz2
151.48 KB
64 downloads
filedropmaj.git-02cb3b7.zip
209.82 KB
20 downloads
filedropmaj.git-0811dd5.tar.bz2
152.90 KB
60 downloads
filedropmaj.git-0811dd5.zip
211.90 KB
18 downloads
filedropmaj.git-083625f.tar.bz2
132.92 KB
59 downloads
filedropmaj.git-083625f.zip
179.59 KB
20 downloads
filedropmaj.git-0885d7b.tar.bz2
92.63 KB
60 downloads
filedropmaj.git-0885d7b.zip
132.34 KB
17 downloads
filedropmaj.git-09c6f33.tar.bz2
151.51 KB
59 downloads
filedropmaj.git-09c6f33.zip
202.12 KB
18 downloads
filedropmaj.git-0b26a85.tar.bz2
151.44 KB
57 downloads
filedropmaj.git-0b26a85.zip
209.75 KB
16 downloads
filedropmaj.git-0b32424.tar.bz2
151.66 KB
58 downloads
filedropmaj.git-0b32424.zip
206.72 KB
17 downloads
filedropmaj.git-0f3ac59.tar.bz2
152.14 KB
57 downloads
filedropmaj.git-0f3ac59.zip
211.45 KB
13 downloads
filedropmaj.git-11d4582.tar.bz2
143.02 KB
55 downloads
filedropmaj.git-11d4582.zip
195.12 KB
12 downloads
filedropmaj.git-17f105a.tar.bz2
137.96 KB
53 downloads
filedropmaj.git-17f105a.zip
193.02 KB
13 downloads
filedropmaj.git-183270b.tar.bz2
137.54 KB
57 downloads
filedropmaj.git-183270b.zip
187.93 KB
13 downloads
filedropmaj.git-197a49d.tar.bz2
152.03 KB
55 downloads
filedropmaj.git-197a49d.zip
211.32 KB
16 downloads
filedropmaj.git-1b9af25.tar.bz2
152.87 KB
53 downloads
filedropmaj.git-1b9af25.zip
211.96 KB
14 downloads
filedropmaj.git-1be2914.tar.bz2
149.30 KB
55 downloads
filedropmaj.git-1be2914.zip
203.09 KB
13 downloads
filedropmaj.git-1bed800.tar.bz2
138.15 KB
51 downloads
filedropmaj.git-1bed800.zip
190.15 KB
17 downloads
filedropmaj.git-1d330de.tar.bz2
151.65 KB
54 downloads
filedropmaj.git-1d330de.zip
210.80 KB
15 downloads
filedropmaj.git-1df190d.tar.bz2
151.72 KB
55 downloads
filedropmaj.git-1df190d.zip
210.85 KB
13 downloads
filedropmaj.git-1ee1167.tar.bz2
151.52 KB
56 downloads
filedropmaj.git-1ee1167.zip
202.16 KB
14 downloads
filedropmaj.git-2057838.tar.bz2
151.76 KB
52 downloads
filedropmaj.git-2057838.zip
202.36 KB
14 downloads
filedropmaj.git-2075213.tar.bz2
155.81 KB
52 downloads
filedropmaj.git-2075213.zip
208.39 KB
13 downloads
filedropmaj.git-211b7b0.tar.bz2
142.53 KB
55 downloads
filedropmaj.git-211b7b0.zip
194.64 KB
14 downloads
filedropmaj.git-2331f5a.tar.bz2
75.55 KB
55 downloads
filedropmaj.git-2331f5a.zip
100.32 KB
16 downloads
filedropmaj.git-25e3c4c.tar.bz2
147.57 KB
53 downloads
filedropmaj.git-25e3c4c.zip
201.46 KB
13 downloads
filedropmaj.git-2622313.tar.bz2
151.47 KB
50 downloads
filedropmaj.git-2622313.zip
206.44 KB
12 downloads
filedropmaj.git-273e4b2.tar.bz2
152.60 KB
52 downloads
filedropmaj.git-273e4b2.zip
203.40 KB
15 downloads
filedropmaj.git-2753e51.tar.bz2
136.37 KB
55 downloads
filedropmaj.git-2753e51.zip
184.34 KB
12 downloads
filedropmaj.git-2c1a589.tar.bz2
155.89 KB
49 downloads
filedropmaj.git-2c1a589.zip
208.69 KB
13 downloads
filedropmaj.git-2c3d544.tar.bz2
151.33 KB
51 downloads
filedropmaj.git-2c3d544.zip
206.23 KB
14 downloads
filedropmaj.git-2c85f72.tar.bz2
143.23 KB
50 downloads
filedropmaj.git-2c85f72.zip
194.84 KB
12 downloads
filedropmaj.git-2dc622c.tar.bz2
151.76 KB
48 downloads
filedropmaj.git-2dc622c.zip
202.35 KB
14 downloads
filedropmaj.git-2fabf8a.tar.bz2
151.35 KB
53 downloads
filedropmaj.git-2fabf8a.zip
206.24 KB
15 downloads
filedropmaj.git-322736b.tar.bz2
137.81 KB
45 downloads
filedropmaj.git-322736b.zip
190.18 KB
13 downloads
filedropmaj.git-374279c.tar.bz2
137.54 KB
46 downloads
filedropmaj.git-374279c.zip
189.58 KB
12 downloads
filedropmaj.git-37e852d.tar.bz2
151.32 KB
42 downloads
filedropmaj.git-37e852d.zip
206.21 KB
11 downloads
filedropmaj.git-38636de.tar.bz2
147.35 KB
42 downloads
filedropmaj.git-38636de.zip
201.16 KB
69 downloads
filedropmaj.git-3b25d71.tar.bz2
147.88 KB
35 downloads
filedropmaj.git-3b25d71.zip
201.85 KB
14 downloads
filedropmaj.git-3b6df7a.tar.bz2
153.39 KB
33 downloads
filedropmaj.git-3b6df7a.zip
204.55 KB
17 downloads
filedropmaj.git-3bf6bd2.tar.bz2
137.77 KB
38 downloads
filedropmaj.git-3bf6bd2.zip
190.16 KB
14 downloads
filedropmaj.git-3e012ff.tar.bz2
152.83 KB
34 downloads
filedropmaj.git-3e012ff.zip
211.89 KB
16 downloads
filedropmaj.git-4129ab8.tar.bz2
135.86 KB
42 downloads
filedropmaj.git-4129ab8.zip
184.30 KB
14 downloads
filedropmaj.git-414dbb4.tar.bz2
91.09 KB
40 downloads
filedropmaj.git-414dbb4.zip
130.29 KB
14 downloads
filedropmaj.git-43755d0.tar.bz2
150.25 KB
33 downloads
filedropmaj.git-43755d0.zip
204.44 KB
14 downloads
filedropmaj.git-4c20005.tar.bz2
55.59 KB
37 downloads
filedropmaj.git-4c20005.zip
74.20 KB
14 downloads
filedropmaj.git-4ccdbcd.tar.bz2
136.38 KB
38 downloads
filedropmaj.git-4ccdbcd.zip
185.22 KB
16 downloads
filedropmaj.git-4cd1a1c.tar.bz2
155.25 KB
35 downloads
filedropmaj.git-4cd1a1c.zip
207.88 KB
16 downloads
filedropmaj.git-4cf16d1.tar.bz2
76.32 KB
38 downloads
filedropmaj.git-4cf16d1.zip
101.80 KB
12 downloads
filedropmaj.git-4ec45a0.tar.bz2
131.16 KB
35 downloads
filedropmaj.git-4ec45a0.zip
172.66 KB
14 downloads
filedropmaj.git-4f73c22.tar.bz2
134.46 KB
35 downloads
filedropmaj.git-4f73c22.zip
182.45 KB
13 downloads
filedropmaj.git-5457969.tar.bz2
155.21 KB
38 downloads
filedropmaj.git-5457969.zip
207.63 KB
14 downloads
filedropmaj.git-57ee8a1.tar.bz2
145.49 KB
38 downloads
filedropmaj.git-57ee8a1.zip
198.12 KB
66 downloads
filedropmaj.git-592978d.tar.bz2
138.38 KB
36 downloads
filedropmaj.git-592978d.zip
190.58 KB
13 downloads
filedropmaj.git-5935b42.tar.bz2
135.60 KB
34 downloads
filedropmaj.git-5935b42.zip
183.28 KB
15 downloads
filedropmaj.git-5b443b6.tar.bz2
152.00 KB
36 downloads
filedropmaj.git-5b443b6.zip
211.07 KB
13 downloads
filedropmaj.git-5b4a9bf.tar.bz2
155.29 KB
34 downloads
filedropmaj.git-5b4a9bf.zip
207.93 KB
12 downloads
filedropmaj.git-5b6c01d.tar.bz2
147.13 KB
35 downloads
filedropmaj.git-5b6c01d.zip
200.86 KB
16 downloads
filedropmaj.git-5da45f7.tar.bz2
147.27 KB
36 downloads
filedropmaj.git-5da45f7.zip
201.02 KB
13 downloads
filedropmaj.git-5e53618.tar.bz2
75.57 KB
38 downloads
filedropmaj.git-5e53618.zip
100.78 KB
14 downloads
filedropmaj.git-5f8ca35.tar.bz2
136.39 KB
33 downloads
filedropmaj.git-5f8ca35.zip
185.32 KB
13 downloads
filedropmaj.git-61e3d7b.tar.bz2
153.52 KB
33 downloads
filedropmaj.git-61e3d7b.zip
204.73 KB
15 downloads
filedropmaj.git-62a635c.tar.bz2
155.90 KB
37 downloads
filedropmaj.git-62a635c.zip
208.73 KB
14 downloads
filedropmaj.git-6390d34.tar.bz2
138.39 KB
37 downloads
filedropmaj.git-6390d34.zip
190.56 KB
17 downloads
filedropmaj.git-649dfbe.tar.bz2
151.78 KB
37 downloads
filedropmaj.git-649dfbe.zip
210.91 KB
14 downloads
filedropmaj.git-65d6570.tar.bz2
151.63 KB
39 downloads
filedropmaj.git-65d6570.zip
210.80 KB
16 downloads
filedropmaj.git-660433f.tar.bz2
151.67 KB
36 downloads
filedropmaj.git-660433f.zip
206.68 KB
14 downloads
filedropmaj.git-6619ae5.tar.bz2
153.23 KB
47 downloads
filedropmaj.git-6619ae5.zip
204.28 KB
13 downloads
filedropmaj.git-68e4e3a.tar.bz2
135.13 KB
34 downloads
filedropmaj.git-68e4e3a.zip
182.91 KB
13 downloads
filedropmaj.git-6995297.tar.bz2
144.93 KB
38 downloads
filedropmaj.git-6995297.zip
197.18 KB
12 downloads
filedropmaj.git-69d6fd3.tar.bz2
143.23 KB
34 downloads
filedropmaj.git-69d6fd3.zip
194.89 KB
16 downloads
filedropmaj.git-6aa872a.tar.bz2
142.95 KB
39 downloads
filedropmaj.git-6aa872a.zip
195.11 KB
15 downloads
filedropmaj.git-6bad5c7.tar.bz2
147.04 KB
38 downloads
filedropmaj.git-6bad5c7.zip
200.79 KB
14 downloads
filedropmaj.git-6e96a2d.tar.bz2
152.13 KB
37 downloads
filedropmaj.git-6e96a2d.zip
207.21 KB
67 downloads
filedropmaj.git-73d46de.tar.bz2
138.42 KB
36 downloads
filedropmaj.git-73d46de.zip
190.59 KB
13 downloads
filedropmaj.git-75e0478.tar.bz2
144.54 KB
38 downloads
filedropmaj.git-75e0478.zip
196.70 KB
15 downloads
filedropmaj.git-784fc35.tar.bz2
143.07 KB
38 downloads
filedropmaj.git-784fc35.zip
195.01 KB
13 downloads
filedropmaj.git-7872a83.tar.bz2
138.51 KB
39 downloads
filedropmaj.git-7872a83.zip
190.69 KB
13 downloads
filedropmaj.git-788fb89.tar.bz2
138.30 KB
37 downloads
filedropmaj.git-788fb89.zip
191.26 KB
18 downloads
filedropmaj.git-796d8a3.tar.bz2
138.92 KB
35 downloads
filedropmaj.git-796d8a3.zip
191.24 KB
13 downloads
filedropmaj.git-79a5e8d.tar.bz2
132.43 KB
38 downloads
filedropmaj.git-79a5e8d.zip
176.90 KB
14 downloads
filedropmaj.git-7b3b2e0.tar.bz2
147.24 KB
36 downloads
filedropmaj.git-7b3b2e0.zip
201.05 KB
14 downloads
filedropmaj.git-7e28eed.tar.bz2
138.89 KB
33 downloads
filedropmaj.git-7e28eed.zip
191.24 KB
14 downloads
filedropmaj.git-8279296.tar.bz2
135.56 KB
38 downloads
filedropmaj.git-8279296.zip
183.25 KB
14 downloads
filedropmaj.git-84c17fe.tar.bz2
152.87 KB
38 downloads
filedropmaj.git-84c17fe.zip
211.90 KB
14 downloads
filedropmaj.git-87c5d5f.tar.bz2
135.78 KB
36 downloads
filedropmaj.git-87c5d5f.zip
183.64 KB
12 downloads
filedropmaj.git-8a48901.tar.bz2
147.27 KB
39 downloads
filedropmaj.git-8a48901.zip
201.06 KB
14 downloads
filedropmaj.git-8ad9892.tar.bz2
164.04 KB
36 downloads
filedropmaj.git-8ad9892.zip
224.42 KB
13 downloads
filedropmaj.git-8b4cf2a.tar.bz2
134.06 KB
37 downloads
filedropmaj.git-8b4cf2a.zip
180.78 KB
14 downloads
filedropmaj.git-8b7e38d.tar.bz2
138.04 KB
41 downloads
filedropmaj.git-8b7e38d.zip
190.39 KB
70 downloads
filedropmaj.git-8df6e40.tar.bz2
143.11 KB
38 downloads
filedropmaj.git-8df6e40.zip
194.66 KB
18 downloads
filedropmaj.git-8e80c84.tar.bz2
138.18 KB
36 downloads
filedropmaj.git-8e80c84.zip
190.30 KB
14 downloads
filedropmaj.git-8ec0fba.tar.bz2
138.37 KB
39 downloads
filedropmaj.git-8ec0fba.zip
191.39 KB
14 downloads
filedropmaj.git-8f7abf6.tar.bz2
153.36 KB
38 downloads
filedropmaj.git-8f7abf6.zip
211.80 KB
13 downloads
filedropmaj.git-923f11a.tar.bz2
138.14 KB
36 downloads
filedropmaj.git-923f11a.zip
191.03 KB
15 downloads
filedropmaj.git-955e82e.tar.bz2
42.71 KB
35 downloads
filedropmaj.git-955e82e.zip
59.77 KB
14 downloads
filedropmaj.git-95add4a.tar.bz2
151.23 KB
40 downloads
filedropmaj.git-95add4a.zip
205.91 KB
14 downloads
filedropmaj.git-96fe0ba.tar.bz2
137.68 KB
32 downloads
filedropmaj.git-96fe0ba.zip
190.34 KB
13 downloads
filedropmaj.git-99a90ce.tar.bz2
137.82 KB
39 downloads
filedropmaj.git-99a90ce.zip
191.20 KB
16 downloads
filedropmaj.git-9a69bb9.tar.bz2
143.19 KB
39 downloads
filedropmaj.git-9a69bb9.zip
194.70 KB
15 downloads
filedropmaj.git-9b6538e.tar.bz2
151.45 KB
36 downloads
filedropmaj.git-9b6538e.zip
202.15 KB
13 downloads
filedropmaj.git-9c4292d.tar.bz2
132.06 KB
37 downloads
filedropmaj.git-9c4292d.zip
176.93 KB
13 downloads
filedropmaj.git-9c78d40.tar.bz2
137.70 KB
37 downloads
filedropmaj.git-9c78d40.zip
190.49 KB
15 downloads
filedropmaj.git-9f1363f.tar.bz2
43.12 KB
40 downloads
filedropmaj.git-9f1363f.zip
60.31 KB
13 downloads
filedropmaj.git-a16c3eb.tar.bz2
90.22 KB
34 downloads
filedropmaj.git-a16c3eb.zip
128.62 KB
14 downloads
filedropmaj.git-a3aa72d.tar.bz2
153.00 KB
37 downloads
filedropmaj.git-a3aa72d.zip
203.86 KB
16 downloads
filedropmaj.git-a6886e4.tar.bz2
144.69 KB
37 downloads
filedropmaj.git-a6886e4.zip
196.95 KB
13 downloads
filedropmaj.git-a8669dc.tar.bz2
135.60 KB
35 downloads
filedropmaj.git-a8669dc.zip
183.34 KB
14 downloads
filedropmaj.git-a9477f1.tar.bz2
135.59 KB
37 downloads
filedropmaj.git-a9477f1.zip
183.45 KB
14 downloads
filedropmaj.git-aa285db.tar.bz2
151.73 KB
38 downloads
filedropmaj.git-aa285db.zip
210.85 KB
14 downloads
filedropmaj.git-aa6ae87.tar.bz2
135.44 KB
37 downloads
filedropmaj.git-aa6ae87.zip
183.88 KB
14 downloads
filedropmaj.git-ab6bc22.tar.bz2
151.71 KB
33 downloads
filedropmaj.git-ab6bc22.zip
210.84 KB
16 downloads
filedropmaj.git-adef726.tar.bz2
153.48 KB
36 downloads
filedropmaj.git-adef726.zip
212.32 KB
14 downloads
filedropmaj.git-afe5877.tar.bz2
144.73 KB
32 downloads
filedropmaj.git-afe5877.zip
197.01 KB
13 downloads
filedropmaj.git-b2d9f8e.tar.bz2
133.22 KB
35 downloads
filedropmaj.git-b2d9f8e.zip
179.27 KB
13 downloads
filedropmaj.git-b41f320.tar.bz2
151.56 KB
33 downloads
filedropmaj.git-b41f320.zip
209.85 KB
18 downloads
filedropmaj.git-b4432ce.tar.bz2
152.96 KB
34 downloads
filedropmaj.git-b4432ce.zip
203.86 KB
14 downloads
filedropmaj.git-b67b08f.tar.bz2
151.27 KB
36 downloads
filedropmaj.git-b67b08f.zip
206.15 KB
16 downloads
filedropmaj.git-b899831.tar.bz2
143.12 KB
35 downloads
filedropmaj.git-b899831.zip
194.60 KB
14 downloads
filedropmaj.git-b8b49c1.tar.bz2
132.59 KB
33 downloads
filedropmaj.git-b8b49c1.zip
178.90 KB
13 downloads
filedropmaj.git-b9c5bcf.tar.bz2
155.92 KB
34 downloads
filedropmaj.git-b9c5bcf.zip
208.70 KB
12 downloads
filedropmaj.git-bbddb1f.tar.bz2
151.63 KB
33 downloads
filedropmaj.git-bbddb1f.zip
209.92 KB
16 downloads
filedropmaj.git-bcaa744.tar.bz2
146.98 KB
37 downloads
filedropmaj.git-bcaa744.zip
200.79 KB
15 downloads
filedropmaj.git-c1ff9dc.tar.bz2
138.39 KB
38 downloads
filedropmaj.git-c1ff9dc.zip
191.43 KB
97 downloads
filedropmaj.git-c20c4b0.tar.bz2
151.64 KB
35 downloads
filedropmaj.git-c20c4b0.zip
210.79 KB
13 downloads
filedropmaj.git-c37f3f7.tar.bz2
145.45 KB
49 downloads
filedropmaj.git-c37f3f7.zip
198.11 KB
22 downloads
filedropmaj.git-c532394.tar.bz2
146.39 KB
37 downloads
filedropmaj.git-c532394.zip
199.91 KB
15 downloads
filedropmaj.git-c6317a4.tar.bz2
152.01 KB
36 downloads
filedropmaj.git-c6317a4.zip
207.08 KB
13 downloads
filedropmaj.git-c748176.tar.bz2
89.44 KB
34 downloads
filedropmaj.git-c748176.zip
126.35 KB
14 downloads
filedropmaj.git-c9ed81f.tar.bz2
135.56 KB
34 downloads
filedropmaj.git-c9ed81f.zip
183.28 KB
16 downloads
filedropmaj.git-c9f9b80.tar.bz2
138.50 KB
34 downloads
filedropmaj.git-c9f9b80.zip
190.66 KB
15 downloads
filedropmaj.git-ca65b73.tar.bz2
152.69 KB
35 downloads
filedropmaj.git-ca65b73.zip
207.87 KB
15 downloads
filedropmaj.git-cd80b77.tar.bz2
153.12 KB
35 downloads
filedropmaj.git-cd80b77.zip
212.01 KB
12 downloads
filedropmaj.git-cffbb2a.tar.bz2
138.22 KB
33 downloads
filedropmaj.git-cffbb2a.zip
190.28 KB
14 downloads
filedropmaj.git-d061ad7.tar.bz2
55.78 KB
47 downloads
filedropmaj.git-d061ad7.zip
74.39 KB
15 downloads
filedropmaj.git-d0af4d6.tar.bz2
57.28 KB
35 downloads
filedropmaj.git-d0af4d6.zip
78.56 KB
15 downloads
filedropmaj.git-d1caa0a.tar.bz2
144.57 KB
37 downloads
filedropmaj.git-d1caa0a.zip
196.63 KB
14 downloads
filedropmaj.git-d5679b5.tar.bz2
152.37 KB
34 downloads
filedropmaj.git-d5679b5.zip
207.52 KB
15 downloads
filedropmaj.git-d72f459.tar.bz2
147.90 KB
36 downloads
filedropmaj.git-d72f459.zip
201.92 KB
13 downloads
filedropmaj.git-d958c91.tar.bz2
144.67 KB
37 downloads
filedropmaj.git-d958c91.zip
196.88 KB
17 downloads
filedropmaj.git-d96784f.tar.bz2
135.58 KB
36 downloads
filedropmaj.git-d96784f.zip
183.46 KB
12 downloads
filedropmaj.git-da4b73f.tar.bz2
152.62 KB
33 downloads
filedropmaj.git-da4b73f.zip
203.48 KB
13 downloads
filedropmaj.git-dd24240.tar.bz2
138.27 KB
33 downloads
filedropmaj.git-dd24240.zip
190.45 KB
72 downloads
filedropmaj.git-e11e772.tar.bz2
152.09 KB
33 downloads
filedropmaj.git-e11e772.zip
211.33 KB
14 downloads
filedropmaj.git-e61478e.tar.bz2
135.95 KB
37 downloads
filedropmaj.git-e61478e.zip
183.91 KB
14 downloads
filedropmaj.git-e7a2547.tar.bz2
133.80 KB
33 downloads
filedropmaj.git-e7a2547.zip
180.05 KB
16 downloads
filedropmaj.git-e8a3b95.tar.bz2
138.15 KB
37 downloads
filedropmaj.git-e8a3b95.zip
191.04 KB
12 downloads
filedropmaj.git-eac86d5.tar.bz2
155.65 KB
33 downloads
filedropmaj.git-eac86d5.zip
208.28 KB
12 downloads
filedropmaj.git-ed83bf9.tar.bz2
135.16 KB
34 downloads
filedropmaj.git-ed83bf9.zip
182.91 KB
15 downloads
filedropmaj.git-ee50d40.tar.bz2
135.59 KB
36 downloads
filedropmaj.git-ee50d40.zip
183.48 KB
16 downloads
filedropmaj.git-efdb4df.tar.bz2
155.87 KB
36 downloads
filedropmaj.git-efdb4df.zip
208.72 KB
14 downloads
filedropmaj.git-f1554f8.tar.bz2
151.30 KB
37 downloads
filedropmaj.git-f1554f8.zip
206.22 KB
16 downloads
filedropmaj.git-f72a07b.tar.bz2
153.44 KB
37 downloads
filedropmaj.git-f72a07b.zip
212.11 KB
17 downloads
filedropmaj.git-f7ea5a1.tar.bz2
147.46 KB
36 downloads
filedropmaj.git-f7ea5a1.zip
201.32 KB
17 downloads
filedropmaj.git-f8a7353.tar.bz2
138.49 KB
36 downloads
filedropmaj.git-f8a7353.zip
190.66 KB
18 downloads
filedropmaj.git-fb84a8d.tar.bz2
137.61 KB
41 downloads
filedropmaj.git-fb84a8d.zip
190.70 KB
18 downloads
filedropmaj.git-fdcf5d3.tar.bz2
152.34 KB
40 downloads
filedropmaj.git-fdcf5d3.zip
207.53 KB
17 downloads
filedropmaj.git-feca42d.tar.bz2
132.90 KB
39 downloads
filedropmaj.git-feca42d.zip
179.44 KB
20 downloads