AnonSec Team
Server IP : 10.2.73.233  /  Your IP : 216.73.216.59
Web Server : Apache/2.4.59 (Debian)
System : Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : www-data ( 33)
PHP Version : 5.6.40-64+0~20230107.71+debian10~1.gbp673146
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home/dialektologia/web/classes/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/dialektologia/web/classes/rightmenuclass.php
<?php

class rightmenuclass {

    /*
     *
     *  <p align="center">
            <img src="images/button.PNG" width="190" height="32">
            <br><img src="images/button.PNG" width="190" height="32">
            <br><img src="images/button.PNG" width="190" height="32">
            <br><img src="images/button2.PNG" width="190" height="32">
            <br><img src="images/button2.PNG" width="190" height="32">
            <br><img src="images/button.PNG" width="190" height="32">
            <br><img src="images/button.PNG" width="190" height="32">
            <br><img src="images/button.PNG" width="190" height="32">
            <br><img src="images/button.PNG" width="190" height="32">
            <br><img src="images/button.PNG" width="190" height="32">
        </p>
     *
     */

    public function ShowItemsForParent($parentid,$levelnum1based,$mapaSerwisu)
    //$mapaSerwisu - 0 - tryb menu lub 1 tryb mapy serwisu
    {
        global $conn;
        $wstawkaDlaMenu="";
        if ($mapaSerwisu==0) $wstawkaDlaMenu=" and visible=1 ";

        $sql="select * from rightmenu where parentid='".$parentid."' ".$wstawkaDlaMenu." order by sort";

        $rs=null;
        if(MYSQLLIB=='mysql') $rs=mysql_query($sql) or die(mysql_error());
        if(MYSQLLIB=='mysqli') $rs=mysqli_query($conn,$sql) or die(mysqli_error());
        
        $i=0;

        $wiersz=null;
        if(MYSQLLIB=='mysql') $wiersz=mysql_fetch_array($rs);
        if(MYSQLLIB=='mysqli') $wiersz=mysqli_fetch_array($rs);


        while ($wiersz)
        {
    

            $i++;
            //if($i<2 && $mapaSerwisu==0) echo "<br />";
            if ($levelnum1based==1) $levelwstawka="";
            else $levelwstawka=$levelnum1based;
            
            if($mapaSerwisu==0) echo "<div style=\"padding-top:2px;padding-left:27px;background-image:url('images/button".$levelwstawka.".PNG');width:170px;height:25px;line-height:100%;\"  />";
            if($mapaSerwisu==1) 
            {
                echo "<div>";
                for($i=0;$i<$levelnum1based*5;$i++) echo "&nbsp;";
            }
            echo "<a href=\"?";
            if($levelnum1based==1) echo "l".$levelnum1based."=".$wiersz['id'];
            if($levelnum1based==2) echo "l1=".$_GET['l1']."&l".$levelnum1based."=".$wiersz['id'];
            if($levelnum1based==3) echo "l1=".$_GET['l1']."&l2=".$_GET['l2']."&l".$levelnum1based."=".$wiersz['id'];
            if($levelnum1based==4) echo "l1=".$_GET['l1']."&l2=".$_GET['l2']."&l3=".$_GET['l3']."&l".$levelnum1based."=".$wiersz['id'];
            if($levelnum1based==5) echo "l1=".$_GET['l1']."&l2=".$_GET['l2']."&l3=".$_GET['l3']."&l4=".$_GET['l4']."&l".$levelnum1based."=".$wiersz['id'];
            if($levelnum1based==6) echo "l1=".$_GET['l1']."&l2=".$_GET['l2']."&l3=".$_GET['l3']."&l4=".$_GET['l4']."&l5=".$_GET['l5']."&l".$levelnum1based."=".$wiersz['id'];

            echo "\">";
            if($levelnum1based==1 && isset ($_GET['l1']) && $_GET['l1']==$wiersz['id']) echo "<strong>";
            if($levelnum1based==2 && isset ($_GET['l2']) && $_GET['l2']==$wiersz['id']) echo "<strong>";
            if($levelnum1based==3 && isset ($_GET['l3']) && $_GET['l3']==$wiersz['id']) echo "<strong>";
            if($levelnum1based==4 && isset ($_GET['l4']) && $_GET['l4']==$wiersz['id']) echo "<strong>";
            if($levelnum1based==5 && isset ($_GET['l5']) && $_GET['l5']==$wiersz['id']) echo "<strong>";
            if($levelnum1based==6 && isset ($_GET['l6']) && $_GET['l6']==$wiersz['id']) echo "<strong>";

            for($i=1;$i<=$levelnum1based-2;$i++) echo "&nbsp;&nbsp;";
            if($levelnum1based=="4") echo "&nbsp;-&nbsp;";
            echo $wiersz['name'];
            
            if($levelnum1based==1 && isset ($_GET['l1']) && $_GET['l1']==$wiersz['id']) echo "</strong>";
            if($levelnum1based==2 && isset ($_GET['l2']) && $_GET['l2']==$wiersz['id']) echo "</strong>";
            if($levelnum1based==3 && isset ($_GET['l3']) && $_GET['l3']==$wiersz['id']) echo "</strong>";
            if($levelnum1based==4 && isset ($_GET['l4']) && $_GET['l4']==$wiersz['id']) echo "</strong>";
            if($levelnum1based==5 && isset ($_GET['l5']) && $_GET['l5']==$wiersz['id']) echo "</strong>";
            if($levelnum1based==6 && isset ($_GET['l6']) && $_GET['l6']==$wiersz['id']) echo "</strong>";

            echo "</a>";
            echo "</div>";

            $getl1='';
            $getl2='';
            $getl3='';
            $getl4='';
            $getl5='';

            if(isset($_GET['l1'])) $getl1=$_GET['l1'];
            if(isset($_GET['l2'])) $getl1=$_GET['l2'];
            if(isset($_GET['l3'])) $getl1=$_GET['l3'];
            if(isset($_GET['l4'])) $getl1=$_GET['l4'];
            if(isset($_GET['l5'])) $getl1=$_GET['l5'];

            if ($mapaSerwisu==0)
            {
                if(
                    $levelnum1based<6
                    &&
                    (
                        (
                            $wiersz['id']==$getl1
                            ||
                            $wiersz['id']==$getl2
                            ||
                            $wiersz['id']==$getl3
                            ||
                            $wiersz['id']==$getl4
                            ||
                            $wiersz['id']==$getl5

                        )
                        ||
                        (
                              $levelnum1based>=3 //ustalenie dot. kołbielszczyzny
                        )
                    )

              ) $this->ShowItemsForParent($wiersz['id'], $levelnum1based+1,$mapaSerwisu);
           }
           else
           {
                //tryb mapy serwisu
               $this->ShowItemsForParent($wiersz['id'], $levelnum1based+1,$mapaSerwisu);
           }

           if(MYSQLLIB=='mysql') $wiersz=mysql_fetch_array($rs);
           if(MYSQLLIB=='mysqli') $wiersz=mysqli_fetch_array($rs);

        }

        
    }

}
?>

AnonSec - 2021