Anonymous 3D Imageboard http://cyberia.digital/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
731B

  1. <?
  2. require_once 'Utils/Helpers.php';
  3. class FakeFile {
  4. /*
  5. 'id' => 'integer',
  6. 'id_post' => 'integer',
  7. 'thread_key' => 'string',
  8. 'fake_path' => 'string',
  9. 'fake_name' => 'string',
  10. 'file_name' => 'string'*/
  11. function __construct($file_path_, $file_ext_, $map_key ) {
  12. $name = uniqid();
  13. $this ->fake_name = $name.'.'.$file_ext_;
  14. $this ->file_name = Helpers::getRealFileName($this ->fake_name).'.'.$file_ext_;
  15. //$this ->fake_path = $file_path_."img/".$map_key."_". $this ->file_name;
  16. $this ->fake_path = $file_path_."php/uploads/".$map_key."/".Helpers::getRealFileName($this ->fake_name).'.'.$file_ext_;
  17. $this ->map_key = $map_key;
  18. }
  19. }