|
|
@@ -0,0 +1,34 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+
|
|
|
+include(dirname(__FILE__).'/../../../config/config.inc.php');
|
|
|
+
|
|
|
+$context->controller = new stdClass();
|
|
|
+$context->controller->controller_type = ['test'];
|
|
|
+
|
|
|
+require_once(dirname(__FILE__) . '/../classes/chcreaimages.php');
|
|
|
+
|
|
|
+$id_post = 1;
|
|
|
+/*
|
|
|
+if (!file_exists(chcrea_img_dir)) {
|
|
|
+ print(chcrea_img_dir." exist\n");
|
|
|
+} else {
|
|
|
+ print(chcrea_img_dir." non\n");
|
|
|
+}
|
|
|
+
|
|
|
+$path = chcrea_img_dir.$id_post.'/';
|
|
|
+print($path);
|
|
|
+
|
|
|
+mkdir($path);
|
|
|
+
|
|
|
+print("\n");
|
|
|
+*/
|
|
|
+$obj = new Chcreaimages();
|
|
|
+$obj->id_chcreaposts = $id_post;
|
|
|
+
|
|
|
+print($obj->getPath());
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|