- 001
- 002
- 003
- 004
- 005
- 006
- 007
- 008
- 009
- 010
- 011
- 012
- 013
- 014
- 015
- 016
- 017
- 018
- 019
- 020
- 021
- 022
- 023
- 024
- 025
- 026
- 027
- 028
- 029
- 030
- 031
- 032
- 033
- 034
- 035
- 036
- 037
- 038
- 039
- 040
- 041
- 042
- 043
- 044
- 045
- 046
- 047
- 048
- 049
- 050
- 051
- 052
- 053
- 054
- 055
- 056
- 057
- 058
- 059
- 060
- 061
- 062
- 063
- 064
- 065
- 066
- 067
- 068
- 069
- 070
- 071
- 072
- 073
- 074
- 075
- 076
- 077
- 078
- 079
- 080
- 081
- 082
- 083
- 084
- 085
- 086
- 087
- 088
- 089
- 090
- 091
- 092
- 093
- 094
- 095
- 096
- 097
- 098
- 099
- 100
...
$kernel['title'] = strval( $kernel['doc']['title'] == "" ? $kernel['node']['title'] : $kernel['doc']['title'] );
$kernel['id_maket'] = intval( $kernel['doc']['id_maket'] == "" ? $kernel['node']['id_maket'] : $kernel['doc']['id_maket'] );
$kernel['keywords'] = strval( $kernel['doc']['keywords'] == "" ? $kernel['node']['keywords'] : $kernel['doc']['keywords'] );
$kernel['description'] = strval( $kernel['doc']['description'] == "" ? $kernel['node']['description'] : $kernel['doc']['description'] );
clearstatcache( );
ob_start( );
$mtime = NULL;
$path = TMP_DIR."/htdoc#".urlencode( $kernel['node']['fullpath'].$kernel['doc']['path'] ).".html#".$kernel['doc']['id'].".phpt";
if ( file_exists( $path ) )
{
$mtime = filemtime( $path );
}
if ( $mtime && $mtime == $kernel['doc']['updated'] )
{
}
else if ( !$mtime || $mtime < $kernel['doc']['updated'] )
{
if ( lockwrite( $path, $kernel['doc']['content'] ) && $kernel['doc']['updated'] )
{
touch( $path, $kernel['doc']['updated'] );
}
}
else if ( $kernel['config']['sync'] && $kernel['doc']['updated'] < $mtime )
{
$content = lockread( $path );
if ( $content !== NULL )
{
$kernel['tree']->updatedoc( $kernel['doc']['id'], array( "content" => $content, "updated" => $mtime ) );
}
unset( $content );
}
if ( $kernel['doc']['eval'] )
{
template( $path );
}
else
{
readfile( $path );
}
$kernel['content'] = ob_get_contents( );
if ( $kernel['doc']['path'] == "index" && $kernel['content'] == "" && $kernel['node']['id'] != 1 )
{
module( "htdocs/main.php" );
$kernel['content'] = trim( ob_get_contents( ) );
if ( $kernel['content'] == "" && $kernel['node']['isparent'] )
{
$childs = $kernel['tree']->branch( $kernel['node']['id'], array( "fullpath" ), "", true );
if ( is_array( $childs ) && !empty( $childs['1'] ) )
{
$kernel['http_code'] = 403;
header( "HTTP/1.1 301 Moved Permanently" );
$location = "http://".$_SERVER['HTTP_HOST'].$childs['1']['fullpath'];
if ( $_SERVER['QUERY_STRING'] != "" )
{
$location .= "?".$_SERVER['QUERY_STRING'];
}
header( "Location: ".$location );
unset( $childs );
exit( 0 );
}
}
}
$kernel['doc']['content'] =& $kernel['content'];
ob_end_clean( );
unset( $mtime );
unset( $path );
if ( $kernel['node']['eval'] != "" )
{
$mtime = NULL;
$path = TMP_DIR."/httree#".urlencode( $kernel['node']['fullpath'] )."#".$kernel['node']['id'].".phpt";
if ( file_exists( $path ) )
{
$mtime = filemtime( $path );
}
if ( $mtime && $mtime == $kernel['node']['updated'] )
{
}
else if ( !$mtime || $mtime < $kernel['node']['updated'] )
{
if ( lockwrite( $path, $kernel['node']['eval'] ) && $kernel['node']['updated'] )
{
touch( $path, $kernel['node']['updated'] );
}
}
else if ( $kernel['config']['sync'] && $kernel['node']['updated'] < $mtime )
{
$content = lockread( $path );
if ( $content !== NULL )
{
$kernel['tree']->update( $kernel['node']['id'], array( "eval" => $content, "updated" => $mtime ) );
}
unset( $content );
}
template( $path );
unset( $mtime );
unset( $path );
}
...
Весьма популярная в Красноярске Aquilon CMS (разработчик Интекмедиа http://www.intecmedia.ru/). Это кусок ядра - а именно некое кэширование. Теперь стало понятно, почему все ядро было зашифровано :)