!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/lib/python3.6/site-packages/tracer/views/   drwxr-xr-x
Free 303.01 GB of 429.69 GB (70.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     blocks.py (1.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
from __future__ import print_function
from __future__ import unicode_literals

from . import View
import sys


class BlocksView(View):

    """
    Assign ``blocks`` with this list

    [
        {
            "title": "...",
            "content": "some text",
        },
        ...
    ]
    """

    def render(self):
        for index, block in enumerate(self.args.blocks):
            if block["content"]:
                if "title" in block:
                    self.print(block["title"])
                self.print(block["content"], end="")

                if self.next(index):
                    self.print("")

    def next(self, index):
        """Return True if there is any nonempty block after given index"""
        for block in self.args.blocks[index+1:]:
            if block["content"]:
                return True
        return False

    def has_content_and_title(self):
                """Return True if at least one block's content & title is not empty"""
                for block in self.args.blocks[0:]:
                       if block["content"] and "title" in block.keys():
                                if block["title"]:
                                        return True
                return False

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0038 ]--