Settings.php

Started by Maquet-Hist, May 18, 2007, 11:34:43 AM

Previous topic - Next topic

Maquet-Hist

bonjour
je n'ai plus acces a mon forum  depuis 2 mois
http://maquet.hist.free.fr/forum
j'ai un souci apparement avec : Settings.php
QuoteWarning: file_exists() [function.file-exists]: Unable to access /mnt/136/sdb/1/0/maquet.hist/forum in /mnt/151/free.fr/1/0/maquet.hist/forum/Settings.php on line 56

Warning: file_exists() [function.file-exists]: Unable to access /mnt/136/sdb/1/0/maquet.hist/forum/Sources in /mnt/151/free.fr/1/0/maquet.hist/forum/Settings.php on line 58
session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /mnt/151/free.fr/1/0/maquet.hist/forum/Settings.php:56)
voici mon : Settings.php
Quote<?php
/**********************************************************************************
* Settings.php&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *
***********************************************************************************
* SMF: Simple Machines Forum&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *
* Open-Source Project Inspired by Zef Hemel ([email protected])&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *
* =============================================================================== *
* Software Version:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SMF 1.1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*
* Software by:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Simple Machines (http://www.simplemachines.org)&nbsp; &nbsp; &nbsp;*
* Copyright 2006 by:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Simple Machines LLC (http://www.simplemachines.org) *
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2001-2006 by:&nbsp; &nbsp; &nbsp;Lewis Media (http://www.lewismedia.com)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*
* Support, News, Updates at:&nbsp; http://www.simplemachines.org&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under&nbsp; &nbsp;*
* the terms of the provided license as published by Simple Machines LLC.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*
* This program is distributed in the hope that it is and will be useful, but&nbsp; &nbsp; &nbsp; *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY&nbsp; &nbsp; *
* or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*
* See the "license.txt" file for details of the Simple Machines license.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *
* The latest version can always be found at http://www.simplemachines.org.&nbsp; &nbsp; &nbsp; &nbsp; *
**********************************************************************************/


########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable!&nbsp; Change it to 0 to fix it.
$maintenance = 0;&nbsp; &nbsp; &nbsp; # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode';&nbsp; &nbsp; &nbsp; # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';&nbsp; &nbsp; &nbsp; # Description of why the forum is in maintenance mode.

########## Forum Info ##########
$mbname = 'My Community';&nbsp; &nbsp; &nbsp; # The name of your forum.
$language = 'english';&nbsp; &nbsp; &nbsp; # The default language file set for the forum.
$boardurl = 'http://127.0.0.1/smf';&nbsp; &nbsp; &nbsp; # URL to your forum's folder. (without the trailing /!)
$webmaster_email = '[email protected]';&nbsp; &nbsp; &nbsp; # Email address to send emails from. (like [email protected].)
$cookiename = 'SMFCookie11';&nbsp; &nbsp; &nbsp; # Name of the cookie to set for authentication.

########## Database Info ##########
$db_server = 'localhost';
$db_name = 'smf';
$db_user = 'root';
$db_passwd = '';
$db_prefix = 'smf_';
$db_persist = 0;
$db_error_send = 1;

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = dirname(__FILE__);&nbsp; &nbsp; &nbsp; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = dirname(__FILE__) . '/Sources';&nbsp; &nbsp; &nbsp; # Path to the Sources directory.

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 0;

if (file_exists(dirname(__FILE__) . '/install.php'))
&nbsp; &nbsp;header('Location: http://' . (empty($_SERVER['HTTP_HOST']) ? $_SERVER['SERVER_NAME'] . (empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']) : $_SERVER['HTTP_HOST']) . (strtr(dirname($_SERVER['PHP_SELF']), '\\', '/') == '/' ? '' : strtr(dirname($_SERVER['PHP_SELF']), '\\', '/')) . '/install.php');

# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
&nbsp; &nbsp;$boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
&nbsp; &nbsp;$sourcedir = $boarddir . '/Sources';

?>
que dois je faire ?
PS : je ne connais rien à PHP et MYSQL ......... merci

LE FORUM : http://maquet.hist.free.fr/forum

david91

essaye avec le fichier repair-setting que tu trouveras ICI
tu le met a la racine de ton forum via ftp et ensuite dans ton navigateur internet tu tape http://maquet.hist.free.fr/repair-settings.php [nofollow] et tu vois si ta des erreurs et tu les corriges
voila ce que je te conseil @+

Maquet-Hist

merci

voici ce que cela me dit :

http://maquet.hist.free.fr/forum/repair_settings.php

que dois je faire maintenant ?
PS : je ne connais rien à PHP et MYSQL ......... merci

LE FORUM : http://maquet.hist.free.fr/forum

MkC

Quote from: Maquet-Hist on May 18, 2007, 12:01:48 PM
merci

voici ce que cela me dit :

http://maquet.hist.free.fr/forum/repair_settings.php

que dois je faire maintenant ?
Je te signale que l'on voit en clair le mot de passe de ta base de données, c'est carrément dangereux ce que tu fais là.....

Maquet-Hist

salut

ok mais pour mon mot de passe je peux le changer
mon souci est comment remettre le forum en route ?
http://maquet.hist.free.fr/forum/
voici le message d'erreur
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

que dois je faire ?
PS : je ne connais rien à PHP et MYSQL ......... merci

LE FORUM : http://maquet.hist.free.fr/forum

MkC

Quote from: Maquet-Hist on May 19, 2007, 11:36:00 AM
salut

ok mais pour mon mot de passe je peux le changer
mon souci est comment remettre le forum en route ?
http://maquet.hist.free.fr/forum/
voici le message d'erreur
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

que dois je faire ?
Marquet si tu as un peu de temps il me faut:
-> passe et login ftp
-> passe et login admin du forum
tout ça par mp et surtout pas ici dans un post
vires le fichier repair_settings
Je vais te le remettre en marche mais fait attention à ce que tu postes sur les forums.

Maquet-Hist

salut

je t'envoie tout çà par MP ok
merci pour ton aide
PS : je ne connais rien à PHP et MYSQL ......... merci

LE FORUM : http://maquet.hist.free.fr/forum

MkC


Advertisement: