include ("sendeplan/inc/mysql.php");
$set1 = "SELECT * FROM onlinesupport WHERE onoff=1";
$res1 = mysqli_query($set1);
$db1 = mysqli_fetch_assoc($res1);
if ($db1[onoff]=="1")
{ echo '
'; }
else { echo '
'; }
$datum = getdate(time());
/*if ($datum['hours']>12 & $datum['hours']<22) { echo '
'; }
else { echo '
'; }*/
if ($datum['hours']==00 OR $datum['hours']>00 & $datum['hours']<12) { echo 'Guten Morgen
'.$_SESSION['authname'].' '; }
if ($datum['hours']>11 & $datum['hours']<18) { echo 'Guten Tag
'.$_SESSION['authname'].' '; }
if ($datum['hours']>17 & $datum['hours']<23 OR $datum['hours']==23) { echo 'Guten Abend
'.$_SESSION['authname'].' '; }
?>
';
$wt=array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
$zt=array("bis 0:00","bis 1:00","bis 2:00","bis 3:00","bis 4:00","bis 5:00","bis 6:00","bis 7:00","bis 8:00","bis 9:00","bis 10:00","bis 11:00","bis 12:00","bis 13:00","bis 14:00","bis 15:00","bis 16:00","bis 17:00","bis 18:00","bis 19:00","bis 20:00","bis 21:00","bis 22:00","bis 23:00","bis 0:00","bis 1:00");
$djauto = 0;
$ti = time() + 3600 + (date("I",time()) == 1 ? 3600 : 0);
$date = (int)($ti/86400);
$dat = getdate(time());
$time = (int)(($ti%86400)/3600);
$res1 = @mysql_query("SELECT * FROM sendeplan WHERE sendeplan.datum = $date AND sendeplan.zeit = $time");
if ($db1 = @mysql_fetch_assoc($res1))
{ if (($db1[picview]==0) OR ($db1[reflash]==1))
{ $set = "SELECT sendeplan. * , sendeplan.id AS sid, modo.bild AS modbild,
sendeplan.user_id AS modid, modo.benutzer AS modname FROM sendeplan LEFT JOIN user AS modo ON sendeplan.user_id=modo.id
WHERE sendeplan.datum=$date AND sendeplan.zeit <= $time AND sendeplan.zeit+sendeplan.laenge > $time AND sendeplan.user_id !=0";
$res = mysql_query($set);
if ($db = mysql_fetch_assoc($res)) {
echo 'Jetzt auf Sendung:
';
echo "
";
echo "
";
echo 'Moderator:
'.$db[modname].' ';
echo 'mit Sendung:
'.$db[sendung].' ';
}
}
}
echo "
";
*/?>
Warning : mysqli_query(): Empty query in /var/www/vhosts/hfr1.de/httpdocs/dev/include/includes/func/db/mysql.php on line 57
Aktuelle Sendung:
Sollte der öffentlich-rechtliche Rundfunk abgeschafft werden?
include("webcam/cam.config.php");
?>
echo $title ?>
echo $title ?>
$daten="webcam/uonline.txt";
$time = time();
$ip = $REMOTE_ADDR;
$ablaufzeit = "$time"-"300";
$pruefung = @file($daten);
while (list ($line_num, $line) = @each ($pruefung))
{$zeiten = explode("&&",$line);
if($zeiten[0] <= $ablaufzeit)
{$fp = fopen( "$daten", "r" );
$contents = fread($fp, filesize($daten));
fclose($fp);
$line=quotemeta($line);
$string2 = "";
$replace = ereg_replace($line, $string2, $contents);
$fh=fopen($daten, "w");
@flock($fp,2);
fputs($fh, $replace);
@flock($fp,3);
fclose($fh);}}
$ippruefung = @file($daten);
while (list ($line_num, $line) = @each ($ippruefung))
{$ips = explode("&&",$line);
if($ips[1] == $REMOTE_ADDR)
{$fp = fopen( "$daten", "r" );
$contents = fread($fp, filesize($daten));
fclose($fp);
$line=quotemeta($line);
$string2 = "";
$replace = ereg_replace($line, $string2, $contents);
$fh=fopen($daten, "w");
@flock($fp,2);
fputs($fh, $replace);
@flock($fp,3);
fclose($fh);}}
$fp = fopen("$daten", "a+");
flock($fp,2);
fputs ($fp, "$time&&$ip&&\n");
flock($fp,3);
fclose ($fp);
$anzahldaten = file($daten);
$anzahl = count($anzahldaten);
//echo "$anzahl user online";
?>
function calendarControl() {
/* locale auf Deutsch setzen PHP >= 4.3.0 */
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'deu_deu');
$currentMonth = date("n");
$currentTime = time();
// Wochentag für den 1. im Monat ermitteln
$firstWeekDay = date ( 'w', mktime ( 0, 0, 0, $currentMonth, 1, date ( 'Y' ) ) );
// Im Englischen beginnt die Wochenrechnung am Sonntag --> 0
// Daher den Wochenbeginn der nächsten Woche berechnen
$nextWeek = 7 - $firstWeekDay + 2;
// Ausgeschriebener Monat - z.B. Dezember
$year = strftime("%B", $currentTime);
echo ""; //#333399
echo date('Y');
echo " ";
// Abgekürzter Wochentag - z.B. Sa
$day = strftime("%a", $currentTime );
$calendar = "\n";
$calendar .= '' . "\n";
$calendar .= '
' . $year . '
' . "\n";
// Wochentage generieren
for ( $x = $nextWeek; $x < ($nextWeek + 7); $x++ ){
$day = strftime("%a", mktime ( 0, 0, 0, $currentMonth, $x, date ( 'Y' ) ) );
$calendar .= '
' . $day . '
' . "\n";
}
$iLimit = date ( 't', mktime ( 0, 0, 0, $currentMonth, 1,
date ( 'Y' ) ) );
// Tagesanzeige generieren
for ( $i = 1; $i <= ( $iLimit + $firstWeekDay - 1 ); $i++ ) {
$iDayOfMonth = $i - $firstWeekDay + 1;
if ( $i < $firstWeekDay ) {
// Leerzellen schreiben, bis Monatsanfang
// auf den richtigen Tag der Woche faellt.
$calendar .= '
' . "\n";
}
elseif ( $iDayOfMonth == date ( 'd' )
&& $currentMonth == date( 'n' ) ) {
// Heutigen Tag, hervorheben.
$calendar .= '
' . $iDayOfMonth . '
' . "\n";
}
else {
$calendar .= '
' . $iDayOfMonth . '
' . "\n";
}
}
$calendar .= '
' . "\n";
return $calendar;
}
echo calendarControl();
?>