GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac6dff2
)
Now addNode can set custom access policies - I've needed this for loading Dewey Decim...
author
Harvie
<tomas@mudrunka.cz>
Mon, 20 Dec 2010 01:08:59 +0000
(
02:08
+0100)
committer
Harvie
<tomas@mudrunka.cz>
Mon, 20 Dec 2010 01:08:59 +0000
(
02:08
+0100)
wwwroot/inc/nodes.inc
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/inc/nodes.inc
b/wwwroot/inc/nodes.inc
index e32825070db61645443062bb4916ab627d71961b..008a527a0be424320be4325cb2d390d9d452dedb 100644
(file)
--- a/
wwwroot/inc/nodes.inc
+++ b/
wwwroot/inc/nodes.inc
@@
-61,10
+61,13
@@
function addNode($params) {
$template_id=$params['template_id'];
if (!is_numeric($template_id)) $template_id=DEFAULT_TEMPLATE_ID;
$template_id=$params['template_id'];
if (!is_numeric($template_id)) $template_id=DEFAULT_TEMPLATE_ID;
+ if(!isset($params['node_system_access'])) $params['node_system_access'] = $node['node_system_access'];
+ if(!isset($params['node_external_access'])) $params['node_external_access'] = $node['node_external_access'];
+
$q="insert into nodes set
node_name='".$params['node_name']."',
$q="insert into nodes set
node_name='".$params['node_name']."',
-node_external_access='".$
node
['node_external_access']."',
-node_system_access='".$
node
['node_system_access']."',
+node_external_access='".$
params
['node_external_access']."',
+node_system_access='".$
params
['node_system_access']."',
node_creator='".$params['node_creator']."',
template_id='".$template_id."',
external_link='".$external_link."',
node_creator='".$params['node_creator']."',
template_id='".$template_id."',
external_link='".$external_link."',
This page took
0.185944 seconds
and
4
git commands to generate.