예제 #1
0
        $parser->proccess_file($doctext);
        $info_error = $parser->is_valid();
        if (count($info_error) > 0) {
            $error = TRUE;
        }
    }
    if ($error == FALSE) {
        $ctx = "";
        if ($vuser != "") {
            $in_charge = $vuser;
        } elseif ($ventity != "") {
            $in_charge = $ventity;
        } else {
            $in_charge = 0;
        }
        $id_inserted = Repository::insert($conn, $title, $doctext, $keywords, $in_charge);
    }
}
$sintax = new KDB_Sintax();
$labels_condition = $sintax->_labels_condition;
$labels_actions = $sintax->_labels_actions;
$labels_operators = $sintax->_labels_operators;
$labels_variables = $sintax->_labels_variables;
$help_msgs = array();
$users = Session::get_users_to_assign($conn);
$entities = Session::get_entities_to_assign($conn);
$db->close();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
예제 #2
0
        $info_error[] = _("Error in the 'text' field (missing required field)");
        $error = true;
    }
}
if (POST('title') != "" && POST('doctext') != "" && $error == false) {
    // Get a list of nets from db
    if ($vuser != "") {
        $user = $vuser;
    }
    if ($ventity != "") {
        $user = $ventity;
    }
    $title = POST('title');
    $doctext = strip_tags(POST('doctext'), '<div><span><ul><li><ol><b><i><u><strike><p><h1><h2><h3><h4><h5><h6><font><br><blockquote>');
    $keywords = POST('keywords');
    $id_inserted = Repository::insert($conn, $title, $doctext, $keywords, $user);
    ?>
	
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html>
	<head>
		<title> <?php 
    echo gettext("OSSIM Framework");
    ?>
 </title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<META http-equiv="Pragma" content="no-cache">
		<link rel="stylesheet" type="text/css" href="../style/style.css"/>
		<style type='text/css'>
			body { margin: 0px;}
			.ossim_success {width: auto;}