X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Feventz%2Fbookstyl.inc;fp=wwwroot%2Finc%2Feventz%2Fbookstyl.inc;h=e9b3456c96eb9fbe428d964b9628e2236ea7fa44;hb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;hp=0000000000000000000000000000000000000000;hpb=dcee763368a1e3f380d07320a5254d91a09304e6;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/eventz/bookstyl.inc b/wwwroot/inc/eventz/bookstyl.inc new file mode 100644 index 0000000..e9b3456 --- /dev/null +++ b/wwwroot/inc/eventz/bookstyl.inc @@ -0,0 +1,30 @@ +query("select * from nodes where node_parent=19 and external_link='session://bookstyl' and node_creator='$user_id'"); + if($set->getNumRows() == 0) { + + $addnode['node_content'] = $bookstyl; + $addnode['node_name'] = "book styl"; + $addnode['node_creator'] = $user_id; + $addnode['node_parent'] = 19; + $addnode['template_id'] = 4; + $addnode['external_link'] = "session://bookstyl"; + $addnode_id = nodes::addNode($addnode); + $_SESSION['bookstyl']= $bookstyl; + + } + else { + + $q = "update nodes set node_content='$bookstyl' where node_parent=19 and external_link='session://bookstyl' and node_creator='$user_id'"; + $db->query($q); + + } + $_SESSION['bookstyl']= $bookstyl; + +} +?> \ No newline at end of file