+-------------+
| |
| DHCP server |
| |
+-------------+
| 192.168.1.34
|
|
VLAN 1 | 192.168.1.12
+------[1]----+
| import csv | |
| import threading | |
| from Queue import Queue | |
| from getpass import getpass | |
| from netmiko import ConnectHandler | |
| from datetime import datetime | |
| USER = 'pyclass' | |
| PASSWORD = getpass() |
| from app import db | |
| from sqlalchemy import desc, event, func, orm | |
| from sqlalchemy.ext.associationproxy import association_proxy | |
| from sqlalchemy.ext.declarative import declared_attr | |
| from sqlalchemy_utils import ArrowType, auto_delete_orphans | |
| from slugify import slugify_unicode | |
| tags = db.Table('tag_associations', | |
| db.Column('tag_id', db.Integer, db.ForeignKey('tags.id')), | |
| db.Column('article_id', db.Integer, db.ForeignKey('articles.id'))) |
| /* | |
| * Extends ColorThief plugin to mark the most intense color in a palette. | |
| * | |
| * var colorThief = new ColorThief(); | |
| * var palette = colorThief.getPalette(image, 5); | |
| * var palette = colorThief.markBoomColors(palette); | |
| * | |
| * It ranks all colors in a palette according to the sum of saturation and color value (HSV) descending. | |
| * The palette colors will be extended with boomRank and boomColor. | |
| * boomColor is set to true if the color is the most intense color in the given palette. |
+-------------+
| |
| DHCP server |
| |
+-------------+
| 192.168.1.34
|
|
VLAN 1 | 192.168.1.12
+------[1]----+
| <?php | |
| include_once 'db.php'; | |
| global $con; | |
| define('ERROR','404');//Define Your Error message HERE | |
| define('REQADDR', '127.0.0.1');//Define your REQUESTIN SERVER ADDR | |
| if($_SERVER['REMOTE_ADDR']=='127.0.0.1'){ | |
| //process it | |
| if(isset($_GET['q'])){ | |
| $q=mysql_real_escape_string($_GET['q']);//TO get rid of SQL Enjection |