// Reference: Hron
// Aplikace: databaze Necasova centra /ncmm
//
$uploaddir='../../../candidate/'; // adresar pro upload souboru
$uploadPreprints='../../preprints';
$tmp='../../tmp';
$home="http://ncmm.karlin.mff.cuni.cz/LC06052/centrum.html";
$logout="http://ncmm.karlin.mff.cuni.cz/LC06052/logout.php";
$maxlifetime=2400; // 40 min
function openmysqlserver () {
global $_database, $_dblogin, $_dbheslo, $_dbhost;
$_database = "ncmm";
$_dblogin = "ncmmuser";
$_dbheslo = "kachli4kz";
$_dbhost = "localhost";
$_spojeni = MySQL_Connect($_dbhost,$_dblogin, $_dbheslo);
if (!$_spojeni):
echo "opensqlserver: No connection to SQL server $_dbhost!"; exit;
endif;
if (!@MySQL_Select_DB($_database, $_spojeni)):
echo "opensqlserver: Select $_database failed!"; exit;
endif;
return($_spojeni);
}
?>
Document sans titre