2 function set_external_link() {
3 global $error,$node,$db;
5 $new_exlink = mysql_real_escape_string($_POST['external_link']);
6 $node_id = mysql_real_escape_string($node['node_id']);
7 $node_permission=$node['node_permission'];
9 $validation = strpos($new_exlink, $find);
11 if ($validation === true) {
12 if (($node_permission == 'owner') || ($node_permission == 'master')) {
13 $q = "update nodes set external_link='$new_exlink' where node_id='$node_id'";
18 $error = "Na to nemas prava!";
23 $error = "Nezadal si ://, vole. ";