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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/usr/share/phppgadmin/   drwxr-xr-x
Free 1.51 GB of 7.22 GB (20.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ajax-ac-insert.php (2.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
include_once('./libraries/lib.inc.php');

    if(isset(
$_POST['offset']))
        
$offset " OFFSET {$_POST['offset']}";
    else {
        
$_POST['offset'] = 0;
        
$offset " OFFSET 0";
    }

    
$keynames = array();
    foreach (
$_POST['fkeynames'] as $k => $v) {
        
$fkeynames[$k] = html_entity_decode($vENT_QUOTES);
    }

    
$keyspos array_combine($fkeynames$_POST['keys']);

    
$f_schema html_entity_decode($_POST['f_schema'], ENT_QUOTES);
    
$data->fieldClean($f_schema);
    
$f_table html_entity_decode($_POST['f_table'], ENT_QUOTES);
    
$data->fieldClean($f_table);
    
$f_attname $fkeynames[$_POST['fattpos'][0]];
    
$data->fieldClean($f_attname);

    
$q "SELECT *
        FROM \"
{$f_schema}\".\"{$f_table}\"
        WHERE \"
{$f_attname}\"::text LIKE '{$_POST['fvalue']}%'
        ORDER BY \"
{$f_attname}\" LIMIT 12 {$offset};";

    
$res $data->selectSet($q);

    if (!
$res->EOF) {
        echo 
"<table class=\"ac_values\">";
        echo 
'<tr>';
        foreach (
array_keys($res->fields) as $h) {
            echo 
'<th>';

            if (
in_array($h$fkeynames))
                echo 
'<img src="'$misc->icon('ForeignKey') .'" alt="[referenced key]" />';

            echo 
htmlentities($h), '</th>';
            
        }
        echo 
"</tr>\n";
        
$i=0;
        while ((!
$res->EOF) && ($i 11)) {
            
$j=0;
            echo 
"<tr class=\"acline\">";
            foreach (
$res->fields as $n => $v) {
                
$finfo $res->fetchField($j++);
                if (
in_array($n$fkeynames))
                    echo 
"<td><a href=\"javascript:void(0)\" class=\"fkval\" name=\"{$keyspos[$n]}\">",
                        
$misc->printVal($v$finfo->type, array('clip' => 'collapsed')),
                        
"</a></td>";
                else
                    echo 
"<td><a href=\"javascript:void(0)\">",
                        
$misc->printVal($v$finfo->type, array('clip' => 'collapsed')),
                        
"</a></td>";
            }
            echo 
"</tr>\n";
            
$i++;
            
$res->moveNext();
        }        
        echo 
"</table>\n";

        
$page_tests='';

        
$js "<script type=\"text/javascript\">\n";
        
        if (
$_POST['offset']) {
            echo 
"<a href=\"javascript:void(0)\" id=\"fkprev\">&lt;&lt; Prev</a>";
            
$js.= "fkl_hasprev=true;\n";
        }
        else
            
$js.= "fkl_hasprev=false;\n";

        if (
$res->recordCount() == 12) {
            
$js.= "fkl_hasnext=true;\n";
            echo 
"&nbsp;&nbsp;&nbsp;<a href=\"javascript:void(0)\" id=\"fknext\">Next &gt;&gt;</a>";
        }
        else
            
$js.= "fkl_hasnext=false;\n";
        
        echo 
$js ."</script>";
    }
    else {
        
printf("<p>{$lang['strnofkref']}</p>""\"{$_POST['f_schema']}\".\"{$_POST['f_table']}\".\"{$fkeynames[$_POST['fattpos']]}\"");

        if (
$_POST['offset'])
            echo 
"<a href=\"javascript:void(0)\" class=\"fkprev\">Prev &lt;&lt;</a>";
    }
?>

:: 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 PinoyWH1Z | C99Shell Github | Generation time: 0.0314 ]--