<?php
if (!defined('SECURED'))
{
die("Unknown Error!");
}
function generate_sid()
{
$chars_array=array('A','a','B','b','C','c','D','d','E','e','F','f','G','g','H','h','I','i','J','j','K','k','L','l','M','m','N','n','O','P','p','Q','q','R','r','S','s','T','t','U','u','V','v','X','x','Y','y','Z','z','0','1','2','3','4','5','6','7','8','9');
shuffle($chars_array);
srand((double)microtime() *1000000);
$key=array_rand($chars_array,10);
return $chars_array[$key[0]].$chars_array[$key[1]].$chars_array[$key[2]].$chars_array[$key[3]].$chars_array[$key[4]].$chars_array[$key[5]].$chars_array[$key[6]].$chars_array[$key[7]].$chars_array[$key[8]].$chars_array[$key[9]];
}
?>