Приветствую!Есть сайт utrust.ru . Проблема в том, что скрипт доставали из дезендера, возможно он вытащился с ошибками. Теперь не можем разобраться где именно ошибка и в чем она заключается. Весь контент на месте, проблемы с путями.
Проблема может быть тут:
1. artysru - 26 Мая, 2011 - 18:50:12 - перейти к сообщению
В дезенде было так:
этот кусок 2 раза повторяется.
Основной код вот :
CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?php
- function connect_base( )
- {
- global $sysmessage;
- if ( @mysql_connect( @HostName, @UserName, @Password ) )
- {
- $sysmessage .= "<span class=error>, !</span><br>";
- $sysmessage .= mysql_error( );
- }
- @mysql_select_db( @DBName );
- @mysql_query( @mysql_setnames );
- @mysql_query( @mysql_character );
- }
- function getpathlink( $id )
- {
- global $getpathlink;
- $getpathlink = "";
- while ( 1 <= $id )
- {
- $array = mysql_query( "SELECT pages_id, pages_id_parent, pages_link FROM pages WHERE pages_id = '".$id."'" );
- if ( !mysql_num_rows( $array ) )
- {
- break;
- }
- else
- {
- $f = mysql_fetch_row( $array );
- $pages_id = $f[0];
- $id = $f[1];
- }
- if ( $id == 0 )
- {
- break;
- $pages_link = $f[2];
- }
- else if ( $pages_link )
- {
- $pages_link = $pages_id;
- }
- $getpathlink = $pages_link."/".$getpathlink;
- }
- }
- function historylog( $historylog )
- {
- mysql_query( "INSERT INTO historylog VALUES ('', NOW(), '".$_SESSION['userlogin']."', '{$_SERVER['REMOTE_ADDR']}' ,'{$historylog}')" );
- }
- function convertstring( $string )
- {
- $string = trim( $string );
- $array = array( "", "A", "", "B", "", "V", "", "G", "", "D", "", "E", "", "E", "", "Zh", "", "Z", "", "I", "", "", "", "K", "", "L", "", "M", "", "N", "", "O", "", "P", "", "R", "", "S", "", "T", "", "U", "", "F", "", "H", "", "C", "", "Ch", "", "Sh", "", "Sh", "", "", "", "Y", "", "", "", "E", "", "Yu", "", "Ya", "", "a", "", "b", "", "v", "", "g", "", "d", "", "e", "", "e", "", "zh", "", "z", "", "i", "", "i", "", "k", "", "l", "", "m", "", "n", "", "o", "", "p", "", "r", "", "s", "", "t", "", "u", "", "f", "", "h", "", "c", "", "ch", "", "sh", "", "sh", "", "", "", "y", "", "", "", "e", "", "yu", "", "ya", " ", "_" );
- $i = 0;
- for ( ; $i <= count( $array ) - 1; $i += 2 )
- {
- $pat = $array[$i];
- $rep = $array[$i + 1];
- $string = ereg_replace( $pat."", $rep, $string );
- }
- $string = preg_replace( "/[^A-Za-z0-9_.]*/", "", $string );
- return $string;
- }
- function checkemail( $adr )
- {
- if ( ereg( "^[a-zA-Z0-9_.\\-]+@[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9\\-\\.]+\$", $adr ) )
- {
- return true;
- }
- return false;
- }
- function getdaten( $time, $tip )
- {
- if ( ereg( "-", $time ) )
- {
- }
- else
- {
- $daten = getdate( $time );
- $yy = $daten['year'];
- $mm = $daten['mon'];
- if ( $mm < 10 )
- {
- $mm = "0".$mm;
- }
- $dd = $daten['mday'];
- if ( $dd < 10 )
- {
- $dd = "0".$dd;
- }
- $hh = $daten['hours'];
- $min = $daten['minutes'];
- if ( $min < 10 )
- {
- $min = "0".$min;
- }
- $sec = $daten['seconds'];
- if ( $sec < 10 )
- {
- $sec = "0".$sec;
- }
- }
- if ( $tip == "time" )
- {
- return $yy."-".$mm."-".$dd." ".$hh.":".$min.":".$sec;
- }
- if ( $tip == 1 )
- {
- if ( $mm == "01" )
- {
- $mm1 = "";
- }
- else if ( $mm == "02" )
- {
- $mm1 = "";
- }
- else if ( $mm == "03" )
- {
- $mm1 = "";
- }
- else if ( $mm == "04" )
- {
- $mm1 = "";
- }
- else if ( $mm == "05" )
- {
- $mm1 = "";
- }
- else if ( $mm == "06" )
- {
- $mm1 = "";
- }
- else if ( $mm == "07" )
- {
- $mm1 = "";
- }
- else if ( $mm == "08" )
- {
- $mm1 = "";
- }
- else if ( $mm == "09" )
- {
- $mm1 = "";
- }
- else if ( $mm == "10" )
- {
- $mm1 = "";
- }
- else if ( $mm == "11" )
- {
- $mm1 = "";
- }
- else
- {
- $mm1 = "";
- }
- return "".$dd." ".$mm1." ".$yy."";
- }
- return "".$dd.".".$mm.".".$yy."";
- }
- function path( $id, $oldpath )
- {
- global $path;
- global $parentpath;
- global $pid;
- global $httpdir;
- global $getpathlink;
- global $httpdirStaticHtml;
- global $urlsuffix;
- if ( $pid != 1 )
- {
- if ( 0 < $id )
- {
- $array = mysql_query( "SELECT * FROM pages WHERE pages_id = '".$id."' " );
- $f = @mysql_fetch_array( $array );
- $pages_id_parent = $f[pages_id_parent];
- if ( $f[pages_onlyphp] )
- {
- $newpath = "";
- if ( $f[pages_id] != 1 )
- {
- $newpath .= " ";
- }
- $newpath .= "<a href='/";
- }
- else if ( $f[pages_id] == 1 )
- {
- $newpath = "<a href='/";
- }
- else
- {
- $newpath = " <a href='".$httpdirStaticHtml."/";
- }
- getpathlink( $pages_id_parent );
- $newpath .= $getpathlink;
- if ( $f[pages_link] )
- {
- $newpath .= $f[pages_link];
- }
- else if ( $f[pages_id] == 1 )
- {
- $newpath .= "";
- }
- else
- {
- $newpath .= "".$f[pages_id];
- }
- if ( $f[pages_id] != 1 )
- {
- if ( $f[pages_onlyphp] )
- {
- $newpath .= ".html";
- }
- else if ( $urlsuffix )
- {
- $newpath .= $urlsuffix;
- }
- else
- {
- $newpath .= "/";
- }
- }
- $newpath .= "' class=apath>".stripslashes( $f[pages_name] )."</a>".$oldpath;
- $parentpath[] = $f[pages_id_parent];
- path( $f[pages_id_parent], $newpath );
- }
- else
- {
- $pagid = $id;
- $path .= "\n\t".$path.$oldpath;
- }
- }
- }
- function menu( $id, $type )
- {
- global $menuout;
- global $parentpath;
- global $pid;
- global $httpdir;
- global $marginleft;
- global $imagesub;
- global $imagesubsel;
- global $getpathlink;
- global $httpdirStaticHtml;
- global $pages_id;
- global $urlsuffix;
- if ( $id == 1 )
- {
- $array = mysql_query( "SELECT * FROM pages WHERE pages_id_parent = '".$id."' AND pages_visible = 'on' AND pages_menuon = '".$type."' ORDER BY pages_priority" );
- }
- else
- {
- $array = mysql_query( "SELECT * FROM pages WHERE pages_id_parent = '".$id."' AND pages_visible = 'on' ORDER BY pages_priority" );
- }
- if ( mysql_num_rows( $array ) )
- {
- if ( $id != 1 )
- {
- $menuout .= "\n\t<div class='lmenu'>";
- }
- $i = 1;
- for ( ; $i <= mysql_num_rows( $array ); ++$i )
- {
- $f = mysql_fetch_array( $array );
- $pages_id_parent = $f[pages_id_parent];
- if ( $id == 1 )
- {
- $classlmenu = "lmenu1";
- }
- else if ( $pages_id == $f[pages_id] || $pid == $f[pages_id] )
- {
- $classlmenu = "almenusel";
- }
- else
- {
- $classlmenu = "almenu";
- }
- if ( $pid != $f[pages_id] )
- {
- $menuout .= "\n\t<div class='".$classlmenu."'>";
- if ( $id == 1 )
- {
- $menuout .= "<p>";
- }
- $menuout .= "<a href='";
- if ( $f[pages_onlyphp] )
- {
- $menuout .= $httpdirStaticHtml."/";
- }
- else
- {
- $menuout .= $httpdir."/";
- }
- if ( $f[pages_type] == "href" )
- {
- if ( $f[pages_link] )
- {
- $menuout .= $f[pages_link];
- }
- else
- {
- $menuout .= $f[pages_text];
- }
- }
- else
- {
- getpathlink( $pages_id_parent );
- $menuout .= $getpathlink;
- if ( $f[pages_link] )
- {
- $menuout .= $f[pages_link];
- }
- else if ( $f[pages_id] == 1 )
- {
- $menuout .= "";
- }
- else
- {
- $menuout .= $f[pages_id];
- }
- if ( $f[pages_id] != 1 )
- {
- if ( $f[pages_onlyphp] )
- {
- $menuout .= ".html";
- }
- else if ( $urlsuffix )
- {
- $menuout .= $urlsuffix;
- }
- else
- {
- $menuout .= "/";
- }
- }
- }
- $menuout .= "'>";
- $menuout .= stripslashes( $f[pages_name] )."</a>";
- }
- else
- {
- $menuout .= "\n\t<div class='".$classlmenu."'>";
- if ( $id == 1 )
- {
- $menuout .= "<p>";
- }
- $menuout .= $f[pages_name];
- }
- if ( $id == 1 )
- {
- $menuout .= "</p></div>";
- }
- $flagnosubmenu = 0;
- $ii = 0;
- for ( ; $ii < count( $parentpath ); ++$ii )
- {
- if ( $f[pages_id] == $parentpath[$ii] )
- {
- menu( $f[pages_id] );
- $flagnosubmenu = 1;
- }
- }
- if ( $f[pages_type] == "opensubmenu" && $flagnosubmenu == 0 )
- {
- global $submenuout;
- $submenuout = "";
- submenu( $f[pages_id], "" );
- $menuout .= $submenuout;
- $submenuout = "";
- }
- if ( $id != 1 )
- {
- $menuout .= "</div>";
- }
- if ( $id == 1 )
- {
- $menuout .= "<br/>";
- }
- }
- if ( $id != 1 )
- {
- $menuout .= "</div>";
- }
- }
- }
- function submenu( $id, $type )
- {
- global $submenuout;
- global $parentpath;
- global $pid;
- global $httpdir;
- global $marginleft;
- global $imagesub;
- global $imagesubsel;
- global $getpathlink;
- global $httpdirStaticHtml;
- global $pages_id;
- global $urlsuffix;
- if ( $id == 1 )
- {
- $array = mysql_query( "SELECT * FROM pages WHERE pages_id_parent = '".$id."' AND pages_visible = 'on' AND pages_menuon = '".$type."' ORDER BY pages_priority" );
- }
- else
- {
- $array = mysql_query( "SELECT * FROM pages WHERE pages_id_parent = '".$id."' AND pages_visible = 'on' ORDER BY pages_priority" );
- }
- if ( mysql_num_rows( $array ) )
- {
- $submenuout .= "\n\t\t<div class=lmenu>";
- $i = 1;
- for ( ; $i <= mysql_num_rows( $array ); ++$i )
- {
- $f = mysql_fetch_array( $array );
- $pages_id_parent = $f[pages_id_parent];
- if ( $pages_id == $f[pages_id] || $pid == $f[pages_id] )
- {
- $classlmenu = "almenusel";
- }
- else
- {
- $classlmenu = "almenu";
- }
- if ( $pid != $f[pages_id] )
- {
- $submenuout .= "\n\t\t\t<div class='".$classlmenu."'><a href='";
- if ( $f[pages_onlyphp] )
- {
- $submenuout .= $httpdirStaticHtml."/";
- }
- else
- {
- $submenuout .= $httpdir."/";
- }
- if ( $f[pages_type] == "href" )
- {
- if ( $f[pages_link] )
- {
- $submenuout .= $f[pages_link];
- }
- else
- {
- $submenuout .= $f[pages_text];
- }
- }
- else
- {
- getpathlink( $pages_id_parent );
- $submenuout .= $getpathlink;
- if ( $f[pages_link] )
- {
- $submenuout .= $f[pages_link];
- }
- else if ( $f[pages_id] == 1 )
- {
- $submenuout .= "";
- }
- else
- {
- $submenuout .= $f[pages_id];
- }
- if ( $f[pages_id] != 1 )
- {
- if ( $f[pages_onlyphp] )
- {
- $submenuout .= ".html";
- }
- else if ( $urlsuffix )
- {
- $submenuout .= $urlsuffix;
- }
- else
- {
- $submenuout .= "/";
- }
- }
- }
- $submenuout .= "'>";
- $submenuout .= stripslashes( $f[pages_name] )."</a>";
- }
- else
- {
- $submenuout .= "\n\t\t\t<div class='".$classlmenu."'>";
- $submenuout .= $f[pages_name];
- }
- $submenuout .= "</div>";
- $ii = 0;
- for ( ; $ii < count( $parentpath ); ++$ii )
- {
- if ( !( $f[pages_id] == $parentpath[$ii] ) || $f[pages_type] == "catalog" )
- {
- menu( $f[pages_id] );
- }
- }
- }
- $submenuout .= "\n\t\t</div>";
- }
- }
- function mainmenu( )
- {
- global $pages_id;
- global $pid;
- global $mainMenuOut;
- global $parentpath;
- global $urlsuffix;
- if ( $pid )
- {
- $pid = $pages_id;
- }
- $mainMenuOut = "\n\t<table cellpadding=0 cellspacing=0 class=topmenu ><tr>";
- if ( $pid == 1 )
- {
- $mainMenuOut .= "\t<td>\r\n\t<div class=\"but_lcs\"><div class=\"but_fons\" style=\"padding:10px 15px 0px 10px;\"></div></div>\r\n\t</td>";
- }
- else
- {
- $mainMenuOut .= "\t\t\t\r\n\t<td>\r\n\t<div class=\"but_lc\"><div class=\"but_fon\" style=\"padding:10px 15px 0px 10px;\"><a href=\"/\"></a></div></div>\r\n\t</td>";
- }
- $mainMenuOut .= "\n\t<td class=\"but_sep\"><div class=\"but_sep\"></div></td>";
- $array = mysql_query( "SELECT * FROM pages WHERE pages_id_parent = '1' AND pages_visible = 'on' AND pages_menuon = 'on' ORDER BY pages_priority" );
- if ( mysql_num_rows( $array ) )
- {
- $i = 1;
- for ( ; $i <= mysql_num_rows( $array ); ++$i )
- {
- $f = mysql_fetch_array( $array );
- $pages_id_parent = $f[pages_id_parent];
- $pages_name = stripslashes( $f[pages_name] );
- $pages_link = "/";
- if ( $f[pages_type] == "href" )
- {
- if ( $f[pages_link] )
- {
- $pages_link .= $f[pages_link];
- }
- else
- {
- $pages_link .= $f[pages_text];
- }
- }
- else
- {
- if ( $f[pages_link] )
- {
- $pages_link .= $f[pages_link];
- }
- else if ( $f[pages_id] == 1 )
- {
- $pages_link .= "";
- }
- else
- {
- $pages_link .= $f[pages_id];
- }
- if ( $f[pages_id] != 1 )
- {
- if ( $f[pages_onlyphp] )
- {
- $pages_link .= ".html";
- }
- else if ( $urlsuffix )
- {
- $pages_link .= $urlsuffix;
- }
- else
- {
- $pages_link .= "/";
- }
- }
- }
- $flagOpenMenu = 0;
- $pp = 0;
- for ( ; $pp < count( $parentpath ) - 2; ++$pp )
- {
- if ( $parentpath[$pp] == $f[pages_id] )
- {
- $flagOpenMenu = 1;
- }
- }
- if ( $flagOpenMenu )
- {
- $mainMenuOut .= "\n\t<td>";
- if ( $i == mysql_num_rows( $array ) )
- {
- $mainMenuOut .= "<div class=\"but_rcs\">";
- }
- $mainMenuOut .= "<div class=\"but_fons\"";
- if ( $i == mysql_num_rows( $array ) )
- {
- $mainMenuOut .= " style=\"padding:10px 10px 0px 15px;\" ";
- }
- $mainMenuOut .= "><a href=\"".$pages_link."\"><nobr>".$pages_name."</nobr></a></div>";
- if ( $i == mysql_num_rows( $array ) )
- {
- $mainMenuOut .= "</div>";
- }
- $mainMenuOut .= "\n\t</td>";
- }
- else
- {
- $mainMenuOut .= "\n\t<td>";
- if ( $i == mysql_num_rows( $array ) )
- {
- $mainMenuOut .= "<div class=\"but_rc\">";
- }
- $mainMenuOut .= "<div class=\"but_fon\"";
- if ( $i == mysql_num_rows( $array ) )
- {
- $mainMenuOut .= " style=\"padding:10px 10px 0px 15px;\" ";
- }
- $mainMenuOut .= "><a href=\"".$pages_link."\"><nobr>".$pages_name."</nobr></a></div>";
- if ( $i == mysql_num_rows( $array ) )
- {
- $mainMenuOut .= "</div>";
- }
- $mainMenuOut .= "\n\t</td>";
- }
- if ( $i < mysql_num_rows( $array ) )
- {
- $mainMenuOut .= "\n\t<td class=\"but_sep\"><div class=\"but_sep\"></div></td>";
- }
- }
- }
- $mainMenuOut .= "\n\t</tr></table>";
- return $mainMenuOut;
- }
- function echodesign( $design_id )
- {
- global $GLOBAL;
- $i = 0;
- for ( ; $i < count( $GLOBAL ); ++$i )
- {
- $globalstring .= "\$".$GLOBAL[$i];
- if ( $i < count( $GLOBAL ) - 1 )
- {
- $globalstring .= ",";
- }
- }
- eval( "global ".$globalstring.";" );
- global $arrayPatten;
- $array = mysql_query( "SELECT * FROM design WHERE design_id = '".$design_id."' " );
- $f = @mysql_fetch_array( $array );
- $design_text = stripslashes( $f[design_text] );
- reset( $arrayPatten );
- $patValue = each( $arrayPatten[1] );
- $patName = each( $arrayPatten[0] );
- while ( each( $arrayPatten ) )
- {
- global $$patName;
- $design_text = ereg_replace( "%".$patName."%", $patValue, $design_text );
- }
- $array_design_text = explode( "\n", $design_text );
- $ihtmlout = 0;
- for ( ; $ihtmlout <= count( $array_design_text ); ++$ihtmlout )
- {
- if ( preg_match( "|(<\\?php)(.*)(\\?>)|", $array_design_text[$ihtmlout], $arrayscript ) )
- {
- eval( $arrayscript[2] );
- }
- else if ( preg_match( "|(<!--INCLUDE \")(.*)(\"-->)|", $array_design_text[$ihtmlout], $arrayscript ) )
- {
- include( $homedir."/".$arrayscript[2] );
- }
- else if ( preg_match( "|(<!--modID=)(.*)(-->)|", $array_design_text[$ihtmlout], $arrayscript ) )
- {
- echodesign( $arrayscript[2] );
- }
- else
- {
- echo $array_design_text[$ihtmlout]."\n";
- }
- }
- }
- function returndesign( $design_id )
- {
- global $GLOBAL;
- $i = 0;
- for ( ; $i < count( $GLOBAL ); ++$i )
- {
- $globalstring .= "\$".$GLOBAL[$i];
- if ( $i < count( $GLOBAL ) - 1 )
- {
- $globalstring .= ",";
- }
- }
- eval( "global ".$globalstring.";" );
- global $arrayPatten;
- $array = mysql_query( "SELECT * FROM design WHERE design_id = '".$design_id."' " );
- $f = @mysql_fetch_array( $array );
- $design_text = stripslashes( $f[design_text] );
- reset( $arrayPatten );
- $patValue = each( $arrayPatten[1] );
- # [1];
- $patName = each( $arrayPatten[0] );
- # [0];
- while ( each( $arrayPatten ) )
- {
- global $$patName;
- $design_text = ereg_replace( "%".$patName."%", $patValue, $design_text );
- }
- $array_design_text = explode( "\n", $design_text );
- $ihtmlout = 0;
- for ( ; $ihtmlout <= count( $array_design_text ); ++$ihtmlout )
- {
- if ( preg_match( "|(<\\?php)(.*)(\\?>)|", $array_design_text[$ihtmlout], $arrayscript ) )
- {
- $arrayscript[2] = ereg_replace( "echo", "return", $arrayscript[2] );
- $resultReturnDesign .= eval( $arrayscript[2] );
- }
- else if ( preg_match( "|(<!--INCLUDE \")(.*)(\"-->)|", $array_design_text[$ihtmlout], $arrayscript ) )
- {
- if ( $pages_onlyphp )
- {
- $resultReturnDesign .= "<!--#include virtual='".$_SERVER[DOCUMENT_ROOT]."/".$arrayscript[2]."'-->";
- }
- else
- {
- $fp2 = fopen( $homedir."/".$arrayscript[2], "r" );
- $include2 = fread( $fp2, filesize( $homedir."/".$arrayscript[2] ) );
- fclose( $fp2 );
- $resultReturnDesign .= $include2;
- }
- }
- else if ( preg_match( "|(<!--modID=)(.*)(-->)|", $array_design_text[$ihtmlout], $arrayscript ) )
- {
- $resultReturnDesign .= returndesign( $arrayscript[2] );
- }
- else
- {
- $resultReturnDesign .= $array_design_text[$ihtmlout]."\n";
- }
- }
- return $resultReturnDesign;
- }
- function validsubstr( $text, $maxchars )
- {
- $artext = substr( strip_tags( $text ), 0, $maxchars );
- $artext = explode( " ", $artext );
- $aaa = count( $artext ) - 1;
- unset( $artext[$aaa] );
- $text = implode( " ", $artext );
- return $text;
- }
- $httpdir = "http://".$_SERVER['HTTP_HOST'];
- $homedir = $_SERVER['DOCUMENT_ROOT'];
- ini_set( "error_reporting", "E_ALL & ~E_NOTICE" );
- define( "DBName", "..." );
- define( "HostName", "..." );
- define( "UserName", "..." );
- define( "Password", "..." );
- define( "mysql_setnames", "SET NAMES 'CP1251'" );
- define( "mysql_character", "SET CHARACTER SET 'CP1251' COLLATE 'cp1251_general_ci'" );
- if ( eregi( "WIN", php_os ) )
- {
- $_SERVER[SCRIPT_FILENAME] = str_replace( "\\", "/", $_SERVER[SCRIPT_FILENAME] );
- }
- $SCRIPT_FILENAME = eregi_replace( ".*/systems/", "/systems/", $_SERVER[SCRIPT_FILENAME] );
- $sitename = " ";
- $siteemail = "info@utrust.ru";
- $sitenameurl = "utrust.ru";
- $urlsuffix = ".html";
- $systemsdir = $homedir."/systems";
- $httpsystemdir = $httpdir."/systems";
- $httpimagesdir = $httpdir."/images";
- $imagesdir = $homedir."/images";
- $filepath = $homedir."/";
- $filehttp = $httpdir."";
- $includesdir = $homedir."/includes";
- $pathupload = $homedir."/download";
- $menu_number = 1;
- $httpfotonewspath = $httpdir."/news";
- $maxcharsonpage = 50000;
- $patternNextPage = "<p class=\"nextpage\"> </p>";
- $patternNextPageTyny = "<p class=\"nextpage\"> [\\n\\r\\W]</p>";
- $StaticHtml = "/html";
- $httpdirStaticHtml = $StaticHtml;
- $homedirStaticHtml = $homedir.$StaticHtml;
- $yeksea = "test";
- connect_base( );
- $arraypr = @mysql_query( "SELECT * FROM preferences WHERE 1" );
- $ipr = 1;
- for ( ; $ipr <= @mysql_num_rows( $arraypr ); ++$ipr )
- {
- $fpr = mysql_fetch_row( $arraypr );
- $key = $fpr[1];
- $val = $fpr[2];
- $$key = $val;
- }
- $arrayPatten = array( );
- $GLOBAL[] = "pages_id";
- $GLOBAL[] = "pages_onlyphp";
- $GLOBAL[] = "homedir";
- $GLOBAL[] = "httpimagesdir";
- $GLOBAL[] = "path";
- $GLOBAL[] = "menuout";
- $GLOBAL[] = "submenuout";
- $GLOBAL[] = "sitename";
- $arrayPatten[sitename] = $sitename;
- $arrayPatten[site_name] = $site_name;
- $GLOBAL[] = "cid";
- $GLOBAL[] = "catalog_pages_link";
- $GLOBAL[] = "catalog_id";
- $GLOBAL[] = "brand_name";
- $GLOBAL[] = "arrayCurrentBrand";
- $GLOBAL[] = "brandslist";
- $GLOBAL[] = "arrayContentCatalog";
- $GLOBAL[] = "contentCatalogOut";
- $GLOBAL[] = "listGoodsOut";
- $GLOBAL[] = "pathcat";
- $GLOBAL[] = "hrefpages";
- $GLOBAL[] = "listGoodsOut";
- $GLOBAL[] = "mainMenuOut";
- ?>