!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/td-agent/embedded/lib/ruby/gems/2.4.0/gems/oj-3.7.12/ext/oj/   drwxrwxr-x
Free 221.75 GB of 981.82 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     trace.c (2.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* trace.h
 * Copyright (c) 2018, Peter Ohler
 * All rights reserved.
 */

#include "parse.h"
#include "trace.h"

#define MAX_INDENT    256

static void
fill_indent(char *indent, int depth) {
    if (MAX_INDENT <= depth) {
    depth = MAX_INDENT - 1;
    } else if (depth < 0) {
    depth = 0;
    }
    if (0 < depth) {
    memset(indent, ' ', depth);
    }
    indent[depth] = '\0';
}

void
oj_trace(const char *func, VALUE obj, const char *file, int line, int depth, TraceWhere where) {
    char    fmt[64];
    char    indent[MAX_INDENT];

    depth *= 2;
    fill_indent(indent, depth);
    sprintf(fmt, "#0:%%13s:%%3d:Oj:%c:%%%ds %%s %%s\n", where, depth);
    printf(fmt, file, line, indent, func, rb_obj_classname(obj));
}

void
oj_trace_parse_call(const char *func, ParseInfo pi, const char *file, int line, VALUE obj) {
    char    fmt[64];
    char    indent[MAX_INDENT];
    int        depth = (int)(stack_size(&pi->stack) * 2);
    
    fill_indent(indent, depth);
    sprintf(fmt, "#0:%%13s:%%3d:Oj:-:%%%ds %%s %%s\n", depth);
    printf(fmt, file, line, indent, func, rb_obj_classname(obj));
}

void
oj_trace_parse_in(const char *func, ParseInfo pi, const char *file, int line) {
    char    fmt[64];
    char    indent[MAX_INDENT];
    int        depth = (int)(stack_size(&pi->stack) * 2);
    
    fill_indent(indent, depth);
    sprintf(fmt, "#0:%%13s:%%3d:Oj:}:%%%ds %%s\n", depth);
    printf(fmt, file, line, indent, func);
}

void
oj_trace_parse_hash_end(ParseInfo pi, const char *file, int line) {
    char    fmt[64];
    char    indent[MAX_INDENT];
    int        depth = (int)(stack_size(&pi->stack) * 2 - 2);
    Val        v = stack_peek(&pi->stack);
    VALUE    obj = v->val;
    
    fill_indent(indent, depth);
    sprintf(fmt, "#0:%%13s:%%3d:Oj:{:%%%ds hash_end %%s\n", depth);
    printf(fmt, file, line, indent, rb_obj_classname(obj));
}

void
oj_trace_parse_array_end(ParseInfo pi, const char *file, int line) {
    char    fmt[64];
    char    indent[MAX_INDENT];
    int        depth = (int)(stack_size(&pi->stack) * 2);
    
    fill_indent(indent, depth);
    sprintf(fmt, "#0:%%13s:%%3d:Oj:{:%%%ds array_ned\n", depth);
    printf(fmt, file, line, indent);
}

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