170 lines
7.7 KiB
PHP
170 lines
7.7 KiB
PHP
<?
|
|
error_reporting(E_ALL ^ E_NOTICE);
|
|
|
|
define ('DATETIME', date('YmdHis'));
|
|
define ('DATE', substr(DATETIME,0,8));
|
|
define ('TIME', substr(DATETIME,8,6));
|
|
define ('DATE_LISIBLE', substr(DATETIME,6,2).'/'.substr(DATETIME,4,2).'/'.substr(DATETIME,0,4));
|
|
define ('TIME_LISIBLE', substr(DATETIME,8,2).':'.substr(DATETIME,10,2).':'.substr(DATETIME,12,2));
|
|
|
|
/**
|
|
* Inclusion du fichier de configuration des includes Métiers de S&D
|
|
*/
|
|
include '/var/www/includes/config.php';
|
|
|
|
/**
|
|
* Inclusion du Framework
|
|
*/
|
|
if( !defined('FWK_PATH') )
|
|
include '/var/www/framework/fwk.php';
|
|
|
|
$t1=microtime_float();
|
|
include_once(INCLUDE_PATH.'insee/classMInsee.php');
|
|
include_once(INCLUDE_PATH.'bodacc/classMBodacc.php');
|
|
include_once(FWK_PATH.'common/dates.php');
|
|
|
|
$iDb=new WDB('jo');
|
|
$iDb2=new WDB('sdv1');
|
|
|
|
session_start();
|
|
$tabSirenPC=array();
|
|
|
|
$authorized = false;
|
|
|
|
if(isset($_GET['logout']) && ($_SESSION['auth'])) {
|
|
$_SESSION['auth'] = null;
|
|
session_destroy();
|
|
echo "logging out...";
|
|
}
|
|
|
|
if(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
|
|
$user=addslashes(trim($_SERVER['PHP_AUTH_USER']));
|
|
$pwd =addslashes(trim($_SERVER['PHP_AUTH_PW']));
|
|
$tabTmp=$iDb2->select( 'utilisateurs',
|
|
'id, email',
|
|
"login='$user' AND password='$pwd' AND idClient=1 AND actif=1 AND deleted=0");
|
|
$_SESSION['userId']=$tabTmp[0][0];
|
|
$_SESSION['userMail']=$tabTmp[0][1];
|
|
|
|
if ( $_SESSION['userId'] ) {//&& $_SESSION['auth']) {
|
|
$authorized = true;
|
|
}
|
|
} else {
|
|
|
|
//if (isset($_GET["login"]) && (! $authorized)) {
|
|
header('WWW-Authenticate: Basic Realm="Login please"');
|
|
header('HTTP/1.0 401 Unauthorized');
|
|
$_SESSION['auth'] = true;
|
|
print('Login now or forever hold your clicks...');
|
|
exit;
|
|
}
|
|
|
|
if (!$authorized) {
|
|
?><h1>you have <? echo ($authorized) ? '' : 'not'; ?> logged!</h1><?
|
|
die();
|
|
}
|
|
|
|
include_once(FWK_PATH.'common/curl.php');
|
|
?>
|
|
<h2>Web Services</h2>
|
|
<a href="https://secure.celeste.fr/espace-client/user.php?xoops_redirect=%2Fespace-client%2F%2Fmodules%2Fcelestebase%2Findex.php%3Fm%3D0&PHPSESSID=e6ecb97cd92003b7083f1d522d149764">Espace Client FAI</a><br/>
|
|
<a href="http://nagios.celeste.fr/index.php?view=group&host=all&hostgroup=scores">Tuning/Suivi FAI</a><br/>
|
|
<a href="./gestion">Gestion de la base de données</a><br/>
|
|
<a href="./network">Parc serveurs</a><br/>
|
|
|
|
<h2>Sources BODACC / JAL</h2>
|
|
<a href="./sirenbod/?page=1&perimetre=&dateDebut=01/<?=date('m/Y')?>&dateFin=31/12/<?=date('Y')?>">Sirenage des annonces Bodacc</a>,
|
|
<a href="./sirenbod/?page=1&perimetre=&dateDebut=01/<?=date('m/Y')?>&dateFin=31/12/<?=date('Y')?>&source=asso">Associations</a>,
|
|
<a href="./sirenbod/?page=1&perimetre=&dateDebut=01/<?=date('m/Y')?>&dateFin=31/12/<?=date('Y')?>&source=dirigeants">Dirigeants</a>,
|
|
<a href="./sirenbod/?page=1&perimetre=&dateDebut=01/<?=date('m/Y')?>&dateFin=31/12/<?=date('Y')?>&source=boamp">Marchés Publics</a><br/>
|
|
<a href="./sirenbod/chargements.php?code=T&annee=<?=date('Y')?>#end">Chargement des Journaux Officiels</a>,
|
|
<a href="./sirenbod/chargementsSources.php?code=T&annee=<?=date('Y')?>#end">IMR</a><br/>
|
|
<a href="./sirenbod/stats.php">Statistiques de sirenage du Bodacc</a><br/>
|
|
<a href="./sirenbod/derniers.php">Liste des dernières annonces Bodacc affectées</a><br/>
|
|
<a href="./sirenbod/collecte.php">Liste des dernières annonces collectées</a><br/>
|
|
|
|
<h2>Communication avec les sources</h2>
|
|
<a href="http://ecrjo.journal-officiel.gouv.fr/index.php">Portail des redifusseurs de la DJO</a><br/>
|
|
<a href="https://www.infogreffe.fr/mantis">Mantis INPI (Infogreffe via Extelia)</a><br/>
|
|
|
|
<h2>Divers</h2>
|
|
<a href="./stats/index.php">Statistiques Base Scores & Décisions</a><br/>
|
|
<a href="./comptages/index.php">Comptages et export de données</a><br/>
|
|
<a href="./comptages/extraction.php?newFile=1">Validation et Extraction de données</a><br/>
|
|
<a href="./surveillance/?newFile=1">Mise en surveillance Email Extranet (pas CFT)</a><br/>
|
|
<a href="./guichets/">Recherche par code banque/guichet</a><br/>
|
|
<a href="./stats/consosTiers.php">Contrôle de la FM fournisseurs</a> (apres 18h SVP)<br/>
|
|
|
|
<h2>Extranet</h2>
|
|
<a href="https://www.google.com/analytics/reporting/?id=10782452">Statistiques Site Web S&D</a><br/>
|
|
<a href="http://dedi2.scores-decisions.com/cacti/">Tuning/Suivi des serveurs Extranet</a><br/>
|
|
<a href="https://www.webservices.graydon.co.uk/CompanyData_web_app/www/uk.co.graydon.Access/Access.html#documentation">DOC Graydon</a><br/>
|
|
<a href="http://sd.lan/mantis/">Mantis - Gestionnaire de BOGUES</a><br/>
|
|
|
|
<h2>Réseau / Télécom</h2>
|
|
<a href="https://secure.celeste.fr/espace-client//modules/celestebase/index.php?m=0">Réseau Céleste S&D Paris</a><br/>
|
|
<a href="https://subscribe.free.fr/login/">Réseau Fee S&D Paris/Rambouillet</a><br/>
|
|
<a href="http://console.online.net/">Serveurs Online / Dédibox</a><br/>
|
|
<a href="https://www.ovh.com/managerv3/">Serveurs Ovh</a><br/>
|
|
<a href="https://ssl.keyyo.com/identification.php?propar=pro">Keyyo : Téléphonie IP</a><br/>
|
|
<a href="http://www.bouyguestelecom.blackberry.com/">Configuration BlackBerry Bouygues</a><br/>
|
|
<br/>
|
|
|
|
<h2>Service Commercial</h2>
|
|
<a href="/crm/index.php?action=Login&module=Users">CRM</a><br/>
|
|
<a href="./boamp/marchesInfo.php">Marchés Publics Appels d'offres</a><br/>
|
|
<br/>
|
|
|
|
<h2>Marché / Concurrence</h2>
|
|
<a href="./boamp/concurrents.php">Marchés Publics Attribués</a><br/>
|
|
<a href="http://www.sirene.fr/Conditions_commerciales/default.asp?page=Conditions_rediffusion-liste-diffuseursir.htm">Liste des rediffuseurs INSEE SIRENE</a><br/>
|
|
<a href="http://www.journal-officiel.gouv.fr/abonnements-jo-et-opoce/bodacc.html">Liste des rediffuseurs BODACC</a><br/>
|
|
|
|
<?
|
|
die();
|
|
$referer=$cookie='';
|
|
$tdeb=microtime(true);
|
|
$url='http://ylenaour%40scores-decisions%2Ecom:sco*1ae75yl@nagios.celeste.fr/index.php?view=group&host=all&hostgroup=scores';
|
|
|
|
$page=getUrl($url, $cookie, '', $referer, false, '', '', 3);
|
|
$tfin=microtime(true);
|
|
$duree=$tfin-$tdeb;
|
|
$referer=$url;
|
|
$body=$page['body'];
|
|
//$cookie=$page['headers']['Set-Cookie'];
|
|
|
|
$url='http://ylenaour%40scores-decisions%2Ecom:sco*1ae75yl@nagios.celeste.fr/cgi-bin/show.cgi?host=xdsl-17218&service=&graph=5400';
|
|
$page=getUrl($url, $cookie, '', $referer, false, '', '', 3);
|
|
$body2=$page['body'];
|
|
$fp=fopen("./images/xdsl1.png", 'w');
|
|
fwrite($fp, $body2);
|
|
fclose($fp);
|
|
|
|
$url='http://ylenaour%40scores-decisions%2Ecom:sco*1ae75yl@nagios.celeste.fr/cgi-bin/show.cgi?host=xdsl-17218&service=&graph=118800';
|
|
$page=getUrl($url, $cookie, '', $referer, false, '', '', 3);
|
|
$body2=$page['body'];
|
|
$fp=fopen("./images/xdsl2.png", 'w');
|
|
fwrite($fp, $body2);
|
|
fclose($fp);
|
|
|
|
/*http://nagios.celeste.fr/cgi-bin/show.cgi?host=xdsl-17218&service=&graph=118800*/
|
|
if (preg_match("/type-xdsl'>type-xdsl<\/a><\/i><\/TD> <TD CLASS='status(?:.*)'>(.*)<\/TD><TD>(.*)<\/TD><TD>(.*)<\/TD><TD>(.*)<\/TD><TD>(.*)<\/TD>/Uis", $body, $matches))
|
|
{
|
|
echo 'Ligne SDSL 8M ';
|
|
if ($matches[1]=='UP') echo '<font color="green"><b>OK depuis '.$matches[3].'</b></font>';
|
|
else echo '<font color="red"><b>Indisponible depuis '.$matches[3].'</b></font>';
|
|
echo ' soit '.$matches[4].' (Dernier test le '.$matches[2].' en '.round($duree,3).'sec.)<br/>';
|
|
}
|
|
|
|
if (preg_match("/type-adsl'>type-adsl<\/a><\/i><\/TD> <TD CLASS='status(?:.*)'>(.*)<\/TD><TD>(.*)<\/TD><TD>(.*)<\/TD><TD>(.*)<\/TD><TD>(.*)<\/TD>/Uis", $body, $matches))
|
|
{
|
|
echo 'Secours ADSL ';
|
|
if ($matches[1]=='UP') echo '<font color="green"><b>OK depuis '.$matches[3].'</b></font>';
|
|
else echo '<font color="red"><b>Indisponible depuis '.$matches[3].'</b></font>';
|
|
echo ' soit '.$matches[4].' (Dernier test le '.$matches[2].' en '.round($duree,3).'sec.)<br/>';
|
|
}
|
|
//print_r($page['header']);
|
|
echo '<u>Traffic horaire</u><br/><img src="./images/xdsl1.png"/><br/>';
|
|
echo '<u>Traffic quotidien</u><br/><img src="./images/xdsl2.png"/><br/>';
|
|
|
|
?>
|