maj.world

maj.world

Git

This blob has been accessed 383 times via Git panel.

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