config file umbenant

git-svn-id: svn://svn.cccv.de/engel-system@171 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2006-11-23 17:39:05 +00:00
parent 6c52da6bf5
commit 3ea895c901
15 changed files with 20 additions and 14 deletions

View File

@ -0,0 +1,6 @@
<?php
include("./inc/funktion_db.php");
$con = mysql_connect("localhost", "user", "pass") or die ("connection failed");
$sel = mysql_select_db("tabel") or die (mysql_error());
?>

View File

@ -3,7 +3,7 @@
/****************************************************************************************************/
// INCLUDE
/****************************************************************************************************/
require_once('./inc/jabber.php');
require_once('./inc/config_jabber.php');
require_once("./inc/funktion_jabber.php");
include("./inc/config_MessegeServer.php");

View File

@ -7,7 +7,7 @@ include("./inc/funktion_db.php");
function runSQL( $SQL)
{
include( "./inc/db.php");
global $con;
// hier muesste das SQL ausgefuehrt werden...
$Erg = mysql_query($SQL, $con);
if ($Erg)
@ -27,7 +27,7 @@ function runSQL( $SQL)
function runSQL_log( $SQL, $commed)
{
include( "./inc/db.php");
global $con;
// hier muesste das SQL ausgefuehrt werden...
$Erg = db_query($SQL, $commed);
if ($Erg)

View File

@ -79,7 +79,7 @@ else //#################################################################
$Raum = $_POST["Raum"];
$ausdatum = $_POST["ausdatum"];
include ("./inc/db.php");
include ("./inc/config_db.php");
include ("./inc/config.php");
include ("./inc/secure.php");
//var wird nur gesetzt immer edit auszublenden, achtung sesion darf nicht gestart sein !!!

View File

@ -63,7 +63,7 @@
function send_message(&$message)
{
chdir(dirname(__FILE__));
require_once('../inc/jabber.php');
require_once('../inc/config_jabber.php');
if (isset($jabber_recipient) && count($jabber_recipient)) {
$jabber = new Jabber($server, $port, $username, $password, $resource);

View File

@ -2,7 +2,7 @@
function funktion_db_list($Table_Name) {
include ("./inc/db.php");
global $con;
$SQL = "SELECT * FROM `".$Table_Name."`";
$Erg = mysql_query($SQL, $con);

View File

@ -1,7 +1,7 @@
<?PHP
function noAnswer() {
include ("./inc/db.php");
global $con;
$SQL = "SELECT UID FROM Questions WHERE (Answer=\"\")";
$Res=mysql_query($SQL, $con);

View File

@ -9,8 +9,8 @@ echo "\n\n<h1>Schudle:</h1>\n";
function SaveSchedule()
{
global $RoomID, $RoomName;
global $con;
include ("./inc/db.php");
if( isset($_GET["PSIDXML"]) &&
isset($_GET["DateXML"]) &&
isset($_GET["RIDXML"]) &&

View File

@ -1,7 +1,7 @@
<?PHP
include ("./inc/error_handler.php");
include ("./inc/config.php");
include ("./inc/db.php");
include ("./inc/config_db.php");
include ("./inc/funktion_lang.php");
include ("./inc/funktion_menu.php");

View File

@ -2,7 +2,7 @@
$title = "Anmeldung zum Chaos-Engel";
$header = "";
include ("./inc/header.php");
include ("./inc/db.php");
include ("./inc/config_db.php");
include ("./inc/crypt.php");

View File

@ -2,7 +2,7 @@
$title = "Index";
$header = "Index";
include ("./inc/db.php");
include ("./inc/config_db.php");
include ("./inc/crypt.php");
session_start(); // alte Session - falls vorhanden - wiederherstellen...

View File

@ -2,7 +2,7 @@
$title = "Kommentare zu den News";
$header = "Kommentar";
include ("./inc/header.php");
include ("./inc/db.php");
include ("./inc/config_db.php");
include ("./inc/funktion_user.php");

View File

@ -1,5 +1,5 @@
<?php
include ("./inc/db.php");
include ("./inc/config_db.php");
include ("./inc/funktion_user.php");

View File

@ -1,6 +1,6 @@
<?php
include ("./inc/config.php");
include ("./inc/db.php");
include ("./inc/config_db.php");
include ("./inc/funktion_lang.php");
include ("./inc/funktion_user.php");