Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 137 → Редакция 138

/trunk/lib/core.php
113,6 → 113,25
$query->fetchInto($sett, DB_FETCHMODE_ASSOC);
return stripslashes($sett["optvalue"]);
}
 
function getUUID($param) {
$param_s = md5($param);
$time_low = bin2hex(substr($param_s,0, 4));
$time_mid = bin2hex(substr($param_s,4, 2));
$time_hi_and_version = bin2hex(substr($param_s,6, 2));
$clock_seq_hi_and_reserved = bin2hex(substr($param_s,8, 2));
$node = bin2hex(substr($param_s,10, 6));
 
$time_hi_and_version = hexdec($time_hi_and_version);
$time_hi_and_version = $time_hi_and_version >> 4;
$time_hi_and_version = $time_hi_and_version | 0x4000;
$clock_seq_hi_and_reserved = hexdec($clock_seq_hi_and_reserved);
$clock_seq_hi_and_reserved = $clock_seq_hi_and_reserved >> 2;
$clock_seq_hi_and_reserved = $clock_seq_hi_and_reserved | 0x8000;
return sprintf('%08s-%04s-%04x-%04x-%012s',$time_low, $time_mid, $time_hi_and_version, $clock_seq_hi_and_reserved, $node);
}
}
 
?>