Commit fff9f8c0 authored by Skia's avatar Skia

Clean up files containing password and update .gitignore

parent 261da044
......@@ -2,3 +2,6 @@
.*
accounts
data
include/redis.inc.php
include/mysqlae.inc.php
include/mysqlpg.inc.php
......@@ -39,7 +39,7 @@ class gmap extends stdcontents
var $uid;
/* google map api key */
var $key = "__GMAP_KEY__";
var $key = "ABQIAAAAJorv5o0HbErTOq4bRd4i4xQK4V3DXlfwDoXGfM1MfzyVC2ZQMBQlI3Dxb04trtSj-G5duv7flKy7Ag";
var $markers = array();
var $paths = array();
......
......@@ -54,8 +54,8 @@ class fax extends stdentity
var $numdest;
/* les identifiants freebox de l'AE */
var $login = "__LOGIN_FREEBOX__";
var $pass = "__MDP_FREEBOX__";
var $login = "0384581564";
var $pass = "ZaRypqz4";
/* identifiant de l'utilisateur faisant la demande */
var $id_utilisateur;
......
<?php
/** @file
*
* @brief Connexion aux bases MySQL de l'AE.
*
*/
/* Copyright 2004
* - Alexandre Belloni <alexandre POINT belloni CHEZ utbm POINT fr>
* - Thomas Petazzoni <thomas POINT petazzoni CHEZ enix POINT org>
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/* On interdit le chargement de ce script si il ne vient pas du site
officiel */
if( !preg_match('/^\/var\/www\/(taiste|ae2)\//', $_SERVER['SCRIPT_FILENAME'])
&& !ereg("^/var/www/ae/accounts/([a-z0-9][a-Z0-9_-]*)/aecms",$_SERVER['SCRIPT_FILENAME']) )
{
/* On est peut_etre dans le cas d'une utilisation "home" */
if (file_exists($topdir . "include/mysqlae_home.inc.php"))
require_once($topdir . "include/mysqlae_home.inc.php");
else
die("denied");
}
else
{
/** Classe permettant de se connecter à la base de l'ae. Permet de
créer une base qui se connecte sur la base de l'ae. En passant en
paramètre "rw", on obtient une base en lecture écriture pour tout
autre paramètre, la base est en lecture seule. */
class mysqlae extends mysql {
function mysqlae ($type = "ro") {
if ($type == "rw") {
if ( ! $this->mysql('ae_rw', 'NwCkpDc', '192.168.2.219', 'ae2')) {
return FALSE;
}
} else {
if ( ! $this->mysql('ae_ro', 'ljjTutG', '192.168.2.219', 'ae2')) {
return FALSE;
}
}
}
}
class mysqlforum extends mysql
{
function mysqlforum ()
{
// Tschuut on a rien vu ...
if ( ! $this->mysql('forum', '7v6nfzlihaolq847', 'localhost', 'UTBM'))
return FALSE;
}
}
}
?>
......@@ -55,11 +55,11 @@ else
class mysqlae extends mysql {
function mysqlae ($type = "ro") {
if ($type == "rw") {
if ( ! $this->mysql('login_read_write', 'mdp_read_write', 'host', 'base')) {
if ( ! $this->mysql('__LOG_RW__', '__PWD_RW__', '__HOST__', '__BASE__')) {
return FALSE;
}
} else {
if ( ! $this->mysql('login_read_only', 'mdp_read_only', 'host', 'base')) {
if ( ! $this->mysql('__LOG_RO__', '__PWD_RO__', '__HOST__', '__BASE__')) {
return FALSE;
}
}
......@@ -71,7 +71,7 @@ else
function mysqlforum ()
{
// Tschuut on a rien vu ...
if ( ! $this->mysql('importforum', 'importequoi', 'host', 'UTBM'))
if ( ! $this->mysql('importforum', 'importequoi', '__HOST__', 'UTBM'))
return FALSE;
}
}
......
<?php
class mysqlpg extends mysql {
function mysqlpg ($type = "ro") {
$this->mysql('petitgeni', 'dc75f4d3', 'localhost', 'petitgeni');
}
}
?>
......@@ -3,7 +3,7 @@ class mysqlpg extends mysql {
function mysqlpg ($type = "ro") {
$this->mysql('login_petit_geni', 'mdp_petit_geni', 'host', 'base');
$this->mysql('__LOG_RO__', '__PWD_RO__', '__HOST__', '__BASE__');
}
}
......
<?php
/* Copyright 2012
* - Antoine Tenart <atenart at n0 dot pe>
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
require_once("globals.inc.php");
function redis_open_connection ()
{
try {
$redis = new Redis ();
$redis->pconnect ('192.168.2.219');
$redis->auth ('plsqc');
return $redis;
} catch (Exception $e) {
if($GLOBALS['taiste'])
echo $e;
return NULL;
}
}
?>
......@@ -28,7 +28,7 @@ function redis_open_connection ()
try {
$redis = new Redis ();
$redis->pconnect ('192.168.2.219');
$redis->auth ('mdp_redis');
$redis->auth ('__REDIS_PWD__');
return $redis;
} catch (Exception $e) {
if($GLOBALS['taiste'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment