Blame | Letzte Änderung | Log anzeigen | RSS feed
<?php/*** Standard ASCII String Verschiebung** @param string $path* @param bool $crypt Bestimmt ob der String "verschlüsselt" wird** @return string Decrypted oder Crypted String* @since Dienstag 27/03/2007* @author Markus Niewerth*/function cryptStaticPath($path, $crypt=true){$offset = 5;$coded = NULL;switch($crypt) {case false:for($i=0;$i<strlen($path);$i++) {$ascii = ord($path{$i})-$offset;$coded .= chr($ascii);}break;case true:default:for($i=0;$i<strlen($path);$i++) {$ascii = ord($path{$i})+$offset;$coded .= chr($ascii);}break;}return $coded;}?>