Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/ep.ccp.ac.th/admin/assets/ckeditor_bt/plugins/imageuploader/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/ep.ccp.ac.th/admin/assets/ckeditor_bt/plugins/imageuploader/create.php

<?php

// Including the check_permission file, don't delete the following row!
require(__DIR__ . '/check_permission.php');

if(isset($_POST["username"]) or isset($_POST["password"])){
    $tmpusername = strip_tags($_POST["username"]);
    $tmpusername = htmlspecialchars($tmpusername, ENT_QUOTES);
    $tmppassword = md5($_POST["password"]);
    $data = '$username = "'.$tmpusername.'"; $password = \''.$tmppassword.'\';'.PHP_EOL;
    $fp = fopen(__DIR__ . '/pluginconfig.php', 'a');
    fwrite($fp, $data);
    unlink(__DIR__ . "/new.php");
    unlink(__DIR__ . "/create.php");
    header("Location: imgbrowser.php");
} 


Zerion Mini Shell 1.0