السلام عليكم ورحمة الله وبركاتة
لدى مشكلة فى اسكريبت التلفيزيون
وهى الاسكريبت يعمل على انترنت اكسبلور بشكل جيد اما الفيرفوكس والجوجل كروم لا يعمل
وقمت باستبدال مشغل مديا بلير جديد فى ملف viewchanel.php المسئول عن عرض المشغل
ومحتواة
كود PHP:
<?php
session_start();
@header ('Content-Type:text/html;charset=windows-1256');
include("connection/config.php");
@include("product_key.php");
$check=mysql_query(" SELECT * FROM pkey");
while($stat=mysql_fetch_array($check)){
$cod=$stat['code'];
}include("cres.php");
if($cod!=$reg_code){include("key_error.php"); exit;
}
$chnlid=intval($_GET['chnl']);
$select=mysql_query("SELECT * FROM chnl WHERE id='$chnlid'");
$rows=mysql_num_rows($select);
if($rows<1){
echo"<div align='center'>
<table border='1' width='60%' cellpadding='0' height='200' bordercolorlight='#C0C0C0' bordercolordark='#C0C0C0'>
<tr>
<td height='21' bgcolor='#CC0000'>
<p align='center'> <b>
<font face='Tahoma' size='2' color='#FFFFFF'>البث المباشر</font></b></td>
</tr>
<tr>
<td bgcolor='#ECE9D8'>
<p align='center'><b><font face='Tahoma' size='2' color='#CC0000'>لم
لا يمكن عرض القناة اذا تكررت هذه المشكلة يرجى ابلاغ الادارة</font></b></td>
</tr>
</table>
</div>";
}else{
echo"<div align='center'>
<table border='0' width='100%' height='100%' cellspacing='0' cellpadding='0'>
<tr>
<td height='19' bgcolor='#CC0000' width='100%'>
<p align='center'><b><font face='Tahoma' size='2' color='#FFFFFF'>
<span lang='ar-eg'>قائمة البث المباشر</span></font></b></td>
</tr>
<tr>
<td bgcolor='#ECE9D8' width='33%'>
<div align='center'><table border='0' cellspacing='0' cellpadding='0'>
<tr>";
//<><><><><><><><><><><><><><><><>
$val=mysql_fetch_array($select);
$nam=$val['nam'];
$sip=$val['ip'];
$stat=$val['stat'];
$view=$val['view'];
if($stat=="2"){echo"<div align='center'>
<table border='1' width='60%' cellpadding='0' height='200' bordercolorlight='#C0C0C0' bordercolordark='#C0C0C0'>
<tr>
<td height='21' bgcolor='#CC0000'>
<p align='center'> <b>
<font face='Tahoma' size='2' color='#FFFFFF'>$nam</font></b></td>
</tr>
<tr>
<td bgcolor='#ECE9D8'>
<p align='center'><b><font face='Tahoma' size='2' color='#CC0000'>
هذه القناة مغلقة في الوقت الحالي من لوحة التحكم</font></b></td>
</tr>
</table>
</div>"; exit;}
$user=$_SESSION['name'];
if($view=="2" and $user==""){
echo"<div align='center'>
<table border='0' width='90%' cellspacing='0' cellpadding='0'>
<tr>
<td>
<div align='center'><span lang='ar-eg'><b>
<font face='Tahoma' size='2' color='#CC0000'>هذه القناة ليست
مجانية برجاء تسجيل الدخول أولا لتتمكن من مشاهدتها</font></b></span></td>
</tr>
<tr>
<td>
<div align='center'> <div align='center'>
<table border='0' width='49%' bordercolor='#CC0000' cellpadding='0' height='217'>
<tr>
<td bgcolor='#FFFFFF'>
<div align='center'>
<table border='0' width='100%' cellspacing='0' cellpadding='0' height='141'>
<tr>
<td width='25%' height='109' rowspan='2'>
<div align='center'>
<img border='0' src='style/icons/unlock.gif' width='109' height='109'></td>
<td width='75%' height='90'>
<div align='center'><font face='Tahoma'>
<span lang='ar-eg'>أدخل اسم المستخدم وكلمة المرور</span></font></td>
</tr>
<tr>
<td width='75%' height='19'>
<div align='center'><?php echo'$error'; ?></td>
</tr>
<tr>
<td colspan='2' height='19'>
<hr color='#C0C0C0' size='1'></td>
</tr>
<tr>
<td height='19'>
<div align='center'>
<p style='margin-top: 0; margin-bottom: 8px'><b><font face='Tahoma' size='2'>
Username :</font></b></td>
<td height='19'>
<div align='center'><form method=post action=login.php>
<div align='center'>
<p style='margin-top: 0; margin-bottom: 0'>
<input type=text name=user size='47' style='border: 1px solid #808000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; font-size:10px; font-family:Tahoma; font-weight:bold'>
</p>
</p>
</td>
</tr>
<tr>
<td>
<div align='center'>
<p style='margin-top: 0; margin-bottom: 8px'><b><font face='Tahoma' size='2'>
Password</font> :</b></td>
<td>
<div align='center'>
<p style='margin-top: 0; margin-bottom: 0'>
<input type=password name=pass size='47' style='border: 1px solid #808000; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; font-size:10px; font-family:Tahoma; font-weight:bold'></td>
</tr>
</table>
<div align='left'>
<p style='margin-top: 10px'>
<input type=submit name=go value=LoGiN style='font-size: 10px; font-family: Tahoma; font-weight: bold; border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px'></form></div>
</td>
</tr>
</table>
<div align='left'></p></td>
</tr>
</table>
</div>"; exit;}elseif($view=="2" and $name!=""){
$chk=mysql_query("SELECT * FROM chnluser WHERE chnl='$chnlid' and nam='$name'");
$row=mysql_num_rows($chk);
if($row<1){echo"<div align='center'>
<table border='1' width='60%' cellpadding='0' height='200' bordercolorlight='#C0C0C0' bordercolordark='#C0C0C0'>
<tr>
<td height='21' bgcolor='#CC0000'>
<p align='center'> <b>
<font face='Tahoma' size='2' color='#FFFFFF'>$nam</font></b></td>
</tr>
<tr>
<td bgcolor='#ECE9D8'>
<p align='center'><b><font face='Tahoma' size='2' color='#CC0000'>
عفوا ليس لديك الصلاحية لمشاهدة هذه القناة يرجى مراجعة الادارة في هذه الأمر</font></b></td>
</tr>
</table>
</div>";}
else{echo"<div align='center'>
<table border='1' width='60%' cellpadding='0' height='230' bordercolorlight='#C0C0C0' bordercolordark='#C0C0C0'>
<tr>
<td height='21' bgcolor='#CC0000'>
<p align='center'> <b>
<font face='Tahoma' size='2' color='#FFFFFF'>$nam</font></b></td>
</tr>
<tr>
<td bgcolor='#ECE9D8'>
<p align='center'><div align='center'>
<object classid='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6' id='WindowsMediaPlayer1' width='575' height='406'>
<param name='URL' value='$sip'>
<param name='rate' value='1'>
<param name='balance' value='0'>
<param name='currentPosition' value='0'>
<param name='defaultFrame' value>
<param name='playCount' value='1'>
<param name='autoStart' value='-1'>
<param name='currentMarker' value='0'>
<param name='invokeURLs' value='-1'>
<param name='baseURL' value>
<param name='volume' value='50'>
<param name='mute' value='0'>
<param name='uiMode' value='full'>
<param name='stretchToFit' value='0'>
<param name='windowlessVideo' value='0'>
<param name='enabled' value='-1'>
<param name='enableContextMenu' value='-1'>
<param name='fullScreen' value='0'>
<param name='SAMIStyle' value>
<param name='SAMILang' value>
<param name='SAMIFilename' value>
<param name='captioningID' value>
<param name='enableErrorDialogs' value='0'>
</object>
</div>
</td>
</tr>
</table>
</div>";}
}elseif($view=="1"){
echo"
<div align='center'>
<table border='1' width='60%' cellpadding='0' height='230' bordercolorlight='#C0C0C0' bordercolordark='#C0C0C0'>
<tr>
<td height='21' bgcolor='#CC0000'>
<p align='center'> <b>
<font face='Tahoma' size='2' color='#FFFFFF'>$nam</font></b></td>
</tr>
<tr>
<td bgcolor='#ECE9D8'>
<p align='center'><div align='center'>
<object classid='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6' id='WindowsMediaPlayer1' width='575' height='406'>
<param name='URL' value='$sip'>
<param name='rate' value='1'>
<param name='balance' value='0'>
<param name='currentPosition' value='0'>
<param name='defaultFrame' value>
<param name='playCount' value='1'>
<param name='autoStart' value='-1'>
<param name='currentMarker' value='0'>
<param name='invokeURLs' value='-1'>
<param name='baseURL' value>
<param name='volume' value='50'>
<param name='mute' value='0'>
<param name='uiMode' value='full'>
<param name='stretchToFit' value='0'>
<param name='windowlessVideo' value='0'>
<param name='enabled' value='-1'>
<param name='enableContextMenu' value='-1'>
<param name='fullScreen' value='0'>
<param name='SAMIStyle' value>
<param name='SAMILang' value>
<param name='SAMIFilename' value>
<param name='captioningID' value>
<param name='enableErrorDialogs' value='0'>
</object>
</div>
</td>
</tr>
</table>
</div>";}
//<><><><><><><><><><><><><><><><>
echo"</tr></table></div>
</td>
</tr>
</table>
</div>";
}
?>
وعند استبدال مشغل المديا بلير الجديد
كود PHP:
<p>
<a onclick="PlayIt(this.href);return false" href="$sip">
<span id="music">
<object codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" height="315" width="325" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="URL" value="WindowsMediaPlayer11">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="0">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="-1">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="true" uimode="full" src="$sip" autostart="true" loop="true" height="315" width="325"></object>
</span></a></p>
ياتى الخطاء التالى
[PHP]Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in G:\megala\AppServ\www\elnor1\viewchanel.php on line 209[/PHP
]
برجاء ايجاد حل لتلك المشكلة