[phpMP-CVS] CVS: phpMP/core sessions.php,1.9,1.10
Status: Pre-Alpha
Brought to you by:
heimidal
From: Brian R. <hei...@us...> - 2003-09-22 10:55:50
|
Update of /cvsroot/phpmp/phpMP/core In directory sc8-pr-cvs1:/tmp/cvs-serv27154/core Modified Files: sessions.php Log Message: Settling on the IP system for now. Index: sessions.php =================================================================== RCS file: /cvsroot/phpmp/phpMP/core/sessions.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** sessions.php 22 Sep 2003 10:39:03 -0000 1.9 --- sessions.php 22 Sep 2003 10:55:46 -0000 1.10 *************** *** 263,278 **** } - /** - * @return string - * @param encoded_ip string - * @desc Decodes a hexed IP. - * Taken from phpBB2. - */ - function _sess_decode_ip($encoded_ip) - { - $hexipbang = explode('.', chunk_split($encoded_ip, 2, '.')); - return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]); - } - function sess_clean($all = false) { --- 263,266 ---- |