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

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/opt/alt/python37/lib/python3.7/site-packages/clselect/clselectnodejs/   drwxr-xr-x
Free 233 GB of 981.82 GB (23.73%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     __init__.py (1.98 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# coding: utf-8

from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import os
import re
import glob
import errno

from clselect.baseclselect import BaseSelectorError

# Used both for config and some state like available_versions cache
# mainly because it's easier to put it in cagefs as a one dir
# We have symlink to that dir in /etc
# for ease of use the selector config and avoiding problem with cagefs
CONFIG_DIR = '/usr/share/l.v.e-manager/cl.nodejs'

ALT_NAMES = 'alt-nodejs'
# It's also used to construct base_dir:
ALT_NODE_PREFIX = '/opt/alt/{}'.format(ALT_NAMES)

# This file is specifically created during package build and contains
# full version in the tail of a name
NODE_VERSION_GLOB = '/root/usr/share/node/node-version-'


class NodeJSError(BaseSelectorError):
    """Top level error class for admin's part of NodeJS selector"""
    pass


class NodeJSConfigError(NodeJSError):
    """Generic error class for NodeConfig"""
    pass


def is_major_version(ver):
    """Return True if specified MAJOR version is valid for processing"""
    if not isinstance(ver, str):
        return False
    if not re.match(r'^[1-9][0-9]*$', ver):
        return False
    return True


def create_config_dirs():
    try:
        os.makedirs(CONFIG_DIR)
    except OSError as e:
        if e.errno != errno.EEXIST:   # ignore only "File exists" error
            raise


def scan_node_versions():
    """ Search CL NodeJS interpreters and return dict with info about them """
    res = {}
    for folder in glob.glob('{}*{}*'.format(ALT_NODE_PREFIX,
                                            NODE_VERSION_GLOB)):
        full_ver = folder.split(NODE_VERSION_GLOB)[1]
        if not full_ver:
            # Only when package is broken
            continue

        maj_ver = str(int(full_ver.split('.')[0]))
        res[maj_ver] = {
            'full_version': full_ver,
            'root_path': '{}{}/root'.format(ALT_NODE_PREFIX, maj_ver),
        }
    return res

:: 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.0105 ]--