// // This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. // // To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/1.0/ // // or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. // // Francais (brouillon): http://creativecommons.org/projects/international/fr/translated-license // ////////////////////////////////////////////////////////////////////////////////////////////////////// // Configuration // v0.1.0 $cfg = array( "db"=>array( "type" => "mysql", "host" => "localhost", "user" => "test", "password"=>"test", "dbb" => "lencrier"), ); #if(eregi('modemcable.+\.mc\.videotron\.ca', gethostbyaddr($_SERVER['REMOTE_ADDR']))) #{ # die("Site en maintenance."); #} // Fin de la configuration // Ne pas modifier ci-dessous! # [config begin] $cfg["type_url"] = "dom"; $cfg["admin_mail"] = "contact@journalintime.com"; $cfg["robot_mail"] = "robot@journalintime.com"; $cfg["titre"] = "Journal Intime.com"; $cfg["url"] = "http://journalintime.com/"; $cfg["url_tpl"] = "http://[ID].journalintime.com/"; $cfg["url_icon"] = "http://journalintime.com/pics/icon.png"; $cfg["print_limit"] = 1; $cfg["votes"] = TRUE; $cfg["journaux"]["public"] = TRUE; $cfg["journaux"]["prive"] = TRUE; $cfg["journaux"]["interdit"]= TRUE; $cfg["journaux"]["restreint"] = TRUE; $cfg["journaux"]["collectif"] = TRUE; $cfg["alternc"] = TRUE; $cfg["alternc_domain"] = "journalintime.com"; $cfg["alternc_path"] = "/journalintime.com/journaux/"; $cfg["inscription_libre"] = TRUE; $cfg["inscription_groupes"] = array(1,2); # [config end] function stop_sql_err($err) { global $cfg; echo "".$cfg[titre]."\n". '

Problème technique

Ce site est inacessible pour une raison technique. Merci de revenir dans quelques minutes/temps...

Vous pouvez transmettre ce problème à son webmestre: '.$cfg[admin_mail].'.

'; } function id2url($id) { $out = str_replace("[ID]",$id,$GLOBALS['cfg']['url_tpl']); return $out; } function str2html($str) { return htmlspecialchars(stripslashes($str)); } if(!$no_connexion) { if($cfg[db][type] == "mysql") { $lien = @mysql_connect($cfg[db][host],$cfg[db][user],$cfg[db][password]) or die(stop_sql_err(mysql_error())); @mysql_select_db($cfg[db][dbb],$lien) or die(stop_sql_err(mysql_error())); } else { echo "Type de base de données non-géré."; exit; } } // Un minimum de sécu... unset($cfg[db][user]); unset($cfg[db][password]); $GLOBALS[cfg] = $cfg; ?>