X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Fadd.inc;h=e4b68d03f65cc2e975ab867cf9a30c1f44b868a5;hb=41b53a981f7bab0ca17e16fddb72d868311f9ba9;hp=f77499df345a89fc8eb87bc4eee120d96d969e93;hpb=ef7d6c1db7d2d0441852f8b8a7d4a046e7bc36c2;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