Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bob3

#1
General Discussion / Beautiful RWL picture...
December 02, 2003, 04:27:52 PM
 *I* totally didn't, yet I'm in the drawing... why?
#2
General Discussion / Retto Appreciation Day once again...
December 02, 2003, 04:27:07 PM
 I'm "The Beatles" or "Beatles", thank you very much.
#3
General Discussion / Congratulations
December 02, 2003, 01:16:37 PM
 Ports 7 and 13 on *NIX machines are a fun service, the echo/daytime services. But most don't support them due to flooding anymore. :(
#4
Turbo Discussion / Three person clans?
December 02, 2003, 01:10:03 PM
 Josh was #123.
#5
News / Updates / "i_dont_like_retto" banned
December 02, 2003, 12:56:05 PM
 ?
#6
General Discussion / Congratulations
December 01, 2003, 11:08:09 PM
 "tracert -n [host]"
#7
General Discussion / Congratulations
December 01, 2003, 08:48:05 PM
 AutoIt.
#8
General Discussion / Retto Appreciation Day once again...
December 01, 2003, 06:59:59 PM
 Too much celebration.
Instead, dedicate the first of every second month to an admin or mod. That's 6, so it works out.

*mpan: http://www.redwallwarlords.com/forums/index.php?a...ts&CODE=leaders
#9
General Discussion / Congratulations
December 01, 2003, 06:58:04 PM
 Talked to the person you told me about, Shael. I said that I wish he had never returned to my games. He said he hadn't, then told me in clear words something to do to myself which is anatomically impossible. Then he blocked me. So... yeah, it's him all right. Screw him.

*mpan... no..er...no
#11
General Discussion / Congratulations
December 01, 2003, 06:45:49 PM
 Nothing, just posting code fragments here randomly.
#12
General Discussion / Congratulations
December 01, 2003, 06:36:34 PM
 
Quote
function cleanDirectory($directory) {
   if (strlen($directory) < 1) { return ""; }
   $directory = stripDirectory($directory);
   $directory = str_replace('./', '', $directory);
   $directory = str_replace('/.', '', $directory);
   $directoryparts = explode("/", $directory);
   $doubledotcounter = 0;
   $newdirectory = "";
   for ($i=sizeof($directoryparts)-1; $i>=0; $i = $i - 1) {
 if ($directoryparts[$i] == "..") {
    $doubledotcounter = $doubledotcounter + 1;
 }
 else {  
    if ($doubledotcounter == 0) {
   $newdirectory = $directoryparts[$i] . "/" . $newdirectory;
    }
    elseif ($doubledotcounter > 0) {
   $doubledotcounter = $doubledotcounter - 1;
    }
 }
   }

   $newdirectory = "/" . stripDirectory($newdirectory);
   return $newdirectory;
}



function stripDirectory($directory) {
   $directory = trim($directory);

   while(substr($directory, 0, 1) == '/') {
 $directory = substr($directory, 1, strlen($directory)-1);
   }
   while(substr($directory, strlen($directory)-1, 1) == '/') {
 $directory = substr($directory, 0, strlen($directory)-1);
   }

   return $directory;
}
#13
General Discussion / Retto Appreciation Day once again...
December 01, 2003, 06:15:37 PM
 Does this happen every week or what?
#14
General Discussion / Note...
December 01, 2003, 06:14:31 PM
 More vulgar, if that sates your curiosity.
#15
General Discussion / Congratulations
December 01, 2003, 06:13:52 PM
 It may be, thank you Shael.
Of course I won't ping him to death, duh.
I'm annoyed.
But I found out something interesting.
QuoteFor source viewer:
if directory: ls -l somedir
if ASCII file: cat somedir/some.file
if zip file: unzip -ql somedir/some.zip
if file inside zip file: unzip -qp somedir/some.zip insidedir/inside.file
if tar.gz file: gunzip somedir/some.tar.gz | tar vtf -
if gz file: gunzip -l somedir/some.gz

*Working on .gz, .tar.gz, .z, and .bz2... anyone check the man files for those?
**Added .tar.gz
***Added .gz  - must now see how to do files inside archives