ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/modules/new_product_preview.php
Go to the documentation of this file.
00001 <?php
00009 if (!defined('IS_ADMIN_FLAG')) {
00010   die('Illegal Access');
00011 }
00012 // copy image only if modified
00013         if (!isset($_GET['read']) || $_GET['read'] == 'only') {
00014           $products_image = new upload('products_image');
00015           $products_image->set_destination(DIR_FS_CATALOG_IMAGES . $_POST['img_dir']);
00016           if ($products_image->parse() && $products_image->save($_POST['overwrite'])) {
00017             $products_image_name = $_POST['img_dir'] . $products_image->filename;
00018           } else {
00019             $products_image_name = (isset($_POST['products_previous_image']) ? $_POST['products_previous_image'] : '');
00020           }
00021         }
00022 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations