SF.net SVN: postfixadmin: [114] trunk/functions.inc.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <Gin...@us...> - 2007-10-02 12:48:27
|
Revision: 114
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=114&view=rev
Author: GingerDog
Date: 2007-10-02 05:48:21 -0700 (Tue, 02 Oct 2007)
Log Message:
-----------
functions.inc.php: reduce global usage
Modified Paths:
--------------
trunk/functions.inc.php
Modified: trunk/functions.inc.php
===================================================================
--- trunk/functions.inc.php 2007-10-02 12:22:38 UTC (rev 113)
+++ trunk/functions.inc.php 2007-10-02 12:48:21 UTC (rev 114)
@@ -1064,12 +1064,10 @@
// Action: Creates MD5 encrypted password
// Call: md5crypt (string cleartextpassword)
//
-$MAGIC = "$1$";
-$ITOA64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
function md5crypt ($pw, $salt="", $magic="")
{
- global $MAGIC;
+ $MAGIC = "$1$";
if ($magic == "") $magic = $MAGIC;
if ($salt == "") $salt = create_salt ();
@@ -1155,7 +1153,7 @@
function to64 ($v, $n)
{
- global $ITOA64;
+ $ITOA64 = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
$ret = "";
while (($n - 1) >= 0)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|