get_image_link fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / upload_own_template.inc
CommitLineData
51ff3226 1<?php
f657368b 2
3// XXX remove completly?
4
51ff3226 5 function upload_own_template() {
6
7 global $db,$error,$node;
8 $node_id=$node['node_id'];
9 $node_template=$_POST['node_template'];
10
11 if (Is_Array($_FILES['template_file'])) {
12 copy($_FILES['template_file']['tmp_name'],OWN_TEMPLATE_DIR.'/'.$node['node_id'].".tpl");
13 }
14 $db->query("update nodes set node_template='$node_template' where node_id='$node_id'");
15 }
16
f657368b 17?>
This page took 1.431416 seconds and 4 git commands to generate.