first commit

This commit is contained in:
2025-08-07 13:15:31 +01:00
commit d903893b4c
21854 changed files with 4461308 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
include ('../model_controller/save.article.pic.php');
list($type, $data) = explode(';', $_POST['imgdata']);
list(, $data) = explode(',', $data);
list(, $type) = explode('/', $type);
$data = base64_decode($data);
$filepath = '../pics/articles/'.$_POST['filename'].".".$type;
file_put_contents($filepath, $data);
updateProductPic($filepath,$_POST['filename']);
?>