Kyberia v2.3 - 1st revision from SVN (Without patches of kyberia.sk team)
[mirrors/Kyberia-bloodline.git] / inc / eventz / upload_own_template.inc
1 <?php
2 function upload_own_template() {
3
4 global $db,$error,$node;
5 $node_id=$node['node_id'];
6 $node_template=$_POST['node_template'];
7
8 if (Is_Array($_FILES['template_file'])) {
9 copy($_FILES['template_file']['tmp_name'],OWN_TEMPLATE_DIR.'/'.$node['node_id'].".tpl");
10 }
11 $db->query("update nodes set node_template='$node_template' where node_id='$node_id'");
12 }
13
14 ?>
This page took 0.304466 seconds and 4 git commands to generate.