����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.20.221.0 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/muebles/pos11/core/app/view/ |
Upload File : |
<?php if(count($_POST)>0){ $product = ProductData::getById($_POST["product_id"]); $product->barcode = $_POST["barcode"]; $product->name = $_POST["name"]; $product->price_in = $_POST["price_in"]; $product->price_out = $_POST["price_out"]; $product->iva = $_POST["iva"]; $product->unit = $_POST["unit"]; $product->description = $_POST["description"]; $product->presentation = $_POST["presentation"]; $product->inventary_min = $_POST["inventary_min"]; $category_id="NULL"; if($_POST["category_id"]!=""){ $category_id=$_POST["category_id"];} $is_active=0; if(isset($_POST["is_active"])){ $is_active=1;} $product->is_active=$is_active; $product->category_id=$category_id; $product->user_id = $_SESSION["user_id"]; $product->update(); if(isset($_FILES["image"])){ $image = new Upload($_FILES["image"]); if($image->uploaded){ $image->Process("storage/products/"); if($image->processed){ $product->image = $image->file_dst_name; $product->update_image(); } } } //actualizar tabla m_item $product2 = ProductData::getBycodeItem($_POST["barcode"]); $product2->updateP($product->barcode,$product->price_out); setcookie("prdupd","true"); print "<script>window.location='index.php?view=editproduct&id=$_POST[product_id]';</script>"; } ?>