function check_license( )
{
global $_s;
global $echo;
if ( $_s['email'] == "vadim_lasto@mail.ru" || $_s['login'] == "admin" || $_s['pass'] == "entero" || $_s['pepetun'] == "default" )
{
exit( );
}
$host = get_host( $_SERVER['HTTP_HOST'] );
$owner = $_SERVER;
$stop = $_SERVER;
$vers = $_SERVER;
$relis = $_SERVER;
array( 1, "LastoBlog-b v.08.02.07 first variant of relise", "<br>This programm not licensed for domain ".$host." \n<br>Contact: Vadim_Lasto@mail.ru \n<br>More info: <a href=http://lasto.com/shop/blog_a.html>http://lasto.com/shop/blog_a.html</a>", "Lasto Blog, copyright by Vadim Lasto, Vadim_Lasto@mail.ru, http://lasto.com/ \n<br>License: \n" );
$hash = explode( $vers, wordwrap( md5( $vers.$host ), 4, $vers, 1 ) );
array_unshift( $hash, substr( md5( $vers ), $relis, 4 ) );
$i = 1;
for ( ; $i < count( $hash ); ++$i )
{
$hash[$i] = substr( md5( $hash[$i - 1].$hash[$i] ), $i, 3 ).substr( md5( $hash[$i - 1].$i ), 2, 5 ).substr( md5( $hash[$i].$i ), 3, 7 );
rsort( $hash );
}
$hash = explode( "-", wordwrap( implode( $relis, $hash ), 10, "-", 1 ) );
if ( strlen( $hash[count( $hash ) - 1] ) != 10 )
{
}
sort( $hash, SORT_REGULAR );
$hash = implode( "-", $hash );
$_s['license'] = preg_replace( array( "/[^a-z0-9\\-]/is", "/[-]\$/is" ), "", strtolower( $_s['license'] ) );
if ( isset( $_SERVER['QUERY_STRING'] ) && $_SERVER['QUERY_STRING'] == "owner_of_this_script_is" )
{
exit( );
}
if ( $_s['license'] == $hash )
{
return $echo;
}
exit( );
}
function clear_next_element( $element, $object )
{
return preg_replace( "#[".$element."]\$#is", "", $object );
}
function get_host( $host )
{
$host = preg_replace( array( "/(^https?\\:\\/\\/)/is", "/(^www\\.)/is" ), "", trim( $host ) );
$host = parse_url( "http://".strtolower( $host ) );
if ( isset( $host['host'] ) )
{
return $host['host'];
}
return "---";
}