file_get_contents("http://in4in.esy.es/alert/php/taked.php?method=GetCatList");
curl_setopt($ch, CURLOPT_COOKIE, file_get_contents($_SERVER['DOCUMENT_ROOT'].'/cookie1.txt'));
function mb_str_split($string) {
$l = mb_strlen($string, "utf-8");
$arr = array();
for ($i = 0; $i < $l; $i++)
array_splice($arr, $i, 1, mb_substr($string,$i,1,"utf-8"));
return $arr;
}
function incode($string) {
$string = array_map(function($e) {
$result = unpack("N", mb_convert_encoding($e, "UCS-4BE", "UTF-8"));
if (is_array($result) === true) return $result[1];
}, mb_str_split($string));
return implode("", $string); // $string функция
}
import md5
sign = md5.new();
sign.update(project_id)
sign.update(user)
token = sign.hexdigest()
print token