</body> </html><?php // GU-spezifisch! //require_once '../../../CMS/siteinfo.php'; // //$object = new siteinfo(); @mysql_close($connection); unset($connection); $connection = $object->loudless_connect_to_db(); if (!$connection) { // HTML oben schon beendet die('no connection to database'); } if (!$use_internal_db) { // only execute once per day to avoid overhead date_default_timezone_set($site->used_timezone()); $heute = date("d.m.y"); $file = 'maintenance.txt'; if (is_writable($file)) { // we open $filename in "attachemt" - mode. // pointer is at end of the file // there $somecontent will be saved later using fwrite() if (!($handle = fopen($file, "r"))) { print "Can not open file {$file}"; exit; } } else { print "File {$file} is not writeable"; } // read first 10 chars $text = fread($handle, 10);