![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#41 |
|
Programming Guru
![]() |
Yes, we should do that... vBulletin costs money, but i might setup a PHPBB forum later to test it on...
__________________
|
|
|
|
|
|
#42 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#43 |
|
Programming Guru
![]() |
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
__________________
|
|
|
|
|
|
#44 | |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
Quote:
$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. |
|
|
|
|
|
|
#45 |
|
Programming Guru
![]() |
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...
__________________
|
|
|
|
|
|
#46 |
|
Hobbyist Programmer
|
Hmm.... [l33t]|=|_|<|<, |37$ 5+4|\||)4[/l33t]rdize leetspeak, we'll form some group, and standardize it, who's with me?
|
|
|
|
|
|
#47 |
|
Programming Guru
![]() |
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.
__________________
|
|
|
|
|
|
#48 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
what do you think about ANSI 1337
![]() |
|
|
|
|
|
#49 | |
|
Expert Programmer
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4
![]() |
Quote:
![]() |
|
|
|
|
|
|
#50 |
|
Newbie
Join Date: Oct 2005
Posts: 4
Rep Power: 0
![]() |
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> </div>
<div> </div>
<div><small>l33t strength</small></div>
<div> </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> </div>
<div><small>String to translate...</small></div>
<div> </div>
<div><textarea name='old' rows='6' cols='40'><?=htmlspecialchars ( $old );?></textarea></div>
<div> </div>
<?
if ( $new != '' )
{
?>
<div> </div>
<div><small>L33t encoded string...</small></div>
<div> </div>
<div><textarea name='new' rows='6' cols='40'><?=htmlspecialchars ( $new );?></textarea></div>
<div> </div>
<?
}
?>
<div> </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 ) );
}
?> |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|