maj.world

maj.world

Git

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