!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 

uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 

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

Safe-mode: OFF (not secure)

/home/doku/axrepos/ax/andras_tinkers/   drwxr-xr-x
Free 11.54 GB of 97.11 GB (11.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

require_once("encodingroutines.php");

$conn pg_connect("dbname=ax_andras_tinkers");

pg_query("ALTER TABLE msgboard_messages ADD COLUMN text_in_utf8 bool NOT NULL DEFAULT false;");
pg_query("ALTER TABLE msgboard_messages ADD COLUMN text_original_in_utf8 bool NOT NULL DEFAULT false;");
pg_query("ALTER TABLE msgboard_messages ADD COLUMN text_marked_for_checkup bool NOT NULL DEFAULT false;");
pg_query("ALTER TABLE msgboard_messages ADD COLUMN text_original text;");
pg_query("ALTER TABLE msgboard_messages ADD COLUMN text_conversion_date timestamp;");

pg_query("select set_curcfg('default');");

$result=pg_query("SELECT id,text from msgboard_messages where not text_in_utf8 and not text_original_in_utf8;");
$itemcounter=0;
while(
$row=pg_fetch_array($result)) {
    
$itemcounter++;
    echo 
$itemcounter."\r";
    if(
is_ascii($row['text'])) {
        
pg_query('UPDATE msgboard_messages SET text_in_utf8=true WHERE id='.$row['id'].';');
        continue;
    }
    
$mytext=str_replace(chr(160),chr(32),$row['text']);
    if(
is_ascii($mytext)) {
        
pg_query("UPDATE msgboard_messages SET text_in_utf8=true, text_original=text, text='".pg_escape_string($mytext)."' WHERE id=".$row['id'].";");
        continue;
    } else if(
is_utf8($row['text'])) {
        
pg_query("UPDATE msgboard_messages SET text_original_in_utf8=true WHERE id=".pg_escape_string($row['id']).";");
        continue;
    }
}
echo 
"\n";

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0065 ]--