maj.world

maj.world

Git

This blob has been accessed 411 times via Git panel.

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