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

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/scripts/pba/phc-read-only/src/lib/   drwxrwxr-x
Free 83.21 GB of 96.73 GB (86.02%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AttrMap.cpp (1.42 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * phc -- the open source PHP compiler
 * See doc/license/README.license for licensing information
 *
 * Specialized version of std::map
 */

#include "AttrMap.h"
#include "String.h"
#include "Boolean.h"
#include "Integer.h"

AttrMap::AttrMap() 
: Map<string, Object*>() 
{
}

AttrMap::~AttrMap() 
{
}

Boolean* AttrMap::get_boolean(string key)
{
    return dyc<Boolean> (get (key));
}

Integer* AttrMap::get_integer(string key)
{
    return dyc<Integer> (get (key));
}

String* AttrMap::get_string(string key)
{
    return dyc<String> (get (key));
}

void AttrMap::set_true(string key)
{
    set(key, new Boolean(true));
}

void AttrMap::set_false(string key)
{
    set(key, new Boolean(false));
}

bool AttrMap::is_true(string key)
{
    if(!has(key)) return false;
    Boolean* ret = dyc<Boolean>((*this)[key]);
    return ret->value();
}

void AttrMap::erase_with_prefix (string key_prefix)
{
    AttrMap::iterator i;
    // erasing using an iterator may invalidate the iterator
    for(i = begin(); i != end(); )
    {
        if ((*i).first.find (key_prefix, 0) != string::npos)
        {
            string key = (*i).first;
            i++; // advance the iterator before deleting
            erase (key);
        }
        else
            i++;
    }
}

AttrMap*
AttrMap::clone()
{
    AttrMap* result = new AttrMap;
    result->clone_all_from(this);
    return result;
}

void
AttrMap::clone_all_from(AttrMap* other)
{
    std::string str;
    Object* obj;
    foreach (boost::tie (str, obj), *other)
    {
        assert (obj != NULL);
        set(str, obj->clone());
    }
}

:: 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 HackingTool | HackingTool | Generation time: 0.0042 ]--