<?php
function getUnlock($id) // REW
{
	$lines  = file(getcwd()."/queries/unlock-id.list");
	return trim($lines[$id]);
}

function getUnlockID($id) // SClone
{
	$lines  = file(getcwd()."/queries/unlock-id.list");
	foreach ($lines as $key => $value)
	{
		if ($value == $id)
		return $key;
	}
}

function getUnlockCount() // REW
{
	$lines  = file(getcwd()."/queries/unlock-id.list");
	return count($lines);	
}
?>