Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 12th, 2005, 10:21 PM   #41
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Yes, we should do that... vBulletin costs money, but i might setup a PHPBB forum later to test it on...
__________________

tempest is offline   Reply With Quote
Old Oct 13th, 2005, 6:39 AM   #42
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I have phpBB (new) that I'm hacking on, if you'd like to specify a mod.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 13th, 2005, 3:44 PM   #43
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Append the following code to the end of line 1064 in "viewtopic.php" (you'll need to have the file from the zip in the forums dir):
[php]
include("phpbb_no1337.class.php");
$x1337 = new phpbb_no1337;
$message = $x1337->phpbb_convert($message);
[/php]

I have this mod on http://tempest.homeunix.net/forums/ if anyone wants to play around with it. From first look it scrambles alot of non-1337 text, if this was going to be put onto a forum like PFO or anything serious editing would be required...

For instance: phpBB2 = fpbb z
__________________

tempest is offline   Reply With Quote
Old Oct 14th, 2005, 10:28 AM   #44
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Quote:
Originally Posted by tempest
For instance: phpBB2 = fpbb z
remove this line [php]if(substr($words[$i], 0, 2) == "ph")
$words[$i] = "f" . substr($words[$i], 2, strlen($words[$i])-2);
[/php] This way, phpbb2 will become phpbbz
as for the 2 becoming a z, that's something we can't change because l33ters use numbers instead of letters.
BTW, you link isn't working.
OpenLoop is offline   Reply With Quote
Old Oct 14th, 2005, 2:03 PM   #45
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
well, i don't think the 1337 text translation is a problem... i think there needs to be a method to seperate "valid" words and "1337" words and only send 1337 to the parser...
__________________

tempest is offline   Reply With Quote
Old Oct 14th, 2005, 2:47 PM   #46
Komodo
Hobbyist Programmer
 
Komodo's Avatar
 
Join Date: May 2005
Location: Scranton, PA
Posts: 112
Rep Power: 0 Komodo is an unknown quantity at this point
Send a message via AIM to Komodo Send a message via MSN to Komodo
Hmm.... [l33t]|=|_|<|<, |37$ 5+4|\||)4[/l33t]rdize leetspeak, we'll form some group, and standardize it, who's with me?
Komodo is offline   Reply With Quote
Old Oct 14th, 2005, 3:11 PM   #47
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Cool idea, maybe the group can even be part of the already existing group to try and make people use signatures that don't look like a rainbow.
__________________

tempest is offline   Reply With Quote
Old Oct 14th, 2005, 3:26 PM   #48
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
what do you think about ANSI 1337
Polyphemus_ is offline   Reply With Quote
Old Oct 14th, 2005, 9:27 PM   #49
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Quote:
Originally Posted by Polyphemus_
what do you think about ANSI 1337
more like "Sue me for using your company name without permission ANSI 1337"
OpenLoop is offline   Reply With Quote
Old Oct 17th, 2005, 7:42 PM   #50
printf
Newbie
 
Join Date: Oct 2005
Posts: 4
Rep Power: 0 printf is on a distinguished road
Here it is in PHP, only the encoder! If you want to add decoding use array_flip() on the $encrypt array before running through the if() blocks...

Decode Note...

You don't need to know the percentage to decode, just run the complete encoded string against the complete $encrypt array

This uses strtr() no need for all them switch() thingies, long winded loops!

<?

$percent = 0;

$old = $new = '';

if ( isset ( $_POST['old'] ) && trim ( $_POST['old'] ) != '' )
{
	$old = $_POST['old'];
}

if ( isset ( $_POST['percent'] ) )
{
	$percent = intval ( $_POST['percent'] );
}

if ( $old != '' )
{
	$new = l33t ( $old, $percent );
}

?>

<html>
 <head>
  <title>PHP: Leet Translator</title>
 <head>
 <body>
  <form action='<?=$_SERVER['PHP_SELF'];?>' method='post'>
  <div align='center'>
   <div>Leet Translator...</div>
   <div>&nbsp;</div>
   <div>&nbsp;</div>
   <div><small>l33t strength</small></div>
   <div>&nbsp;</div>
   <div><select name='percent'>
<?
	for ( $i = 0; $i <= 100; $i++ )
	{
		echo "<option value='" . $i . "'" . ( $percent == $i ? " selected='selected'" : null ) . "> " . $i . "%</option>";
	}

	echo '</select></div>';
?>

   <div>&nbsp;</div>
   <div><small>String to translate...</small></div>
   <div>&nbsp;</div>
   <div><textarea name='old' rows='6' cols='40'><?=htmlspecialchars ( $old );?></textarea></div>
   <div>&nbsp;</div>
<?
	if ( $new != '' )
	{
?>
   <div>&nbsp;</div>
   <div><small>L33t encoded string...</small></div>
   <div>&nbsp;</div>
   <div><textarea name='new' rows='6' cols='40'><?=htmlspecialchars ( $new );?></textarea></div>
   <div>&nbsp;</div>
<?
	}
?>
   <div>&nbsp;</div>
   <div><input type='submit' value='L33T!' /></div>
  </div>
  </form>
 </body>
</html>
<?

function l33t ( $str, $math )
{
	$encrypt = array ( 'e' => '€', 'E' => '€', 'a' => '@', 'i' => '¡', 'o' => '0', 'A' => '@', 'I' => '¡', 'O' => '0', 's' => '§', 'S' => '§', 'l' => '£', 'L' => '£', 'c' => 'ç', 'C' => 'ç', 'y' => '¥', 'Y' => '¥', 'u' => 'µ', 'U' => 'µ', 'd' => 'þ', 'D' => 'þ', 'g' => '9', 'G' => '9', 'l' => '£', 'L' => '£', 't' => '7', 'T' => '7', 'z' => '2', 'Z' => '2', 'f' => 'ƒ', 'F' => 'ƒ', 'n' => '|\\|', 'N' => '|\\|', 'w' => '\\/\\/', 'W' => '\\/\\/', 'h' => '|-|', 'H' => '|-|', 'v' => '\\/', 'V' => '\\/', 'm' => '|\\/|', 'M' => '|\\/|', 'k' => '|<', 'K' => '|<', 'r' => '|2', 'R' => '|2', 'b' => 'ß', 'B' => 'ß', 'q' => '¶', 'Q' => '¶', 'x' => '><', 'X' => '><', 'j' => '_|', 'J' => '_|', 'p' => '|*', 'P' => '|*' );
	$math = floatval ( $math );
	$keep = array ();

	if ( $math > 99 )
	{
		$keep = $encrypt;
	}
	else if ( $math > 80 && $math < 100 )
	{
		$keep = array_slice ( $encrypt, 0, 50 );
	}
	else if ( $math < 81 && $math > 64 )
	{
		$keep = array_slice ( $encrypt, 0, 40 );
	}
	else if ( $math < 65 && $math > 48 )
	{
		$keep = array_slice ( $encrypt, 0, 30 );
	}
	else if ( $math < 49 && $math > 32 )
	{
		$keep = array_slice ( $encrypt, 0, 20 );
	}
	else if ( $math < 33 && $math > 16 )
	{
		$keep = array_slice ( $encrypt, 0, 8 );
	}
	else if ( $math < 17 && $math > 0 )
	{
		$keep = array_slice ( $encrypt, 0, 2 );
	}
	else if ( $math == 0 )
	{
		return ( $str );
	}

	return ( strtr ( $str, $keep ) );
}

?>
printf is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:12 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC