summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r--lib/general.lib.php25
1 files changed, 1 insertions, 24 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index e43736e5..5c80606b 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) 2001 - 2008 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -21,29 +21,6 @@
/**
- * ip2int
- * turns a dotted quad ip into an int
- */
-function ip2int($ip) {
-
- $a=explode(".",$ip);
- return $a[0]*256*256*256+$a[1]*256*256+$a[2]*256+$a[3];
-
-} // ip2int
-
-/*!
- @function int2ip
- @discussion turns a int into a dotted quad
-*/
-function int2ip($i) {
- $d[0]=(int)($i/256/256/256);
- $d[1]=(int)(($i-$d[0]*256*256*256)/256/256);
- $d[2]=(int)(($i-$d[0]*256*256*256-$d[1]*256*256)/256);
- $d[3]=$i-$d[0]*256*256*256-$d[1]*256*256-$d[2]*256;
- return "$d[0].$d[1].$d[2].$d[3]";
-} // int2ip
-
-/**
* session_exists
* checks to make sure they've specified a valid session, can handle xmlrpc
*/