watchdog("warning","node: not authorized to remove node");
watchdog("warning","$node->type: not authorized to remove node");
$output=t("You are not authorized to remove this node.");
}
...
...
@@ -906,7 +906,7 @@ function node_page() {
$theme->box($title,node_submit($edit));
break;
caset("Delete"):
printnode_delete($edit);
$theme->box($title,node_delete($edit));
break;
default:
$result=db_query("SELECT nid, type FROM node WHERE ".($meta?"attributes LIKE '%".check_input($meta)."%' AND ":"")." promote = '1' AND status = '1' AND created <= '".($date>0?check_input($date):time())."' ORDER BY created DESC LIMIT ".($user->nodes?$user->nodes:variable_get("default_nodes_main",10)));
watchdog("warning","node: not authorized to remove node");
watchdog("warning","$node->type: not authorized to remove node");
$output=t("You are not authorized to remove this node.");
}
...
...
@@ -906,7 +906,7 @@ function node_page() {
$theme->box($title,node_submit($edit));
break;
caset("Delete"):
printnode_delete($edit);
$theme->box($title,node_delete($edit));
break;
default:
$result=db_query("SELECT nid, type FROM node WHERE ".($meta?"attributes LIKE '%".check_input($meta)."%' AND ":"")." promote = '1' AND status = '1' AND created <= '".($date>0?check_input($date):time())."' ORDER BY created DESC LIMIT ".($user->nodes?$user->nodes:variable_get("default_nodes_main",10)));