DIR : /home/kozerus/public_html/zc/adam/includes/modules/new_product_preview.php
/home/kozerus/public_html/zc/adam/includes/modules
<?php
/**
* @package admin
* @copyright Copyright 2003-2019 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: mc12345678 2019 Jan 20 Modified in v1.5.6b $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
// upload image, if submitted
if (!isset($_GET['read']) || $_GET['read'] !== 'only') {
$products_image = new upload('products_image');
$products_image->set_extensions(array('jpg','jpeg','gif','png','webp','flv','webm','ogg'));
$products_image->set_destination(DIR_FS_CATALOG_IMAGES . (isset($_POST['img_dir']) ? $_POST['img_dir'] : ''));
if ($products_image->parse() && $products_image->save(isset($_POST['overwrite']) ? $_POST['overwrite'] : false)) {
$products_image_name = $_POST['img_dir'] . $products_image->filename;
} else {
$products_image_name = (isset($_POST['products_previous_image']) ? $_POST['products_previous_image'] : '');
}
}
// hook to allow interception of product-image uploading by admin-side observer class
$zco_notifier->notify('NOTIFY_ADMIN_PRODUCT_IMAGE_UPLOADED', $products_image, $products_image_name);
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer