Add copyright header

This commit is contained in:
Mehdi Abaakouk 2012-01-27 19:12:59 +01:00
parent d81b45da6e
commit 4cdb730b59
8 changed files with 94 additions and 15 deletions

5
README
View File

@ -1,6 +1,6 @@
bird-lg depend on :
- python-flask
- python-flask >= 0.8
- python-dnspython
@ -15,3 +15,6 @@ On frontend:
Each service can by embeded in any webserver by follow regular python-flask configuration
Only tested with bird 1.2.5

20
bird.py
View File

@ -1,3 +1,23 @@
# -*- coding: utf-8 -*-
# vim: ts=4
###
#
# Copyright (c) 2006 Mehdi Abaakouk
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
#
###
import socket
import sys

View File

@ -1,3 +1,23 @@
# -*- coding: utf-8 -*-
# vim: ts=4
###
#
# Copyright (c) 2006 Mehdi Abaakouk
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
#
###
import subprocess

28
lg.py
View File

@ -1,4 +1,24 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# vim: ts=4
###
#
# Copyright (c) 2006 Mehdi Abaakouk
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
#
###
import sys
import os
@ -15,14 +35,6 @@ from flask import Flask, render_template, jsonify, redirect, session, request, a
app = Flask(__name__)
app.config.from_pyfile('lg.cfg')
#def same_origin_policy_hander(resp):
# resp.headers["Access-Control-Allow-Origin"] = "*"
# return resp
#
#app.after_request(same_origin_policy_hander)
#
def add_links(text):
if type(text) in [ str, unicode ]:
text = text.split("\n")

View File

@ -5,6 +5,7 @@
html, body, ul, li { padding: 0 ; margin: 0; }
html, body {
height:100% ;
position:relative;
}
a { text-decoration: none; color:blue; }
@ -105,6 +106,12 @@ input#ipopup{
width: auto;
}
#footer{
position:fixed;
bottom:0px;
left:0px;
font-size: 10px;
}
.error{
font-weight:normal;
color:red;

View File

@ -165,3 +165,6 @@ $( function() {
{% block body %}{% endblock %}
</div>
</div>
<div id="footer">
bird looking glass <a href="https://github.com/sileht/bird-lg/">source code</a> under GPL 3.0
</div>

View File

@ -1,6 +0,0 @@
from bird import BirdSocketSingleton
s = BirdSocketSingleton("h3", 9994)
print s.cmd("show protocols")
print s.cmd("show protocols all TETANEUTRAL")

View File

@ -1,3 +1,23 @@
# -*- coding: utf-8 -*-
# vim: ts=4
###
#
# Copyright (c) 2006 Mehdi Abaakouk
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
#
###
from dns import resolver,reversename
import socket