alienhelpdesk.com
projects
Project Petunia
Project petunia. Help us make a music video!
usefull sites
mocapdata.com
Free motion capture files!

php rot13

Basic rot13 function for PHP (remember that this is NOT secure encryption!).
It's built into php nowadays, but if you have an old version you may not.

  1. // Rot 13 function for older php versions
  2. function rot13($text){
  3.         $length = strlen($text);
  4.         $newtext = '';
  5.          for($i = 0; $i < $length; $i++){
  6.                  $index = ord($text[$i]);
  7.                  // Rotate upper case.
  8.                  if($index > 64 && $index < 91){
  9.                          $index += 13;
  10.                          if($index > 90) $index -= 26;
  11.                          $newtext .= chr($index);
  12.                 // Rotate lower case.
  13.                 }elseif($index > 96 && $index < 123){
  14.                         $index += 13;
  15.                         if($index > 122) $index -= 26;
  16.                         $newtext .= chr($index);
  17.                  }else{ $newtext .= $text[$i]; }
  18.          }
  19.          return $newtext;
  20. }
Display clean php code for copying
// Rot 13 function for older php versions
function rot13($text){
	$length = strlen($text);
	$newtext = '';
	 for($i = 0; $i < $length; $i++){
		 $index = ord($text[$i]);
		 // Rotate upper case.
		 if($index > 64 && $index < 91){
			 $index += 13;
			 if($index > 90) $index -= 26;
			 $newtext .= chr($index);
		// Rotate lower case.
		}elseif($index > 96 && $index < 123){
			$index += 13;
			if($index > 122) $index -= 26;
			$newtext .= chr($index);
		 }else{ $newtext .= $text[$i]; }
	 }
	 return $newtext;
}
Spanish proverb
Ojos que no ven, corazón que no siente
Eyes that do not see, heart that does not feel
Introducing character animation with Blender
Introducing character animation with Blender
The classic by Tony Mullen
Essential Blender
Essential Blender
The official guide!