Bei diesem Code von mir wird ein cookie gesetzt sobald der sound abgespielt wurde.
Zuletzt modifiziert von Ithron am 02.01.2008 - 05:04:15
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
echo '<embed src="include/usersounds/'.$_SESSION['authid'].'.mp3" hidden="true" loop="false" autostart="true" height="0" width="0">';
echo '<embed src="include/usersounds/'.$_SESSION['authid'].'.wav" hidden="true" loop="false" autostart="true" height="0" width="0">';
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); $nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; } else { $nachrichten_link = ''; } if ( $_COOKIE['soundplayed']!="1" ) { $pfad = 'include/usersounds/'.$_SESSION['authid']; if(file_exists($pfad.'.mp3') $src = $pfad.'.mp3'; else $src = $pfad.'.wav'; echo '<embed src="'.$src.'" hidden="true" loop="false" autostart="true" height="0" width="0">'; setcookie("soundplayed","1"); } $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?user-regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); $nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; } else { $nachrichten_link = ''; } if ( $_COOKIE['soundplayed']!="1" ) { mt_srand((double)microtime()*10000000); $anfang = '1'; // Anfangsdatei (1.mp3) $ende = '20'; // Letzte Datei mit der höchsten Nummer (20.mp3) $file = mt_rand($anfang, $ende); $pfad = 'include/usersounds/'.$file; if(file_exists($pfad.'.mp3') $src = $pfad.'.mp3'; else $src = $pfad.'.wav'; echo '<embed src="'.$src.'" hidden="true" loop="false" autostart="true" height="0" width="0">'; setcookie("soundplayed","1"); } $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?user-regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
$pfad = 'include/usersounds/'.$_SESSION['authname'].$file;
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); $nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; } else { $nachrichten_link = ''; } if ( $_COOKIE['soundplayed']!="1" ) { mt_srand((double)microtime()*10000000); $anfang = '1'; // Anfangsdatei (1.mp3) $ende = '20'; // Letzte Datei mit der höchsten Nummer (20.mp3) $file = mt_rand($anfang, $ende); $pfad = 'include/usersounds/'.$file; if(file_exists($pfad.'.mp3')) $src = $pfad.'.mp3'; else $src = $pfad.'.wav'; echo '<embed src="'.$src.'" hidden="true" loop="false" autostart="true" height="0" width="0">'; setcookie("soundplayed","1"); } $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?user-regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 35 in /var/www/html/include/includes/func/db/mysql.php on line 54 Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/include/includes/func/db/mysql.php:54) in /var/www/html/include/boxes/login.php on line 28
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); $nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; } else { $nachrichten_link = ''; } if ( $_COOKIE['soundplayed']!="1" ) { echo '<embed src="include/usersounds/'.$_SESSION['authname'].'.mp3" hidden="true" loop="false" autostart="true" height="0" width="0">'; setcookie("soundplayed","1"); } $erg=db_query('SELECT * FROM prefix_kasse_beitraege WHERE uid='.$_SESSION['authid']); if(@db_num_rows($erg)==1){ $row=db_fetch_assoc($erg); $payedto= mktime(0, 0, 0, date ("m",$row['date'])+$row['zyklus'] , date ("d",$row['date']), date("Y",$row['date'])); $prewarn= mktime(0, 0, 0, date ("m") , date ("d")+20, date("Y")); $warn= mktime(0, 0, 0, date ("m") , date ("d")+7, date("Y")); $alert= mktime(0, 0, 0, date ("m") , date ("d")+2, date("Y")); $payedto2=date("d.m.Y",$payedto); if($payedto<time()){ $beitrag='<div style="color:#9F0000;"><font face="_sans" size="2"><b>Beitrag war zu zahlen am '.$payedto2.'</b></font></div>'; } elseif($payedto>time() AND $payedto<=$alert){ $beitrag='<div style="color:#FF0033;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$warn){ $beitrag='<div style="color:#FF7F00;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$prewarn){ $beitrag='<div style="color:#5CE72E;">Beitrag ist bezahlt bis '.$payedto2.'</div>'; } elseif($payedto>time()){ $beitrag='<div style="color:#5d5d5d;">Beitrag ist bezahlt bis '.$payedto2.'</div>'; } } else{ $beitrag=''; } $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'BEITRAG' , $beitrag ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?user-regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
<?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $tpl = new tpl ( 'user/boxen_login.htm' ); if ( loggedin() ) { if ( user_has_admin_right($menu,false) ) { $tpl->set ( 'ADMIN', '<a class="box" href="admin.php?admin">'.$lang['adminarea'].'</a>' ); } else { $tpl->set ( 'ADMIN', '' ); } if ( $allgAr['Fpmf'] == 1 ) { $erg = db_query("SELECT COUNT(id) FROM `prefix_pm` WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid']); $check_pm = db_result($erg,0); $nachrichten_link = '<a class="box" href="index.php?forum-privmsg">'.$lang['messages'].'</a> ('.$check_pm.')<br>'; } else { $nachrichten_link = ''; } if ( $_COOKIE['soundplayed']!="1" ) { echo '<embed src="include/usersounds/'.$_SESSION['authname'].'.mp3" hidden="true" loop="false" autostart="true" height="0" width="0">'; $_COOKIE['soundplayed'] = 1; } $erg=db_query('SELECT * FROM prefix_kasse_beitraege WHERE uid='.$_SESSION['authid']); if(@db_num_rows($erg)==1){ $row=db_fetch_assoc($erg); $payedto= mktime(0, 0, 0, date ("m",$row['date'])+$row['zyklus'] , date ("d",$row['date']), date("Y",$row['date'])); $prewarn= mktime(0, 0, 0, date ("m") , date ("d")+20, date("Y")); $warn= mktime(0, 0, 0, date ("m") , date ("d")+7, date("Y")); $alert= mktime(0, 0, 0, date ("m") , date ("d")+2, date("Y")); $payedto2=date("d.m.Y",$payedto); if($payedto<time()){ $beitrag='<div style="color:#9F0000;"><font face="_sans" size="2"><b>Beitrag war zu zahlen am '.$payedto2.'</b></font></div>'; } elseif($payedto>time() AND $payedto<=$alert){ $beitrag='<div style="color:#FF0033;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$warn){ $beitrag='<div style="color:#FF7F00;">Beitrag ist zu zahlen am '.$payedto2.'</div>'; } elseif($payedto>time() AND $payedto<=$prewarn){ $beitrag='<div style="color:#5CE72E;">Beitrag ist bezahlt bis '.$payedto2.'</div>'; } elseif($payedto>time()){ $beitrag='<div style="color:#5d5d5d;">Beitrag ist bezahlt bis '.$payedto2.'</div>'; } } else{ $beitrag=''; } $tpl->set ( 'SID' , session_id() ); $tpl->set ( 'NACHRICHTEN' , $nachrichten_link ); $tpl->set ( 'BEITRAG' , $beitrag ); $tpl->set ( 'NAME', $_SESSION['authname'] ); $tpl->out (0); } else { if (empty($_POST['login_name'])) { $_POST['login_name'] = 'Nickname'; } if (empty($_POST['login_pw'])) { $_POST['login_pw'] = 'ääääääää'; } $regist = ''; if ( $allgAr['forum_regist'] == 1 ) { $regist = ' <a href="index.php?user-regist">Regist</a>'; } $tpl->set_ar_out ( array ( 'regist' => $regist, 'wdlink' => '?'.$allgAr['smodul'], 'PASS' => $_POST['login_pw'], 'NAME' => $_POST['login_name'] ) , 1 ); } unset($tpl); ?>
function check_for_pm_popup () { # opt_pm_popup # opt_pm_popup if ($GLOBALS["incdatei"] != 'privmsg.php' AND 1 == db_result(db_query("SELECT COUNT(*) FROM prefix_user where id = ".$_SESSION['authid']." AND opt_pm_popup = 1"),0,0) AND 1 <= db_result(db_query("SELECT COUNT(*) FROM prefix_pm WHERE gelesen = 0 AND status < 1 AND eid = ".$_SESSION['authid'] ),0) ) { $anfang = '1'; // Anfangsdatei (1.mp3) $ende = '1'; // Letzte Datei mit der höchsten Nummer (20.mp3) $file = mt_rand($anfang, $ende); $pfad = 'include/pmsounds/'.$file; if(file_exists($pfad.'.mp3')) $src = $pfad.'.mp3'; else $src = $pfad.'.wav'; echo '<embed src="'.$src.'" hidden="true" loop="false" autostart="true" height="0" width="0">'; $x = <<< html <script language="JavaScript" type="text/javascript"><!-- function closeNewPMdivID () { document.getElementById("newPMdivID").style.display = "none"; } //--></script> <div id="newPMdivID" style="position:absolute; top:200px; left:300px; display:inline; width:200px;"> <table width="100%" class="border" border="0" cellspacing="1" cellpadding="4"> <tr> <td class="Cdark" align="left"> <a href="javascript:closeNewPMdivID()"><img style="float:right; border: 0" src="include/images/icons/del.gif" alt="schliessen" title="schliessen"></a> <b>neue private Nachricht</b> Bitte schau in deinen <a href="?forum-privmsg">Posteingang</a>. Damit dieses Fenster dauerhaft verschwindet musst du alle neuen Nachrichten lesen, oder die Option in deinem <a href="?user-profil">Profil</a> abschalten. </td> </tr> </table> </div> html; return ($x); } }
Geschlossen | ||
Zurück zu Module und Modifikationen |