X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Fadd.inc;h=e4b68d03f65cc2e975ab867cf9a30c1f44b868a5;hb=84c1a47338e32ca67d4b6401cb7f2c3253011a0e;hp=f77499df345a89fc8eb87bc4eee120d96d969e93;hpb=91b49c827b74b7c432b1fced7fc93df5121becbf;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/eventz/add.inc b/wwwroot/inc/eventz/add.inc index f77499d..e4b68d0 100644 --- a/wwwroot/inc/eventz/add.inc +++ b/wwwroot/inc/eventz/add.inc @@ -106,8 +106,8 @@ function add() { } if ($_FILES['data_file']['tmp_name']) { - copy($_FILES['data_file']['tmp_name'], FILE_DIR.$_SESSION['user_id'].'/'.$node_id.".$suffix"); - symlink(FILE_DIR.$_SESSION['user_id'].'/'.$node_id.".$suffix",FILE_DIR.'/'.$node_id); + require(INCLUDE_DIR.'filez.inc'); + filez::upload_data_file($node_id); } //substitute @@@ token by a node_id of a newly created node