Просмотр исходного кода

Update the example logo, update the example config, minor changes

Dmitry Shin лет назад: 8
Родитель
Сommit
ab4f2e82f8
3 измененных файлов с 25 добавлено и 17 удалено
  1. 11 4
      htdocs/index.php
  2. 14 13
      htdocs/lg_config.php.example
  3. BIN
      htdocs/lg_logo.gif

+ 11 - 4
htdocs/index.php

@@ -1,6 +1,6 @@
 <?php
 /**
- * HSDN Looking Glass version 1.2.12b
+ * HSDN PHP Looking Glass version 1.2.14b
  *
  * General Features:
  *  - Supports the Telnet and SSH (through Putty/plink)
@@ -56,8 +56,8 @@ $_CONFIG = array
 (
 	'asn' => '12345',
 	'company' => 'My Company Name',
-	'logo' => FALSE,
-	'color' => '#009900',
+	'logo' => 'lg_logo.gif',
+	'color' => '#E48559',
 	'plink' => '/usr/local/bin/plink',
 	'ipwhois' => 'http://noc.hsdn.org/whois/',
 	'aswhois' => 'http://noc.hsdn.org/aswhois/',
@@ -83,6 +83,13 @@ if ($command != 'graph' OR !isset($_REQUEST['render']) OR !isset($_CONFIG['route
 <!DOCTYPE html>
 <html lang="en">
 	<head>
+		<!--
+			=================================================
+			Powered by HSDN PHP Looking Glass
+			- https://git.dev.hsdn.org/pub/lg
+			- https://github.com/hsdn/lg
+			=================================================
+		-->
 		<title>AS<?php print $_CONFIG['asn'] ?> Looking Glass</title>
 		<meta charset="utf-8">
 		<link rel="shortcut icon" href="favicon.ico">
@@ -417,7 +424,7 @@ if (isset($_CONFIG['routers'][$router]) AND
 			<br>
 			<div id="loading" style="display:inline"><p><b>Please wait...</b></p></div>
 			<!--[if IE]>
-				<p><img src="?command=graph&amp;protocol=<?php print $protocol ?>&amp;query=<?php print $query ?>&amp;router=<?php print $router ?>&amp;render=png" type="image/svg+xml" alt="" title=""></p>
+				<p><img src="?command=graph&amp;protocol=<?php print $protocol ?>&amp;query=<?php print $query ?>&amp;router=<?php print $router ?>&amp;render=png" alt="" title=""></p>
 			<![endif]-->
 			<![if ! IE]>
 				<object data="?command=graph&amp;protocol=<?php print $protocol ?>&amp;query=<?php print $query ?>&amp;router=<?php print $router ?>&amp;render=true" type="image/svg+xml"></object>

+ 14 - 13
htdocs/lg_config.php.example

@@ -7,12 +7,12 @@
 /*
  * Your own AS number
  */
-$_CONFIG['asn'] = '56727';
+$_CONFIG['asn'] = '12345';
 
 /*
  * Your own company name
  */
-$_CONFIG['company'] = 'Information Networks Ltd.';
+$_CONFIG['company'] = 'My Company Name';
 
 /*
  * Your logo URL (or FALSE)
@@ -22,7 +22,7 @@ $_CONFIG['logo'] = 'lg_logo.gif';
 /*
  * Main style color
  */
-$_CONFIG['color'] = '#3366cc';
+$_CONFIG['color'] = '#E48559';
 
 /*
  * Putty `plink' command path (for SSH connections)
@@ -52,23 +52,24 @@ $_CONFIG['aswhois'] = 'http://noc.hsdn.org/aswhois/';
  */
 $_CONFIG['routers'] = array
 (
-	'saratov-br1' => array
+	'example1' => array
 	(
-		'url' => 'telnet://91.226.136.129:23',
+		'url' => 'telnet://route-views.optus.net.au:23',
 		'pingtraceurl' => FALSE,
-		'description' => 'Saratov (RU), BR1',
-		'group' => 'AS56727',
+		'description' => 'Example Router 1',
+		'group' => 'AS12345',
 		'ipv6' => TRUE,
 		'os' => 'ios',
 	),
-	'example' => array
+
+	'example2' => array
 	(
-		'url' => 'telnet://rviews:rviews@route-server.ip.att.net',
+		'url' => 'telnet://route-server.eastlink.ca:23',
 		'pingtraceurl' => FALSE,
-		'description' => 'AT&T example',
-		'group' => 'Example',
-		'ipv6' => FALSE,
-		'os' => 'junos',
+		'description' => 'Example Router 2',
+		'group' => 'AS12345',
+		'ipv6' => TRUE,
+		'os' => 'ios',
 	),
 );
 

BIN
htdocs/lg_logo.gif