maj.world

maj.world

Git

This blob has been accessed 357 times via Git panel.

  1. <?php
  2.  
  3. ini_set("session.use_trans_sid", 0);
  4.  
  5. session_start();
  6. header("Cache-control: private");
  7.  
  8. error_reporting(E_ERROR);
  9.  
  10. if (get_magic_quotes_gpc()) {
  11.         function stripslashes_array($data) {
  12.                 if (is_array($data)){
  13.                          foreach ($data as $key => $value){
  14.                                   $data[$key] = stripslashes_array($value);
  15.                          }
  16.                          return $data;
  17.                 }
  18.                 else{
  19.                          return stripslashes($data);
  20.                 }
  21.         }
  22.  
  23.         $_REQUEST = stripslashes_array($_REQUEST);
  24. }
  25.  
  26. $dir = "data/items";
  27.  
  28. $default_title = file_get_contents("data/title.txt");
  29.  
  30.  
  31. if (file_exists("data/offset.txt")) {
  32.         $offset = file_get_contents("data/offset.txt");
  33. }
  34. else {
  35.         $offset = 0;
  36. }
  37.  
  38. if (file_exists("data/increase.txt")) {
  39.         $increase = file_get_contents("data/increase.txt");
  40. }
  41. else {
  42.         $increase = 5;
  43. }
  44.  
  45. $default_blog_title = "My Activity Journal";
  46. $default_username = "maj";
  47. $default_password = "php";
  48. $default_blog_profile = "This cool site is powered by <a href=http://engels.mortega.net/index.php?entry=20050521000019 target=_maj>My Activity Journal</a>, a dead-simple, <a href=http://php.net/ target=_maj>PHP</a>-based, <a href=http://www.opensource.org/licenses/gpl-license.php target=_maj>GPL</a>'ed blog written from scratch as a spare time family project by <a href=http://engels.mortega.net/ target=_maj>Engels</a>, <a href=http://gaffud.com/ target=_maj>Magie</a>, and <a href=http://psylocke.org/ target=_maj>Psylocke</a> Antonio.";
  49. $default_blog_author = "My Activity Journal";
  50.  
  51. if (!file_exists("data")) {
  52.         mkdir("data");
  53. }
  54.  
  55. if (!file_exists("data/.htaccess")) {
  56.         $htaccess = "Order deny,allow\nDeny from all";
  57.         $fp_htaccess_txt = fopen("data/.htaccess","w");
  58.         fwrite($fp_htaccess_txt, $htaccess);
  59.         fclose($fp_htaccess_txt);
  60. }
  61.  
  62. if (!file_exists("data/title.txt")) {
  63.         $fp_default_title_txt = fopen("data/title.txt","w");
  64.         fwrite($fp_default_title_txt, $default_blog_title);
  65.         fclose($fp_default_title_txt);
  66. }
  67.  
  68. if (!file_exists("data/username.txt")) {
  69.         $fp_htaccess_txt = fopen("data/username.txt","w");
  70.         fwrite($fp_htaccess_txt, $default_username);
  71.         fclose($fp_htaccess_txt);
  72. }
  73.  
  74. if (!file_exists("data/password.txt")) {
  75.         $default_password = sha1($default_password);
  76.         $default_password = md5($default_password);
  77.         $default_password = crypt($default_password, $default_password);
  78.         $fp_htaccess_txt = fopen("data/password.txt","w");
  79.         fwrite($fp_htaccess_txt, $default_password);
  80.         fclose($fp_htaccess_txt);
  81. }
  82.  
  83. if (!file_exists("data/profile.php")) {
  84.         $fp_default_profile_txt = fopen("data/profile.php","w");
  85.         fwrite($fp_default_profile_txt, $default_blog_profile);
  86.         fclose($fp_default_profile_txt);
  87. }
  88.  
  89. if (!file_exists("data/author.txt")) {
  90.         $fp_default_author_txt = fopen("data/author.txt","w");
  91.         fwrite($fp_default_author_txt, $default_blog_author);
  92.         fclose($fp_default_author_txt);
  93. }
  94.  
  95. $login_username = file_get_contents("data/username.txt");
  96.  
  97. if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  98.         $global_hits_file = fopen("data/hits.txt", "r");
  99.         $global_hits_count = fread($global_hits_file, filesize("data/hits.txt"));
  100.         fclose($global_hits_file);
  101.         $global_hits_count = $global_hits_count + 1;
  102.         $global_hits_file = fopen("data/hits.txt", "w");
  103.         fwrite($global_hits_file, $global_hits_count);
  104.         fclose($global_hits_file);
  105. }
  106.  
  107. $agent = $_SERVER['HTTP_USER_AGENT'];
  108.  
  109. if (@ereg("Google", $agent)) {
  110.         $google_hits_file = fopen("data/google.txt", "r");
  111.         $google_hits_count = fread($google_hits_file, filesize("data/google.txt"));
  112.         fclose($google_hits_file);
  113.         $google_hits_count = $google_hits_count + 1;
  114.         $google_hits_file = fopen("data/google.txt", "w");
  115.         fwrite($google_hits_file, $google_hits_count);
  116.         fclose($google_hits_file);
  117. }
  118.  
  119. function str_rand($length = 8, $seeds = 'abcdefghijklmnopqrstuvwxyz0123456789')
  120. {
  121.     $str = '';
  122.     $seeds_count = strlen($seeds);
  123.  
  124.     list($usec, $sec) = explode(' ', microtime());
  125.     $seed = (float) $sec + ((float) $usec * 100000);
  126.     mt_srand($seed);
  127.  
  128.     for ($i = 0; $length > $i; $i++) {
  129.         $str .= $seeds{mt_rand(0, $seeds_count - 1)};
  130.     }
  131.  
  132.     return $str;
  133. }
  134.  
  135. function rmdirr($recurse_dirname)
  136. {
  137.  
  138.     if (!file_exists($recurse_dirname)) {
  139.         return false;
  140.     }
  141.  
  142.     if (is_file($recurse_dirname)) {
  143.         return unlink($recurse_dirname);
  144.     }
  145.  
  146.     $recurse_dir = dir($recurse_dirname);
  147.     while (false !== $recurse_entry = $recurse_dir->read()) {
  148.  
  149.         if ($recurse_entry == '.' || $recurse_entry == '..') {
  150.             continue;
  151.         }
  152.  
  153.         rmdirr("$recurse_dirname/$recurse_entry");
  154.     }
  155.  
  156.     $recurse_dir->close();
  157.     return rmdir($recurse_dirname);
  158. }
  159.  
  160. if (isset($_REQUEST['download']) and !empty($_REQUEST['download'])) {
  161.         ini_set('zlib.output_compression','off');
  162.         $file = str_replace('../','', @$_REQUEST['download']);
  163.         go_download($file);
  164.         die();
  165. }
  166.  
  167. function go_download($dl_file) {
  168.         $d = $_REQUEST['entry'];
  169.  
  170.         if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == pdf)) {
  171.                 $dl_path = "data/items/$d/pdf/file";
  172.                 $count_path = "data/items/$d/pdf/count";
  173.                 $count_file = "dl.txt";
  174.         }
  175.         if (isset($_REQUEST['type']) and !empty($_REQUEST['type']) and ($_REQUEST['type'] == filedrop)) {
  176.                 $dl_path = "data/items/$d/filedrop/files";
  177.                 $count_path = "data/items/$d/filedrop/count";
  178.                 $count_file = "{$dl_file}.txt";
  179.         }      
  180.  
  181.         header("Cache-Control: ");
  182.         header("Pragma: ");
  183.         header("Content-type: application/octet-stream");
  184.         header("Content-Disposition: attachment; filename=\"" . $dl_file . "\"");
  185.         header("Content-length: " . filesize("$dl_path/$dl_file"));
  186.         $get_it = fopen("$dl_path/$dl_file", 'rb');
  187.  
  188.         while (!feof($get_it)) {
  189.                 $buf = fread($get_it, 4096);
  190.                 echo $buf;
  191.                 $bytes_sent+=strlen($buf);
  192.         }
  193.  
  194.         if ($bytes_sent==filesize("$dl_path/$dl_file")) {
  195.  
  196.                 if (!file_exists($count_path)) {
  197.                         mkdir($count_path);
  198.                 }
  199.  
  200.                 $unique_downloads = "$count_path/$count_file";
  201.                 $fp_unique_downloads = fopen($unique_downloads, "r");
  202.                 $count_unique_downloads = fread($fp_unique_downloads, filesize($unique_downloads));
  203.                 fclose($fp_unique_downloads);
  204.                 $count_unique_downloads = $count_unique_downloads + 1;
  205.                 $fp_unique_downloads = fopen($unique_downloads, "w");
  206.                 fwrite($fp_unique_downloads, $count_unique_downloads);
  207.                 fclose($fp_unique_downloads);
  208.         }
  209. }
  210.  
  211. 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'])) {
  212.                 $comment_dir = 'data/items/' . $_REQUEST['entry'] .'/comments/pending/' . $_REQUEST['comment'];
  213.                 $key_file = $comment_dir . '/key.txt';
  214.                 $open_key_file = fopen($key_file,"r");
  215.                 $login_key = fread($open_key_file,filesize($key_file));
  216.                 fclose($open_key_file);
  217.  
  218.                 if ($_REQUEST['key'] == $login_key) {
  219.                         if ($_REQUEST['action'] == "approve") {
  220.                                 $live_dir = "data/items/{$_REQUEST['entry']}/comments/live/{$_REQUEST['comment']}";
  221.                                 rename($comment_dir, $live_dir);
  222.                                 unlink("$live_dir/key.txt");
  223.  
  224.                                 $cat_dir = file_get_contents("data/items/{$_REQUEST['entry']}/category.txt");
  225.  
  226.                                 if (file_exists("data/members/active") and file_exists("data/ml.txt") and file_exists("data/email.txt") and !file_exists("data/items/{$_REQUEST['entry']}/private.txt") and !file_exists("data/categories/$cat_dir/private.txt")) {
  227.  
  228.                                         if (file_exists("data/ml-reply2.txt")) {
  229.                                                 $ml_reply2 = file_get_contents("data/ml-reply2.txt");
  230.                                         }
  231.  
  232.                                         $ml_from = file_get_contents("$live_dir/email.txt");
  233.                                         $ml_from = str_replace(" at ","@",$ml_from);
  234.  
  235.                                         $ml_from_firstname = file_get_contents("$live_dir/firstname.txt");
  236.                                         $ml_from_lastname = file_get_contents("$live_dir/lastname.txt");
  237.  
  238.                                         $ml_from = '"' . "$ml_from_firstname $ml_from_lastname" . '" <' . $ml_from . '>';
  239.  
  240.                                         $ml_subject = file_get_contents("data/items/{$_REQUEST['entry']}/title.txt");
  241.                                         if (file_exists("data/ml-prepend.txt")) {
  242.                                                 $ml_prepend = file_get_contents("data/ml-prepend.txt");
  243.                                                 $ml_subject = str_replace($ml_prepend,"",$ml_subject);
  244.                                                 $ml_subject = $ml_prepend . " " . $ml_subject;
  245.                                         }
  246.                                         $ml_subject = str_replace("Re:","",$ml_subject);
  247.                                         $ml_subject = "Re: " . $ml_subject;
  248.  
  249.                                         $ml_mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
  250.  
  251.                                         $ml_body = file_get_contents("$live_dir/comment.txt");
  252.                                         $ml_body = str_replace('<br />', "\n", $ml_body);
  253.                                         $ml_body = str_replace('<img src=images/smileys/crying.png border=0>', ':((', $ml_body);
  254.                                         $ml_body = str_replace('<img src=images/smileys/frown.png border=0>', ':(', $ml_body);
  255.                                         $ml_body = str_replace('<img src=images/smileys/indifferent.png border=0>', ':|', $ml_body);
  256.                                         $ml_body = str_replace('<img src=images/smileys/laughing.png border=0>', ':D', $ml_body);
  257.                                         $ml_body = str_replace('<img src=images/smileys/lick.png border=0>', ':P', $ml_body);
  258.                                         $ml_body = str_replace('<img src=images/smileys/ohno.png border=0>', ':O', $ml_body);
  259.                                         $ml_body = str_replace('<img src=images/smileys/smile.png border=0>', ':)', $ml_body);
  260.                                         $ml_body = str_replace('<img src=images/smileys/surprised.png border=0>', '=)', $ml_body);
  261.                                         $ml_body = str_replace('<img src=images/smileys/undecided.png border=0>', ':\\', $ml_body);
  262.                                         $ml_body = str_replace('<img src=images/smileys/wink.png border=0>', ';)', $ml_body);
  263.                                         $ml_body = str_replace('&amp;','&',$ml_body);
  264.                                         $ml_body = str_replace('&lt;','<',$ml_body);
  265.                                         $ml_body = str_replace('&gt;','>',$ml_body);
  266.                                         $ml_body = str_replace('&reg;','(R)',$ml_body);
  267.  
  268.                                         if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt")) {
  269.                                                 $badwords = file_get_contents("data/pf-badwords.txt");
  270.                                                 if (file_exists("data/pf-censor.txt")) {
  271.                                                         $censor = file_get_contents("data/pf-censor.txt");
  272.                                                 }
  273.                                                 else {
  274.                                                         $censor = "[expletive]";
  275.                                                 }
  276.                                                 $ml_body = preg_replace("/\b($badwords)\b/i",$censor,$ml_body);
  277.                                         }
  278.  
  279.                                         if (file_exists("data/ml-header.txt")) {
  280.                                                 $ml_header = file_get_contents("data/ml-header.txt");
  281.                                                 $ml_body = $ml_header . "\n\n" . $ml_body;
  282.                                         }
  283.  
  284.                                         $ml_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  285.                                         $ml_url = str_replace('//', '/', $ml_url);
  286.                                         $ml_url = "http://" . $ml_url . "index.php?entry={$_REQUEST['entry']}&show=comments";
  287.  
  288.                                         $ml_body = $ml_body . "\n\nPlease visit the following URL for the full thread:\n\n" . $ml_url;
  289.  
  290.                                         if (file_exists("data/items/{$_REQUEST['entry']}/member.txt")) {
  291.                                                 $ml_body = $ml_body . "\n\nYou need to login first to view the entry or to add a comment.";
  292.                                         }
  293.  
  294.                                         if (file_exists("data/ml-footer.txt")) {
  295.                                                 $ml_footer = file_get_contents("data/ml-footer.txt");
  296.                                                 $ml_body = $ml_body . "\n\n" . $ml_footer;
  297.                                         }
  298.  
  299.  
  300.                                         if ($dh_ml_member = opendir("data/members/active")) {
  301.                                                 while (($ml_member = readdir($dh_ml_member)) !== false) {
  302.                                                         if ($ml_member != "." && $ml_member != ".." && fnmatch("*", $ml_member)) {
  303.  
  304.                                                                 if (file_exists("data/members/active/$ml_member/noml.txt")) {
  305.                                                                         continue;
  306.                                                                 }
  307.  
  308.                                                                 if (file_exists("data/members/active/$ml_member/vacation.txt")) {
  309.                                                                         continue;
  310.                                                                 }
  311.  
  312.                                                                 $ml_to_firstname = file_get_contents("data/members/active/$ml_member/firstname.txt");
  313.                                                                 $ml_to_lastname = file_get_contents("data/members/active/$ml_member/lastname.txt");
  314.                                                                 $ml_to = file_get_contents("data/members/active/$ml_member/email.txt");
  315.                                                                 $ml_to = '"' . "$ml_to_firstname $ml_to_lastname" . '" <'. $ml_to . '>';
  316.  
  317.                                                                 if (file_exists("data/ml-reply2.txt")) {
  318.                                                                         mail($ml_to, $ml_subject, $ml_body,
  319.                                                                         "From: $ml_from\r\n" .
  320.                                                                         "Reply-To: $ml_reply2\r\n" .
  321.                                                                         "References: {$_REQUEST['entry']}\r\n" .
  322.                                                                         "X-Mailer: $ml_mailer");
  323.                                                                 }
  324.                                                                 else {
  325.                                                                         mail($ml_to, $ml_subject, $ml_body,
  326.                                                                         "From: $ml_from\r\n" .
  327.                                                                         "References: {$_REQUEST['entry']}\r\n" .
  328.                                                                         "X-Mailer: $ml_mailer");
  329.                                                                 }
  330.                                                         }
  331.                                                 }
  332.                                                 closedir($dh_ml_member);
  333.                                         }
  334.                                 }
  335.  
  336.                         }
  337.                         if ($_REQUEST['action'] == "delete") {
  338.                                 rmdirr($comment_dir);
  339.                         }
  340.                         $pending_comment_flag_dir = $_REQUEST['entry'];
  341.                         $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
  342.                         $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
  343.                         fclose($fp_comment_count_txt);
  344.                         if ($comment_count_value <= 1) {
  345.                                 rmdirr("data/comments/pending/$pending_comment_flag_dir");
  346.                         }
  347.                         else {
  348.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","r");
  349.                                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag_dir/count.txt"));
  350.                                 fclose($fp_comment_count_txt);
  351.                                 $comment_count_value = $comment_count_value - 1;
  352.                                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag_dir/count.txt","w");
  353.                                 fwrite($fp_comment_count_txt, $comment_count_value);
  354.                                 fclose($fp_comment_count_txt);
  355.                         }
  356.  
  357.                         header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '?entry=' . $_REQUEST['entry'] . '&show=comments');
  358.                 }
  359. }
  360.  
  361. if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  362.         $check = $dir . '/' . $_REQUEST['entry'];
  363.  
  364.         if (file_exists("$check")) {
  365.                 $filter = $_REQUEST['entry'];
  366.                 echo '<title>';
  367.                 $title = $check . '/title.txt';
  368.                 readfile($title);
  369.                 echo '</title>';
  370.                 $views = $check . '/views.txt';
  371.                 if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  372.                         $fp_views = fopen($views, "r");
  373.                         $count_views = fread($fp_views, filesize($views));
  374.                         fclose($fp_views);
  375.                         $count_views = $count_views + 1;
  376.                         $fp_views = fopen($views, "w");
  377.                         fwrite($fp_views, $count_views);
  378.                         fclose($fp_views);
  379.                 }
  380.                
  381.                 if (isset($_REQUEST['show']) and !empty($_REQUEST['show']) and isset($_REQUEST['captcha_put']) and !empty($_REQUEST['captcha_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['captcha_put']) and !empty($_REQUEST['captcha_put']) and ($_REQUEST['captcha_get'] == $_REQUEST['captcha_put']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
  382.                
  383.                 if (!file_exists("$check/comments")) {
  384.                         mkdir("$check/comments");
  385.                 }
  386.                 if (!file_exists("$check/comments/pending")) {
  387.                         mkdir("$check/comments/pending");
  388.                 }
  389.  
  390.                 if (!file_exists("$check/comments/live")) {
  391.                         mkdir("$check/comments/live");
  392.                 }
  393.  
  394.                 // GNU date format
  395.                 //$timestamp = date("D M j H:i:s \P\H\T Y", time() + $offset);
  396.  
  397.                 // Simple PHP Blog format
  398.                 $timestamp = date("l, M j, Y, g:i A", time() + $offset);
  399.  
  400.                 $comment_entry_dir = date("YmdHis", time() + $offset);
  401.  
  402.                 mkdir("$check/comments/pending/$comment_entry_dir");
  403.  
  404.                 $body_content = ucfirst($_REQUEST['new_comment']);
  405.                 $body_content = htmlentities($body_content, ENT_NOQUOTES);
  406.                 // $body_content = str_replace('href=', 'target=_maj href=', $body_content);
  407.                 $body_content = str_replace("\n", '<br />', $body_content);
  408.                 $body_content = trim($body_content);
  409.  
  410.                 $body_content = str_replace(':((', '<img src=images/smileys/crying.png border=0>', $body_content);
  411.  
  412.                 $body_content = str_replace(':(', '<img src=images/smileys/frown.png border=0>', $body_content);
  413.  
  414.                 $body_content = str_replace(':|', '<img src=images/smileys/indifferent.png border=0>', $body_content);
  415.  
  416.                 $body_content = str_replace(':D', '<img src=images/smileys/laughing.png border=0>', $body_content);
  417.  
  418.                 $body_content = str_replace(':P', '<img src=images/smileys/lick.png border=0>', $body_content);
  419.  
  420.                 $body_content = str_replace(':O', '<img src=images/smileys/ohno.png border=0>', $body_content);
  421.  
  422.                 $body_content = str_replace(':)', '<img src=images/smileys/smile.png border=0>', $body_content);
  423.  
  424.                 $body_content = str_replace('=)', '<img src=images/smileys/surprised.png border=0>', $body_content);
  425.  
  426.                 $body_content = str_replace(':\\', '<img src=images/smileys/undecided.png border=0>', $body_content);
  427.  
  428.                 $body_content = str_replace(';)', '<img src=images/smileys/wink.png border=0>', $body_content);
  429.  
  430.                 $fp_body_txt = fopen("$check/comments/pending/$comment_entry_dir/comment.txt","w");
  431.                 fwrite($fp_body_txt,$body_content);
  432.                 fclose($fp_body_txt);
  433.  
  434.                 $fp_timestamp_txt = fopen("$check/comments/pending/$comment_entry_dir/timestamp.txt","w");
  435.                 fwrite($fp_timestamp_txt,$timestamp);
  436.                 fclose($fp_timestamp_txt);
  437.  
  438.                 $fp_firstname_txt = fopen("$check/comments/pending/$comment_entry_dir/firstname.txt","w");
  439.                 $firstname = strtolower($_REQUEST['firstname']);
  440.                 $firstname = ucwords($firstname);
  441.                 $firstname = trim($firstname);
  442.                 $firstname = htmlentities($firstname, ENT_NOQUOTES);
  443.                 fwrite($fp_firstname_txt,$firstname);
  444.                 fclose($fp_firstname_txt);
  445.  
  446.                 $fp_lastname_txt = fopen("$check/comments/pending/$comment_entry_dir/lastname.txt","w");
  447.                 $lastname = strtolower($_REQUEST['lastname']);
  448.                 $lastname = ucwords($lastname);
  449.                 $lastname = trim($lastname);
  450.                 $lastname = htmlentities($lastname, ENT_NOQUOTES);
  451.                 fwrite($fp_lastname_txt,$lastname);
  452.                 fclose($fp_lastname_txt);
  453.  
  454.                 $fp_email_txt = fopen("$check/comments/pending/$comment_entry_dir/email.txt","w");
  455.                 $email = str_replace('@', ' at ', $_REQUEST['email']);
  456.                 $email = strtolower($email);
  457.                 $email = trim($email);
  458.                 $email = htmlentities($email, ENT_NOQUOTES);
  459.                 fwrite($fp_email_txt,$email);
  460.                 fclose($fp_email_txt);
  461.  
  462.                 if (isset($_REQUEST['url']) and !empty($_REQUEST['url']) and (ereg("\.", $_REQUEST['url']))) {
  463.                         $fp_url_txt = fopen("$check/comments/pending/$comment_entry_dir/url.txt","w");
  464.                         $url = str_replace('http://', '', $_REQUEST['url']);
  465.                         $url = strtolower($url);
  466.                         $url = trim($url);
  467.                         $url = 'http://' . $url;
  468.                         $url = htmlentities($url, ENT_NOQUOTES);
  469.                         fwrite($fp_url_txt,$url);
  470.                         fclose($fp_url_txt);
  471.                 }
  472.  
  473.                 if (isset($_REQUEST['cauthor']) and !empty($_REQUEST['cauthor'])) {
  474.                         $fp_cauthor_txt = fopen("$check/comments/pending/$comment_entry_dir/author.txt","w");
  475.                         fwrite($fp_cauthor_txt,$_REQUEST['cauthor']);
  476.                         fclose($fp_cauthor_txt);
  477.                 }
  478.  
  479.                 $key_rand = str_rand(14);
  480.                 $fp_key_txt = fopen("$check/comments/pending/$comment_entry_dir/key.txt","w");
  481.                 fwrite($fp_key_txt,$key_rand);
  482.                 fclose($fp_key_txt);
  483.  
  484.                 $comment_quote = ucfirst($_REQUEST['new_comment']);
  485.                 //$comment_quote = htmlentities($comment_quote, ENT_NOQUOTES);
  486.  
  487.                 $sig_author_file = "data/author.txt";
  488.                 $fp_sig_author = fopen($sig_author_file, "r");
  489.                 $sig_author = fread($fp_sig_author, filesize($sig_author_file));
  490.                 fclose($fp_sig_author);
  491.  
  492.                 $sig_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  493.                 $sig_url = str_replace('//', '/', $sig_url);
  494.                 $sig_url = "http://" . $sig_url;
  495.  
  496.                 $email_to = strtolower($_REQUEST['email']);
  497.                 $email_to = '"' . "$firstname $lastname" . '" <' . $email_to . '>';
  498.  
  499.                 if (file_exists("data/email.txt")) {
  500.                         $from_email_author = file_get_contents("data/author.txt");
  501.                         $from_email = file_get_contents("data/email.txt");
  502.                         $from_email = '"' . $from_email_author . '" <' . $from_email . '>';
  503.                 }
  504.  
  505.                 $mailer = 'MAJ/0.14 (PHP/' . phpversion() . ')';
  506.  
  507.                 $commented_entry_title_file = "data/items/{$_REQUEST['entry']}/title.txt";
  508.                 $fp_commented_entry_title = fopen($commented_entry_title_file, "r");
  509.                 $commented_entry_title = fread($fp_commented_entry_title, filesize($commented_entry_title_file));
  510.                 fclose($fp_commented_entry_title);
  511.  
  512.                 if (!file_exists("data/nak.txt") and file_exists("data/email.txt")) {
  513.                         $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";
  514.  
  515.                         $comment_thanks = wordwrap($comment_thanks);
  516.  
  517.                         mail($email_to, "Thanks for sharing your thoughts!", $comment_thanks,
  518.                                 "From: $from_email\r\n" .
  519.                                 "Reply-To: $from_email\r\n" .
  520.                                 "X-Mailer: $mailer");
  521.                 }
  522.  
  523.                 if (file_exists("data/email.txt")) {
  524.                         $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.";
  525.  
  526.                         $comment_notice = wordwrap($comment_notice);
  527.  
  528.                         mail($from_email, "Pending Comment", $comment_notice,
  529.                                 "From: $from_email\r\n" .
  530.                                 "Reply-To: $from_email\r\n" .
  531.                                 "X-Mailer: $mailer");
  532.                 }
  533.  
  534.                 if (!file_exists("data/comments")) {
  535.                         mkdir("data/comments");
  536.                 }
  537.  
  538.                 if (!file_exists("data/comments/pending")) {
  539.                         mkdir("data/comments/pending");
  540.                 }
  541.  
  542.                 $pending_comment_flag = $_REQUEST['entry'];
  543.  
  544.                 if (!file_exists("data/comments/pending/$pending_comment_flag")) {
  545.                         mkdir("data/comments/pending/$pending_comment_flag");
  546.                 }
  547.  
  548.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","r");
  549.                 $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$pending_comment_flag/count.txt"));
  550.                 fclose($fp_comment_count_txt);
  551.                 $comment_count_value = $comment_count_value + 1;
  552.                 $fp_comment_count_txt = fopen("data/comments/pending/$pending_comment_flag/count.txt","w");
  553.                 fwrite($fp_comment_count_txt, $comment_count_value);
  554.                 fclose($fp_comment_count_txt);
  555.  
  556.                 }
  557.  
  558.         }
  559.         else {
  560.                 echo '<title>' . $default_title . '</title>';
  561.                 if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  562.                         $filter = $_REQUEST['archive'] . "*";
  563.                 }
  564.                 else {
  565.                         $filter = "*";
  566.                 }
  567.         }
  568. }
  569. else {
  570.         echo '<title>' . $default_title . '</title>';
  571.         if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  572.                 $filter = $_REQUEST['archive'] . "*";
  573.         }
  574.         else {
  575.                 $filter = "*";
  576.         }
  577. }
  578.  
  579. ?>
  580.  
  581. <?php
  582.  
  583. if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and file_exists("data/items/{$_REQUEST['entry']}")) {
  584.  
  585.         $cat_dir = file_get_contents("data/items/{$_REQUEST['entry']}/category.txt");
  586.  
  587.         if (!file_exists("data/categories/$cat_dir/private.txt")) {
  588.  
  589.                 if (!file_exists("data/items/{$_REQUEST['entry']}/passwd.txt")) {
  590.  
  591.                         if (!file_exists("data/items/{$_REQUEST['entry']}/private.txt")) {
  592.  
  593.                                 $description = file_get_contents("data/items/{$_REQUEST['entry']}/body.txt");
  594.                                 $description = strip_tags($description);
  595.                                 $description = html_entity_decode($description);
  596.                                 $description = str_replace("&","&amp;",$description);
  597.                                 $description = str_replace("<","&lt;",$description);
  598.                                 $description = str_replace(">","&gt;",$description);
  599.                                 $description = str_replace("<br>"," ",$description);
  600.                                 $description = str_replace("<br />"," ",$description);
  601.                                 $description = str_replace("\r"," ",$description);
  602.                                 $description = str_replace("\n"," ",$description);
  603.                                 $description = str_replace(chr(10)," ",$description);
  604.                                 $description = str_replace(chr(13)," ",$description);
  605.                                 $description = trim($description);
  606.                                 $description = substr($description,0,210);
  607.                                 $description = htmlentities($description, ENT_NOQUOTES);
  608.  
  609.                                                 if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt") and (!isset($_SESSION['logged_in']) or empty($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt"))))) {
  610.                                         $badwords = file_get_contents("data/pf-badwords.txt");
  611.                                         if (file_exists("data/pf-censor.txt")) {
  612.                                                 $censor = file_get_contents("data/pf-censor.txt");
  613.                                         }
  614.                                         else {
  615.                                                 $censor = "[expletive]";
  616.                                         }
  617.                                         $description = preg_replace("/\b($badwords)\b/i",$censor,$description);
  618.                                 }
  619.  
  620.                                 echo "<meta name=\"description\" content=\"{$description}\">";
  621.                         }
  622.                 }
  623.         }
  624. }
  625.  
  626. ?>
  627.  
  628. <style>
  629.  
  630. body {
  631.         color: <?php
  632.                         if (file_exists("data/colors/font.txt")) {
  633.                                 $font_color = file_get_contents("data/colors/font.txt");
  634.                                 echo $font_color;
  635.                         }
  636.                         else {
  637.                                 echo "#666666";
  638.                         }
  639.         ?>;
  640.  
  641.         margin: 0px 0px 10px 10px;
  642.         padding: 0px;
  643.         text-align: left;
  644.         font-family: verdana, helvetica, sans-serif;
  645.  
  646.         background-color: <?php
  647.                                 if (file_exists("data/colors/bg.txt")) {
  648.                                         $background_color = file_get_contents("data/colors/bg.txt");
  649.                                         echo $background_color;
  650.                                 }
  651.                                 else {
  652.                                         echo "#ffffff";
  653.                                 }
  654.         ?>;
  655.  
  656.         <?php
  657.         if (file_exists("images/background.gif") and !file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  658.         background-image: url('images/background.gif');
  659.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  660.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  661.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  662.         <?php
  663.         }
  664.         if (!file_exists("images/background.gif") and file_exists("images/background.jpg") and !file_exists("images/background.png")) { ?>
  665.         background-image: url('images/background.jpg');
  666.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  667.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  668.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  669.         <?php
  670.         }
  671.         if (!file_exists("images/background.gif") and !file_exists("images/background.jpg") and file_exists("images/background.png")) { ?>
  672.         background-image: url('images/background.png');
  673.         background-attachment: <?php if (file_exists("data/bg-scroll.txt")) { echo scroll; } else { echo fixed; } ?>;
  674.         background-repeat: <?php if (file_exists("data/bg-repeat.txt")) { readfile("data/bg-repeat.txt"); } else { echo repeat; } ?>;
  675.         background-position: <?php if (file_exists("data/bg-position.txt")) { readfile("data/bg-position.txt"); } else { echo "top left"; } ?>;
  676.         <?php
  677.         }
  678.         ?>
  679. }
  680.  
  681. p, td {
  682.         font-size: 11px;
  683. }
  684.  
  685. a {
  686.         font-weight: bold;
  687.         text-decoration: none;
  688. }
  689.  
  690. a:link {
  691.         color: <?php
  692.                         if (file_exists("data/colors/link.txt")) {
  693.                                 $a_link_color = file_get_contents("data/colors/link.txt");
  694.                                 echo $a_link_color;
  695.                         }
  696.                         else {
  697.                                 echo "#666666";
  698.                         }
  699.         ?>;
  700. }
  701.  
  702. a:visited {
  703.         color: <?php
  704.                         if (file_exists("data/colors/vlink.txt")) {
  705.                                 $a_visited_color = file_get_contents("data/colors/vlink.txt");
  706.                                 echo $a_visited_color;
  707.                         }
  708.                         else {
  709.                                 echo "#666666";
  710.                         }
  711.         ?>;
  712. }
  713.  
  714. a:hover {
  715.         color: <?php
  716.                         if (file_exists("data/colors/hover.txt")) {
  717.                                 $a_hover_color = file_get_contents("data/colors/hover.txt");
  718.                                 echo $a_hover_color;
  719.                         }
  720.                         else {
  721.                                 echo "#336699";
  722.                         }
  723.         ?>;
  724. }
  725.  
  726. a:active {
  727.         color: <?php
  728.                         if (file_exists("data/colors/hover.txt")) {
  729.                                 $a_active_color = file_get_contents("data/colors/hover.txt");
  730.                                 echo $a_active_color;
  731.                         }
  732.                         else {
  733.                                 echo "#336699";
  734.                         }
  735.         ?>;
  736. }
  737.  
  738. #panel_title {
  739.         font-family: verdana, helvetica, sans-serif;
  740.         font-size: 12px;
  741.         font-weight: bold;
  742.  
  743.         color: <?php
  744.                         if (file_exists("data/colors/pt-font.txt")) {
  745.                                 $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
  746.                                 echo $panel_title_font_color;
  747.                         }
  748.                         else {
  749.                                 echo "#666666";
  750.                         }
  751.         ?>;
  752.  
  753.         padding: 5px 5px 5px 5px;
  754.  
  755.         background-color: <?php
  756.                                 if (file_exists("data/colors/pt-bg.txt")) {
  757.                                         $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
  758.                                         echo $panel_title_background_color;
  759.                                 }
  760.                                 else {
  761.                                         echo "transparent";
  762.                                 }
  763.         ?>;
  764.  
  765.         margin: 10px 0px 0px 0px;
  766.  
  767.         border-color: <?php
  768.                                 if (file_exists("data/colors/border.txt")) {
  769.                                         $panel_title_border_color = file_get_contents("data/colors/border.txt");
  770.                                         echo $panel_title_border_color;
  771.                                 }
  772.                                 else {
  773.                                         echo "#cccccc";
  774.                                 }
  775.         ?>;
  776.  
  777.         border-width: 1px 1px 0px 1px;
  778.         border-style: solid solid none solid;
  779. }
  780.  
  781. #panel_body {
  782.         font-family: verdana, helvetica, sans-serif;
  783.         font-size: 11px;
  784.  
  785.         color: <?php
  786.                         if (file_exists("data/colors/pb-font.txt")) {
  787.                                 $panel_body_font_color = file_get_contents("data/colors/pb-font.txt");
  788.                                 echo $panel_body_font_color;
  789.                         }
  790.                         else {
  791.                                 echo "#666666";
  792.                         }
  793.         ?>;
  794.  
  795.         <?php
  796.                 if (file_exists("data/round.txt")) {
  797.                         echo 'padding: 5px 5px 2px 5px;';
  798.                 }
  799.                 else {
  800.                         echo 'padding: 5px 5px 5px 5px;';
  801.                 }
  802.         ?>
  803.  
  804.         background-color: <?php
  805.                                 if (file_exists("data/colors/pb-bg.txt")) {
  806.                                         $panel_body_background_color = file_get_contents("data/colors/pb-bg.txt");
  807.                                         echo $panel_body_background_color;
  808.                                 }
  809.                                 else {
  810.                                         echo "transparent";
  811.                                 }
  812.         ?>;
  813.  
  814.         margin: 0px;
  815.  
  816.         border-color: <?php
  817.                         if (file_exists("data/colors/border.txt")) {
  818.                                 $panel_body_border_color = file_get_contents("data/colors/border.txt");
  819.                                 echo $panel_body_border_color;
  820.                         }
  821.                         else {
  822.                                 echo "#cccccc";
  823.                         }
  824.         ?>;
  825.  
  826.         <?php
  827.                 if (file_exists("data/round.txt")) {
  828.                         echo 'border-width: 1px 1px 0px 1px;';
  829.                         echo 'border-style: solid solid none solid;';
  830.                 }
  831.                 else {
  832.                         echo 'border-width: 1px 1px 1px 1px;';
  833.                         echo 'border-style: solid solid solid solid;';
  834.                 }
  835.         ?>
  836. }
  837.  
  838. #panel_footer {
  839.         font-family: verdana, helvetica, sans-serif;
  840.         font-size: 11px;
  841.  
  842.         color: <?php
  843.                         if (file_exists("data/colors/pf-font.txt")) {
  844.                                 $panel_footer_font_color = file_get_contents("data/colors/pf-font.txt");
  845.                                 echo $panel_footer_font_color;
  846.                         }
  847.                         else {
  848.                                 echo "#666666";
  849.                         }
  850.         ?>;
  851.  
  852.         <?php
  853.                 if (file_exists("data/round.txt")) {
  854.                         echo 'padding: 5px 5px 2px 5px;';
  855.                 }
  856.                 else {
  857.                         echo 'padding: 5px 5px 5px 5px;';
  858.                 }
  859.         ?>
  860.  
  861.         background-color: <?php
  862.                                 if (file_exists("data/colors/pf-bg.txt")) {
  863.                                         $panel_footer_background_color = file_get_contents("data/colors/pf-bg.txt");
  864.                                         echo $panel_footer_background_color;
  865.                                 }
  866.                                 else {
  867.                                         echo "transparent";
  868.                                 }
  869.         ?>;
  870.  
  871.         margin: 0px;
  872.  
  873.         border-color: <?php
  874.                                 if (file_exists("data/colors/border.txt")) {
  875.                                         $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  876.                                         echo $panel_footer_border_color;
  877.                                 }
  878.                                 else {
  879.                                         echo "#cccccc";
  880.                                 }
  881.         ?>;
  882.  
  883.         <?php
  884.                 if (file_exists("data/round.txt")) {
  885.                         echo 'border-width: 1px 1px 0px 1px;';
  886.                         echo 'border-style: solid solid none solid;';
  887.                 }
  888.                 else {
  889.                         echo 'border-width: 0px 1px 1px 1px;';
  890.                         echo 'border-style: none solid solid solid;';
  891.                 }
  892.         ?>
  893.  
  894.         text-align: right;
  895. }
  896.  
  897. .input {        
  898.         color: <?php
  899.                         if (file_exists("data/colors/border.txt")) {
  900.                                 $input_color = file_get_contents("data/colors/border.txt");
  901.                                 echo $input_color;
  902.                         }
  903.                         else {
  904.                                 echo "#666666";
  905.                         }
  906.         ?>;
  907.  
  908.         background: #ffffff;
  909.  
  910.         border: <?php
  911.                         if (file_exists("data/colors/border.txt")) {
  912.                                 $panel_footer_border_color = file_get_contents("data/colors/border.txt");
  913.                                 echo $panel_footer_border_color;
  914.                         }
  915.                         else {
  916.                                 echo "#999999";
  917.                         }
  918.         ?> solid 1px;
  919.  
  920.         width: 300px;
  921.         font-family: verdana,helvetica,sans-serif;
  922.         font-size: 11px;
  923. }
  924.  
  925. .search {      
  926.         color: #666666;
  927.         background: #ffffff;
  928.         width: 100%;
  929.         font-family: verdana,helvetica,sans-serif;
  930.         font-size: 11px;
  931. }
  932.  
  933. #panel_free {
  934.         padding: 0px 5px 0px 5px;
  935.         margin: 10px 0px 0px 0px;
  936. }
  937.  
  938.  
  939. .rbtop {
  940.         display: block;
  941.         background: transparent;
  942.         font-size: 1px;
  943.         margin: 10px 0px 0px 0px;
  944. }
  945.  
  946. .rbbottom {
  947.         display: block;
  948.         background: transparent;
  949.         font-size: 1px;
  950.         margin: 0px 0px 0px 0px;
  951. }
  952.  
  953. .rb1t, .rb2t, .rb3t, .rb4t, .rb1b, .rb2b, .rb3b, .rb4b, .rb1e, .rb2e, .rb3e, .rb4e {
  954.         display: block;
  955.         overflow: hidden;
  956. }
  957.  
  958. .rb1t, .rb2t, .rb3t, .rb1b, .rb2b, .rb3b, .rb1e, .rb2e, .rb3e {
  959.         height: 1px;
  960. }
  961.  
  962. .rb2t, .rb3t, .rb4t {
  963.         background-color: <?php
  964.                                 if (file_exists("data/colors/pt-bg.txt")) {
  965.                                         $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
  966.                                         echo $panel_title_background_color;
  967.                                 }
  968.                                 else {
  969.                                         echo "transparent";
  970.                                 }
  971.         ?>;
  972.         border-left: 1px solid;
  973.         border-right: 1px solid;
  974.         border-color: <?php
  975.                         if (file_exists("data/colors/border.txt")) {
  976.                                 $panel_title_border_color = file_get_contents("data/colors/border.txt");
  977.                                 echo $panel_title_border_color;
  978.                         }
  979.                         else {
  980.                                 echo "#cccccc";
  981.                         };
  982.         ?>;
  983. }
  984.  
  985. .rb2b, .rb3b, .rb4b {
  986.         background-color: <?php
  987.                                 if (file_exists("data/colors/pb-bg.txt")) {
  988.                                         $panel_title_background_color = file_get_contents("data/colors/pb-bg.txt");
  989.                                         echo $panel_title_background_color;
  990.                                 }
  991.                                 else {
  992.                                         echo "transparent";
  993.                                 }
  994.         ?>;
  995.         border-left: 1px solid;
  996.         border-right: 1px solid;
  997.         border-color: <?php
  998.                         if (file_exists("data/colors/border.txt")) {
  999.                                 $panel_title_border_color = file_get_contents("data/colors/border.txt");
  1000.                                 echo $panel_title_border_color;
  1001.                         }
  1002.                         else {
  1003.                                 echo "#cccccc";
  1004.                         };
  1005.         ?>;
  1006. }
  1007.  
  1008. .rb2e, .rb3e, .rb4e {
  1009.         background-color: <?php
  1010.                                 if (file_exists("data/colors/pf-bg.txt")) {
  1011.                                         $panel_title_background_color = file_get_contents("data/colors/pf-bg.txt");
  1012.                                         echo $panel_title_background_color;
  1013.                                 }
  1014.                                 else {
  1015.                                         echo "transparent";
  1016.                                 }
  1017.         ?>;
  1018.         border-left: 1px solid;
  1019.         border-right: 1px solid;
  1020.         border-color: <?php
  1021.                         if (file_exists("data/colors/border.txt")) {
  1022.                                 $panel_title_border_color = file_get_contents("data/colors/border.txt");
  1023.                                 echo $panel_title_border_color;
  1024.                         }
  1025.                         else {
  1026.                                 echo "#cccccc";
  1027.                         };
  1028.         ?>;
  1029. }
  1030.  
  1031. .rb1t, .rb1b, .rb1e {
  1032.         margin: 0 5px;
  1033.         background: <?php
  1034.                         if (file_exists("data/colors/border.txt")) {
  1035.                                 $panel_title_border_color = file_get_contents("data/colors/border.txt");
  1036.                                 echo $panel_title_border_color;
  1037.                         }
  1038.                         else {
  1039.                                 echo "#cccccc";
  1040.                         };
  1041.         ?>;
  1042. }
  1043.  
  1044. .rb2t, .rb2b, .rb2e {
  1045.         margin: 0 3px;
  1046.         border-width: 0 2px;
  1047. }
  1048.  
  1049. .rb3t, .rb3b, .rb3e {
  1050.         margin: 0 2px;
  1051. }
  1052.  
  1053. .rb4t, .rb4b, .rb4e {
  1054.         height: 2px;
  1055.         margin: 0 1px;
  1056. }
  1057.  
  1058. .xtitle {
  1059.         display: block;
  1060.         border:0 solid;
  1061.         border-width:0 1px;
  1062.         padding: 1px 5px 5px 5px;
  1063.         font-weight: bold;
  1064.         color: <?php
  1065.                         if (file_exists("data/colors/pt-font.txt")) {
  1066.                                 $panel_title_font_color = file_get_contents("data/colors/pt-font.txt");
  1067.                                 echo $panel_title_font_color;
  1068.                         }
  1069.                         else {
  1070.                                 echo "#666666";
  1071.                         }
  1072.         ?>;
  1073.         background-color: <?php
  1074.                                 if (file_exists("data/colors/pt-bg.txt")) {
  1075.                                         $panel_title_background_color = file_get_contents("data/colors/pt-bg.txt");
  1076.                                         echo $panel_title_background_color;
  1077.                                 }
  1078.                                 else {
  1079.                                         echo "transparent";
  1080.                                 }
  1081.         ?>;
  1082.         border-color: <?php
  1083.                         if (file_exists("data/colors/border.txt")) {
  1084.                                 $panel_title_border_color = file_get_contents("data/colors/border.txt");
  1085.                                 echo $panel_title_border_color;
  1086.                         }
  1087.                         else {
  1088.                                 echo "#cccccc";
  1089.                         };
  1090.         ?>;
  1091. }
  1092.  
  1093. .rbspace {
  1094.         height: 3px;
  1095. }
  1096.  
  1097. </style>
  1098.  
  1099. <link rel="alternate" type="application/rss+xml" title="RSS 0.91" href="rss.php?ver=0.91">
  1100. <link rel="alternate" type="application/rss+xml" title="RSS 1.0" href="rss.php?ver=1.0">
  1101. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss.php?ver=2.0">
  1102.  
  1103. <?php
  1104.  
  1105. if (file_exists("data/center.txt")) {
  1106.         echo "<center>";
  1107. }
  1108.  
  1109. if (file_exists("header.php")) {
  1110.         include("header.php");
  1111.         echo '<p></p>';
  1112. }
  1113. ?>
  1114.  
  1115. <table border=0 cellspacing=10 cellpadding=0>
  1116. <tr><td width=175 valign=top>
  1117.  
  1118. <?php
  1119.  
  1120. if (file_exists("data/round.txt")) {
  1121.         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1122. }
  1123. else {
  1124.         echo '<div id=panel_title>';
  1125. }
  1126.  
  1127. ?>
  1128.  
  1129. Profile</div>
  1130. <div id=panel_body>
  1131. <?php
  1132. if (file_exists("images/profile.gif")) {
  1133.         $profile_gif_image_size = getimagesize("images/profile.gif");
  1134.         $profile_gif_image_width = $profile_gif_image_size[0];
  1135.         $profile_gif_image_height = $profile_gif_image_size[1];
  1136.  
  1137.         $max_profile_gif_image_width = 163;
  1138.  
  1139.         if ($profile_gif_image_width > $max_profile_gif_image_width) {  
  1140.                 $sizefactor = (double) ($max_profile_gif_image_width / $profile_gif_image_width) ;
  1141.                 $profile_gif_image_width = (int) ($profile_gif_image_width * $sizefactor);
  1142.                 $profile_gif_image_height = (int) ($profile_gif_image_height * $sizefactor);
  1143.         }
  1144.  
  1145.         echo "<img src=images/profile.gif border=0 width=";
  1146.         echo $profile_gif_image_width;
  1147.         echo " height=";
  1148.         echo $profile_gif_image_height;
  1149.         echo " align=left>";
  1150. }
  1151. if (file_exists("images/profile.jpg")) {
  1152.         $profile_jpg_image_size = getimagesize("images/profile.jpg");
  1153.         $profile_jpg_image_width = $profile_jpg_image_size[0];
  1154.         $profile_jpg_image_height = $profile_jpg_image_size[1];
  1155.  
  1156.         $max_profile_jpg_image_width = 163;
  1157.  
  1158.         if ($profile_jpg_image_width > $max_profile_jpg_image_width) {  
  1159.                 $sizefactor = (double) ($max_profile_jpg_image_width / $profile_jpg_image_width) ;
  1160.                 $profile_jpg_image_width = (int) ($profile_jpg_image_width * $sizefactor);
  1161.                 $profile_jpg_image_height = (int) ($profile_jpg_image_height * $sizefactor);
  1162.         }
  1163.  
  1164.         echo "<img src=images/profile.jpg border=0 width=";
  1165.         echo $profile_jpg_image_width;
  1166.         echo " height=";
  1167.         echo $profile_jpg_image_height;
  1168.         echo " align=left>";
  1169. }
  1170. if (file_exists("images/profile.png")) {
  1171.         $profile_png_image_size = getimagesize("images/profile.png");
  1172.         $profile_png_image_width = $profile_png_image_size[0];
  1173.         $profile_png_image_height = $profile_png_image_size[1];
  1174.  
  1175.         $max_profile_png_image_width = 163;
  1176.  
  1177.         if ($profile_png_image_width > $max_profile_png_image_width) {  
  1178.                 $sizefactor = (double) ($max_profile_png_image_width / $profile_png_image_width) ;
  1179.                 $profile_png_image_width = (int) ($profile_png_image_width * $sizefactor);
  1180.                 $profile_png_image_height = (int) ($profile_png_image_height * $sizefactor);
  1181.         }
  1182.  
  1183.         echo "<img src=images/profile.png border=0 width=";
  1184.         echo $profile_png_image_width;
  1185.         echo " height=";
  1186.         echo $profile_png_image_height;
  1187.         echo " align=left>";
  1188. }
  1189. include("data/profile.php");
  1190. ?>
  1191. </div>
  1192.  
  1193. <?php
  1194.         if (file_exists("data/round.txt")) {
  1195.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  1196.         }
  1197. ?>
  1198.  
  1199. <?php
  1200.  
  1201. if (file_exists("data/round.txt")) {
  1202.         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1203. }
  1204. else {
  1205.         echo '<div id=panel_title>';
  1206. }
  1207.  
  1208. ?>
  1209.  
  1210. Navigation</div>
  1211. <div id=panel_body>
  1212. <a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
  1213.  
  1214. <?php
  1215.  
  1216. if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
  1217.         echo '<a href=member.php?id=all>Members</a><br>';
  1218. }
  1219.  
  1220. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1221.         echo '<a href=add.php>Add Entry</a><br>';
  1222.         echo '<a href=settings.php>Settings</a><br>';
  1223.         echo '<a href=panels.php>Panels</a><br>';
  1224.         echo '<a href=cat.php>Categories</a><br>';
  1225.         echo '<a href=colors.php>Colors</a><br>';
  1226.         echo '<a href=login.php>Logout</a>';
  1227. } elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
  1228.  
  1229.         if (file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt")) {
  1230.                 $bb_cat = file_get_contents("data/members/active/{$_SESSION['logged_in']}/category.txt");
  1231.                 if (!file_exists("data/categories/$bb_cat") or ($bb_cat == "")) {
  1232.                         unlink("data/members/active/{$_SESSION['logged_in']}/category.txt");
  1233.                 }
  1234.         }
  1235.  
  1236.         if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt")) {
  1237.                 echo '<a href=add.php>Add Entry</a><br>';
  1238.         }
  1239.         echo '<a href=options.php>Options</a><br>';
  1240.         echo '<a href=login.php>Logout</a>';
  1241. }
  1242. else {
  1243.         if (file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
  1244.                 echo '<a href=reg.php>Register</a><br>';
  1245.         }
  1246.         echo '<a href=login.php>Login</a>';
  1247. }
  1248. ?>
  1249.  
  1250. </div>
  1251.  
  1252. <?php
  1253.         if (file_exists("data/round.txt")) {
  1254.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  1255.         }
  1256. ?>
  1257.  
  1258. <?php
  1259. if (file_exists("data/sticky")) {
  1260.         if ($dh_sticky_list = opendir("data/sticky")) {
  1261.                 while (($entry_sticky_list = readdir($dh_sticky_list)) !== false) {
  1262.  
  1263.                         if (file_exists("data/items/$entry_sticky_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1264.                                 continue;
  1265.                         }
  1266.  
  1267.                         if (file_exists("data/items/$entry_sticky_list/member.txt") and (!isset($_SESSION['logged_in']))) {
  1268.                                 continue;
  1269.                         }
  1270.  
  1271.                         $get_cat_dir = file_get_contents("data/items/$entry_sticky_list/category.txt");
  1272.  
  1273.                         if (file_exists("data/categories/$get_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_sticky_list/cat.txt")) {
  1274.                                 continue;
  1275.                         }
  1276.  
  1277.                         if ($entry_sticky_list != "." && $entry_sticky_list != ".." && fnmatch("*", $entry_sticky_list)) {
  1278.                                 $show_sticky_list[] = $entry_sticky_list;
  1279.                         }
  1280.                 }
  1281.                 closedir($dh_sticky_list);
  1282.         }
  1283.  
  1284.         sort($show_sticky_list);
  1285.         reset($show_sticky_list);
  1286.         $count_sticky_list = count($show_sticky_list);
  1287.        
  1288.         if ($count_sticky_list > 0) {
  1289.  
  1290.                 if (file_exists("data/round.txt")) {
  1291.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1292.                 }
  1293.                 else {
  1294.                         echo '<div id=panel_title>';
  1295.                 }
  1296.                
  1297.                 echo 'Quick Links</div>';
  1298.                 echo '<div id=panel_body>';
  1299.                 foreach ($show_sticky_list as $sticky_list_entry) {
  1300.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
  1301.                         echo $sticky_list_entry;
  1302.                         echo '>';
  1303.                         readfile("data/items/$sticky_list_entry/title.txt");
  1304.                         echo '</a><br>';
  1305.                 }
  1306.                 echo '</div>';
  1307.  
  1308.                 if (file_exists("data/round.txt")) {
  1309.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  1310.                 }
  1311.         }
  1312. }
  1313. ?>
  1314.  
  1315.  
  1316.  
  1317. <?php
  1318. if (file_exists("data/panels")) {
  1319.         if ($dh_panel_list = opendir("data/panels")) {
  1320.                 while (($entry_panel_list = readdir($dh_panel_list)) !== false) {
  1321.  
  1322.                         if (file_exists("data/panels/$entry_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1323.                                 continue;
  1324.                         }
  1325.  
  1326.                         if (file_exists("data/panels/$entry_panel_list/right.txt")) {
  1327.                                 continue;
  1328.                         }
  1329.  
  1330.                         if (file_exists("data/panels/$entry_panel_list/center.txt")) {
  1331.                                 continue;
  1332.                         }
  1333.  
  1334.                         if (file_exists("data/panels/$entry_panel_list/top.txt")) {
  1335.                                 continue;
  1336.                         }
  1337.  
  1338.                         if (file_exists("data/panels/$entry_panel_list/entry.txt")) {
  1339.                                 continue;
  1340.                         }
  1341.  
  1342.                         if ($entry_panel_list != "." && $entry_panel_list != ".." && fnmatch("*", $entry_panel_list)) {
  1343.                                 $show_panel_list[] = $entry_panel_list;
  1344.                         }
  1345.                 }
  1346.                 closedir($dh_panel_list);
  1347.         }
  1348.  
  1349.         sort($show_panel_list);
  1350.         reset($show_panel_list);
  1351.         $count_panel_list = count($show_panel_list);
  1352.        
  1353.         if ($count_panel_list > 0) {
  1354.                 foreach ($show_panel_list as $panel_list_entry) {
  1355.                         if (!file_exists("data/panels/$panel_list_entry/free.txt")) {
  1356.  
  1357.                                 if (file_exists("data/round.txt")) {
  1358.                                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1359.                                 }
  1360.                                 else {
  1361.                                         echo '<div id=panel_title>';
  1362.                                 }
  1363.  
  1364.                                 readfile("data/panels/$panel_list_entry/title.txt");
  1365.  
  1366.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1367.                                         echo "<a href=panels.php#{$panel_list_entry}>";
  1368.                                         echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
  1369.                                 }
  1370.  
  1371.                                 echo '</div><div id=panel_body>';
  1372.                         }
  1373.  
  1374.                         if (file_exists("data/panels/$panel_list_entry/free.txt")) {
  1375.                                 echo '<div id=panel_free>';
  1376.                         }
  1377.  
  1378.                         include("data/panels/$panel_list_entry/panel.php");
  1379.  
  1380.                         echo '</div>';
  1381.  
  1382.                         if (file_exists("data/round.txt") and !file_exists("data/panels/$panel_list_entry/free.txt")) {
  1383.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  1384.                         }
  1385.                 }
  1386.         }
  1387. }
  1388. ?>
  1389.  
  1390. </td>
  1391.  
  1392. <td valign=top width=<?php if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) { echo "610"; } else { echo "525"; } ?>>
  1393.  
  1394. <?php
  1395. if (file_exists("data/panels")) {
  1396.         if ($dh_top_panel_list = opendir("data/panels")) {
  1397.                 while (($entry_top_panel_list = readdir($dh_top_panel_list)) !== false) {
  1398.  
  1399.                         if (file_exists("data/panels/$entry_top_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1400.                                 continue;
  1401.                         }
  1402.  
  1403.                         if (!file_exists("data/panels/$entry_top_panel_list/top.txt")) {
  1404.                                 continue;
  1405.                         }
  1406.  
  1407.                         if ($entry_top_panel_list != "." && $entry_top_panel_list != ".." && fnmatch("*", $entry_top_panel_list)) {
  1408.                                 $show_top_panel_list[] = $entry_top_panel_list;
  1409.                         }
  1410.                 }
  1411.                 closedir($dh_top_panel_list);
  1412.         }
  1413.  
  1414.         sort($show_top_panel_list);
  1415.         reset($show_top_panel_list);
  1416.         $count_top_panel_list = count($show_top_panel_list);
  1417.        
  1418.         if ($count_top_panel_list > 0) {
  1419.                 foreach ($show_top_panel_list as $top_panel_list_entry) {
  1420.                         if (!file_exists("data/panels/$top_panel_list_entry/free.txt")) {
  1421.  
  1422.                                 if (file_exists("data/round.txt")) {
  1423.                                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1424.                                 }
  1425.                                 else {
  1426.                                         echo '<div id=panel_title>';
  1427.                                 }
  1428.  
  1429.                                 readfile("data/panels/$top_panel_list_entry/title.txt");
  1430.  
  1431.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1432.                                         echo "<a href=panels.php#{$top_panel_list_entry}>";
  1433.                                         echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
  1434.                                 }
  1435.  
  1436.                                 echo '</div><div id=panel_body>';
  1437.                         }
  1438.  
  1439.                         if (file_exists("data/panels/$top_panel_list_entry/free.txt")) {
  1440.                                 echo '<div id=panel_free>';
  1441.                         }
  1442.  
  1443.                         include("data/panels/$top_panel_list_entry/panel.php");
  1444.                         echo '</div>';
  1445.  
  1446.                         if (file_exists("data/round.txt") and !file_exists("data/panels/$top_panel_list_entry/free.txt")) {
  1447.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  1448.                         }
  1449.                 }
  1450.         }
  1451. }
  1452. ?>
  1453.  
  1454. <?php
  1455.  
  1456. if (file_exists("data/bb.txt") and file_exists("data/bb-summary.txt") and !file_exists("data/lite.txt") and !isset($_REQUEST['entry']) and !isset($_REQUEST['category']) and !isset($_REQUEST['start']) and !isset($_REQUEST['author']) and !isset($_REQUEST['archive']) and !isset($_REQUEST['find'])) {
  1457.  
  1458. if ($dh_latest_post_items = opendir($dir)) {
  1459.         while (($entry_latest_post_items = readdir($dh_latest_post_items)) !== false) {
  1460.  
  1461.                 if (file_exists("data/items/$entry_latest_post_items/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1462.                         continue;
  1463.                 }
  1464.  
  1465.                 // hide_member (20070606)
  1466.                 //if (file_exists("data/items/$entry_latest_post_items/member.txt") and (!isset($_SESSION['logged_in']))) {
  1467.                 //      continue;
  1468.                 //}
  1469.  
  1470.                 $cat_dir = file_get_contents("data/items/$entry_latest_post_items/category.txt");
  1471.  
  1472.                 if (file_exists("data/categories/$cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_latest_post_items/cat.txt")) {
  1473.                         continue;
  1474.                 }
  1475.  
  1476.                 if ($entry_latest_post_items != "." && $entry_latest_post_items != ".." && fnmatch("*", $entry_latest_post_items)) {
  1477.                         $show_latest_post_items[] = $entry_latest_post_items;
  1478.                 }
  1479.         }
  1480.         closedir($dh_latest_post_items);
  1481. }
  1482.  
  1483. rsort($show_latest_post_items);
  1484. reset($show_latest_post_items);
  1485. $count_latest_post_items = count($show_latest_post_items);
  1486.  
  1487. if ($count_latest_post_items > 0) {
  1488.  
  1489.         if (file_exists("data/round.txt")) {
  1490.                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1491.         }
  1492.         else {
  1493.                 echo '<div id=panel_title>';
  1494.         }
  1495.  
  1496.         echo "Latest Entries</div><div id=panel_body>";
  1497.         echo "<table border=0 cellspacing=1 cellpadding=2 bgcolor=#cccccc width=100%>";
  1498.         echo "<tr><td bgcolor=#eeeeee align=center><p>topic</p></td><td bgcolor=#eeeeee align=center><p>author</p></td><td bgcolor=#eeeeee align=center><p>views</p></td><td bgcolor=#eeeeee align=center><p>comments</p></td><td bgcolor=#eeeeee align=center><p>last post</p></td></tr>";
  1499.  
  1500.         $increment_latest_post_entries = 0;
  1501.         $show_latest_post_entries = 5;
  1502.  
  1503.         while ($increment_latest_post_entries <= $show_latest_post_entries) {
  1504.                 echo '<tr><td bgcolor=#ffffff><a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_post_items[$increment_latest_post_entries] . '>';
  1505.                 readfile("$dir/$show_latest_post_items[$increment_latest_post_entries]/title.txt");
  1506.                 echo '</a></td>';
  1507.                 echo '<td bgcolor=#ffffff><a href=member.php?id=';
  1508.                 readfile("$dir/$show_latest_post_items[$increment_latest_post_entries]/author.txt");
  1509.                 echo '>';
  1510.                 readfile("$dir/$show_latest_post_items[$increment_latest_post_entries]/author.txt");
  1511.                 echo '</a></td>';
  1512.                 echo '<td bgcolor=#ffffff align=right>';
  1513.                 if (!file_exists("$dir/$show_latest_post_items[$increment_latest_post_entries]/views.txt")) {
  1514.                         echo 0;
  1515.                 }
  1516.                 else {
  1517.                         readfile("$dir/$show_latest_post_items[$increment_latest_post_entries]/views.txt");
  1518.                 }
  1519.                 echo '</td>';
  1520.  
  1521.                 if ($dh_summary_comments = opendir("$dir/$show_latest_post_items[$increment_latest_post_entries]/comments/live")) {
  1522.                         while (($entry_summary_comments = readdir($dh_summary_comments)) !== false) {
  1523.                                 if ($entry_summary_comments != "." && $entry_summary_comments != ".." && fnmatch("*", $entry_summary_comments)) {
  1524.                                         $items_summary_comments[] = $entry_summary_comments;
  1525.                                 }
  1526.                         }
  1527.                 closedir($dh_summary_comments);
  1528.                 }
  1529.                 rsort($items_summary_comments);
  1530.                 $summary_comments = count($items_summary_comments);
  1531.                 if ($summary_comments < 1) {
  1532.                         echo "<td bgcolor=#ffffff align=right><p>0</p></td>";
  1533.                         echo "<td bgcolor=#ffffff align=right><p>";
  1534.                         $iso_year = substr($show_latest_post_items[$increment_latest_post_entries],0,4);
  1535.                         $iso_month = substr($show_latest_post_items[$increment_latest_post_entries],4,2);
  1536.                         $iso_day = substr($show_latest_post_items[$increment_latest_post_entries],6,2);
  1537.                         $iso_last = $iso_year . "-" . $iso_month . "-" . $iso_day;
  1538.                         echo $iso_last;
  1539.                         echo "</p></td>";
  1540.                 }
  1541.                 else {
  1542.                         echo "<td bgcolor=#ffffff align=right><p>$summary_comments</p></td>";
  1543.                         echo "<td bgcolor=#ffffff align=right><p>";
  1544.                         $iso_year = substr($items_summary_comments[0],0,4);
  1545.                         $iso_month = substr($items_summary_comments[0],4,2);
  1546.                         $iso_day = substr($items_summary_comments[0],6,2);
  1547.                         $iso_last = $iso_year . "-" . $iso_month . "-" . $iso_day;
  1548.                         echo $iso_last;
  1549.                         echo "</p></td>";
  1550.                 }
  1551.                 unset($items_summary_comments);
  1552.  
  1553.                 $increment_latest_post_entries = $increment_latest_post_entries + 1;
  1554.         }
  1555. }
  1556.  
  1557. if ($count_latest_post_items > 0) {
  1558.         echo "</table></div>";
  1559.  
  1560.         if (file_exists("data/round.txt")) {
  1561.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  1562.         }
  1563. }
  1564.  
  1565. }
  1566.  
  1567. ?>
  1568.  
  1569. <?php
  1570. if (file_exists("data/panels")) {
  1571.         if ($dh_center_panel_list = opendir("data/panels")) {
  1572.                 while (($entry_center_panel_list = readdir($dh_center_panel_list)) !== false) {
  1573.  
  1574.                         if (file_exists("data/panels/$entry_center_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1575.                                 continue;
  1576.                         }
  1577.  
  1578.                         if (!file_exists("data/panels/$entry_center_panel_list/center.txt")) {
  1579.                                 continue;
  1580.                         }
  1581.  
  1582.                         if ($entry_center_panel_list != "." && $entry_center_panel_list != ".." && fnmatch("*", $entry_center_panel_list)) {
  1583.                                 $show_center_panel_list[] = $entry_center_panel_list;
  1584.                         }
  1585.                 }
  1586.                 closedir($dh_center_panel_list);
  1587.         }
  1588.  
  1589.         sort($show_center_panel_list);
  1590.         reset($show_center_panel_list);
  1591.         $count_center_panel_list = count($show_center_panel_list);
  1592.        
  1593.         if ($count_center_panel_list > 0) {
  1594.                 foreach ($show_center_panel_list as $center_panel_list_entry) {
  1595.                         if (!file_exists("data/panels/$center_panel_list_entry/free.txt")) {
  1596.  
  1597.                                 if (file_exists("data/round.txt")) {
  1598.                                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1599.                                 }
  1600.                                 else {
  1601.                                         echo '<div id=panel_title>';
  1602.                                 }
  1603.  
  1604.                                 readfile("data/panels/$center_panel_list_entry/title.txt");
  1605.  
  1606.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1607.                                         echo "<a href=panels.php#{$center_panel_list_entry}>";
  1608.                                         echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
  1609.                                 }
  1610.  
  1611.                                 echo '</div><div id=panel_body>';
  1612.                         }
  1613.  
  1614.                         if (file_exists("data/panels/$center_panel_list_entry/free.txt")) {
  1615.                                 echo '<div id=panel_free>';
  1616.                         }
  1617.  
  1618.                         include("data/panels/$center_panel_list_entry/panel.php");
  1619.                         echo '</div>';
  1620.  
  1621.                         if (file_exists("data/round.txt") and !file_exists("data/panels/$center_panel_list_entry/free.txt")) {
  1622.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  1623.                         }
  1624.                 }
  1625.         }
  1626. }
  1627. ?>
  1628.  
  1629. <?php
  1630.  
  1631. if (is_dir($dir)) {
  1632.         if ($dh = opendir($dir)) {
  1633.                 while (($entry_main = readdir($dh)) !== false) {
  1634.  
  1635.                         if (file_exists("data/items/$entry_main/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1636.                                 continue;
  1637.                         }
  1638.  
  1639.                         if (file_exists("data/items/$entry_main/member.txt") and (!isset($_SESSION['logged_in']))) {
  1640.                                 continue;
  1641.                         }
  1642.  
  1643.                         $cat_dir = file_get_contents("data/items/$entry_main/category.txt");
  1644.  
  1645.                         if (file_exists("data/categories/$cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_main/cat.txt")) {
  1646.                                 continue;
  1647.                         }
  1648.  
  1649.                         if (file_exists("data/nocat.txt") and file_exists("data/items/$entry_main/category.txt") and !file_exists("data/items/$entry_main/cat.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['category']) or empty($_REQUEST['category'])) and (!isset($_REQUEST['entry']) or empty($_REQUEST['entry'])) and (!isset($_REQUEST['author']) or empty($_REQUEST['author']))) {
  1650.                                 continue;
  1651.                         }
  1652.  
  1653.                         if ($entry_main != "." && $entry_main != ".." && fnmatch($filter, $entry_main)) {
  1654.                                 if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "-", "data/categories/{$_REQUEST['category']}"))))) {
  1655.                                         $category = str_replace(" ", "-", $_REQUEST['category']);
  1656.                                         $category = strtolower($category);
  1657.                                         $category = strip_tags($category);
  1658.                                         if (file_exists("data/items/$entry_main/category.txt") and (file_get_contents("data/items/$entry_main/category.txt") == "$category")) {
  1659.                                                 $items[] = $entry_main;
  1660.                                         }
  1661.                                 }
  1662.                                 elseif (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and file_exists("data/members/active/{$_REQUEST['author']}") and file_exists("data/bb.txt")) {
  1663.                                         if (file_exists("data/items/$entry_main/author.txt") and (file_get_contents("data/items/$entry_main/author.txt") == $_REQUEST['author'])) {
  1664.                                                 $items[] = $entry_main;
  1665.                                         }
  1666.                                 }
  1667.                                 elseif (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and !file_exists("data/members/active/{$_REQUEST['author']}") and (file_get_contents("data/username.txt") == $_REQUEST['author']) and file_exists("data/bb.txt")) {
  1668.                                         if (file_exists("data/items/$entry_main/author.txt") and (file_get_contents("data/items/$entry_main/author.txt") == $_REQUEST['author'])) {
  1669.                                                 $items[] = $entry_main;
  1670.                                         }
  1671.                                 }
  1672.                                 elseif (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "private")) {
  1673.                                         if (file_exists("data/items/$entry_main/private.txt")) {
  1674.                                                 $items[] = $entry_main;
  1675.                                         }
  1676.                                 }
  1677.                                 elseif (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "member")) {
  1678.                                         if (file_exists("data/items/$entry_main/member.txt")) {
  1679.                                                 $items[] = $entry_main;
  1680.                                         }
  1681.                                 }
  1682.                                 elseif (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "passwd")) {
  1683.                                         if (file_exists("data/items/$entry_main/passwd.txt")) {
  1684.                                                 $items[] = $entry_main;
  1685.                                         }
  1686.                                 }
  1687.                                 elseif (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
  1688.                                         if (file_exists("data/items/$entry_main/filedrop")) {
  1689.                                                 $items[] = $entry_main;
  1690.                                         }
  1691.                                 }
  1692.                                 elseif (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "album")) {
  1693.                                         if (file_exists("images/$entry_main/album")) {
  1694.                                                 $items[] = $entry_main;
  1695.                                         }
  1696.                                 }
  1697.                                 else {
  1698.                                         $items[] = $entry_main;
  1699.                                 }
  1700.                         }
  1701.                 }
  1702.                 closedir($dh);
  1703.         }
  1704. }
  1705.  
  1706. if (!file_exists("data/old.txt")) {
  1707.         rsort($items);
  1708. }
  1709.  
  1710. if (file_exists("data/old.txt")) {
  1711.         sort($items);
  1712. }
  1713.  
  1714. if (isset($_REQUEST['category']) and !empty($_REQUEST['category'])) {
  1715.  
  1716.         $category = str_replace(" ", "-", $_REQUEST['category']);
  1717.         $category = strtolower($category);
  1718.         $category = strip_tags($category);
  1719.  
  1720.         if (file_exists("data/categories/$category/book.txt")) {
  1721.                 sort($items);
  1722.         }
  1723. }
  1724.  
  1725. reset($items);
  1726.  
  1727. $start = $_REQUEST['start'];
  1728.  
  1729. if (!isset($_REQUEST['start']) or empty($_REQUEST['start'])) {
  1730.         $start = 0;
  1731. }
  1732.  
  1733. $end=$start+$increase;
  1734.    
  1735. $disp=array_slice($items,$start,$increase);
  1736.  
  1737. foreach ($disp as $d) {
  1738.  
  1739.         if (file_exists("$dir/$d/category.txt")) {
  1740.                 $category_check = 'data/categories/' . file_get_contents("$dir/$d/category.txt");
  1741.                 if (!file_exists($category_check)) {
  1742.                         unlink("$dir/$d/category.txt");
  1743.                 }
  1744.         }
  1745.  
  1746.         if (file_exists("$dir/$d/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1747.                 continue;
  1748.         }
  1749.  
  1750.         if (file_exists("$dir/$d/member.txt") and (!isset($_SESSION['logged_in']))) {
  1751.                 continue;
  1752.         }
  1753.  
  1754.         echo '<table border=0 cellspacing=0 cellpadding=0 bgcolor=#cccccc style="background-color: transparent;"><tr><td width=';
  1755.         if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
  1756.                 echo "610";
  1757.         }
  1758.         else {
  1759.                 echo "525";
  1760.         }
  1761.         echo '>';
  1762.  
  1763.         if (file_exists("data/round.txt")) {
  1764.                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  1765.         }
  1766.         else {
  1767.                 echo '<div id=panel_title>';
  1768.         }
  1769.  
  1770.         readfile("$dir/$d/title.txt");
  1771.        
  1772.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  1773.                 echo '<a href=del.php?entry=';
  1774.                 echo $d;
  1775.                 echo '><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete entry"></a>';
  1776.                 echo '<a href=edit.php?entry=';
  1777.                 echo $d;
  1778.                 echo '><img src=images/widget.edit.png border=0 width=11 height=11 align=right alt="edit entry"></a>';
  1779.                 if (file_exists("$dir/$d/passwd.txt")) {
  1780.                         echo '<img src=images/widget.protected.png border=0 width=11 height=11 align=right alt="protected entry">';
  1781.                 }
  1782.  
  1783.                 if (file_exists("$dir/$d/private.txt")) {
  1784.                         echo '<img src=images/widget.private.png border=0 width=11 height=11 align=right alt="private entry">';
  1785.                 }
  1786.                 if (file_exists("$dir/$d/member.txt")) {
  1787.                         echo '<img src=images/widget.member.png border=0 width=11 height=11 align=right alt="member-only entry">';
  1788.                 }
  1789.                 if (file_exists("$dir/$d/cat.txt")) {
  1790.                         echo '<img src=images/widget.cat.png border=0 width=11 height=11 align=right alt="always display">';
  1791.                 }
  1792.                 if (file_exists("$dir/$d/category.txt")) {
  1793.  
  1794.                         $read_cat_dir = file_get_contents("$dir/$d/category.txt");
  1795.  
  1796.                         if (file_exists("data/categories/$read_cat_dir/private.txt")) {
  1797.                                 echo '<img src=images/widget.hidden.png border=0 width=11 height=11 align=right alt="category hidden">';
  1798.                         }
  1799.  
  1800.                         if (file_exists("data/nocat.txt")) {
  1801.                                 echo '<img src=images/widget.isolated.png border=0 width=11 height=11 align=right alt="category isolated">';
  1802.                         }
  1803.  
  1804.                         if (file_exists("data/categories/$read_cat_dir/book.txt")) {
  1805.                                 echo '<img src=images/widget.booked.png border=0 width=11 height=11 align=right alt="category booked">';
  1806.                         }
  1807.  
  1808.                         echo '<img src=images/widget.filed.png border=0 width=11 height=11 align=right alt="filed under ';
  1809.                         readfile("$dir/$d/category.txt");
  1810.                         echo '">';
  1811.                 }
  1812.  
  1813.         }
  1814.  
  1815.         echo '</div><div id=panel_body><table border=0 cellspacing=0 cellpadding=0><tr>';
  1816.  
  1817.         if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("$dir/$d/author.txt")) {
  1818.                 echo "<td width=85 valign=top><p>";
  1819.                 $author = file_get_contents("$dir/$d/author.txt");
  1820.                 echo "<a href=member.php?id=$author>";
  1821.                 if ((file_get_contents("data/username.txt") == $author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
  1822.                         if (file_exists("images/avatar.gif")) {
  1823.                                 $avatar_gif_image_size = getimagesize("images/avatar.gif");
  1824.                                 $avatar_gif_image_width = $avatar_gif_image_size[0];
  1825.                                 $avatar_gif_image_height = $avatar_gif_image_size[1];
  1826.  
  1827.                                 $max_avatar_gif_image_width = 80;
  1828.                        
  1829.                                 if ($avatar_gif_image_width > $max_avatar_gif_image_width) {  
  1830.                                         $sizefactor = (double) ($max_avatar_gif_image_width / $avatar_gif_image_width) ;
  1831.                                         $avatar_gif_image_width = (int) ($avatar_gif_image_width * $sizefactor);
  1832.                                         $avatar_gif_image_height = (int) ($avatar_gif_image_height * $sizefactor);
  1833.                                 }
  1834.  
  1835.                                 echo "<img src=images/avatar.gif border=0 width=";
  1836.                                 echo $avatar_gif_image_width;
  1837.                                 echo " height=";
  1838.                                 echo $avatar_gif_image_height;
  1839.                         }
  1840.                         if (file_exists("images/avatar.jpg")) {
  1841.                                 $avatar_jpg_image_size = getimagesize("images/avatar.jpg");
  1842.                                 $avatar_jpg_image_width = $avatar_jpg_image_size[0];
  1843.                                 $avatar_jpg_image_height = $avatar_jpg_image_size[1];
  1844.                        
  1845.                                 $max_avatar_jpg_image_width = 80;
  1846.                        
  1847.                                 if ($avatar_jpg_image_width > $max_avatar_jpg_image_width) {  
  1848.                                         $sizefactor = (double) ($max_avatar_jpg_image_width / $avatar_jpg_image_width) ;
  1849.                                         $avatar_jpg_image_width = (int) ($avatar_jpg_image_width * $sizefactor);
  1850.                                         $avatar_jpg_image_height = (int) ($avatar_jpg_image_height * $sizefactor);
  1851.                                 }
  1852.  
  1853.                                 echo "<img src=images/avatar.jpg border=0 width=";
  1854.                                 echo $avatar_jpg_image_width;
  1855.                                 echo " height=";
  1856.                                 echo $avatar_jpg_image_height;
  1857.                         }
  1858.                         if (file_exists("images/avatar.png")) {
  1859.                                 $avatar_png_image_size = getimagesize("images/avatar.png");
  1860.                                 $avatar_png_image_width = $avatar_png_image_size[0];
  1861.                                 $avatar_png_image_height = $avatar_png_image_size[1];
  1862.                        
  1863.                                 $max_avatar_png_image_width = 80;
  1864.                        
  1865.                                 if ($avatar_png_image_width > $max_avatar_png_image_width) {  
  1866.                                         $sizefactor = (double) ($max_avatar_png_image_width / $avatar_png_image_width) ;
  1867.                                         $avatar_png_image_width = (int) ($avatar_png_image_width * $sizefactor);
  1868.                                         $avatar_png_image_height = (int) ($avatar_png_image_height * $sizefactor);
  1869.                                 }
  1870.                        
  1871.                                 echo "<img src=images/avatar.png border=0 width=";
  1872.                                 echo $avatar_png_image_width;
  1873.                                 echo " height=";
  1874.                                 echo $avatar_png_image_height;
  1875.                         }
  1876.                 echo "><br>";
  1877.                 }
  1878.                 elseif (file_exists("images/members/$author/avatar.jpg") or file_exists("images/members/$author/avatar.gif") or file_exists("images/members/$author/avatar.png")) {
  1879.                         if (file_exists("images/members/$author/avatar.gif")) {
  1880.                                 $avatar_gif_image_size = getimagesize("images/members/$author/avatar.gif");
  1881.                                 $avatar_gif_image_width = $avatar_gif_image_size[0];
  1882.                                 $avatar_gif_image_height = $avatar_gif_image_size[1];
  1883.  
  1884.                                 $max_avatar_gif_image_width = 80;
  1885.                        
  1886.                                 if ($avatar_gif_image_width > $max_avatar_gif_image_width) {  
  1887.                                         $sizefactor = (double) ($max_avatar_gif_image_width / $avatar_gif_image_width) ;
  1888.                                         $avatar_gif_image_width = (int) ($avatar_gif_image_width * $sizefactor);
  1889.                                         $avatar_gif_image_height = (int) ($avatar_gif_image_height * $sizefactor);
  1890.                                 }
  1891.  
  1892.                                 echo "<img src=images/members/$author/avatar.gif border=0 width=";
  1893.                                 echo $avatar_gif_image_width;
  1894.                                 echo " height=";
  1895.                                 echo $avatar_gif_image_height;
  1896.                         }
  1897.                         if (file_exists("images/members/$author/avatar.jpg")) {
  1898.                                 $avatar_jpg_image_size = getimagesize("images/members/$author/avatar.jpg");
  1899.                                 $avatar_jpg_image_width = $avatar_jpg_image_size[0];
  1900.                                 $avatar_jpg_image_height = $avatar_jpg_image_size[1];
  1901.                        
  1902.                                 $max_avatar_jpg_image_width = 80;
  1903.                        
  1904.                                 if ($avatar_jpg_image_width > $max_avatar_jpg_image_width) {  
  1905.                                         $sizefactor = (double) ($max_avatar_jpg_image_width / $avatar_jpg_image_width) ;
  1906.                                         $avatar_jpg_image_width = (int) ($avatar_jpg_image_width * $sizefactor);
  1907.                                         $avatar_jpg_image_height = (int) ($avatar_jpg_image_height * $sizefactor);
  1908.                                 }
  1909.  
  1910.                                 echo "<img src=images/members/$author/avatar.jpg border=0 width=";
  1911.                                 echo $avatar_jpg_image_width;
  1912.                                 echo " height=";
  1913.                                 echo $avatar_jpg_image_height;
  1914.                         }
  1915.                         if (file_exists("images/members/$author/avatar.png")) {
  1916.                                 $avatar_png_image_size = getimagesize("images/members/$author/avatar.png");
  1917.                                 $avatar_png_image_width = $avatar_png_image_size[0];
  1918.                                 $avatar_png_image_height = $avatar_png_image_size[1];
  1919.                        
  1920.                                 $max_avatar_png_image_width = 80;
  1921.                        
  1922.                                 if ($avatar_png_image_width > $max_avatar_png_image_width) {  
  1923.                                         $sizefactor = (double) ($max_avatar_png_image_width / $avatar_png_image_width) ;
  1924.                                         $avatar_png_image_width = (int) ($avatar_png_image_width * $sizefactor);
  1925.                                         $avatar_png_image_height = (int) ($avatar_png_image_height * $sizefactor);
  1926.                                 }
  1927.                        
  1928.                                 echo "<img src=images/members/$author/avatar.png border=0 width=";
  1929.                                 echo $avatar_png_image_width;
  1930.                                 echo " height=";
  1931.                                 echo $avatar_png_image_height;
  1932.                         }
  1933.                 echo "><br>";
  1934.                 }
  1935.                 echo "$author</a><br>";
  1936.                 if ((file_get_contents("data/username.txt") == $author) and file_exists("data/rank.txt")) {
  1937.                         echo "administrator<br>";
  1938.                 }
  1939.                 elseif (file_exists("data/members/active/$author/rank.txt") and file_exists("data/rank.txt")) {
  1940.                         $rank = file_get_contents("data/members/active/$author/rank.txt");
  1941.                         echo "$rank<br>";
  1942.                 }
  1943.                 elseif (!file_exists("data/members/active/$author/rank.txt") and file_exists("data/rank.txt")) {
  1944.                         echo "member<br>";
  1945.                 }
  1946.  
  1947.                 if ($dh_posts = opendir("data/items")) {
  1948.                         while (($entry_posts = readdir($dh_posts)) !== false) {
  1949.  
  1950.                                 if (file_exists("data/items/$entry_posts/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  1951.                                         continue;
  1952.                                 }
  1953.  
  1954.                                 // hide_member (20070606)
  1955.                                 //if (file_exists("data/items/$entry_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
  1956.                                 //      continue;
  1957.                                 //}
  1958.  
  1959.                                 $post_cat_dir = file_get_contents("data/items/$entry_posts/category.txt");
  1960.  
  1961.                                 if (file_exists("data/categories/$post_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_posts/cat.txt")) {
  1962.                                         continue;
  1963.                                 }
  1964.  
  1965.                                 if ($entry_posts != "." && $entry_posts != ".." && fnmatch("*", $entry_posts)) {
  1966.                                         if (file_exists("data/members/active/$author") and file_exists("data/bb.txt")) {
  1967.                                                 if (file_exists("data/items/$entry_posts/author.txt") and (file_get_contents("data/items/$entry_posts/author.txt") == $author)) {
  1968.                                                         $items_posts[] = $entry_posts;
  1969.                                                 }
  1970.                                         }
  1971.                                         elseif (!file_exists("data/members/active/$author") and (file_get_contents("data/username.txt") == $author) and file_exists("data/bb.txt")) {
  1972.                                                 if (file_exists("data/items/$entry_posts/author.txt") and (file_get_contents("data/items/$entry_posts/author.txt") == $author)) {
  1973.                                                         $items_posts[] = $entry_posts;
  1974.                                                 }
  1975.                                         }
  1976.                                 }
  1977.                         }
  1978.                 closedir($dh_posts);
  1979.                 }
  1980.                 $posts = count($items_posts);
  1981.                 if ($posts == 1) {
  1982.                         echo "$posts post";
  1983.                 }
  1984.                 if ($posts > 1) {
  1985.                         echo "$posts posts";
  1986.                 }
  1987.                 unset($items_posts);
  1988.  
  1989.                 echo "</p></td><td width=513 valign=top>";
  1990.  
  1991.         }
  1992.         else {
  1993.                 echo "<td width=598 valign=top>";
  1994.         }
  1995.  
  1996.         if (file_exists("$dir/$d/passwd.txt")) {
  1997.                 $passwd = file_get_contents("$dir/$d/passwd.txt");
  1998.         }
  1999.  
  2000.         if (isset($_REQUEST['passwd']) and !empty($_REQUEST['passwd'])) {
  2001.                 $crypt_passwd = sha1($_REQUEST['passwd']);
  2002.                 $crypt_passwd = md5($crypt_passwd);
  2003.                 $crypt_passwd = crypt($crypt_passwd, $crypt_passwd);
  2004.         }
  2005.  
  2006.         echo '<font style="font-size: 10px; color: #999999;">';
  2007.         if ((file_exists("$dir/$d/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("$dir/$d/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and !file_exists("data/avatar.txt"))))) {
  2008.                 $xavatar_author = file_get_contents("$dir/$d/author.txt");
  2009.                 echo "<a href=member.php?id=$xavatar_author>$xavatar_author</a> - ";
  2010.         }
  2011.         readfile("$dir/$d/date.txt");
  2012.         if ((isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) or file_exists("$dir/$d/lastmod.txt")) {
  2013.                 if (file_exists("$dir/$d/revisions.txt")) {
  2014.                         echo ' (Revision ';
  2015.                         readfile("$dir/$d/revisions.txt");
  2016.                         echo " - ";
  2017.                         echo date("l, M j, Y, g:i A", filemtime("$dir/$d/body.txt"));
  2018.                         echo ')';
  2019.                 }
  2020.         }
  2021.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2022.                 if (file_exists("$dir/$d/category.txt")) {
  2023.                         echo ' Filed under ';
  2024.                         $category_key = file_get_contents("$dir/$d/category.txt");
  2025.                         $category_key = strtolower($category_key);
  2026.                         if (file_exists("data/categories/{$category_key}/title.txt")) {
  2027.                                 $category_dsp = file_get_contents("data/categories/{$category_key}/title.txt");
  2028.                                 echo "$category_key ($category_dsp)";
  2029.                         }
  2030.                         else {
  2031.                                 echo "$category_key";
  2032.                         }
  2033.                 }
  2034.  
  2035.         }
  2036.         echo '</font><font style="font-size: 5px;"><br><br></font>';
  2037.  
  2038.         if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  2039.                 echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d>here</a> to enter it.";
  2040.         }
  2041.         else {
  2042.                 $entry_body = file_get_contents("$dir/$d/body.txt");
  2043.                 if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt") and (!isset($_SESSION['logged_in']) or empty($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt"))))) {
  2044.                         $badwords = file_get_contents("data/pf-badwords.txt");
  2045.                         if (file_exists("data/pf-censor.txt")) {
  2046.                                 $censor = file_get_contents("data/pf-censor.txt");
  2047.                         }
  2048.                         else {
  2049.                                 $censor = "[expletive]";
  2050.                         }
  2051.                         $entry_body = preg_replace("/\b($badwords)\b/i",$censor,$entry_body);
  2052.                 }
  2053.                 echo $entry_body;
  2054.         }
  2055.  
  2056.  
  2057.         if ((file_get_contents("data/username.txt") == $author) and file_exists("data/sig.txt") and file_exists("data/bb.txt") and file_exists("data/bb-sig.txt")) {
  2058.                 $sig = file_get_contents("data/sig.txt");
  2059.                 echo "<br><br>--<br>$sig";
  2060.         }
  2061.         elseif (file_exists("data/members/active/$author/sig.txt") and file_exists("data/bb.txt")  and file_exists("data/bb-sig.txt")) {
  2062.                 $sig = file_get_contents("data/members/active/$author/sig.txt");
  2063.                 echo "<br><br>--<br>$sig";
  2064.         }
  2065.  
  2066.         echo '</td></tr></table>';
  2067.  
  2068.         if (file_exists("data/round.txt")) {
  2069.                 echo "<div class=rbspace></div>";
  2070.         }
  2071.  
  2072.         echo '</div><div id=panel_footer>';
  2073.         echo '<font style="font-size: 10px; color: ';
  2074.         if (file_exists("data/colors/pf-font.txt")) {
  2075.                 readfile("data/colors/pf-font.txt");
  2076.         }
  2077.         else {
  2078.                 echo "#999999";
  2079.         }
  2080.         echo ';">';
  2081.  
  2082. if (!file_exists("data/nocomment.txt")) {
  2083.  
  2084.         if (!file_exists("$dir/$d/comments/live")) {
  2085.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>add comment</a>';
  2086.         }
  2087.         else {
  2088.                 if ($dh_comments = opendir("$dir/$d/comments/live")) {
  2089.                         while (($entry_comments = readdir($dh_comments)) !== false) {
  2090.                                 if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {
  2091.                                         $items_comments[] = $entry_comments;
  2092.                                 }
  2093.                         }
  2094.                 closedir($dh_comments);
  2095.                 }
  2096.                 $comments = count($items_comments);
  2097.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=comments>';
  2098.                 if ($comments == 1) {
  2099.                         echo $comments . ' comment';
  2100.                 }
  2101.                 elseif ($comments < 1) {
  2102.                         echo 'add comment';
  2103.                 }
  2104.                 else {
  2105.                         echo $comments . ' comments';
  2106.                 }
  2107.                 echo '</a>';
  2108.                 unset($items_comments);
  2109.         }
  2110.  
  2111. }
  2112. else {
  2113.         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a>';
  2114. }
  2115.  
  2116.         if (file_exists("$dir/$d/views.txt")) {
  2117.                 $fp_views_txt = fopen("$dir/$d/views.txt","r");
  2118.                 $views_value = fread($fp_views_txt,filesize("$dir/$d/views.txt"));
  2119.                 fclose($fp_views_txt);
  2120.                 if ($views_value == 1) {
  2121.                         echo ' ( ' . $views_value . ' view ) ';
  2122.                 }
  2123.                 elseif ($views_value > 1) {
  2124.                         echo ' ( ' . $views_value . ' views ) ';
  2125.                 }
  2126.                 else {
  2127.                         echo ' ';
  2128.                 }
  2129.         }
  2130.  
  2131.         if (!file_exists("images/$d/album")) {
  2132.                 echo ' ';
  2133.         }
  2134.         else {
  2135.                 if ($dh_album = opendir("images/$d/album")) {
  2136.                         while (($entry_album = readdir($dh_album)) !== false) {
  2137.                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  2138.                                         $items_album[] = $entry_album;
  2139.                                 }
  2140.                         }
  2141.                 closedir($dh_album);
  2142.                 }
  2143.                 $album = count($items_album);
  2144.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=album>';
  2145.                 if ($album == 1) {
  2146.                         echo $album . ' image';
  2147.                 }
  2148.                 elseif ($album < 1) {
  2149.                         echo 'album';
  2150.                 }
  2151.                 else {
  2152.                         echo $album . ' images';
  2153.                 }
  2154.                 echo '</a>';
  2155.                 unset($items_album);
  2156.         }
  2157.  
  2158.         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)) {
  2159.                 if (!file_exists("$dir/$d/album")) {
  2160.                         mkdir("$dir/$d/album");
  2161.                 }
  2162.                 if ((!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  2163.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  2164.                         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  2165.                         fclose($fp_album_views_txt);
  2166.                         $album_views_value = $album_views_value + 1;
  2167.                         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","w");
  2168.                         fwrite($fp_album_views_txt, $album_views_value);
  2169.                         fclose($fp_album_views_txt);
  2170.                 }
  2171.         }
  2172.  
  2173.         $fp_album_views_txt = fopen("$dir/$d/album/views.txt","r");
  2174.         $album_views_value = fread($fp_album_views_txt,filesize("$dir/$d/album/views.txt"));
  2175.         fclose($fp_album_views_txt);
  2176.         if ($album_views_value == 1) {
  2177.                 echo ' ( ' . $album_views_value . ' view ) ';
  2178.         }
  2179.         elseif ($album_views_value > 1) {
  2180.                 echo ' ( ' . $album_views_value . ' views ) ';
  2181.         }
  2182.         else {
  2183.                 echo ' ';
  2184.         }
  2185.  
  2186.         if (!file_exists("data/items/$d/filedrop/files")) {
  2187.                 echo ' ';
  2188.         }
  2189.         else {
  2190.                 if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  2191.                         while (($dl_file = readdir($dh_filedrop)) !== false) {
  2192.                                 if ($dl_file != "." && $dl_file != ".." && fnmatch("*", $dl_file)) {
  2193.                                         $items_filedrop[] = $dl_file;
  2194.                                 }
  2195.                         }
  2196.                 closedir($dh_filedrop);
  2197.                 }
  2198.                 $filedrop = count($items_filedrop);
  2199.                 echo ' | <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&show=filedrop>';
  2200.                 if ($filedrop == 1) {
  2201.                         echo $filedrop . ' file';
  2202.                 }
  2203.                 elseif ($filedrop < 1) {
  2204.                         echo 'filedrop';
  2205.                 }
  2206.                 else {
  2207.                         echo $filedrop . ' files';
  2208.                 }
  2209.                 echo '</a> ';
  2210.                 unset($items_filedrop);
  2211.         }
  2212.  
  2213.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop)) {
  2214.                 if (!file_exists("$dir/$d/filedrop")) {
  2215.                         mkdir("$dir/$d/filedrop");
  2216.                 }
  2217.                 if (file_exists("data/items/$d/filedrop/files") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  2218.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  2219.                         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  2220.                         fclose($fp_filedrop_views_txt);
  2221.                         $filedrop_views_value = $filedrop_views_value + 1;
  2222.                         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","w");
  2223.                         fwrite($fp_filedrop_views_txt, $filedrop_views_value);
  2224.                         fclose($fp_filedrop_views_txt);
  2225.                 }
  2226.         }
  2227.  
  2228.         $fp_filedrop_views_txt = fopen("$dir/$d/filedrop/views.txt","r");
  2229.         $filedrop_views_value = fread($fp_filedrop_views_txt,filesize("$dir/$d/filedrop/views.txt"));
  2230.         fclose($fp_filedrop_views_txt);
  2231.         if ($filedrop_views_value == 1) {
  2232.                 echo ' ( ' . $filedrop_views_value . ' view ) ';
  2233.         }
  2234.         elseif ($filedrop_views_value > 1) {
  2235.                 echo ' ( ' . $filedrop_views_value . ' views ) ';
  2236.         }
  2237.         else {
  2238.                 echo ' ';
  2239.         }
  2240.  
  2241.         if (!file_exists("data/nopdf.txt") and file_exists("$dir/$d/pdf/file")) {
  2242.  
  2243.                 echo "| <a href={$_SERVER['PHP_SELF']}?entry=$d&show=pdf>pdf</a> ";
  2244.  
  2245.                 if (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) {
  2246.                         $pdf_views_value = file_get_contents("$dir/$d/pdf/count/views.txt");
  2247.                         $pdf_views_value = $pdf_views_value + 1;
  2248.                         $fp_pdf_views_txt = fopen("$dir/$d/pdf/count/views.txt","w");
  2249.                         fwrite($fp_pdf_views_txt, $pdf_views_value);
  2250.                         fclose($fp_pdf_views_txt);
  2251.                 }
  2252.  
  2253.                 $pdf_views_value = file_get_contents("$dir/$d/pdf/count/views.txt");
  2254.                 if ($pdf_views_value == 1) {
  2255.                         echo ' ( ' . $pdf_views_value . ' view ) ';
  2256.                 }
  2257.                 elseif ($pdf_views_value > 1) {
  2258.                         echo ' ( ' . $pdf_views_value . ' views ) ';
  2259.                 }
  2260.                 else {
  2261.                         echo ' ';
  2262.                 }
  2263.         }
  2264.  
  2265.         if (!file_exists("data/nocomment.txt")) {
  2266.                 echo '| <a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '>permalink</a></font>';
  2267.         }
  2268.  
  2269.         echo '</div>';
  2270.  
  2271.         if (file_exists("data/round.txt")) {
  2272.                 echo '<b class="rbbottom"><b class="rb4e"></b><b class="rb3e"></b><b class="rb2e"></b><b class="rb1e"></b></b>';
  2273.         }
  2274.  
  2275.         echo '</td></tr></table>';
  2276.  
  2277. // entry panel
  2278.  
  2279. unset($show_per_entry_panel_list);
  2280.  
  2281. if (file_exists("data/panels")) {
  2282.         if ($dh_per_entry_panel_list = opendir("data/panels")) {
  2283.                 while (($entry_per_entry_panel_list = readdir($dh_per_entry_panel_list)) !== false) {
  2284.  
  2285.                         if (file_exists("data/panels/$entry_per_entry_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  2286.                                 continue;
  2287.                         }
  2288.  
  2289.                         if (!file_exists("data/panels/$entry_per_entry_panel_list/entry.txt")) {
  2290.                                 continue;
  2291.                         }
  2292.  
  2293.                         if ($entry_per_entry_panel_list != "." && $entry_per_entry_panel_list != ".." && fnmatch("*", $entry_per_entry_panel_list)) {
  2294.                                 $show_per_entry_panel_list[] = $entry_per_entry_panel_list;
  2295.                         }
  2296.                 }
  2297.                 closedir($dh_per_entry_panel_list);
  2298.         }
  2299.  
  2300.         sort($show_per_entry_panel_list);
  2301.         reset($show_per_entry_panel_list);
  2302.         $count_per_entry_panel_list = count($show_per_entry_panel_list);
  2303.        
  2304.         if ($count_per_entry_panel_list > 0) {
  2305.                 foreach ($show_per_entry_panel_list as $per_entry_panel_list_entry) {
  2306.                         if (!file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
  2307.  
  2308.                                 if (file_exists("data/round.txt")) {
  2309.                                         echo '<p></p><b class="rbper_entry"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  2310.                                 }
  2311.                                 else {
  2312.                                         echo '<p></p><div id=panel_title>';
  2313.                                 }
  2314.  
  2315.                                 readfile("data/panels/$per_entry_panel_list_entry/title.txt");
  2316.  
  2317.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2318.                                         echo "<a href=panels.php#{$per_entry_panel_list_entry}>";
  2319.                                         echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
  2320.                                 }
  2321.  
  2322.                                 echo '</div><div id=panel_body>';
  2323.                         }
  2324.  
  2325.                         if (file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
  2326.                                 echo '<div id=panel_free>';
  2327.                         }
  2328.  
  2329.                         include("data/panels/$per_entry_panel_list_entry/panel.php");
  2330.                         echo '</div>';
  2331.  
  2332.                         if (file_exists("data/round.txt") and !file_exists("data/panels/$per_entry_panel_list_entry/free.txt")) {
  2333.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  2334.                         }
  2335.                 }
  2336.         }
  2337. }
  2338.  
  2339.  
  2340. // entry panel
  2341.  
  2342.  
  2343.  
  2344.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == album) and file_exists("images/$d/album")) {
  2345.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=';
  2346.  
  2347.                 if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
  2348.                         echo "610";
  2349.                 }
  2350.                 else {
  2351.                         echo "525";
  2352.                 }
  2353.  
  2354.                 echo '><tr><td>';
  2355.  
  2356.                 if (file_exists("data/round.txt")) {
  2357.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  2358.                 }
  2359.                 else {
  2360.                         echo '<div id=panel_title>';
  2361.                 }
  2362.  
  2363.                 echo 'Album';
  2364.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2365.                         echo '<a href=del.php?entry=';
  2366.                         echo $d;
  2367.                         echo '&target=album><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete album"></a>';
  2368.                 }
  2369.                 echo '</div><div id=panel_body>';
  2370.  
  2371.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  2372.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=album>here</a> to enter it.";
  2373.                 }
  2374.                 else {
  2375.        
  2376.                         /* thumbnail auto-clean-up (20060409) - This should delete thumbnails of non-existent album images. */
  2377.        
  2378.                         if (file_exists("images/$d/thumbnails")) {
  2379.                                 if ($dh_album = opendir("images/$d/thumbnails")) {
  2380.                                         while (($thumbnail_album = readdir($dh_album)) !== false) {
  2381.                                                 if ($thumbnail_album != "." && $thumbnail_album != ".." && fnmatch("*", $thumbnail_album)) {
  2382.                                                         $current_thumbnail = "images/$d/thumbnails/$thumbnail_album";
  2383.                                                         $parent_image = str_replace("-thumbnail.jpg","",$thumbnail_album);
  2384.                                                         $parent_image = "images/$d/album/$parent_image";
  2385.                                                         if (file_exists($current_thumbnail) and !file_exists($parent_image)) {
  2386.                                                                 unlink($current_thumbnail);
  2387.                                                         }
  2388.                                                 }
  2389.                                         }
  2390.                                 }
  2391.                         }
  2392.  
  2393.                         /* caption auto-clean-up (20070216) This should delete captions of non-existent album images. */
  2394.  
  2395.                         if (file_exists("data/items/$d/album/captions")) {
  2396.                                 if ($dh_album = opendir("data/items/$d/album/captions")) {
  2397.                                         while (($caption_album = readdir($dh_album)) !== false) {
  2398.                                                 if ($caption_album != "." && $caption_album != ".." && fnmatch("*", $caption_album)) {
  2399.                                                         $current_caption = "data/items/$d/album/captions/$caption_album";
  2400.                                                         $parent_image = str_replace(".txt","",$caption_album);
  2401.                                                         $parent_image = "images/$d/album/$parent_image";
  2402.                                                         if (file_exists($current_caption) and !file_exists($parent_image)) {
  2403.                                                                 unlink($current_caption);
  2404.                                                         }
  2405.                                                 }
  2406.                                         }
  2407.                                 }
  2408.                         }
  2409.        
  2410.                         /* auto-sort entries (20060409) - MAJ previously relied on readdir() alone, causing entries to be displayed in the order in which they are stored by the filesystem. */
  2411.        
  2412.                         if (file_exists("images/$d/album")) {
  2413.                                 if ($dh_album = opendir("images/$d/album")) {
  2414.                                         while (($entry_album = readdir($dh_album)) !== false) {
  2415.                                                 if ($entry_album != "." && $entry_album != ".." && fnmatch("*", $entry_album)) {
  2416.                                                         $sort_album[] = $entry_album;
  2417.                                                 }
  2418.                                         }
  2419.                                 closedir($dh_album);
  2420.                                 }
  2421.        
  2422.                                 sort($sort_album);
  2423.                                 reset($sort_album);
  2424.                                 $count_album_entry = count($sort_album);
  2425.                                
  2426.                                 if ($count_album_entry < 1) {
  2427.                                         rmdirr("images/$d/album");
  2428.                                         rmdirr("images/$d/thumbnails");                        
  2429.                                 }
  2430.                                 else {
  2431.                                         foreach($sort_album as $album_entry) {
  2432.                                                 $current_image = "images/$d/album/$album_entry";
  2433.                                                 $current_image_size = getimagesize($current_image);
  2434.                                                 $current_width = $current_image_size[0];
  2435.                                                 $current_height = $current_image_size[1];
  2436.                                                 $max_width = 98;
  2437.                                                 $max_height = 73;
  2438.        
  2439.                                                 if (($current_width > $max_width) || ($current_height > $max_height)) {  
  2440.                                                         if ($current_height > $current_width) {
  2441.                                                                 $sizefactor = (double) ($max_height / $current_height);
  2442.                                                         }
  2443.                                                         else {
  2444.                                                                 $sizefactor = (double) ($max_width / $current_width) ;
  2445.                                                         }
  2446.                                                 }
  2447.        
  2448.                                                 $new_width = (int) ($current_width * $sizefactor);
  2449.                                                 $new_height = (int) ($current_height * $sizefactor);
  2450.        
  2451.                                                 /* 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. */
  2452.        
  2453.                                                 if (!file_exists("images/$d/thumbnails/{$album_entry}-thumbnail.jpg")) {
  2454.        
  2455.                                                         $work_thumb = imagecreatetruecolor($new_width,$new_height);
  2456.                                                         $get_mimetype = image_type_to_mime_type(exif_imagetype($current_image));
  2457.                                                         switch($get_mimetype) {
  2458.                                                                 case "image/jpg":
  2459.                                                                 case "image/jpeg":
  2460.                                                                         $work_image = imagecreatefromjpeg($current_image);
  2461.                                                                         break;
  2462.                                                                 case "image/gif":
  2463.                                                                         $work_image = imagecreatefromgif($current_image);
  2464.                                                                         break;
  2465.                                                                 case "image/png":
  2466.                                                                         $work_image = imagecreatefrompng($current_image);
  2467.                                                                         break;
  2468.                                                         }
  2469.        
  2470.                                                         imagecopyresampled($work_thumb, $work_image ,0, 0, 0, 0, $new_width, $new_height, $current_width, $current_height);
  2471.        
  2472.                                                         if (!file_exists("images/$d/thumbnails")) {
  2473.                                                                 mkdir("images/$d/thumbnails");
  2474.                                                         }
  2475.        
  2476.                                                         imagejpeg($work_thumb, "images/$d/thumbnails/{$album_entry}-thumbnail.jpg", 80);
  2477.        
  2478.                                                 }
  2479. //                                              echo "<a href=\"images/$d/album/$album_entry\">";
  2480.                                                 echo "<a href=\"album.php?entry=$d&show=$album_entry\">";
  2481.  
  2482.                                                 /* auto-thumbnails (20060519) - Just in case php-gd does not exist, do it the old way. */
  2483.  
  2484.                                                 if (!file_exists("images/$d/thumbnails/{$album_entry}-thumbnail.jpg")) {
  2485.                                                         echo "<img src=\"images/$d/album/$album_entry\" width=$new_width height=$new_height border=0 hspace=2 vspace=2";
  2486.                                                 }
  2487.                                                 else {
  2488.                                                         echo "<img src=\"images/$d/thumbnails/{$album_entry}-thumbnail.jpg\" width=$new_width height=$new_height border=0 hspace=2 vspace=2";
  2489.                                                 }
  2490.  
  2491.                                                 if (file_exists("data/items/$d/album/captions/{$album_entry}.txt")) {
  2492.                                                         echo ' alt="';
  2493.                                                         $img_alt = file_get_contents("data/items/$d/album/captions/{$album_entry}.txt");
  2494.                                                         $img_alt = strip_tags($img_alt);
  2495.                                                         echo $img_alt;
  2496.                                                         echo '"';
  2497.                                                 }
  2498.                                                 echo "></a>";
  2499.                                         }
  2500.                                 }
  2501.                         }
  2502.                 }
  2503.                 echo '</div>';
  2504.  
  2505.                 if (file_exists("data/round.txt")) {
  2506.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  2507.                 }
  2508.  
  2509.                 echo '</td></tr></table>';
  2510.  
  2511.         }
  2512.  
  2513.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == filedrop) and file_exists("$dir/$d/filedrop/files")) {
  2514.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=';
  2515.  
  2516.                 if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
  2517.                         echo "610";
  2518.                 }
  2519.                 else {
  2520.                         echo "525";
  2521.                 }
  2522.  
  2523.                 echo '><tr><td>';
  2524.  
  2525.                 if (file_exists("data/round.txt")) {
  2526.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  2527.                 }
  2528.                 else {
  2529.                         echo '<div id=panel_title>';
  2530.                 }
  2531.  
  2532.                 echo 'Filedrop';
  2533.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2534.                         echo '<a href=del.php?entry=';
  2535.                         echo $d;
  2536.                         echo '&target=filedrop><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete filedrop"></a>';
  2537.                 }
  2538.                 echo '</div><div id=panel_body>';
  2539.  
  2540.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  2541.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=filedrop>here</a> to enter it.";
  2542.                 }
  2543.                 else {
  2544.  
  2545.                         if ($dh_filedrop = opendir("data/items/$d/filedrop/files")) {
  2546.                                 while (($dl_file = readdir($dh_filedrop)) !== false) {
  2547.                                         if ($dl_file != "." && $dl_file != ".." && fnmatch("*", $dl_file)) {
  2548.                                                 echo '<table border=0 cellspacing=0 cellpadding=4><tr><td>';
  2549.                                                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&download=' . $dl_file. '&type=filedrop>';
  2550.                                                 echo '<img src=images/filedrop.png width=36 height=36 border=0 alt="download file"></a></td>';
  2551.                                                 echo '<td><p><b>';
  2552.                                                 echo $dl_file;
  2553.                                                 echo'</b>';
  2554.                                                 if (file_exists("data/items/$d/filedrop/sha1.txt")) {
  2555.                                                         $sha1 = sha1_file("data/items/$d/filedrop/files/$dl_file");
  2556.                                                         echo "<br />$sha1 (<a href=http://www.faqs.org/rfcs/rfc3174 target=_maj>sha1</a>)";
  2557.                                                 }
  2558.                                                 if (file_exists("data/items/$d/filedrop/md5.txt")) {
  2559.                                                         $md5 = md5_file("data/items/$d/filedrop/files/$dl_file");
  2560.                                                         echo "<br />$md5 (<a href=http://www.faqs.org/rfcs/rfc1321 target=_maj>md5</a>)";
  2561.                                                 }
  2562.                                                 $size = filesize("data/items/$d/filedrop/files/$dl_file");
  2563.                                                 $size_string = ($size > 512)?(  ($size/1024 > 512)  ?sprintf("%.02f MB",($size/1024)/1024)  :sprintf("%.02f KB",$size/1024))  :sprintf("%d B",$size);
  2564.                                                 echo "<br />$size_string";
  2565.                                                 $filedrop_count_file = "data/items/$d/filedrop/count/$dl_file" . '.txt';
  2566.                                                 if (file_exists($filedrop_count_file)) {
  2567.                                                         $fp_filedrop_count = fopen($filedrop_count_file, "r");
  2568.                                                         $filedrop_count = fread($fp_filedrop_count, filesize($filedrop_count_file));
  2569.                                                         fclose($fp_filedrop_count);
  2570.                                                         echo '<br>';
  2571.                                                         echo $filedrop_count;
  2572.                                                         if ($filedrop_count == 1) {
  2573.                                                                 echo ' download';
  2574.                                                         }
  2575.                                                         if ($filedrop_count > 1) {
  2576.                                                                 echo ' downloads';
  2577.                                                         }
  2578.                                                 }
  2579.                                                 echo '</p></td></tr></table>';
  2580.                                         }
  2581.                                 }
  2582.                         closedir($dh_filedrop);
  2583.                         }
  2584.                 }
  2585.                 echo '</div>';
  2586.  
  2587.                 if (file_exists("data/round.txt")) {
  2588.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  2589.                 }
  2590.  
  2591.                 echo '</td></tr></table>';
  2592.         }
  2593.  
  2594.         if (isset($_REQUEST['entry']) and !empty($_REQUEST['entry']) and isset($_REQUEST['show']) and !empty($_REQUEST['show']) and ($_REQUEST['show'] == pdf) and file_exists("data/items/$d/pdf/file")) {
  2595.                 echo '<table border=0 cellspacing=0 cellpadding=0 width=';
  2596.  
  2597.                 if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
  2598.                         echo "610";
  2599.                 }
  2600.                 else {
  2601.                         echo "525";
  2602.                 }
  2603.  
  2604.                 echo '><tr><td>';
  2605.  
  2606.                 if (file_exists("data/round.txt")) {
  2607.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  2608.                 }
  2609.                 else {
  2610.                         echo '<div id=panel_title>';
  2611.                 }
  2612.  
  2613.                 echo 'PDF';
  2614.                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2615.                         echo '<a href=del.php?entry=';
  2616.                         echo $d;
  2617.                         echo '&target=pdf><img src=images/widget.del.png border=0 width=11 height=11 align=right alt="delete pdf"></a>';
  2618.                 }
  2619.                 echo '</div><div id=panel_body>';
  2620.  
  2621.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  2622.                         echo "This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=pdf>here</a> to enter it.";
  2623.                 }
  2624.                 else {
  2625.  
  2626.                         if ($dh_pdf = opendir("data/items/$d/pdf/file")) {
  2627.                                 while (($dl_file = readdir($dh_pdf)) !== false) {
  2628.                                         if ($dl_file != "." && $dl_file != ".." && fnmatch("*", $dl_file)) {
  2629.                                                 echo '<table border=0 cellspacing=0 cellpadding=4><tr><td>';
  2630.                                                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $d . '&download=' . $dl_file. '&type=pdf>';
  2631.                                                 echo '<img src=images/pdf.png width=48 height=48 border=0 alt="download file"></a></td>';
  2632.                                                 echo '<td><p><b>';
  2633.                                                 echo $dl_file;
  2634.                                                 echo'</b><br>';
  2635.                                                 $size = filesize("data/items/$d/pdf/file/$dl_file");
  2636.                                                 $size_string = ($size > 512)?(  ($size/1024 > 512)  ?sprintf("%.02f MB",($size/1024)/1024)  :sprintf("%.02f KB",$size/1024))  :sprintf("%d B",$size);
  2637.                                                 echo $size_string;
  2638.                                                 $pdf_count_file = "data/items/$d/pdf/count/dl.txt";
  2639.                                                 if (file_exists($pdf_count_file)) {
  2640.                                                         $fp_pdf_count = fopen($pdf_count_file, "r");
  2641.                                                         $pdf_count = fread($fp_pdf_count, filesize($pdf_count_file));
  2642.                                                         fclose($fp_pdf_count);
  2643.                                                         echo '<br>';
  2644.                                                         echo $pdf_count;
  2645.                                                         if ($pdf_count == 1) {
  2646.                                                                 echo ' download';
  2647.                                                         }
  2648.                                                         if ($pdf_count > 1) {
  2649.                                                                 echo ' downloads';
  2650.                                                         }
  2651.                                                 }
  2652.                                                 echo '</p></td></tr></table>';
  2653.                                         }
  2654.                                 }
  2655.                         closedir($dh_pdf);
  2656.                         }
  2657.                 }
  2658.                 echo '</div>';
  2659.  
  2660.                 if (file_exists("data/round.txt")) {
  2661.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  2662.                 }
  2663.  
  2664.                 echo '</td></tr></table>';
  2665.         }
  2666.  
  2667.         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")) {
  2668.  
  2669.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  2670.                 }
  2671.                 else {
  2672.                         echo '<table border=0 cellspacing=0 cellpadding=0 width=';
  2673.  
  2674.                         if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
  2675.                                 echo "610";
  2676.                         }
  2677.                         else {
  2678.                                 echo "525";
  2679.                         }
  2680.  
  2681.                         echo '><tr><td>';
  2682.                         if ($dh_comments = opendir("$dir/$d/comments/live")) {
  2683.                                 while (($entry_comments = readdir($dh_comments)) !== false) {
  2684.                                         if ($entry_comments != "." && $entry_comments != ".." && fnmatch("*", $entry_comments)) {                                       $show_comments[] = $entry_comments;
  2685.                                         }
  2686.                                 }
  2687.                         closedir($dh_comments);
  2688.                         }
  2689.        
  2690.                         asort($show_comments);
  2691.                         reset($show_comments);
  2692.                         foreach ($show_comments as $comment) {
  2693.  
  2694.                                 if (file_exists("data/round.txt")) {
  2695.                                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  2696.                                 }
  2697.                                 else {
  2698.                                         echo '<div id=panel_title>';
  2699.                                 }
  2700.        
  2701.                                 if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  2702.                                         echo '<a target=_maj href=';
  2703.                                         readfile("$dir/$d/comments/live/$comment/url.txt");
  2704.                                         echo '>';
  2705.                                 }
  2706.        
  2707.                                 readfile("$dir/$d/comments/live/$comment/firstname.txt");
  2708.                                 echo ' ';
  2709.                                 readfile("$dir/$d/comments/live/$comment/lastname.txt");
  2710.        
  2711.                                 if (file_exists("$dir/$d/comments/live/$comment/url.txt")) {
  2712.                                         echo '</a>';
  2713.                                 }
  2714.        
  2715.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2716.                                         echo '  &lt;';
  2717.                                         readfile("$dir/$d/comments/live/$comment/email.txt");
  2718.                                         echo '&gt;';
  2719.                                 }
  2720.        
  2721.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2722.                                         echo '<a href=del.php?entry=' . $d . '&comment=' . $comment . '&type=live><img src=images/widget.del.png width=11 height=11 border=0 align=right alt="delete comment"></a>';
  2723.                                         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>';
  2724.                                 }
  2725.                                 echo '</div><div id=panel_body><table border=0 cellspacing=0 cellpadding=0><tr>';
  2726.                                
  2727.                                 if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("$dir/$d/comments/live/$comment/author.txt")) {
  2728.                                         echo "<td width=85 valign=top><p>";
  2729.                                         $c_author = file_get_contents("$dir/$d/comments/live/$comment/author.txt");
  2730.                                         echo "<a href=member.php?id=$c_author>";
  2731.                                         if ((file_get_contents("data/username.txt") == $c_author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
  2732.                                                 if (file_exists("images/avatar.gif")) {
  2733.                                                         $c_avatar_gif_image_size = getimagesize("images/avatar.gif");
  2734.                                                         $c_avatar_gif_image_width = $c_avatar_gif_image_size[0];
  2735.                                                         $c_avatar_gif_image_height = $c_avatar_gif_image_size[1];
  2736.                        
  2737.                                                         $c_max_avatar_gif_image_width = 80;
  2738.                                                
  2739.                                                         if ($c_avatar_gif_image_width > $c_max_avatar_gif_image_width) {  
  2740.                                                                 $sizefactor = (double) ($c_max_avatar_gif_image_width / $c_avatar_gif_image_width) ;
  2741.                                                                 $c_avatar_gif_image_width = (int) ($c_avatar_gif_image_width * $sizefactor);
  2742.                                                                 $c_avatar_gif_image_height = (int) ($c_avatar_gif_image_height * $sizefactor);
  2743.                                                         }
  2744.                        
  2745.                                                         echo "<img src=images/avatar.gif border=0 width=";
  2746.                                                         echo $c_avatar_gif_image_width;
  2747.                                                         echo " height=";
  2748.                                                         echo $c_avatar_gif_image_height;
  2749.                                                 }
  2750.                                                 if (file_exists("images/avatar.jpg")) {
  2751.                                                         $c_avatar_jpg_image_size = getimagesize("images/avatar.jpg");
  2752.                                                         $c_avatar_jpg_image_width = $c_avatar_jpg_image_size[0];
  2753.                                                         $c_avatar_jpg_image_height = $c_avatar_jpg_image_size[1];
  2754.                                                
  2755.                                                         $c_max_avatar_jpg_image_width = 80;
  2756.                                                
  2757.                                                         if ($c_avatar_jpg_image_width > $c_max_avatar_jpg_image_width) {  
  2758.                                                                 $sizefactor = (double) ($c_max_avatar_jpg_image_width / $c_avatar_jpg_image_width) ;
  2759.                                                                 $c_avatar_jpg_image_width = (int) ($c_avatar_jpg_image_width * $sizefactor);
  2760.                                                                 $c_avatar_jpg_image_height = (int) ($c_avatar_jpg_image_height * $sizefactor);
  2761.                                                         }
  2762.                        
  2763.                                                         echo "<img src=images/avatar.jpg border=0 width=";
  2764.                                                         echo $c_avatar_jpg_image_width;
  2765.                                                         echo " height=";
  2766.                                                         echo $c_avatar_jpg_image_height;
  2767.                                                 }
  2768.                                                 if (file_exists("images/avatar.png")) {
  2769.                                                         $c_avatar_png_image_size = getimagesize("images/avatar.png");
  2770.                                                         $c_avatar_png_image_width = $c_avatar_png_image_size[0];
  2771.                                                         $c_avatar_png_image_height = $c_avatar_png_image_size[1];
  2772.                                                
  2773.                                                         $c_max_avatar_png_image_width = 80;
  2774.                                                
  2775.                                                         if ($c_avatar_png_image_width > $c_max_avatar_png_image_width) {  
  2776.                                                                 $sizefactor = (double) ($c_max_avatar_png_image_width / $c_avatar_png_image_width) ;
  2777.                                                                 $c_avatar_png_image_width = (int) ($c_avatar_png_image_width * $sizefactor);
  2778.                                                                 $c_avatar_png_image_height = (int) ($c_avatar_png_image_height * $sizefactor);
  2779.                                                         }
  2780.                                                
  2781.                                                         echo "<img src=images/avatar.png border=0 width=";
  2782.                                                         echo $c_avatar_png_image_width;
  2783.                                                         echo " height=";
  2784.                                                         echo $c_avatar_png_image_height;
  2785.                                                 }
  2786.                                         echo "><br>";
  2787.                                         }
  2788.                                         elseif (file_exists("images/members/$c_author/avatar.jpg") or file_exists("images/members/$c_author/avatar.gif") or file_exists("images/members/$c_author/avatar.png")) {
  2789.                                                 if (file_exists("images/members/$c_author/avatar.gif")) {
  2790.                                                         $c_avatar_gif_image_size = getimagesize("images/members/$c_author/avatar.gif");
  2791.                                                         $c_avatar_gif_image_width = $c_avatar_gif_image_size[0];
  2792.                                                         $c_avatar_gif_image_height = $c_avatar_gif_image_size[1];
  2793.                        
  2794.                                                         $c_max_avatar_gif_image_width = 80;
  2795.                                                
  2796.                                                         if ($c_avatar_gif_image_width > $c_max_avatar_gif_image_width) {  
  2797.                                                                 $sizefactor = (double) ($c_max_avatar_gif_image_width / $c_avatar_gif_image_width) ;
  2798.                                                                 $c_avatar_gif_image_width = (int) ($c_avatar_gif_image_width * $sizefactor);
  2799.                                                                 $c_avatar_gif_image_height = (int) ($c_avatar_gif_image_height * $sizefactor);
  2800.                                                         }
  2801.                        
  2802.                                                         echo "<img src=images/members/$c_author/avatar.gif border=0 width=";
  2803.                                                         echo $c_avatar_gif_image_width;
  2804.                                                         echo " height=";
  2805.                                                         echo $c_avatar_gif_image_height;
  2806.                                                 }
  2807.                                                 if (file_exists("images/members/$c_author/avatar.jpg")) {
  2808.                                                         $c_avatar_jpg_image_size = getimagesize("images/members/$c_author/avatar.jpg");
  2809.                                                         $c_avatar_jpg_image_width = $c_avatar_jpg_image_size[0];
  2810.                                                         $c_avatar_jpg_image_height = $c_avatar_jpg_image_size[1];
  2811.                                                
  2812.                                                         $c_max_avatar_jpg_image_width = 80;
  2813.                                                
  2814.                                                         if ($c_avatar_jpg_image_width > $c_max_avatar_jpg_image_width) {  
  2815.                                                                 $sizefactor = (double) ($c_max_avatar_jpg_image_width / $c_avatar_jpg_image_width) ;
  2816.                                                                 $c_avatar_jpg_image_width = (int) ($c_avatar_jpg_image_width * $sizefactor);
  2817.                                                                 $c_avatar_jpg_image_height = (int) ($c_avatar_jpg_image_height * $sizefactor);
  2818.                                                         }
  2819.                        
  2820.                                                         echo "<img src=images/members/$c_author/avatar.jpg border=0 width=";
  2821.                                                         echo $c_avatar_jpg_image_width;
  2822.                                                         echo " height=";
  2823.                                                         echo $c_avatar_jpg_image_height;
  2824.                                                 }
  2825.                                                 if (file_exists("images/members/$c_author/avatar.png")) {
  2826.                                                         $c_avatar_png_image_size = getimagesize("images/members/$c_author/avatar.png");
  2827.                                                         $c_avatar_png_image_width = $c_avatar_png_image_size[0];
  2828.                                                         $c_avatar_png_image_height = $c_avatar_png_image_size[1];
  2829.                                                
  2830.                                                         $c_max_avatar_png_image_width = 80;
  2831.                                                
  2832.                                                         if ($c_avatar_png_image_width > $c_max_avatar_png_image_width) {  
  2833.                                                                 $sizefactor = (double) ($c_max_avatar_png_image_width / $c_avatar_png_image_width) ;
  2834.                                                                 $c_avatar_png_image_width = (int) ($c_avatar_png_image_width * $sizefactor);
  2835.                                                                 $c_avatar_png_image_height = (int) ($c_avatar_png_image_height * $sizefactor);
  2836.                                                         }
  2837.                                                
  2838.                                                         echo "<img src=images/members/$c_author/avatar.png border=0 width=";
  2839.                                                         echo $c_avatar_png_image_width;
  2840.                                                         echo " height=";
  2841.                                                         echo $c_avatar_png_image_height;
  2842.                                                 }
  2843.                                         echo "><br>";
  2844.                                         }
  2845.                                         echo "$c_author</a><br>";
  2846.                                         if ((file_get_contents("data/username.txt") == $c_author) and file_exists("data/rank.txt")) {
  2847.                                                 echo "administrator<br>";
  2848.                                         }
  2849.                                         elseif (file_exists("data/members/active/$c_author/rank.txt") and file_exists("data/rank.txt")) {
  2850.                                                 $c_rank = file_get_contents("data/members/active/$c_author/rank.txt");
  2851.                                                 echo "$c_rank<br>";
  2852.                                         }
  2853.                                         elseif (!file_exists("data/members/active/$c_author/rank.txt") and file_exists("data/rank.txt")) {
  2854.                                                 echo "member<br>";
  2855.                                         }
  2856.                        
  2857.                                         if ($c_dh_posts = opendir("data/items")) {
  2858.                                                 while (($c_entry_posts = readdir($c_dh_posts)) !== false) {
  2859.                        
  2860.                                                         if (file_exists("data/items/$c_entry_posts/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  2861.                                                                 continue;
  2862.                                                         }
  2863.                        
  2864.                                                         if (file_exists("data/items/$c_entry_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
  2865.                                                                 continue;
  2866.                                                         }
  2867.                        
  2868.                                                         $c_post_cat_dir = file_get_contents("data/items/$c_entry_posts/category.txt");
  2869.                        
  2870.                                                         if (file_exists("data/categories/$c_post_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$c_entry_posts/cat.txt")) {
  2871.                                                                 continue;
  2872.                                                         }
  2873.                        
  2874.                                                         if ($c_entry_posts != "." && $c_entry_posts != ".." && fnmatch("*", $c_entry_posts)) {
  2875.                                                                 if (file_exists("data/members/active/$c_author") and file_exists("data/bb.txt")) {
  2876.                                                                         if (file_exists("data/items/$c_entry_posts/author.txt") and (file_get_contents("data/items/$c_entry_posts/author.txt") == $c_author)) {
  2877.                                                                                 $c_items_posts[] = $c_entry_posts;
  2878.                                                                         }
  2879.                                                                 }
  2880.                                                                 elseif (!file_exists("data/members/active/$c_author") and (file_get_contents("data/username.txt") == $c_author) and file_exists("data/bb.txt")) {
  2881.                                                                         if (file_exists("data/items/$c_entry_posts/author.txt") and (file_get_contents("data/items/$c_entry_posts/author.txt") == $c_author)) {
  2882.                                                                                 $c_items_posts[] = $c_entry_posts;
  2883.                                                                         }
  2884.                                                                 }
  2885.                                                         }
  2886.                                                 }
  2887.                                         closedir($c_dh_posts);
  2888.                                         }
  2889.                                         $c_posts = count($c_items_posts);
  2890.                                         if ($c_posts == 1) {
  2891.                                                 echo "$c_posts post";
  2892.                                         }
  2893.                                         if ($c_posts > 1) {
  2894.                                                 echo "$c_posts posts";
  2895.                                         }
  2896.                                         unset($c_items_posts);
  2897.                        
  2898.                                         echo "</p></td><td width=513 valign=top>";
  2899.                                 }
  2900.                                 else {
  2901.                                         echo "<td width=598 valign=top>";
  2902.                                 }
  2903.  
  2904.                                 echo '<p><font style="font-size: 10px; color: #999999;">';
  2905.                                 if ((file_exists("$dir/$d/comments/live/$comment/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("$dir/$d/comments/live/$comment/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and !file_exists("data/avatar.txt"))))) {
  2906.                                         $cxavatar_author = file_get_contents("$dir/$d/comments/live/$comment/author.txt");
  2907.                                         echo "<a href=member.php?id=$cxavatar_author>$cxavatar_author</a> - ";
  2908.                                 }
  2909.                                 readfile("$dir/$d/comments/live/$comment/timestamp.txt");
  2910.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  2911.                                         if (file_exists("$dir/$d/comments/live/$comment/revisions.txt")) {
  2912.                                                 echo '  (Revision ';
  2913.                                                 readfile("$dir/$d/comments/live/$comment/revisions.txt");
  2914.                                                 echo ')';
  2915.                                         }
  2916.                                 }
  2917.                                 echo '</font><font style="font-size: 5px;"><br><br></font>';
  2918.                                 $entry_comment = file_get_contents("$dir/$d/comments/live/$comment/comment.txt");
  2919.                                 if (file_exists("data/pf.txt") and file_exists("data/pf-badwords.txt") and (!isset($_SESSION['logged_in']) or empty($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt"))))) {
  2920.                                         $badwords = file_get_contents("data/pf-badwords.txt");
  2921.                                         if (file_exists("data/pf-censor.txt")) {
  2922.                                                 $censor = file_get_contents("data/pf-censor.txt");
  2923.                                         }
  2924.                                         else {
  2925.                                                 $censor = "[expletive]";
  2926.                                         }
  2927.                                         $entry_comment = preg_replace("/\b($badwords)\b/i",$censor,$entry_comment);
  2928.                                 }
  2929.                                 echo $entry_comment;
  2930.                                 echo '</p></tr></table></div>';
  2931.  
  2932.                                 if (file_exists("data/round.txt")) {
  2933.                                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  2934.                                 }
  2935.                         }
  2936.                         unset($show_comments);
  2937.                         echo '</td></tr></table>';
  2938.                 }
  2939.  
  2940. if (!file_exists("data/nocomment.txt")) {
  2941.  
  2942.                 echo '<p><table border=0 cellspacing=0 cellpadding=0 width=';
  2943.  
  2944.                 if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
  2945.                         echo "610";
  2946.                 }
  2947.                 else {
  2948.                         echo "525";
  2949.                 }
  2950.  
  2951.                 echo '><tr><td>';
  2952.                 echo '<p><font style="font-size: 12px;"><b>Add Comment</b></font></p>';
  2953.  
  2954.                 if (file_exists("$dir/$d/passwd.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and (!isset($_REQUEST['passwd']) or ($crypt_passwd != $passwd))) {
  2955.                         echo "<p>This entry is password protected. If you know the magic word, click <a href=passwd.php?entry=$d&show=comments>here</a> to enter it.</p>";
  2956.                 }
  2957.                 else {
  2958.        
  2959.                         $captcha_rand = str_rand(7);
  2960.        
  2961.                         echo "<p>Fill out the form below";
  2962.  
  2963.                         if (!isset($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")))) {
  2964.                                 echo " and enter <b>$captcha_rand</b> in the anti-spam field";
  2965.                         }
  2966.  
  2967.                         echo " to add your comment.";
  2968.  
  2969.                         if (!isset($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")))) {
  2970.                                 echo " Note that it will not be posted immediately, but will be ";
  2971.                        
  2972.                                 if (file_exists("data/email.txt")) {
  2973.                                         echo "e-mailed";
  2974.                                 }
  2975.                                 else {
  2976.                                         echo "sent";
  2977.                                 }
  2978.        
  2979.                                 echo " to me first.";
  2980.  
  2981.                                 if (!isset($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and !file_exists("data/members/active/{$_SESSION['logged_in']}"))) {
  2982.                                         echo " Comments with bogus contact information will be discarded.";
  2983.                                 }
  2984.                         }
  2985.                         echo "</p>";
  2986.  
  2987.                         ?>
  2988.                        
  2989.                         <table border=0 cellspacing=2 cellpadding=0 width=500>
  2990.                         <form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>?entry=<?php echo $d; ?>&show=comments" method="post">
  2991.                         <input type=hidden name=captcha_get value="<?php echo $captcha_rand; ?>">
  2992.                         <tr>
  2993.  
  2994. <?php
  2995. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
  2996. ?>
  2997.         <td width=75><p></p></td><td><input type=hidden name=cauthor value="<?php echo $_SESSION['logged_in']; ?>"><input type=hidden name=firstname value="<?php $logged_in_author = explode(" ", file_get_contents("data/author.txt")); echo trim(str_replace(",","",$logged_in_author[0])); ?>"></p></td>
  2998. <?php
  2999. }
  3000. elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
  3001. ?>
  3002.         <td width=75><p></p></td><td><input type=hidden name=cauthor value="<?php echo $_SESSION['logged_in']; ?>"><input type=hidden name=firstname value="<?php echo file_get_contents("data/members/active/{$_SESSION['logged_in']}/firstname.txt"); ?>"></p></td>
  3003. <?php
  3004. }
  3005. else {
  3006.  
  3007. ?>
  3008.  
  3009. <td width=75><p>First Name*</p></td><td width=300><input class=input type=text autocomplete=off name=firstname maxlength=30></td>
  3010.  
  3011. <?php
  3012.  
  3013. }
  3014.  
  3015. ?>
  3016.                         <td rowspan=7 valign=top width=75 align=right>
  3017.                         <table border=0 cellspacing=1 cellpadding=2>
  3018.                         <tr><td><img src=images/smileys/crying.png border=0></td><td><p>:((</p></td><td ><p>crying</p></td></tr>
  3019.                         <tr><td><img src=images/smileys/frown.png border=0></td><td><p>:(</p></td><td><p>frown</p></td></tr>
  3020.                         <tr><td><img src=images/smileys/indifferent.png border=0></td><td><p>:|</p></td><td><p>indifferent</p></td></tr>
  3021.                         <tr><td><img src=images/smileys/laughing.png border=0></td><td><p>:D</p></td><td><p>laughing</p></td></tr>
  3022.                         <tr><td><img src=images/smileys/lick.png border=0></td><td><p>:P</p></td><td><p>lick</p></td></tr>
  3023.                         <tr><td><img src=images/smileys/ohno.png border=0></td><td><p>:O</p></td><td><p>oh no!</p></td></tr>
  3024.                         <tr><td><img src=images/smileys/smile.png border=0></td><td><p>:)</p></td><td><p>smile</p></td></tr>
  3025.                         <tr><td><img src=images/smileys/surprised.png border=0></td><td><p>=)</p></td><td><p>surprised</p></td></tr>
  3026.                         <tr><td><img src=images/smileys/undecided.png border=0></td><td><p>:\</p></td><td><p>undecided</p></td></tr>
  3027.                         <tr><td><img src=images/smileys/wink.png border=0></td><td><p>;)</p></td><td><p>wink</p></td></tr>
  3028.                         </td></tr>
  3029.                         </table>
  3030.  
  3031. <?php
  3032. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
  3033. ?>
  3034.         <td width=75><p></p></td><td><input type=hidden name=lastname value="<?php echo trim(str_replace(",","",$logged_in_author[1])); ?>"></p></td>
  3035. <?php
  3036. }
  3037. elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
  3038. ?>
  3039.         <td width=75><p></p></td><td><input type=hidden name=lastname value="<?php echo file_get_contents("data/members/active/{$_SESSION['logged_in']}/lastname.txt"); ?>"></p></td>
  3040. <?php
  3041. }
  3042. else {
  3043.  
  3044. ?>
  3045.  
  3046.                         <tr><td><p>Last Name*</p></td><td><input class=input type=text autocomplete=off name=lastname maxlength=30></td></tr>
  3047.  
  3048. <?php
  3049.  
  3050. }
  3051.  
  3052. ?>
  3053.  
  3054. <?php
  3055. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
  3056.         if (file_exists("data/email.txt")) {
  3057. ?>
  3058.                 <td width=75><p></p></td><td colspan=2><input type=hidden name=email value="<?php echo file_get_contents("data/email.txt"); ?>"></p></td>
  3059. <?php
  3060.         }
  3061.         else {
  3062.                 echo "<tr><td><p>E-mail*</p></td><td colspan=2><input class=input type=text autocomplete=off name=email maxlength=60></td></tr>";
  3063.         }
  3064. }
  3065. elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
  3066. ?>
  3067.         <td width=75><p></p></td><td colspan=2><input type=hidden name=email value="<?php echo file_get_contents("data/members/active/{$_SESSION['logged_in']}/email.txt"); ?>"></p></td>
  3068. <?php
  3069. }
  3070. else {
  3071.  
  3072. ?>
  3073.  
  3074.                         <tr><td><p>E-mail*</p></td><td colspan=2><input class=input type=text autocomplete=off name=email maxlength=60></td></tr>
  3075.  
  3076. <?php
  3077.  
  3078. }
  3079.  
  3080. ?>
  3081.  
  3082. <?php
  3083. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
  3084. ?>
  3085.         <td width=75><p></p></td><td colspan=2><input type=hidden name=url value="<?php file_get_contents("data/url.txt"); ?>"></p></td>
  3086. <?php
  3087. }
  3088. elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt")) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
  3089. ?>
  3090.         <td width=75><p></p></td><td colspan=2><input type=hidden name=url value="<?php if (file_exists("data/members/active/{$_SESSION['logged_in']}/url.txt")) { echo file_get_contents("data/members/active/{$_SESSION['logged_in']}/url.txt"); } ?>"></p></td>
  3091. <?php
  3092. }
  3093. else {
  3094.  
  3095. ?>
  3096.  
  3097.                         <tr><td><p>Website</p></td><td colspan=2><input class=input type=text autocomplete=off name=url maxlength=300></td></tr>
  3098.  
  3099. <?php
  3100.  
  3101. }
  3102.  
  3103. ?>
  3104.  
  3105.                         <tr><td><p>Comment*</p></td><td><textarea class=input name=new_comment rows=15></textarea></td></tr>
  3106.                         <?php
  3107.                         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
  3108.                                 echo "<input type=hidden name=captcha_put value=\"$captcha_rand\">";
  3109.                         }
  3110.                         else {
  3111.                                 echo "<tr><td><p>Anti-Spam*</p></td><td><input class=input type=text autocomplete=off name=captcha_put maxlength=7></td></tr>";
  3112.                         }
  3113.                         ?>
  3114.  
  3115.                         <tr><td><p></p></td><td><input class=input type=submit value="click here to submit your comment"></td></tr>
  3116.                         </form>
  3117.                         </table>
  3118.                 <?php } ?>
  3119.                 </td></tr></table></p>
  3120.  
  3121. <?php
  3122. }
  3123.  
  3124. if (!isset($_SESSION['logged_in']) or (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != file_get_contents("data/username.txt") and file_exists("data/members/active/{$_SESSION['logged_in']}")))) {
  3125.         if (isset($_REQUEST['show']) and !empty($_REQUEST['show']) and isset($_REQUEST['captcha_put']) and !empty($_REQUEST['captcha_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['captcha_put']) and !empty($_REQUEST['captcha_put']) and ($_REQUEST['captcha_get'] == $_REQUEST['captcha_put']) and (ereg("@", $_REQUEST['email'])) and (ereg("\.", $_REQUEST['email']))) {
  3126.                 echo '<p><table border=0 cellspacing=0 cellpadding=0><tr><td><p><font style="font-size: 12px;"><b>Thanks!</b></font></p><p>Your comment has been submitted for approval.<br>Please check back soon to see if it has been posted.</p></td></tr></table></p>';
  3127.         }
  3128. }
  3129.  ?>
  3130.        
  3131.  
  3132.  
  3133.                 <?php
  3134.         }
  3135. }
  3136. ?>
  3137.  
  3138. <?php
  3139. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and isset($_REQUEST['entry']) and !empty($_REQUEST['entry'])) {
  3140.         if ($dh_pending_comments = opendir("$dir/$d/comments/pending")) {
  3141.                 while (($entry_pending_comments = readdir($dh_pending_comments)) !== false) {
  3142.                         if ($entry_pending_comments != "." && $entry_pending_comments != ".." && fnmatch("*", $entry_pending_comments)) {
  3143.                                 $show_pending_comments[] = $entry_pending_comments;
  3144.                         }
  3145.                 }
  3146.                 closedir($dh_pending_comments);
  3147.         }
  3148.  
  3149.         asort($show_pending_comments);
  3150.         reset($show_pending_comments);
  3151.         $count_pending_comments = count($show_pending_comments);
  3152.  
  3153.         if ($count_pending_comments > 0) {
  3154.                 if ($count_pending_comments == 1) {
  3155.                         echo '<p><b>Pending Comment</b></p>';
  3156.                 }
  3157.                 else {
  3158.                         echo '<p><b>Pending Comments</b></p>';
  3159.                 }
  3160.                 foreach ($show_pending_comments as $pending_comment) {
  3161.                         echo '<p><table border=0 cellspacing=0 cellpadding=0 width=';
  3162.        
  3163.                         if (file_exists("data/bb.txt") and file_exists("data/avatar.txt")) {
  3164.                                 echo "610";
  3165.                         }
  3166.                         else {
  3167.                                 echo "525";
  3168.                         }
  3169.  
  3170.                         echo '><tr><td>';
  3171.  
  3172.                         if (file_exists("data/round.txt")) {
  3173.                                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3174.                         }
  3175.                         else {
  3176.                                 echo '<div id=panel_title>';
  3177.                         }
  3178.  
  3179.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  3180.                                 echo '<a target=_maj href=';
  3181.                                 readfile("$dir/$d/comments/pending/$pending_comment/url.txt");
  3182.                                 echo '>';
  3183.                         }
  3184.        
  3185.                         readfile("$dir/$d/comments/pending/$pending_comment/firstname.txt");
  3186.                         echo ' ';
  3187.                         readfile("$dir/$d/comments/pending/$pending_comment/lastname.txt");
  3188.        
  3189.                         if (file_exists("$dir/$d/comments/pending/$pending_comment/url.txt")) {
  3190.                                 echo '</a>';
  3191.                         }
  3192.        
  3193.                         echo ' &lt;';
  3194.                         readfile("$dir/$d/comments/pending/$pending_comment/email.txt");
  3195.                         echo '&gt;';
  3196.                         echo '<a href=del.php?entry=' . $d . '&comment=' . $pending_comment . '&type=pending><img src=images/widget.del.png width=11 height=11 border=0 align=right alt="delete comment"></a>';
  3197.  
  3198.                         $pending_comment_key_file = "$dir/$d/comments/pending/$pending_comment/key.txt";
  3199.                         $open_pending_comment_key_file = fopen($pending_comment_key_file,"r");
  3200.                         $pending_comment_login_key = fread($open_pending_comment_key_file,filesize($pending_comment_key_file));
  3201.                         fclose($open_pending_comment_key_file);
  3202.  
  3203.                         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>';
  3204.                         echo '</div><div id=panel_body><table border=0 cellspacing=0 cellpadding=0><tr>';
  3205.  
  3206.                         if (file_exists("data/bb.txt") and file_exists("data/avatar.txt") and file_exists("$dir/$d/comments/pending/$pending_comment/author.txt")) {
  3207.                                 echo "<td width=85 valign=top><p>";
  3208.                                 $pc_author = file_get_contents("$dir/$d/comments/pending/$pending_comment/author.txt");
  3209.                                 echo "<a href=member.php?id=$pc_author>";
  3210.                                 if ((file_get_contents("data/username.txt") == $pc_author) and (file_exists("images/avatar.jpg") or file_exists("images/avatar.gif") or file_exists("images/avatar.png"))) {
  3211.                                         if (file_exists("images/avatar.gif")) {
  3212.                                                 $pc_avatar_gif_image_size = getimagesize("images/avatar.gif");
  3213.                                                 $pc_avatar_gif_image_width = $pc_avatar_gif_image_size[0];
  3214.                                                 $pc_avatar_gif_image_height = $pc_avatar_gif_image_size[1];
  3215.                
  3216.                                                 $pc_max_avatar_gif_image_width = 80;
  3217.                                        
  3218.                                                 if ($pc_avatar_gif_image_width > $pc_max_avatar_gif_image_width) {  
  3219.                                                         $sizefactor = (double) ($pc_max_avatar_gif_image_width / $pc_avatar_gif_image_width) ;
  3220.                                                         $pc_avatar_gif_image_width = (int) ($pc_avatar_gif_image_width * $sizefactor);
  3221.                                                         $pc_avatar_gif_image_height = (int) ($pc_avatar_gif_image_height * $sizefactor);
  3222.                                                 }
  3223.                
  3224.                                                 echo "<img src=images/avatar.gif border=0 width=";
  3225.                                                 echo $pc_avatar_gif_image_width;
  3226.                                                 echo " height=";
  3227.                                                 echo $pc_avatar_gif_image_height;
  3228.                                         }
  3229.                                         if (file_exists("images/avatar.jpg")) {
  3230.                                                 $pc_avatar_jpg_image_size = getimagesize("images/avatar.jpg");
  3231.                                                 $pc_avatar_jpg_image_width = $pc_avatar_jpg_image_size[0];
  3232.                                                 $pc_avatar_jpg_image_height = $pc_avatar_jpg_image_size[1];
  3233.                                        
  3234.                                                 $pc_max_avatar_jpg_image_width = 80;
  3235.                                        
  3236.                                                 if ($pc_avatar_jpg_image_width > $pc_max_avatar_jpg_image_width) {  
  3237.                                                         $sizefactor = (double) ($pc_max_avatar_jpg_image_width / $pc_avatar_jpg_image_width) ;
  3238.                                                         $pc_avatar_jpg_image_width = (int) ($pc_avatar_jpg_image_width * $sizefactor);
  3239.                                                         $pc_avatar_jpg_image_height = (int) ($pc_avatar_jpg_image_height * $sizefactor);
  3240.                                                 }
  3241.                
  3242.                                                 echo "<img src=images/avatar.jpg border=0 width=";
  3243.                                                 echo $pc_avatar_jpg_image_width;
  3244.                                                 echo " height=";
  3245.                                                 echo $pc_avatar_jpg_image_height;
  3246.                                         }
  3247.                                         if (file_exists("images/avatar.png")) {
  3248.                                                 $pc_avatar_png_image_size = getimagesize("images/avatar.png");
  3249.                                                 $pc_avatar_png_image_width = $pc_avatar_png_image_size[0];
  3250.                                                 $pc_avatar_png_image_height = $pc_avatar_png_image_size[1];
  3251.                                        
  3252.                                                 $pc_max_avatar_png_image_width = 80;
  3253.                                        
  3254.                                                 if ($pc_avatar_png_image_width > $pc_max_avatar_png_image_width) {  
  3255.                                                         $sizefactor = (double) ($pc_max_avatar_png_image_width / $pc_avatar_png_image_width) ;
  3256.                                                         $pc_avatar_png_image_width = (int) ($pc_avatar_png_image_width * $sizefactor);
  3257.                                                         $pc_avatar_png_image_height = (int) ($pc_avatar_png_image_height * $sizefactor);
  3258.                                                 }
  3259.                                        
  3260.                                                 echo "<img src=images/avatar.png border=0 width=";
  3261.                                                 echo $pc_avatar_png_image_width;
  3262.                                                 echo " height=";
  3263.                                                 echo $pc_avatar_png_image_height;
  3264.                                         }
  3265.                                 echo "><br>";
  3266.                                 }
  3267.                                 elseif (file_exists("images/members/$pc_author/avatar.jpg") or file_exists("images/members/$pc_author/avatar.gif") or file_exists("images/members/$pc_author/avatar.png")) {
  3268.                                         if (file_exists("images/members/$pc_author/avatar.gif")) {
  3269.                                                 $pc_avatar_gif_image_size = getimagesize("images/members/$pc_author/avatar.gif");
  3270.                                                 $pc_avatar_gif_image_width = $pc_avatar_gif_image_size[0];
  3271.                                                 $pc_avatar_gif_image_height = $pc_avatar_gif_image_size[1];
  3272.                
  3273.                                                 $pc_max_avatar_gif_image_width = 80;
  3274.                                        
  3275.                                                 if ($pc_avatar_gif_image_width > $pc_max_avatar_gif_image_width) {  
  3276.                                                         $sizefactor = (double) ($pc_max_avatar_gif_image_width / $pc_avatar_gif_image_width) ;
  3277.                                                         $pc_avatar_gif_image_width = (int) ($pc_avatar_gif_image_width * $sizefactor);
  3278.                                                         $pc_avatar_gif_image_height = (int) ($pc_avatar_gif_image_height * $sizefactor);
  3279.                                                 }
  3280.                
  3281.                                                 echo "<img src=images/members/$pc_author/avatar.gif border=0 width=";
  3282.                                                 echo $pc_avatar_gif_image_width;
  3283.                                                 echo " height=";
  3284.                                                 echo $pc_avatar_gif_image_height;
  3285.                                         }
  3286.                                         if (file_exists("images/members/$pc_author/avatar.jpg")) {
  3287.                                                 $pc_avatar_jpg_image_size = getimagesize("images/members/$pc_author/avatar.jpg");
  3288.                                                 $pc_avatar_jpg_image_width = $pc_avatar_jpg_image_size[0];
  3289.                                                 $pc_avatar_jpg_image_height = $pc_avatar_jpg_image_size[1];
  3290.                                        
  3291.                                                 $pc_max_avatar_jpg_image_width = 80;
  3292.                                        
  3293.                                                 if ($pc_avatar_jpg_image_width > $pc_max_avatar_jpg_image_width) {  
  3294.                                                         $sizefactor = (double) ($pc_max_avatar_jpg_image_width / $pc_avatar_jpg_image_width) ;
  3295.                                                         $pc_avatar_jpg_image_width = (int) ($pc_avatar_jpg_image_width * $sizefactor);
  3296.                                                         $pc_avatar_jpg_image_height = (int) ($pc_avatar_jpg_image_height * $sizefactor);
  3297.                                                 }
  3298.                
  3299.                                                 echo "<img src=images/members/$pc_author/avatar.jpg border=0 width=";
  3300.                                                 echo $pc_avatar_jpg_image_width;
  3301.                                                 echo " height=";
  3302.                                                 echo $pc_avatar_jpg_image_height;
  3303.                                         }
  3304.                                         if (file_exists("images/members/$pc_author/avatar.png")) {
  3305.                                                 $pc_avatar_png_image_size = getimagesize("images/members/$pc_author/avatar.png");
  3306.                                                 $pc_avatar_png_image_width = $pc_avatar_png_image_size[0];
  3307.                                                 $pc_avatar_png_image_height = $pc_avatar_png_image_size[1];
  3308.                                        
  3309.                                                 $pc_max_avatar_png_image_width = 80;
  3310.                                        
  3311.                                                 if ($pc_avatar_png_image_width > $pc_max_avatar_png_image_width) {  
  3312.                                                         $sizefactor = (double) ($pc_max_avatar_png_image_width / $pc_avatar_png_image_width) ;
  3313.                                                         $pc_avatar_png_image_width = (int) ($pc_avatar_png_image_width * $sizefactor);
  3314.                                                         $pc_avatar_png_image_height = (int) ($pc_avatar_png_image_height * $sizefactor);
  3315.                                                 }
  3316.                                        
  3317.                                                 echo "<img src=images/members/$pc_author/avatar.png border=0 width=";
  3318.                                                 echo $pc_avatar_png_image_width;
  3319.                                                 echo " height=";
  3320.                                                 echo $pc_avatar_png_image_height;
  3321.                                         }
  3322.                                 echo "><br>";
  3323.                                 }
  3324.                                 echo "$pc_author</a><br>";
  3325.                                 if ((file_get_contents("data/username.txt") == $pc_author) and file_exists("data/rank.txt")) {
  3326.                                         echo "administrator<br>";
  3327.                                 }
  3328.                                 elseif (file_exists("data/members/active/$pc_author/rank.txt") and file_exists("data/rank.txt")) {
  3329.                                         $pc_rank = file_get_contents("data/members/active/$pc_author/rank.txt");
  3330.                                         echo "$pc_rank<br>";
  3331.                                 }
  3332.                                 elseif (!file_exists("data/members/active/$pc_author/rank.txt") and file_exists("data/rank.txt")) {
  3333.                                         echo "member<br>";
  3334.                                 }
  3335.                
  3336.                                 if ($pc_dh_posts = opendir("data/items")) {
  3337.                                         while (($pc_entry_posts = readdir($pc_dh_posts)) !== false) {
  3338.                
  3339.                                                 if (file_exists("data/items/$pc_entry_posts/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3340.                                                         continue;
  3341.                                                 }
  3342.                
  3343.                                                 if (file_exists("data/items/$pc_entry_posts/member.txt") and (!isset($_SESSION['logged_in']))) {
  3344.                                                         continue;
  3345.                                                 }
  3346.                
  3347.                                                 $pc_post_cat_dir = file_get_contents("data/items/$pc_entry_posts/category.txt");
  3348.                
  3349.                                                 if (file_exists("data/categories/$pc_post_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$pc_entry_posts/cat.txt")) {
  3350.                                                         continue;
  3351.                                                 }
  3352.                
  3353.                                                 if ($pc_entry_posts != "." && $pc_entry_posts != ".." && fnmatch("*", $pc_entry_posts)) {
  3354.                                                         if (file_exists("data/members/active/$pc_author") and file_exists("data/bb.txt")) {
  3355.                                                                 if (file_exists("data/items/$pc_entry_posts/author.txt") and (file_get_contents("data/items/$pc_entry_posts/author.txt") == $pc_author)) {
  3356.                                                                         $pc_items_posts[] = $pc_entry_posts;
  3357.                                                                 }
  3358.                                                         }
  3359.                                                         elseif (!file_exists("data/members/active/$pc_author") and (file_get_contents("data/username.txt") == $pc_author) and file_exists("data/bb.txt")) {
  3360.                                                                 if (file_exists("data/items/$pc_entry_posts/author.txt") and (file_get_contents("data/items/$pc_entry_posts/author.txt") == $pc_author)) {
  3361.                                                                         $pc_items_posts[] = $pc_entry_posts;
  3362.                                                                 }
  3363.                                                         }
  3364.                                                 }
  3365.                                         }
  3366.                                 closedir($pc_dh_posts);
  3367.                                 }
  3368.                                 $pc_posts = count($pc_items_posts);
  3369.                                 if ($pc_posts == 1) {
  3370.                                         echo "$pc_posts post";
  3371.                                 }
  3372.                                 if ($pc_posts > 1) {
  3373.                                         echo "$pc_posts posts";
  3374.                                 }
  3375.                                 unset($pc_items_posts);
  3376.                
  3377.                                 echo "</p></td><td width=513 valign=top>";
  3378.                         }
  3379.                         else {
  3380.                                 echo "<td width=598 valign=top>";
  3381.                         }
  3382.  
  3383.                         echo '<p><font style="font-size: 10px; color: #999999;">';
  3384.                         if ((file_exists("$dir/$d/comments/pending/$pending_comment/author.txt") and (file_exists("data/bb.txt") and !file_exists("data/avatar.txt")) or (file_exists("$dir/$d/comments/pending/$pending_comment/author.txt") and (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and !file_exists("data/avatar.txt"))))) {
  3385.                                 $pxavatar_author = file_get_contents("$dir/$d/comments/pending/$pending_comment/author.txt");
  3386.                                 echo "<a href=member.php?id=$pxavatar_author>$pxavatar_author</a> - ";
  3387.                         }
  3388.                         readfile("$dir/$d/comments/pending/$pending_comment/timestamp.txt");
  3389.                         echo '</font><font style="font-size: 5px;"><br><br></font>';
  3390.                         readfile("$dir/$d/comments/pending/$pending_comment/comment.txt");
  3391.                         echo '</p></tr></table></div>';
  3392.  
  3393.                         if (file_exists("data/round.txt")) {
  3394.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3395.                         }
  3396.  
  3397.                         unset($show_pending_comments);
  3398.                         echo '</td></tr></table></p>';
  3399.                 }
  3400.         }
  3401. }
  3402. ?>
  3403.  
  3404. <p><table border=0 cellspacing=0 cellpadding=0 width=100%><tr>
  3405.  
  3406. <?php
  3407. if (($start >= $increase) and ($start != 0)) {
  3408.         echo "<td align=left><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  3409.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  3410.                 echo "category={$_REQUEST['category']}&";
  3411.         }
  3412.         if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  3413.                 echo "archive={$_REQUEST['archive']}&";
  3414.         }
  3415.         if (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and file_exists("data/members/active/{$_REQUEST['author']}") and file_exists("data/bb.txt")) {
  3416.                 echo "author={$_REQUEST['author']}&";
  3417.         }
  3418.         if (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and !file_exists("data/members/active/{$_REQUEST['author']}") and (file_get_contents("data/username.txt") == $_REQUEST['author']) and file_exists("data/bb.txt")) {
  3419.                 echo "author={$_REQUEST['author']}&";
  3420.         }
  3421.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "private")) {
  3422.                 echo "find=private&";
  3423.         }
  3424.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "member")) {
  3425.                 echo "find=member&";
  3426.         }
  3427.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "passwd")) {
  3428.                 echo "find=passwd&";
  3429.         }
  3430.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "album")) {
  3431.                 echo "find=album&";
  3432.         }
  3433.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
  3434.                 echo "find=filedrop&";
  3435.         }
  3436.         echo "start=" . ($start-$increase) . "\">previous</a></p></td>";
  3437. }
  3438.  
  3439. if ($end < sizeof($items)) {
  3440.         echo "<td align=right><p><a href=\"" . $_SERVER['PHP_SELF'] . "?";
  3441.         if (isset($_REQUEST['category']) and !empty($_REQUEST['category']) and file_exists(strip_tags(strtolower(str_replace(" ", "_", "data/categories/{$_REQUEST['category']}"))))) {
  3442.                 echo "category={$_REQUEST['category']}&";
  3443.         }
  3444.         if (isset($_REQUEST['archive']) and !empty($_REQUEST['archive'])) {
  3445.                 echo "archive={$_REQUEST['archive']}&";
  3446.         }
  3447.         if (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and file_exists("data/members/active/{$_REQUEST['author']}") and file_exists("data/bb.txt")) {
  3448.                 echo "author={$_REQUEST['author']}&";
  3449.         }
  3450.         if (isset($_REQUEST['author']) and !empty($_REQUEST['author']) and !file_exists("data/members/active/{$_REQUEST['author']}") and (file_get_contents("data/username.txt") == $_REQUEST['author']) and file_exists("data/bb.txt")) {
  3451.                 echo "author={$_REQUEST['author']}&";
  3452.         }
  3453.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "private")) {
  3454.                 echo "find=private&";
  3455.         }
  3456.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "member")) {
  3457.                 echo "find=member&";
  3458.         }
  3459.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "passwd")) {
  3460.                 echo "find=passwd&";
  3461.         }
  3462.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "album")) {
  3463.                 echo "find=album&";
  3464.         }
  3465.         if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
  3466.                 echo "find=filedrop&";
  3467.         }
  3468.         echo "start=" . ($start+$increase) . "\">next</a></p></td>";
  3469. }
  3470. ?>
  3471.  
  3472. </tr></table></p>
  3473.  
  3474. </td>
  3475.  
  3476. <td width=175 valign=top>
  3477.  
  3478. <?php
  3479. if ($dh_latest_items = opendir($dir)) {
  3480.         while (($entry_latest_items = readdir($dh_latest_items)) !== false) {
  3481.  
  3482.                 if (file_exists("data/items/$entry_latest_items/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3483.                         continue;
  3484.                 }
  3485.  
  3486.                 if (file_exists("data/items/$entry_latest_items/member.txt") and (!isset($_SESSION['logged_in']))) {
  3487.                         continue;
  3488.                 }
  3489.  
  3490.                 $cat_dir = file_get_contents("data/items/$entry_latest_items/category.txt");
  3491.  
  3492.                 if (file_exists("data/categories/$cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_latest_items/cat.txt")) {
  3493.                         continue;
  3494.                 }
  3495.  
  3496.                 if (file_exists("data/nocat.txt") and file_exists("data/items/$entry_latest_items/category.txt") and !file_exists("data/items/$entry_latest_items/cat.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3497.                         continue;
  3498.                 }
  3499.  
  3500.                 if ($entry_latest_items != "." && $entry_latest_items != ".." && fnmatch("*", $entry_latest_items)) {
  3501.                         $show_latest_items[] = $entry_latest_items;
  3502.                 }
  3503.         }
  3504.         closedir($dh_latest_items);
  3505. }
  3506.  
  3507. rsort($show_latest_items);
  3508. reset($show_latest_items);
  3509. $count_latest_items = count($show_latest_items);
  3510.  
  3511. if ($count_latest_items > 0) {
  3512.  
  3513.         if (file_exists("data/round.txt")) {
  3514.                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3515.         }
  3516.         else {
  3517.                 echo '<div id=panel_title>';
  3518.         }
  3519.  
  3520.         echo 'Recent Entries</div><div id=panel_body>';
  3521.  
  3522.         $increment_recent_entries = 0;
  3523.  
  3524.         if (($count_latest_items <= $increase) or ($count_latest_items <= $increase * 2)) {
  3525.                 $increase = $count_latest_items;
  3526.                 $show_recent_entries = $increase - 1;
  3527.         }
  3528.         else {
  3529.                 $show_recent_entries = $increase * 2 - 1;
  3530.         }
  3531.  
  3532.         while ($increment_recent_entries <= $show_recent_entries) {
  3533.                 echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
  3534.                 readfile("$dir/$show_latest_items[$increment_recent_entries]/title.txt");
  3535.                 echo '</a><br>';
  3536.                 $increment_recent_entries = $increment_recent_entries + 1;
  3537.         }
  3538. }
  3539.  
  3540. if ($count_latest_items > 0) {
  3541.         echo '</div>';
  3542.  
  3543.         if (file_exists("data/round.txt")) {
  3544.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3545.         }
  3546. ?>
  3547.  
  3548. <?php
  3549. if (file_exists("data/bb.txt") and file_exists("data/bb-stats.txt")) {
  3550.  
  3551.         if (file_exists("data/round.txt")) {
  3552.                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3553.         }
  3554.         else {
  3555.                 echo '<div id=panel_title>';
  3556.         }
  3557.  
  3558.         echo "Bulletin Board</div><div id=panel_body>";
  3559.         if (file_exists("data/members/active") and file_exists("data/bb.txt")) {
  3560.                 if ($dh_active_list = opendir("data/members/active")) {
  3561.                         while (($entry_active_list = readdir($dh_active_list)) !== false) {
  3562.                                 if ($entry_active_list != "." && $entry_active_list != ".." && fnmatch("*", $entry_active_list)) {
  3563.                                         $show_active_list[] = $entry_active_list;
  3564.                                 }
  3565.                         }
  3566.                 closedir($dh_active_list);
  3567.                 }
  3568.  
  3569.                 sort($show_active_list);
  3570.                 reset($show_active_list);
  3571.                 $count_active_list = count($show_active_list);
  3572.                 if ($count_active_list > 0) {
  3573.                         echo "Registered Members: $count_active_list";
  3574.                 }
  3575.         }
  3576.  
  3577.  
  3578.         if (file_exists("data/items")) {
  3579.                 if ($dh_mempost_list = opendir("data/items")) {
  3580.                         while (($entry_mempost_list = readdir($dh_mempost_list)) !== false) {
  3581.  
  3582.                                 if (file_exists("data/items/$entry_mempost_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3583.                                         continue;
  3584.                                 }
  3585.  
  3586.                                 // hide_member (20070606)
  3587.                                 //if (file_exists("data/items/$entry_mempost_list/member.txt") and (!isset($_SESSION['logged_in']))) {
  3588.                                 //      continue;
  3589.                                 //}
  3590.  
  3591.                                 $get_cat_dir = file_get_contents("data/items/$entry_mempost_list/category.txt");
  3592.  
  3593.                                 if (file_exists("data/categories/$get_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_mempost_list/cat.txt")) {
  3594.                                         continue;
  3595.                                 }
  3596.        
  3597.                                 if ($entry_mempost_list != "." && $entry_mempost_list != ".." && fnmatch("*", $entry_mempost_list)) {
  3598.                                         $entry_mempost_list = substr("$entry_mempost_list",0,6);
  3599.                                         $show_mempost_list[] = $entry_mempost_list;
  3600.                                 }
  3601.                         }
  3602.                         closedir($dh_mempost_list);
  3603.                 }
  3604.                 rsort($show_mempost_list);
  3605.                 $count_mempost_list = count($show_mempost_list);
  3606.                 echo "<br>Total Posts: $count_mempost_list";
  3607.                 unset($show_mempost_list);
  3608.         }
  3609.  
  3610.         if (file_exists("data/bb-new.txt")) {
  3611.                 $bb_new = file_get_contents("data/bb-new.txt");
  3612.                 echo "<br>Newest User: <a href=member.php?id=$bb_new>$bb_new</a>";
  3613.         }
  3614.         if (file_exists("data/bb-last.txt")) {
  3615.                 $bb_last = file_get_contents("data/bb-last.txt");
  3616.                 echo "<br>Latest Login: <a href=member.php?id=$bb_last>$bb_last</a>";
  3617.         }
  3618.         echo "</div>";
  3619.  
  3620.         if (file_exists("data/round.txt")) {
  3621.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3622.         }
  3623. }
  3624. ?>
  3625.  
  3626. <form enctype="multipart/form-data" action="dig.php" method="post">
  3627.  
  3628. <?php
  3629.  
  3630. if (file_exists("data/round.txt")) {
  3631.         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3632. }
  3633. else {
  3634.         echo '<div id=panel_title>';
  3635. }
  3636.  
  3637. ?>
  3638.  
  3639. Search</div>
  3640. <div id=panel_body>
  3641. <input type=text class=search name=search autocomplete=off maxlength=55>
  3642. </div>
  3643.  
  3644. <?php
  3645.         if (file_exists("data/round.txt")) {
  3646.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3647.         }
  3648. ?>
  3649.  
  3650. </form>
  3651.  
  3652. <?php
  3653. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  3654.  
  3655.         if (file_exists("data/round.txt")) {
  3656.                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3657.         }
  3658.         else {
  3659.                 echo '<div id=panel_title>';
  3660.         }
  3661.  
  3662.         echo "Find Entries</div><div id=panel_body>";
  3663.         echo "<a href=index.php?find=private>Private</a>";
  3664.         if (file_exists("data/bb.txt")) {
  3665.                 echo "<br><a href=index.php?find=member>Members-Only</a>";
  3666.         }
  3667.         echo "<br><a href=index.php?find=passwd>Password Protected</a>";
  3668.         echo "<br><a href=index.php?find=filedrop>With Attached Files</a>";
  3669.         echo "<br><a href=index.php?find=album>With Photo Album</a>";
  3670.         echo "</div>";
  3671.  
  3672.         if (file_exists("data/round.txt")) {
  3673.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3674.         }
  3675. }
  3676. ?>
  3677.  
  3678. <?php
  3679.         if (file_exists("data/categories")) {
  3680.                 if ($dh_categories = opendir("data/categories")) {
  3681.                         while (($entry_categories = readdir($dh_categories)) !== false) {
  3682.  
  3683.                                 if (file_exists("data/xcat.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3684.                                         continue;
  3685.                                 }
  3686.  
  3687.                                 if (file_exists("data/categories/$entry_categories/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3688.                                         continue;
  3689.                                 }
  3690.  
  3691.  
  3692.                                 if ($entry_categories != "." && $entry_categories != ".." && fnmatch("*", $entry_categories)) {
  3693.                                         $show_categories[] = $entry_categories;
  3694.                                 }
  3695.                         }
  3696.                         closedir($dh_categories);
  3697.                 }
  3698.  
  3699.                 sort($show_categories);
  3700.                 reset($show_categories);
  3701.                 $count_categories = count($show_categories);
  3702.  
  3703.                 if ($count_categories > 0) {
  3704.  
  3705.                         if (file_exists("data/round.txt")) {
  3706.                                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3707.                         }
  3708.                         else {
  3709.                                 echo '<div id=panel_title>';
  3710.                         }
  3711.  
  3712.                         echo 'Categories</div><div id=panel_body>';
  3713.                         foreach ($show_categories as $category) {
  3714.                                 echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
  3715.                                 if (file_exists("data/categories/$category/title.txt")) {
  3716.                                         $category_title = file_get_contents("data/categories/$category/title.txt");
  3717.                                 }
  3718.                                 else {
  3719.                                         $category_title = ucfirst(str_replace("_"," ",$category));
  3720.                                 }
  3721.                                 echo $category_title;
  3722.                                 echo "</a><br />";
  3723.                         }
  3724.                         echo '</div>';
  3725.  
  3726.                         if (file_exists("data/round.txt")) {
  3727.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3728.                         }
  3729.                 }
  3730.         }
  3731.  
  3732.         if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  3733.  
  3734.                 if (file_exists("data/round.txt")) {
  3735.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3736.                 }
  3737.                 else {
  3738.                         echo '<div id=panel_title>';
  3739.                 }
  3740.  
  3741.                 echo 'Statistics</div><div id=panel_body>';
  3742.                 echo "Total Entries: $count_latest_items";
  3743.                 if (file_exists("data/hits.txt")) {
  3744.                         echo '<br>Site Hits: ';
  3745.                         readfile("data/hits.txt");
  3746.                 }
  3747.                 if (file_exists("data/google.txt")) {
  3748.                         echo '<br>Google Visits: ';
  3749.                         readfile("data/google.txt");
  3750.                 }
  3751.                 if (file_exists("data/rss-0.91.txt")) {
  3752.                         echo '<br>RSS 0.91 Hits: ';
  3753.                         readfile("data/rss-0.91.txt");
  3754.                 }
  3755.                 if (file_exists("data/rss-1.0.txt")) {
  3756.                         echo '<br>RSS 1.0 Hits: ';
  3757.                         readfile("data/rss-1.0.txt");
  3758.                 }
  3759.                 if (file_exists("data/rss-2.0.txt")) {
  3760.                         echo '<br>RSS 2.0 Hits: ';
  3761.                         readfile("data/rss-2.0.txt");
  3762.                 }
  3763.                 if (file_exists("data/sitemap.txt")) {
  3764.                         echo '<br>Sitemap Requests: ';
  3765.                         readfile("data/sitemap.txt");
  3766.                 }
  3767.  
  3768.                 echo '</div>';
  3769.  
  3770.                 if (file_exists("data/round.txt")) {
  3771.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3772.                 }
  3773.         }
  3774. }
  3775.  
  3776. ?>
  3777.  
  3778.  
  3779.  
  3780. <?php
  3781. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  3782.         if ($dh_pending_comment_flags = opendir("data/comments/pending")) {
  3783.                 while (($entry_pending_comment_flags = readdir($dh_pending_comment_flags)) !== false) {
  3784.                         if ($entry_pending_comment_flags != "." && $entry_pending_comment_flags != ".." && fnmatch("*", $entry_pending_comment_flags)) {
  3785.                                 $show_pending_comment_flags[] = $entry_pending_comment_flags;
  3786.                         }
  3787.                 }
  3788.                 closedir($dh_pending_comment_flags);
  3789.         }
  3790.  
  3791.         rsort($show_pending_comment_flags);
  3792.         reset($show_pending_comment_flags);
  3793.         $count_pending_comment_flags = count($show_pending_comment_flags);
  3794.  
  3795.         if (($count_latest_items > 0) and ($count_pending_comment_flags > 0)) {
  3796.  
  3797.                 if (file_exists("data/round.txt")) {
  3798.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3799.                 }
  3800.                 else {
  3801.                         echo '<div id=panel_title>';
  3802.                 }
  3803.  
  3804.                 echo 'Pending Comments</div>';
  3805.                 echo '<div id=panel_body>';
  3806.                 if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
  3807.                         while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
  3808.                                 if ($entry_list_pending_comment_flags != "." && $entry_list_pending_comment_flags != ".." && fnmatch("*", $entry_list_pending_comment_flags)) {
  3809.                                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments>';
  3810.                                         readfile("data/items/$entry_list_pending_comment_flags/title.txt");
  3811.                                         echo '</a><br><font style="font-size: 10px; color: #999999;">';
  3812.                                         $fp_comment_count_txt = fopen("data/comments/pending/$entry_list_pending_comment_flags/count.txt","r");
  3813.                                         $comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$entry_list_pending_comment_flags/count.txt"));
  3814.                                         fclose($fp_comment_count_txt);
  3815.                                         if ($comment_count_value == 1) {
  3816.                                                 echo ' ( ' . $comment_count_value . ' comment ) ';
  3817.                                         }
  3818.                                         elseif ($comment_count_value > 1) {
  3819.                                                 echo ' ( ' . $comment_count_value . ' comments ) ';
  3820.                                         }
  3821.                                         else {
  3822.                                                 echo '';
  3823.                                         }
  3824.                                         echo '</font><br>';
  3825.                                 }
  3826.                         }
  3827.                         closedir($dh_list_pending_comment_flags);
  3828.                 }
  3829.                 echo '</div>';
  3830.  
  3831.                 if (file_exists("data/round.txt")) {
  3832.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3833.                 }
  3834.         }
  3835. }
  3836. ?>
  3837.  
  3838. <?php
  3839. if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username) and file_exists("data/members/confirmed") and !file_exists("data/xapp.txt") and file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
  3840.         if ($dh_pending_list = opendir("data/members/confirmed")) {
  3841.                 while (($entry_pending_list = readdir($dh_pending_list)) !== false) {
  3842.  
  3843.                         if ($entry_pending_list != "." && $entry_pending_list != ".." && fnmatch("*", $entry_pending_list)) {
  3844.                                 $show_pending_list[] = $entry_pending_list;
  3845.                         }
  3846.                 }
  3847.                 closedir($dh_pending_list);
  3848.         }
  3849.  
  3850.         sort($show_pending_list);
  3851.         reset($show_pending_list);
  3852.         $count_pending_list = count($show_pending_list);
  3853.        
  3854.         if ($count_pending_list > 0) {
  3855.  
  3856.                 if (file_exists("data/round.txt")) {
  3857.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3858.                 }
  3859.                 else {
  3860.                         echo '<div id=panel_title>';
  3861.                 }
  3862.  
  3863.                 echo "Pending Member";
  3864.                 if ($count_pending_list > 1) {
  3865.                         echo "s";
  3866.                 }
  3867.                 echo "</div><div id=panel_body>Please approve or deny $count_pending_list pending membership request";
  3868.                 if ($count_pending_list > 1) {
  3869.                         echo "s";
  3870.                 }
  3871.                 echo " below.</div>";
  3872.  
  3873.                 if (file_exists("data/round.txt")) {
  3874.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3875.                 }
  3876.  
  3877.                 foreach ($show_pending_list as $pending_list_entry) {
  3878.  
  3879.                         if (file_exists("data/round.txt")) {
  3880.                                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3881.                         }
  3882.                         else {
  3883.                                 echo '<div id=panel_title>';
  3884.                         }
  3885.  
  3886.                         echo "$pending_list_entry";
  3887.                         echo '<a href=reg.php?username=';
  3888.                         echo $pending_list_entry;
  3889.                         echo '&key=';
  3890.                         readfile("data/members/confirmed/$pending_list_entry/key.txt");
  3891.                         echo '&action=deny><img src=images/widget.del.png border=0 width=11 height=11 align=right alt=deny></a><a href=reg.php?username=';
  3892.                         echo $pending_list_entry;
  3893.                         echo '&key=';
  3894.                         readfile("data/members/confirmed/$pending_list_entry/key.txt");
  3895.                         echo '&action=approve><img src=images/widget.cat.png border=0 width=11 height=11 align=right alt=approve></a></div>';
  3896.                         echo "<div id=panel_body>";
  3897.                         if (file_exists("data/members/confirmed/$pending_list_entry/url.txt")) {
  3898.                                 echo "<a href=\"";
  3899.                                 readfile("data/members/confirmed/$pending_list_entry/url.txt");
  3900.                                 echo "\" target=_pending>";
  3901.                         }
  3902.                         readfile("data/members/confirmed/$pending_list_entry/firstname.txt");
  3903.                         echo "&nbsp;";
  3904.                         readfile("data/members/confirmed/$pending_list_entry/lastname.txt");
  3905.                         if (file_exists("data/members/confirmed/$pending_list_entry/url.txt")) {
  3906.                                 echo "</a>";
  3907.                         }
  3908.                         echo "<br>";
  3909.                         $pending_email = file_get_contents("data/members/confirmed/$pending_list_entry/email.txt");
  3910.                         $pending_email = wordwrap($pending_email,30);
  3911.                         echo $pending_email;
  3912.                         if (file_exists("data/members/confirmed/$pending_list_entry/timestamp.txt")) {
  3913.                                 $confirmed = file_get_contents("data/members/confirmed/$pending_list_entry/timestamp.txt");
  3914.                                 $confirmed_year = substr($confirmed,0,4);
  3915.                                 $confirmed_month = substr($confirmed,4,2);
  3916.                                 $confirmed_day = substr($confirmed,6,2);
  3917.                                 $confirmed_hh = substr($confirmed,8,2);
  3918.                                 $confirmed_mm = substr($confirmed,10,2);
  3919.                                 $email_confirmed = date("d M Y H:i", mktime($confirmed_hh, $confirmed_mm, 0, $confirmed_month, $confirmed_day, $confirmed_year));
  3920.                                 echo "<br>$email_confirmed";
  3921.                         }
  3922.                         echo "</div>";
  3923.  
  3924.                         if (file_exists("data/round.txt")) {
  3925.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3926.                         }
  3927.                 }
  3928.         }
  3929. }
  3930. ?>
  3931.  
  3932. <?php
  3933. if (file_exists("data/albums")) {
  3934.         if ($dh_album_list = opendir("data/albums")) {
  3935.                 while (($entry_album_list = readdir($dh_album_list)) !== false) {
  3936.  
  3937.                         if (file_exists("data/items/$entry_album_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3938.                                 continue;
  3939.                         }
  3940.  
  3941.                         if (file_exists("data/items/$entry_album_list/member.txt") and (!isset($_SESSION['logged_in']))) {
  3942.                                 continue;
  3943.                         }
  3944.  
  3945.                         $pull_cat_dir = file_get_contents("data/items/$entry_album_list/category.txt");
  3946.  
  3947.                         if (file_exists("data/categories/$pull_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_album_list/cat.txt")) {
  3948.                                 continue;
  3949.                         }
  3950.  
  3951.                         if ($entry_album_list != "." && $entry_album_list != ".." && fnmatch("*", $entry_album_list)) {
  3952.                                 $show_album_list[] = $entry_album_list;
  3953.                         }
  3954.                 }
  3955.                 closedir($dh_album_list);
  3956.         }
  3957.  
  3958.         rsort($show_album_list);
  3959.         reset($show_album_list);
  3960.         $count_album_list = count($show_album_list);
  3961.        
  3962.         if ($count_album_list > 0) {
  3963.  
  3964.                 if (file_exists("data/round.txt")) {
  3965.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  3966.                 }
  3967.                 else {
  3968.                         echo '<div id=panel_title>';
  3969.                 }
  3970.  
  3971.                 echo 'Albums</div>';
  3972.                 echo '<div id=panel_body>';
  3973.                 foreach ($show_album_list as $album_list_entry) {
  3974.                         echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
  3975.                         echo $album_list_entry;
  3976.                         echo '&show=album>';
  3977.                         readfile("data/items/$album_list_entry/title.txt");
  3978.                         echo '</a><br>';
  3979.                 }
  3980.                 echo '</div>';
  3981.  
  3982.                 if (file_exists("data/round.txt")) {
  3983.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  3984.                 }
  3985.         }
  3986. }
  3987. ?>
  3988.  
  3989.  
  3990.  
  3991. <?php
  3992. if (file_exists("data/items")) {
  3993.         if ($dh_archive_list = opendir("data/items")) {
  3994.                 while (($entry_archive_list = readdir($dh_archive_list)) !== false) {
  3995.  
  3996.                         if (file_exists("data/xarc.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  3997.                                 continue;
  3998.                         }
  3999.  
  4000.                         if (file_exists("data/items/$entry_archive_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  4001.                                 continue;
  4002.                         }
  4003.  
  4004.                         if (file_exists("data/items/$entry_archive_list/member.txt") and (!isset($_SESSION['logged_in']))) {
  4005.                                 continue;
  4006.                         }
  4007.  
  4008.                         $get_cat_dir = file_get_contents("data/items/$entry_archive_list/category.txt");
  4009.  
  4010.                         if (file_exists("data/categories/$get_cat_dir/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username)) and !file_exists("data/items/$entry_archive_list/cat.txt")) {
  4011.                                 continue;
  4012.                         }
  4013.  
  4014.                         if ($entry_archive_list != "." && $entry_archive_list != ".." && fnmatch("*", $entry_archive_list)) {
  4015.                                 $entry_archive_list = substr("$entry_archive_list",0,6);
  4016.                                 $show_archive_list[] = $entry_archive_list;
  4017.                         }
  4018.                 }
  4019.                 closedir($dh_archive_list);
  4020.         }
  4021.  
  4022.         rsort($show_archive_list);
  4023.         reset($show_archive_list);
  4024.         $count_archive_list = count($show_archive_list);
  4025.        
  4026.         if ($count_archive_list > 0) {
  4027.  
  4028.                 $archive_entries = implode(" ",$show_archive_list);
  4029.                 $unique_archive_list = array_unique($show_archive_list);
  4030.  
  4031.                 if (file_exists("data/round.txt")) {
  4032.                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  4033.                 }
  4034.                 else {
  4035.                         echo '<div id=panel_title>';
  4036.                 }
  4037.  
  4038.                 echo "Archives ($count_archive_list)</div>";
  4039.                 echo "<div id=panel_body>";
  4040.                 foreach ($unique_archive_list as $archive_list_entry) {
  4041.                         $archive_list_value = substr($archive_list_entry,0,6);
  4042.                         $archive_list_year = substr($archive_list_entry,0,4);
  4043.                         $archive_list_month = substr($archive_list_entry,4,2);
  4044.                         $archive_list_month = date("F",mktime(0,0,0,$archive_list_month));
  4045.                         echo "<a href=\"index.php?archive=$archive_list_value\">$archive_list_month $archive_list_year</a> (";
  4046.                         echo substr_count($archive_entries,$archive_list_entry);
  4047.                         echo ")<br>";
  4048.                 }
  4049.                 echo "</div>";
  4050.  
  4051.                 if (file_exists("data/round.txt")) {
  4052.                         echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  4053.                 }
  4054.         }
  4055. }
  4056.  
  4057. ?>
  4058.  
  4059.  
  4060.  
  4061. <?php
  4062.  
  4063. if (file_exists("data/clustrmaps.php")) {
  4064.  
  4065.         if (file_exists("data/round.txt")) {
  4066.                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  4067.         }
  4068.         else {
  4069.                 echo '<div id=panel_title>';
  4070.         }
  4071.  
  4072.         echo 'ClustrMaps</div>';
  4073.         echo '<div id=panel_body><center>';
  4074.         include("data/clustrmaps.php");
  4075.         echo '</center></div>';
  4076.  
  4077.         if (file_exists("data/round.txt")) {
  4078.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  4079.         }
  4080. }
  4081. ?>
  4082.  
  4083. <?php
  4084.  
  4085. if (file_exists("data/adsense.php")) {
  4086.  
  4087.         if (file_exists("data/round.txt")) {
  4088.                 echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  4089.         }
  4090.         else {
  4091.                 echo '<div id=panel_title>';
  4092.         }
  4093.  
  4094.         echo 'AdSense</div>';
  4095.         echo '<div id=panel_body><center>';
  4096.         include("data/adsense.php");   
  4097.         echo '</center></div>';
  4098.  
  4099.         if (file_exists("data/round.txt")) {
  4100.                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  4101.         }
  4102. }
  4103. ?>
  4104.  
  4105. <?php
  4106. if (file_exists("data/panels")) {
  4107.         if ($dh_right_panel_list = opendir("data/panels")) {
  4108.                 while (($entry_right_panel_list = readdir($dh_right_panel_list)) !== false) {
  4109.  
  4110.                         if (file_exists("data/panels/$entry_right_panel_list/private.txt") and (!isset($_SESSION['logged_in']) or ($_SESSION['logged_in'] != $login_username))) {
  4111.                                 continue;
  4112.                         }
  4113.  
  4114.                         if (!file_exists("data/panels/$entry_right_panel_list/right.txt")) {
  4115.                                 continue;
  4116.                         }
  4117.  
  4118.                         if ($entry_right_panel_list != "." && $entry_right_panel_list != ".." && fnmatch("*", $entry_right_panel_list)) {
  4119.                                 $show_right_panel_list[] = $entry_right_panel_list;
  4120.                         }
  4121.                 }
  4122.                 closedir($dh_right_panel_list);
  4123.         }
  4124.  
  4125.         sort($show_right_panel_list);
  4126.         reset($show_right_panel_list);
  4127.         $count_right_panel_list = count($show_right_panel_list);
  4128.        
  4129.         if ($count_right_panel_list > 0) {
  4130.                 foreach ($show_right_panel_list as $right_panel_list_entry) {
  4131.                         if (!file_exists("data/panels/$right_panel_list_entry/free.txt")) {
  4132.  
  4133.                                 if (file_exists("data/round.txt")) {
  4134.                                         echo '<b class="rbtop"><b class="rb1t"></b><b class="rb2t"></b><b class="rb3t"></b><b class="rb4t"></b></b><div class="xtitle">';
  4135.                                 }
  4136.                                 else {
  4137.                                         echo '<div id=panel_title>';
  4138.                                 }
  4139.  
  4140.                                 readfile("data/panels/$right_panel_list_entry/title.txt");
  4141.                                 if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
  4142.                                         echo "<a href=panels.php#{$right_panel_list_entry}>";
  4143.                                         echo '<img src=images/widget.edit.png border=0 width=11 height=11 align=right></a>';
  4144.                                 }
  4145.                                 echo '</div><div id=panel_body>';
  4146.                         }
  4147.                         if (file_exists("data/panels/$right_panel_list_entry/free.txt")) {
  4148.                                 echo '<div id=panel_free>';
  4149.                         }
  4150.                         include("data/panels/$right_panel_list_entry/panel.php");
  4151.                         echo '</div>';
  4152.  
  4153.                         if (file_exists("data/round.txt") and !file_exists("data/panels/$right_panel_list_entry/free.txt")) {
  4154.                                 echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
  4155.                         }
  4156.                 }
  4157.         }
  4158. }
  4159. ?>
  4160.  
  4161. <?php
  4162.  
  4163. if ($count_latest_items > 0) {
  4164.         echo '<p><table border=0 cellspacing=2 cellpadding=0 width=100%>';
  4165.         echo '<tr><td align=center><a target="_button" href="http://maj.sourceforge.net/"><img src=images/button.maj.png border=0 width=80 height=15></a></td></tr>';
  4166.         echo '<tr><td align=center><a target="_button" href="http://php.net/"><img src=images/button.php.png border=0 width=80 height=15></a></td></tr>';
  4167.         $validate_uri = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/";
  4168.         $validate_uri = str_replace('//', '/', $validate_uri);
  4169.         $validate_uri = "http://" . $validate_uri;
  4170.         echo '<tr><td align=center><a target="_button" href="http://jigsaw.w3.org/css-validator/validator?uri=' . $validate_uri . '"><img src=images/button.w3c.css.png border=0 width=80 height=15></a></td></tr>';
  4171.         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>';
  4172.         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>';
  4173.         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>';
  4174.         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>';
  4175.         if (file_exists("data/sfx.txt")) {
  4176.                 $fp_sfx = fopen("data/sfx.txt", "r");
  4177.                 $sfx = fread($fp_sfx, filesize("data/sfx.txt"));
  4178.                 fclose($fp_sfx);
  4179.                 echo '<tr><td align=center><a target="_button" href="http://www.spreadfirefox.com/?q=affiliates&amp;id=' . $sfx . '&amp;t=85"><img src=images/button.firefox.png border=0 width=80 height=15></a></td></tr>';
  4180.         }
  4181.         echo '</table></p>';
  4182.  
  4183. }
  4184.  
  4185. ?>
  4186.  
  4187. <p></p>
  4188.  
  4189. </td></tr>
  4190. </table>
  4191.  
  4192. <?php
  4193. if (file_exists("footer.php")) {
  4194.         echo '<p></p>';
  4195.         include("footer.php");
  4196. }
  4197.  
  4198. if (file_exists("data/center.txt")) {
  4199.         echo "</center>";
  4200. }
  4201.  
  4202. ?>
  4203.  
filedropmaj.git-01822e4.tar.bz2
147.95 KB
62 downloads
filedropmaj.git-01822e4.zip
201.96 KB
19 downloads
filedropmaj.git-0291349.tar.bz2
152.85 KB
60 downloads
filedropmaj.git-0291349.zip
211.90 KB
19 downloads
filedropmaj.git-02cb3b7.tar.bz2
151.48 KB
63 downloads
filedropmaj.git-02cb3b7.zip
209.82 KB
19 downloads
filedropmaj.git-0811dd5.tar.bz2
152.90 KB
60 downloads
filedropmaj.git-0811dd5.zip
211.90 KB
18 downloads
filedropmaj.git-083625f.tar.bz2
132.92 KB
59 downloads
filedropmaj.git-083625f.zip
179.59 KB
20 downloads
filedropmaj.git-0885d7b.tar.bz2
92.63 KB
60 downloads
filedropmaj.git-0885d7b.zip
132.34 KB
17 downloads
filedropmaj.git-09c6f33.tar.bz2
151.51 KB
59 downloads
filedropmaj.git-09c6f33.zip
202.12 KB
18 downloads
filedropmaj.git-0b26a85.tar.bz2
151.44 KB
57 downloads
filedropmaj.git-0b26a85.zip
209.75 KB
16 downloads
filedropmaj.git-0b32424.tar.bz2
151.66 KB
58 downloads
filedropmaj.git-0b32424.zip
206.72 KB
17 downloads
filedropmaj.git-0f3ac59.tar.bz2
152.14 KB
57 downloads
filedropmaj.git-0f3ac59.zip
211.45 KB
13 downloads
filedropmaj.git-11d4582.tar.bz2
143.02 KB
55 downloads
filedropmaj.git-11d4582.zip
195.12 KB
12 downloads
filedropmaj.git-17f105a.tar.bz2
137.96 KB
53 downloads
filedropmaj.git-17f105a.zip
193.02 KB
13 downloads
filedropmaj.git-183270b.tar.bz2
137.54 KB
57 downloads
filedropmaj.git-183270b.zip
187.93 KB
13 downloads
filedropmaj.git-197a49d.tar.bz2
152.03 KB
55 downloads
filedropmaj.git-197a49d.zip
211.32 KB
16 downloads
filedropmaj.git-1b9af25.tar.bz2
152.87 KB
53 downloads
filedropmaj.git-1b9af25.zip
211.96 KB
14 downloads
filedropmaj.git-1be2914.tar.bz2
149.30 KB
55 downloads
filedropmaj.git-1be2914.zip
203.09 KB
13 downloads
filedropmaj.git-1bed800.tar.bz2
138.15 KB
51 downloads
filedropmaj.git-1bed800.zip
190.15 KB
17 downloads
filedropmaj.git-1d330de.tar.bz2
151.65 KB
54 downloads
filedropmaj.git-1d330de.zip
210.80 KB
15 downloads
filedropmaj.git-1df190d.tar.bz2
151.72 KB
55 downloads
filedropmaj.git-1df190d.zip
210.85 KB
13 downloads
filedropmaj.git-1ee1167.tar.bz2
151.52 KB
56 downloads
filedropmaj.git-1ee1167.zip
202.16 KB
14 downloads
filedropmaj.git-2057838.tar.bz2
151.76 KB
52 downloads
filedropmaj.git-2057838.zip
202.36 KB
14 downloads
filedropmaj.git-2075213.tar.bz2
155.81 KB
52 downloads
filedropmaj.git-2075213.zip
208.39 KB
13 downloads
filedropmaj.git-211b7b0.tar.bz2
142.53 KB
55 downloads
filedropmaj.git-211b7b0.zip
194.64 KB
14 downloads
filedropmaj.git-2331f5a.tar.bz2
75.55 KB
55 downloads
filedropmaj.git-2331f5a.zip
100.32 KB
16 downloads
filedropmaj.git-25e3c4c.tar.bz2
147.57 KB
53 downloads
filedropmaj.git-25e3c4c.zip
201.46 KB
13 downloads
filedropmaj.git-2622313.tar.bz2
151.47 KB
50 downloads
filedropmaj.git-2622313.zip
206.44 KB
12 downloads
filedropmaj.git-273e4b2.tar.bz2
152.60 KB
52 downloads
filedropmaj.git-273e4b2.zip
203.40 KB
15 downloads
filedropmaj.git-2753e51.tar.bz2
136.37 KB
55 downloads
filedropmaj.git-2753e51.zip
184.34 KB
12 downloads
filedropmaj.git-2c1a589.tar.bz2
155.89 KB
49 downloads
filedropmaj.git-2c1a589.zip
208.69 KB
13 downloads
filedropmaj.git-2c3d544.tar.bz2
151.33 KB
51 downloads
filedropmaj.git-2c3d544.zip
206.23 KB
14 downloads
filedropmaj.git-2c85f72.tar.bz2
143.23 KB
50 downloads
filedropmaj.git-2c85f72.zip
194.84 KB
12 downloads
filedropmaj.git-2dc622c.tar.bz2
151.76 KB
48 downloads
filedropmaj.git-2dc622c.zip
202.35 KB
14 downloads
filedropmaj.git-2fabf8a.tar.bz2
151.35 KB
53 downloads
filedropmaj.git-2fabf8a.zip
206.24 KB
15 downloads
filedropmaj.git-322736b.tar.bz2
137.81 KB
45 downloads
filedropmaj.git-322736b.zip
190.18 KB
13 downloads
filedropmaj.git-374279c.tar.bz2
137.54 KB
46 downloads
filedropmaj.git-374279c.zip
189.58 KB
12 downloads
filedropmaj.git-37e852d.tar.bz2
151.32 KB
42 downloads
filedropmaj.git-37e852d.zip
206.21 KB
11 downloads
filedropmaj.git-38636de.tar.bz2
147.35 KB
42 downloads
filedropmaj.git-38636de.zip
201.16 KB
69 downloads
filedropmaj.git-3b25d71.tar.bz2
147.88 KB
35 downloads
filedropmaj.git-3b25d71.zip
201.85 KB
14 downloads
filedropmaj.git-3b6df7a.tar.bz2
153.39 KB
33 downloads
filedropmaj.git-3b6df7a.zip
204.55 KB
17 downloads
filedropmaj.git-3bf6bd2.tar.bz2
137.77 KB
38 downloads
filedropmaj.git-3bf6bd2.zip
190.16 KB
14 downloads
filedropmaj.git-3e012ff.tar.bz2
152.83 KB
34 downloads
filedropmaj.git-3e012ff.zip
211.89 KB
16 downloads
filedropmaj.git-4129ab8.tar.bz2
135.86 KB
42 downloads
filedropmaj.git-4129ab8.zip
184.30 KB
14 downloads
filedropmaj.git-414dbb4.tar.bz2
91.09 KB
40 downloads
filedropmaj.git-414dbb4.zip
130.29 KB
14 downloads
filedropmaj.git-43755d0.tar.bz2
150.25 KB
33 downloads
filedropmaj.git-43755d0.zip
204.44 KB
14 downloads
filedropmaj.git-4c20005.tar.bz2
55.59 KB
37 downloads
filedropmaj.git-4c20005.zip
74.20 KB
14 downloads
filedropmaj.git-4ccdbcd.tar.bz2
136.38 KB
38 downloads
filedropmaj.git-4ccdbcd.zip
185.22 KB
16 downloads
filedropmaj.git-4cd1a1c.tar.bz2
155.25 KB
35 downloads
filedropmaj.git-4cd1a1c.zip
207.88 KB
16 downloads
filedropmaj.git-4cf16d1.tar.bz2
76.32 KB
38 downloads
filedropmaj.git-4cf16d1.zip
101.80 KB
12 downloads
filedropmaj.git-4ec45a0.tar.bz2
131.16 KB
35 downloads
filedropmaj.git-4ec45a0.zip
172.66 KB
14 downloads
filedropmaj.git-4f73c22.tar.bz2
134.46 KB
35 downloads
filedropmaj.git-4f73c22.zip
182.45 KB
13 downloads
filedropmaj.git-5457969.tar.bz2
155.21 KB
38 downloads
filedropmaj.git-5457969.zip
207.63 KB
14 downloads
filedropmaj.git-57ee8a1.tar.bz2
145.49 KB
38 downloads
filedropmaj.git-57ee8a1.zip
198.12 KB
66 downloads
filedropmaj.git-592978d.tar.bz2
138.38 KB
36 downloads
filedropmaj.git-592978d.zip
190.58 KB
13 downloads
filedropmaj.git-5935b42.tar.bz2
135.60 KB
34 downloads
filedropmaj.git-5935b42.zip
183.28 KB
15 downloads
filedropmaj.git-5b443b6.tar.bz2
152.00 KB
36 downloads
filedropmaj.git-5b443b6.zip
211.07 KB
13 downloads
filedropmaj.git-5b4a9bf.tar.bz2
155.29 KB
34 downloads
filedropmaj.git-5b4a9bf.zip
207.93 KB
12 downloads
filedropmaj.git-5b6c01d.tar.bz2
147.13 KB
35 downloads
filedropmaj.git-5b6c01d.zip
200.86 KB
16 downloads
filedropmaj.git-5da45f7.tar.bz2
147.27 KB
36 downloads
filedropmaj.git-5da45f7.zip
201.02 KB
13 downloads
filedropmaj.git-5e53618.tar.bz2
75.57 KB
38 downloads
filedropmaj.git-5e53618.zip
100.78 KB
14 downloads
filedropmaj.git-5f8ca35.tar.bz2
136.39 KB
33 downloads
filedropmaj.git-5f8ca35.zip
185.32 KB
13 downloads
filedropmaj.git-61e3d7b.tar.bz2
153.52 KB
33 downloads
filedropmaj.git-61e3d7b.zip
204.73 KB
15 downloads
filedropmaj.git-62a635c.tar.bz2
155.90 KB
37 downloads
filedropmaj.git-62a635c.zip
208.73 KB
14 downloads
filedropmaj.git-6390d34.tar.bz2
138.39 KB
37 downloads
filedropmaj.git-6390d34.zip
190.56 KB
17 downloads
filedropmaj.git-649dfbe.tar.bz2
151.78 KB
37 downloads
filedropmaj.git-649dfbe.zip
210.91 KB
14 downloads
filedropmaj.git-65d6570.tar.bz2
151.63 KB
39 downloads
filedropmaj.git-65d6570.zip
210.80 KB
16 downloads
filedropmaj.git-660433f.tar.bz2
151.67 KB
36 downloads
filedropmaj.git-660433f.zip
206.68 KB
14 downloads
filedropmaj.git-6619ae5.tar.bz2
153.23 KB
46 downloads
filedropmaj.git-6619ae5.zip
204.28 KB
13 downloads
filedropmaj.git-68e4e3a.tar.bz2
135.13 KB
34 downloads
filedropmaj.git-68e4e3a.zip
182.91 KB
13 downloads
filedropmaj.git-6995297.tar.bz2
144.93 KB
38 downloads
filedropmaj.git-6995297.zip
197.18 KB
12 downloads
filedropmaj.git-69d6fd3.tar.bz2
143.23 KB
34 downloads
filedropmaj.git-69d6fd3.zip
194.89 KB
16 downloads
filedropmaj.git-6aa872a.tar.bz2
142.95 KB
39 downloads
filedropmaj.git-6aa872a.zip
195.11 KB
15 downloads
filedropmaj.git-6bad5c7.tar.bz2
147.04 KB
38 downloads
filedropmaj.git-6bad5c7.zip
200.79 KB
14 downloads
filedropmaj.git-6e96a2d.tar.bz2
152.13 KB
37 downloads
filedropmaj.git-6e96a2d.zip
207.21 KB
67 downloads
filedropmaj.git-73d46de.tar.bz2
138.42 KB
36 downloads
filedropmaj.git-73d46de.zip
190.59 KB
13 downloads
filedropmaj.git-75e0478.tar.bz2
144.54 KB
38 downloads
filedropmaj.git-75e0478.zip
196.70 KB
15 downloads
filedropmaj.git-784fc35.tar.bz2
143.07 KB
38 downloads
filedropmaj.git-784fc35.zip
195.01 KB
13 downloads
filedropmaj.git-7872a83.tar.bz2
138.51 KB
39 downloads
filedropmaj.git-7872a83.zip
190.69 KB
13 downloads
filedropmaj.git-788fb89.tar.bz2
138.30 KB
37 downloads
filedropmaj.git-788fb89.zip
191.26 KB
18 downloads
filedropmaj.git-796d8a3.tar.bz2
138.92 KB
35 downloads
filedropmaj.git-796d8a3.zip
191.24 KB
13 downloads
filedropmaj.git-79a5e8d.tar.bz2
132.43 KB
38 downloads
filedropmaj.git-79a5e8d.zip
176.90 KB
14 downloads
filedropmaj.git-7b3b2e0.tar.bz2
147.24 KB
36 downloads
filedropmaj.git-7b3b2e0.zip
201.05 KB
14 downloads
filedropmaj.git-7e28eed.tar.bz2
138.89 KB
33 downloads
filedropmaj.git-7e28eed.zip
191.24 KB
14 downloads
filedropmaj.git-8279296.tar.bz2
135.56 KB
38 downloads
filedropmaj.git-8279296.zip
183.25 KB
14 downloads
filedropmaj.git-84c17fe.tar.bz2
152.87 KB
38 downloads
filedropmaj.git-84c17fe.zip
211.90 KB
14 downloads
filedropmaj.git-87c5d5f.tar.bz2
135.78 KB
36 downloads
filedropmaj.git-87c5d5f.zip
183.64 KB
12 downloads
filedropmaj.git-8a48901.tar.bz2
147.27 KB
39 downloads
filedropmaj.git-8a48901.zip
201.06 KB
14 downloads
filedropmaj.git-8ad9892.tar.bz2
164.04 KB
36 downloads
filedropmaj.git-8ad9892.zip
224.42 KB
13 downloads
filedropmaj.git-8b4cf2a.tar.bz2
134.06 KB
37 downloads
filedropmaj.git-8b4cf2a.zip
180.78 KB
14 downloads
filedropmaj.git-8b7e38d.tar.bz2
138.04 KB
41 downloads
filedropmaj.git-8b7e38d.zip
190.39 KB
70 downloads
filedropmaj.git-8df6e40.tar.bz2
143.11 KB
38 downloads
filedropmaj.git-8df6e40.zip
194.66 KB
18 downloads
filedropmaj.git-8e80c84.tar.bz2
138.18 KB
36 downloads
filedropmaj.git-8e80c84.zip
190.30 KB
14 downloads
filedropmaj.git-8ec0fba.tar.bz2
138.37 KB
39 downloads
filedropmaj.git-8ec0fba.zip
191.39 KB
14 downloads
filedropmaj.git-8f7abf6.tar.bz2
153.36 KB
38 downloads
filedropmaj.git-8f7abf6.zip
211.80 KB
13 downloads
filedropmaj.git-923f11a.tar.bz2
138.14 KB
36 downloads
filedropmaj.git-923f11a.zip
191.03 KB
15 downloads
filedropmaj.git-955e82e.tar.bz2
42.71 KB
35 downloads
filedropmaj.git-955e82e.zip
59.77 KB
14 downloads
filedropmaj.git-95add4a.tar.bz2
151.23 KB
40 downloads
filedropmaj.git-95add4a.zip
205.91 KB
14 downloads
filedropmaj.git-96fe0ba.tar.bz2
137.68 KB
32 downloads
filedropmaj.git-96fe0ba.zip
190.34 KB
13 downloads
filedropmaj.git-99a90ce.tar.bz2
137.82 KB
39 downloads
filedropmaj.git-99a90ce.zip
191.20 KB
16 downloads
filedropmaj.git-9a69bb9.tar.bz2
143.19 KB
39 downloads
filedropmaj.git-9a69bb9.zip
194.70 KB
15 downloads
filedropmaj.git-9b6538e.tar.bz2
151.45 KB
36 downloads
filedropmaj.git-9b6538e.zip
202.15 KB
13 downloads
filedropmaj.git-9c4292d.tar.bz2
132.06 KB
37 downloads
filedropmaj.git-9c4292d.zip
176.93 KB
13 downloads
filedropmaj.git-9c78d40.tar.bz2
137.70 KB
37 downloads
filedropmaj.git-9c78d40.zip
190.49 KB
15 downloads
filedropmaj.git-9f1363f.tar.bz2
43.12 KB
40 downloads
filedropmaj.git-9f1363f.zip
60.31 KB
13 downloads
filedropmaj.git-a16c3eb.tar.bz2
90.22 KB
34 downloads
filedropmaj.git-a16c3eb.zip
128.62 KB
14 downloads
filedropmaj.git-a3aa72d.tar.bz2
153.00 KB
37 downloads
filedropmaj.git-a3aa72d.zip
203.86 KB
16 downloads
filedropmaj.git-a6886e4.tar.bz2
144.69 KB
37 downloads
filedropmaj.git-a6886e4.zip
196.95 KB
13 downloads
filedropmaj.git-a8669dc.tar.bz2
135.60 KB
35 downloads
filedropmaj.git-a8669dc.zip
183.34 KB
14 downloads
filedropmaj.git-a9477f1.tar.bz2
135.59 KB
37 downloads
filedropmaj.git-a9477f1.zip
183.45 KB
14 downloads
filedropmaj.git-aa285db.tar.bz2
151.73 KB
38 downloads
filedropmaj.git-aa285db.zip
210.85 KB
14 downloads
filedropmaj.git-aa6ae87.tar.bz2
135.44 KB
37 downloads
filedropmaj.git-aa6ae87.zip
183.88 KB
14 downloads
filedropmaj.git-ab6bc22.tar.bz2
151.71 KB
33 downloads
filedropmaj.git-ab6bc22.zip
210.84 KB
16 downloads
filedropmaj.git-adef726.tar.bz2
153.48 KB
36 downloads
filedropmaj.git-adef726.zip
212.32 KB
14 downloads
filedropmaj.git-afe5877.tar.bz2
144.73 KB
32 downloads
filedropmaj.git-afe5877.zip
197.01 KB
13 downloads
filedropmaj.git-b2d9f8e.tar.bz2
133.22 KB
35 downloads
filedropmaj.git-b2d9f8e.zip
179.27 KB
13 downloads
filedropmaj.git-b41f320.tar.bz2
151.56 KB
33 downloads
filedropmaj.git-b41f320.zip
209.85 KB
18 downloads
filedropmaj.git-b4432ce.tar.bz2
152.96 KB
34 downloads
filedropmaj.git-b4432ce.zip
203.86 KB
14 downloads
filedropmaj.git-b67b08f.tar.bz2
151.27 KB
36 downloads
filedropmaj.git-b67b08f.zip
206.15 KB
16 downloads
filedropmaj.git-b899831.tar.bz2
143.12 KB
35 downloads
filedropmaj.git-b899831.zip
194.60 KB
14 downloads
filedropmaj.git-b8b49c1.tar.bz2
132.59 KB
33 downloads
filedropmaj.git-b8b49c1.zip
178.90 KB
13 downloads
filedropmaj.git-b9c5bcf.tar.bz2
155.92 KB
34 downloads
filedropmaj.git-b9c5bcf.zip
208.70 KB
12 downloads
filedropmaj.git-bbddb1f.tar.bz2
151.63 KB
33 downloads
filedropmaj.git-bbddb1f.zip
209.92 KB
16 downloads
filedropmaj.git-bcaa744.tar.bz2
146.98 KB
37 downloads
filedropmaj.git-bcaa744.zip
200.79 KB
15 downloads
filedropmaj.git-c1ff9dc.tar.bz2
138.39 KB
38 downloads
filedropmaj.git-c1ff9dc.zip
191.43 KB
97 downloads
filedropmaj.git-c20c4b0.tar.bz2
151.64 KB
35 downloads
filedropmaj.git-c20c4b0.zip
210.79 KB
13 downloads
filedropmaj.git-c37f3f7.tar.bz2
145.45 KB
49 downloads
filedropmaj.git-c37f3f7.zip
198.11 KB
22 downloads
filedropmaj.git-c532394.tar.bz2
146.39 KB
37 downloads
filedropmaj.git-c532394.zip
199.91 KB
15 downloads
filedropmaj.git-c6317a4.tar.bz2
152.01 KB
36 downloads
filedropmaj.git-c6317a4.zip
207.08 KB
13 downloads
filedropmaj.git-c748176.tar.bz2
89.44 KB
34 downloads
filedropmaj.git-c748176.zip
126.35 KB
14 downloads
filedropmaj.git-c9ed81f.tar.bz2
135.56 KB
34 downloads
filedropmaj.git-c9ed81f.zip
183.28 KB
16 downloads
filedropmaj.git-c9f9b80.tar.bz2
138.50 KB
34 downloads
filedropmaj.git-c9f9b80.zip
190.66 KB
15 downloads
filedropmaj.git-ca65b73.tar.bz2
152.69 KB
35 downloads
filedropmaj.git-ca65b73.zip
207.87 KB
15 downloads
filedropmaj.git-cd80b77.tar.bz2
153.12 KB
35 downloads
filedropmaj.git-cd80b77.zip
212.01 KB
12 downloads
filedropmaj.git-cffbb2a.tar.bz2
138.22 KB
33 downloads
filedropmaj.git-cffbb2a.zip
190.28 KB
14 downloads
filedropmaj.git-d061ad7.tar.bz2
55.78 KB
47 downloads
filedropmaj.git-d061ad7.zip
74.39 KB
15 downloads
filedropmaj.git-d0af4d6.tar.bz2
57.28 KB
35 downloads
filedropmaj.git-d0af4d6.zip
78.56 KB
15 downloads
filedropmaj.git-d1caa0a.tar.bz2
144.57 KB
37 downloads
filedropmaj.git-d1caa0a.zip
196.63 KB
14 downloads
filedropmaj.git-d5679b5.tar.bz2
152.37 KB
34 downloads
filedropmaj.git-d5679b5.zip
207.52 KB
15 downloads
filedropmaj.git-d72f459.tar.bz2
147.90 KB
36 downloads
filedropmaj.git-d72f459.zip
201.92 KB
13 downloads
filedropmaj.git-d958c91.tar.bz2
144.67 KB
37 downloads
filedropmaj.git-d958c91.zip
196.88 KB
17 downloads
filedropmaj.git-d96784f.tar.bz2
135.58 KB
36 downloads
filedropmaj.git-d96784f.zip
183.46 KB
12 downloads
filedropmaj.git-da4b73f.tar.bz2
152.62 KB
33 downloads
filedropmaj.git-da4b73f.zip
203.48 KB
13 downloads
filedropmaj.git-dd24240.tar.bz2
138.27 KB
33 downloads
filedropmaj.git-dd24240.zip
190.45 KB
72 downloads
filedropmaj.git-e11e772.tar.bz2
152.09 KB
33 downloads
filedropmaj.git-e11e772.zip
211.33 KB
14 downloads
filedropmaj.git-e61478e.tar.bz2
135.95 KB
37 downloads
filedropmaj.git-e61478e.zip
183.91 KB
14 downloads
filedropmaj.git-e7a2547.tar.bz2
133.80 KB
33 downloads
filedropmaj.git-e7a2547.zip
180.05 KB
16 downloads
filedropmaj.git-e8a3b95.tar.bz2
138.15 KB
37 downloads
filedropmaj.git-e8a3b95.zip
191.04 KB
12 downloads
filedropmaj.git-eac86d5.tar.bz2
155.65 KB
33 downloads
filedropmaj.git-eac86d5.zip
208.28 KB
12 downloads
filedropmaj.git-ed83bf9.tar.bz2
135.16 KB
34 downloads
filedropmaj.git-ed83bf9.zip
182.91 KB
15 downloads
filedropmaj.git-ee50d40.tar.bz2
135.59 KB
36 downloads
filedropmaj.git-ee50d40.zip
183.48 KB
16 downloads
filedropmaj.git-efdb4df.tar.bz2
155.87 KB
36 downloads
filedropmaj.git-efdb4df.zip
208.72 KB
14 downloads
filedropmaj.git-f1554f8.tar.bz2
151.30 KB
37 downloads
filedropmaj.git-f1554f8.zip
206.22 KB
16 downloads
filedropmaj.git-f72a07b.tar.bz2
153.44 KB
37 downloads
filedropmaj.git-f72a07b.zip
212.11 KB
17 downloads
filedropmaj.git-f7ea5a1.tar.bz2
147.46 KB
36 downloads
filedropmaj.git-f7ea5a1.zip
201.32 KB
17 downloads
filedropmaj.git-f8a7353.tar.bz2
138.49 KB
36 downloads
filedropmaj.git-f8a7353.zip
190.66 KB
18 downloads
filedropmaj.git-fb84a8d.tar.bz2
137.61 KB
41 downloads
filedropmaj.git-fb84a8d.zip
190.70 KB
18 downloads
filedropmaj.git-fdcf5d3.tar.bz2
152.34 KB
40 downloads
filedropmaj.git-fdcf5d3.zip
207.53 KB
17 downloads
filedropmaj.git-feca42d.tar.bz2
132.90 KB
38 downloads
filedropmaj.git-feca42d.zip
179.44 KB
19 downloads