Korrekturen PHP8

This commit is contained in:
aschwarz 2023-02-01 08:16:28 +01:00
parent a6523903eb
commit 4adf236c1a
4 changed files with 20 additions and 17 deletions

View File

@ -132,7 +132,9 @@ if($user_admin=='schwaral'){
}else{
$smarty->assign('ausgabe_ansicht', "1");
}
#echo "bnsicht.php?lid=$lid&verweis=$verweis&suchart=$suchart&inhalt_hig=$inhalt_hig<br>";
#header ("Location: ansicht.php?lid=$lid&verweis=$verweis&suchart=$suchart$suchart=$inhalt_hig");
$smarty->assign('ausgabe_lid', "$lid");
$smarty->assign('ausgabe_verweis', "$verweis");

View File

@ -15,7 +15,7 @@ $rore = strtoupper($rore);
if($art_rore == 'RE'){
$result2_rore = $db->query( "SELECT count(DISTINCT 1) Anz
$result2_rore = $db->query( "SELECT DISTINCT 1
FROM admin_rolle a, admin b, admin_rechte c, admin_rollen_user_zuord d, admin_rollen_rechte_zuord e
WHERE a.rid = d.rid
AND b.VAID = d.VAID
@ -24,7 +24,7 @@ $rore = strtoupper($rore);
AND b.user = '$user_admin_rore'
AND upper(e.admin_rolle) LIKE '$rore'" );
$row2_rore = $result2_rore->fetch_array();
if($row2_rore['Anz'] == "1"){
if($row2_rore[0] == 1){
return true;
}else{
return false;
@ -41,7 +41,8 @@ $rore = strtoupper($rore);
AND admin.user = '$user_admin_rore'" );
$row2_rore = $result2_rore->fetch_array();
if($row2_rore['Anz'] == "1"){
if($row2_rore['Anz'] == 1){
return true;
}else{
return false;

View File

@ -43,7 +43,7 @@ $row4 = $result4->fetch_array();
$smarty->assign('b_bereich', "$row4[0]");
# Publikationen
# Lehre / Erkenntnis
$result3 = $db->query("SELECT DISTINCT 1
FROM admin_rolle a, admin b, admin_rechte c, admin_rollen_user_zuord d, admin_rollen_rechte_zuord e
WHERE a.rid = d.rid
@ -177,7 +177,7 @@ while ($row7 = $result7->fetch_array())
}
$smarty->assign('table_data2', $value7);
# Publikationen
# Lehre / Erkenntnis
$query8 = "SELECT DISTINCT Beschreibung, dateiname, target
FROM admin_rolle a, admin b, admin_rechte c, admin_rollen_user_zuord d, admin_rollen_rechte_zuord e
WHERE a.rid = d.rid
@ -334,7 +334,7 @@ while ($row = $result->fetch_array()){
if($wochentag == 'Wednesday' AND $row_gd['wgd'] != '0' AND ($row['ukid'] != "25" AND $row['ukid'] != "26" AND $row['ukid'] != "22" )){
#$datum="$row[jahr]-$row[monat]-$row[tag]";
if($row[datum]==getBETTAG($row['jahr']) AND $row1[kal_bettag] == 1){ // Buß und Bettag bei Donnerstagsgemeinden auf Mittwoch legen, falls gewünscht
if($row['datum']==getBETTAG($row['jahr']) AND $row1['kal_bettag'] == 1){ // Buß und Bettag bei Donnerstagsgemeinden auf Mittwoch legen, falls gewünscht
$range .= "$row[datum]|";
}else{
$range .= date("Y-m-d", mktime(0,0,0,$row['monat'],$row['tag']+1,$row['jahr']))."|";

View File

@ -5,9 +5,9 @@
<frameset framespacing="0" border="0" frameborder="0" cols="*,305">
{if $ausgabe_ansicht == '1'}
<frame name="Banner" id='Banner' scrolling="auto" noresize target="Inhalt" src="ansicht.php?lid={$ausgabe_lid}&verweis={$ausgabe_verweis}&suchart=$suchart{$ausgabe_suchart}={$ausgabe_inhalt_hig}">
<frame name="Banner" id='Banner' scrolling="auto" noresize target="Inhalt" src="ansicht.php?lid={$ausgabe_lid}&verweis={$ausgabe_verweis}&suchart={$ausgabe_suchart}&inhalt_hig={$ausgabe_inhalt_hig}">
{else}
<frame name="Banner" id='Banner' scrolling="auto" noresize target="Inhalt" src="ansicht2.php?lid={$ausgabe_lid}&verweis={$ausgabe_verweis}&suchart=$suchart{$ausgabe_suchart}={$ausgabe_inhalt_hig}">
<frame name="Banner" id='Banner' scrolling="auto" noresize target="Inhalt" src="ansicht2.php?lid={$ausgabe_lid}&verweis={$ausgabe_verweis}&suchart={$ausgabe_suchart}&inhalt_hig={$ausgabe_inhalt_hig}">
{/if}
<frameset rows="175,*">
<frame name="lied" id='lied' scrolling="auto" src="lieder.php?ausgabe_ansicht={$ausgabe_ansicht}&lid={$ausgabe_lid}" noresize>