var Topic_new = -1; var Topic_hot = -1; var Topic_locked = -1; var Topic_arch = -1; var Topic_fixed = -1; var Topic_moderate = -1; var Topic_deleted = -1; var Topic_hidden = -1; var Topic_survey = -1; var Topic_edit = -1; var Topic_HideImages = -1; var Topic_ApproveImages = -1; var Topic_HideLinks = -1; var Topic_ApproveLinks = -1; var Topic_cccamVps = 0; var Forum_Hide = false; var splitIndex = 0; var splitArray = new Array(); function getFileSize(fsize) { if (fsize>=1048576) return "" + (100*fsize-(100*fsize%1048576))/(1048576*100) + " mb" else if (fsize>=1024) return "" + (100*fsize-(100*fsize%1024))/(1024*100) + " kb" else return "" + fsize + " b" } function getTextAjax(url,callback,icon_loading) { if (window.XMLHttpRequest) { var ajax = new XMLHttpRequest(); } else {// code for IE6, IE5 var ajax = new ActiveXObject("Microsoft.XMLHTTP"); } ajax.open("get",url); ajax.onreadystatechange = function() { if(ajax.readyState == 4 && ajax.status == 200) { if (document.getElementById(icon_loading)) document.getElementById(icon_loading).style.visibility = "hidden"; callback(ajax.responseText); delete ajax; ajax = null; }else{ if (document.getElementById(icon_loading)) document.getElementById(icon_loading).style.visibility = "visible"; }} ajax.send(null); } function getExtractChannels(jxText){ if (jxText.length>0){ eval(jxText); var x = 0; while ((x < Channels.length) && (Channels[x] !="")) { document.getElementById(Channels[x++]).innerHTML=""+Channels[x++]+"" } } } function getExtractIptvExp(jxText){ if (jxText.length>0){ eval(jxText); var x = 0; while ((x < myLines.length) && (myLines[x] !="")) { document.getElementById(myLines[x++]).innerHTML=""+(myLines[x]=="0"?"غير مفعل":(myLines[x]=="1"?"إنتهى":myLines[x]))+""; document.getElementById("info_"+myLines[x-1]).innerHTML=""+(myLines[x]=="0"?"- إضغط هنا لتفعيل السطر -":"")+"" if (Topic_locked<0&&(memberLevel==5||memberID==13)&&myLines[x]!="1")document.getElementById("info2_"+myLines[x-1]).innerHTML="  "; x++; } } } function showADS(tid){ if (document.all["cell_"+tid].offsetHeight>540) document.getElementById("d_ads").innerHTML="لإزالة هذا الإعلان
يرجى تسجيل الدخول
"; else if (document.all["cell_"+tid].offsetHeight>180) document.getElementById("d_ads").innerHTML="لإزالة هذا الإعلان
يرجى تسجيل الدخول
"; } function getVpsStat(jxText){ if (jxText.length>0){ var splitArray = jxText.split(","); var id=splitArray[0]; document.getElementById('s_vstat'+id).innerHTML=""+splitArray[1]+""; if (splitArray[1]=="disabled" || splitArray[1]=="online" || splitArray[1]=="offline") document.getElementById('s_vcmd'+id).innerHTML=(memberLevel==5?(splitArray[1]=="disabled"?"":"  "):"")+(splitArray[1]=="offline"?"":"")+(splitArray[1]=="online"?"  ":"")+(memberLevel==5?"  ":""); } } function getVpsBoot(jxText){ if (jxText.length>0){ var splitArray = jxText.split(","); getVpsStat(splitArray[0]+","+(splitArray[1]=="ok"?"online":splitArray[1])); }} function getVpsShutdown(jxText){ if (jxText.length>0){ var splitArray = jxText.split(","); getVpsStat(splitArray[0]+","+(splitArray[1]=="ok"?"offline":splitArray[1])); }} function getVpsReboot(jxText){ if (jxText.length>0){ var splitArray = jxText.split(","); getVpsStat(splitArray[0]+","+(splitArray[1]=="ok"?"online":splitArray[1])); }} function getVpsSusp(jxText){ if (jxText.length>0){ var splitArray = jxText.split(","); getVpsStat(splitArray[0]+","+(splitArray[1]=="ok"?"disabled":splitArray[1])); }} function getVpsUnsusp(jxText){ if (jxText.length>0){ var splitArray = jxText.split(","); getVpsStat(splitArray[0]+","+(splitArray[1]=="ok"?"online":splitArray[1])); }} function bootVps(id){ if (confirm("هل تريد فعلا تشغيل الـ vps")){ document.getElementById('s_vstat'+id).innerHTML=""; getTextAjax("ajax.asp?get=vps_boot&id="+id+"&"+Date(),getVpsBoot,"i_v"+id); }} function shutdownVps(id){ if (confirm("هل تريد فعلا إيقاف تشغيل الـ vps")){ document.getElementById('s_vstat'+id).innerHTML=""; getTextAjax("ajax.asp?get=vps_shutdown&id="+id+"&"+Date(),getVpsShutdown,"i_v"+id); }} function rebootVps(id){ if (confirm("هل تريد فعلا إعادة تشغيل الـ vps")){ document.getElementById('s_vstat'+id).innerHTML=""; getTextAjax("ajax.asp?get=vps_reboot&id="+id+"&"+Date(),getVpsReboot,"i_v"+id); }} function suspVps(id){ if (confirm("هل تريد فعلا تجميد الـ vps")){ document.getElementById('s_vstat'+id).innerHTML=""; getTextAjax("ajax.asp?get=vps_suspend&id="+id+"&"+Date(),getVpsSusp,"i_v"+id); }} function unsuspVps(id){ if (confirm("هل تريد فعلا تفعيل الـ vps")){ document.getElementById('s_vstat'+id).innerHTML=""; getTextAjax("ajax.asp?get=vps_unsuspend&id="+id+"&"+Date(),getVpsUnsusp,"i_v"+id); }} function view_vps(id,topic,cp,type,host,os,ip,pass,nd,exp,rest,notes,autoexp){ document.write("" + (memberLevel==5?""+id+""+(topic.length>0?""+topic+"":" ")+"":"") + ""+type+"" + ""+ip+"" + ""+os+"" + ""+host+"" + ""+cp+"" + ""+exp+"" + (memberLevel==5?""+(autoexp=="0"?"لا":"نعم")+"":"") + "=0?"blue\">إنتهى ("+rest.replace('-','')+")":"black\"> "+rest+" ")+"" + (memberLevel==5?""+nd+""+notes+"":"") + "" + " "+(memberLevel==5?"  "+(Topic_locked<0?"  ":""):"")+""); getTextAjax("ajax.asp?get=vps_status&id="+id+"&"+Date(),getVpsStat,"i_v"+id); } function view_cpanel(id,topic,user,pass,email,notes){ document.write("" + (memberLevel==5?""+(topic.length>0?""+topic+"":" ")+"":"") + ""+user+"" + "************" + ""+email+"" + (memberLevel==5?""+notes+"  "+(Topic_locked<0?"  ":"")+"":"")+""); } function view_iptv(id,id2,topic,user,pass,notes,type,memb){ document.write(""+(type==1?"مدفوع":"تجريبي")+"" + (memberLevel==5||memberID==13?""+(topic.length>0?""+topic+"":" ")+"":"") + ""+user+"" + ""+pass+"" + "" + (memberLevel==5||memberID==13?""+notes+"":"") + ""+(memberLevel==5||memberID==13?"    ":"")+"");//(memberLevel==5||memberID==13?""+notes+"  "+(Topic_locked<0&&(memberLevel==5||memberID==13)?"  ":"")+"":"")+" } function view_cccam(id,topic,user,pass,exp,rest,perm,notes,type){ document.write(""+(type==4?"مدفوع":"تجريبي")+"" + (memberLevel==5||memberID==5?""+(topic.length>0?""+topic+"":" ")+"":"") + ""+user+"" + ""+pass+"" + ""+exp+"" + "=0?"blue\">إنتهى ("+rest.replace('-','')+")":"black\">"+rest)+"" + (memberLevel==5||memberID==5?""+(perm==1?"نعم":"لا")+"":"") + (memberLevel==5||memberID==5||findAllow(memberID)?""+notes+""+(memberLevel==5||memberID==5?""+(rest.indexOf('-')>=0?"":"")+"":"")+"  "+(Topic_locked<0&&(memberLevel==5||memberID==5)?"  ":"")+"":"")+""); } function view_demand(num,id,member,name,date,data,rcount,dcount){ document.write(""+num+""+GetM(name)+"" + ""+formatDate(date)+"" + ""+dcount+"" + (topicAuthor==memberID||moderate?""+rcount+"":"") + ""+(topicAuthor!=memberID?(data==""?"في الإنتظار ...":(data=="@@"?"مستفيد من البيانات":data)):(data!=""?data:""))+""+(data==""?(topicAuthor==memberID||member==memberID?"حذف الطلب":""):(topicAuthor==memberID||moderate?"حذف الطلب":""))+"");//   } function deleteSpace(val){ return(val.replace(/^[\s\r\n\t]+/g,'').replace(/[\s\r\n\t]+$/g,'')); } function sendData(){ var inputs = document.getElementsByTagName('input'); var i=0;var i2=0; for(i=0;i0&&inputs[i].name.substring(0,4)=="data") i2++; if (i2==0){alert("يرجى إدخال البيانات لكي يتم إرسالها");return;} senddata.submit(); } function splits(string,text) { var strLength = string.length, txtLength = text.length; if ((strLength == 0) || (txtLength == 0)) return; var i = string.indexOf(text); if ((!i) && (text != string.substring(0,txtLength))) return; if (i == -1) { splitArray[splitIndex++] = string; return; } splitArray[splitIndex++] = string.substring(0,i); if (i+txtLength < strLength) splits(string.substring(i+txtLength,strLength),text); return; } // write table start for forum topics table function t_table_open() { document.write("\r\n\
\r\n\ \r\n"); } // write table end for forum topics table function t_table_close() { document.write("
"); } // write header for forum topics table function t_header() { } // convert posts to starts function posts_to_stars(m_posts) { if (m_posts >= 1000) return 10 ; else if (m_posts >= 700) return 9 ; else if (m_posts >= 500) return 8 ; else if (m_posts >= 300) return 7 ; else if (m_posts >= 200) return 6 ; else if (m_posts >= 120) return 5 ; else if (m_posts >= 80) return 4 ; else if (m_posts >= 40) return 3 ; else if (m_posts >= 20) return 2 ; else if (m_posts >= 10) return 1 ; else return 0 ; } function findAllow(id){ var x = 0; while ((x < ListAllowed.length) && (ListAllowed[x] != 0)) { if (ListAllowed[x]==id) return(true); x ++; } return(false); } function findEdit(id) { var x = 0; while ((x < edits.length) && (edits[x] != 0)) { if (edits[x] == id) return(edits[x+1]); x += 2; } return(""); } // write footer for forum topics table function t_footer() { } var replyCounter = 0; function t(flags,id,aid,adate,replies,reads,editedby,lmsg,adv,temp) { var cl = "normal"; var awards = 0; var isonline = 0; var days = 0; var stars = 0; var posts = 0; var country = ""; var title = ""; var photo = ""; var sig = ""; var author = ""; var Tlevel = 1; var plaque = ""; var gender = 0; var x = findMemberDetails(aid); if (x >= 0) { x++; author = authors[x++]; Tlevel = authors[x++]; awards = authors[x++]; if (Tlevel >= 2) awards = 0 ; isonline = authors[x++]; days = authors[x++]; stars = authors[x++]; posts = authors[x++]; country = authors[x++]; title = authors[x++]; photo = authors[x++]; plaque = authors[x++]; gender = authors[x++]; if (Tlevel == 2) title = getModTitle(aid,gender)+title; stars = posts_to_stars(posts); sig = findMemberSignature(aid); sig = sig.replace(/= 0) editedby=findEdit(-1*id); else editedby=findEdit(id); var bgcolor1 = "#ddefdd"; var bgcolor2 = "#d5e3da"; //if (Tistopic >= 0 && lmsg.length>1 && Thidden<0 && Tdeleted<0 && Tmoderate<0 && !Forum_Hide) lmsg = lmsg+"

"; if ((Tdeleted >= 0) || (Theld >= 0)) { bgcolor1 = "#ddefdd"; bgcolor2 = "#ffdeff"; } else if (Thidden >= 0) { bgcolor1 = "#ddefdd"; bgcolor2 = "#c9d1a5"; } //else if (Tedit >= 0) //{ bgcolor1 = "#ddefdd"; bgcolor2 = "#f0f065"; } else if (Tmoderate >= 0) { bgcolor1 = "#ddefdd"; bgcolor2 = "#ddddff"; } else if (Tistopic >= 0) { bgcolor1 = "#ddefdd"; bgcolor2 = "#d9fae1"; } else if ((replyCounter++ % 2) == 1) { bgcolor1 = "#ddefdd"; bgcolor2 = "#ffffec"; } if (aid == 0) aid = memberID; if (aid == memberID) author = memberName; var topicowner = (aid == memberID); if (aid != memberID && Forum_Hide) { bgcolor1 = " bgcolor=" + bgcolor1 + " background="+IconURL+"?j="+bgcolor1.substring(1,7); bgcolor2 = " bgcolor=" + bgcolor2 + " background="+IconURL+"?j="+bgcolor2.substring(1,7); } else if(adv == 1) { bgcolor1 = " bgcolor=" + bgcolor1 + " background="+IconURL+"?i=P"+bgcolor1.substring(1,7); bgcolor2 = " bgcolor=" + bgcolor2 + " background="+IconURL+"?i=P"+bgcolor2.substring(1,7); } else { bgcolor1 = " bgcolor=" + bgcolor1; bgcolor2 = " bgcolor=" + bgcolor2; if (bgcolor2 == " bgcolor=#d9fae1") bgcolor2 = bgcolor2 + " background="+IconURL+"?i=star7arab"; } if (Tsingle >= 0) { document.write("\n\ " +topic_showing_single_reply+"\n"); } if (memberreplies > 0) { document.write("\n\ " +topic_showing_member_replies+"\n"); } document.write(""); if (Tlevel == 5 && aid == 1) { document.write("
"); document.write(""+author+"
"); document.write("
"); } else if (Tadv >= 0) document.write(temp+"
"); else { document.write(""+author+"
"); //if (displayMode == 2) //{ // plaque = ""; // photo = ""; // stars = 0; //} if (memberID > 0) { if (posts >= 0) document.write(""+topic_posts+" "+posts+"
"); if (awards > 0) document.write("نقاط التميز: "+awards+"
"); // if (!isarchive) { if (stars > 0) { var icon = ""; if (Tlevel == 4) icon = ""; else if (Tlevel == 5) icon = ""; else if (Tlevel == 2) icon = ""; else if (Tlevel == 3) icon = ""; for (x = 0; x < stars; x ++) { if (x == 5) document.write("
"); document.write(icon); } document.write("
"); } if (title.length == 0) { if (gender == 2) { if (Tlevel == 2) title = title_modF; else if (Tlevel == 3) title = title_subsuperF; else if (Tlevel == 4) title = title_supervisorF; else if (Tlevel == 5) title = title_adminF; else if (stars > 5) title = leveltitlesF[5]; else title = leveltitlesF[stars]; } else { if (Tlevel == 2) title = title_mod; else if (Tlevel == 3) title = title_subsuper; else if (Tlevel == 4) title = title_supervisor; else if (Tlevel == 5) title = title_admin; else if (stars > 5) title = leveltitles[5]; else title = leveltitles[stars]; } } else if (plaque == "") { if (title == "@1@") title = "
"; else if (title == "@sp@") title = "
"; else if (title.indexOf("@@") == 0) title = "
"; } } var hideit = false; var origdeleted = false; if (Tdeleted >= 0) hideit = true; if (Thidden >= 0) hideit = true; if ((Topic_deleted >= 0) || (Topic_hidden >= 0) || (memberLevel < 2 || memberLevel > 5)) hideit = false; if ((Tdeleted >= 0) && (lmsg == "*")) { lmsg = "
"+topic_notice_deleted2+"
"; hideit = true; origdeleted = true; } if (hideit) document.write(""); else document.write(""); if ((title.length > 0) && (gender == 2)) title = "" + title; if (plaque.length > 0) { if (plaque.charAt(0) == "#") { if (gender == 2) title += "

آخر وسام للعضوة:
" + plaque.substring(1) + "

"; else title += "

آخر وسام للعضو:
" + plaque.substring(1) + "

"; } else title += "

"; } if (title.length > 0) document.write(""+ title +"
"); if (photo.length > 0) { if (photo.indexOf("user.aspx") == 0) photo = fileURL + photo; document.write("
"); } else document.write("
"); if (country.length > 0) {var countries=country.split("|"); document.write((countries[0].length>0?""+GetCountry(countries[0])+"
":"")+(countries[1].length>0&&memberLevel==5?""+GetCountry(countries[1])+"
":""));} if (posts >= 0) { if (days > 0) { document.write("عدد الأيام منذ الإنضمام: " + days + "
"); var avg = round(posts/days,2); document.write("
معدل المشاركات في اليوم: " + avg + "
"); } if ((isonline > 0) && (aid != memberID)) document.write("
 " + "
متصل الآن
"); } } } //if (Tistopic>=0 && memberLevel==0) {document.write("
"); setTimeout("showADS("+id+")",1000);} if (Tblocked >= 0) lmsg = "
** مشاركات هذه العضوية مخفية بواسطة الإدارة **
" + lmsg; document.write("
"); document.write(""); document.write("
"); document.write(""); if (forum_id==9 && topicAuthor==aid && Topic_cccamVps==0 && memberLevel==5 && moderate) document.write(""); if (memberLevel > 1 && memberLevel < 6 && isarchive == false) //(Tdeleted < 0) && { document.write(""); if (Tistopic < 0) { document.write(""); } } // post view contract/expand if (memberLevel > 1 && memberLevel < 6) { if (hideit) document.write(""); } document.write("
\n"); if(!isarchive && moderate && (adv == "" || adv == "0") && Tistopic < 0) document.write("\n"); else if(!isarchive && moderate && adv == "1" && Tistopic < 0) document.write("\n"); else document.write("\n"); document.write(formatDate(adate)); if(Tadv < 0 && memberLevel>0) document.write(""); if ((Tdeleted < 0) || (memberLevel > 2 && memberLevel < 6) || (moderate)) { if (!isarchive) { if (Tistopic >= 0) { //if ((aid == memberID) || (moderate)&& Tdeleted < 0) if ((moderate) || ((aid == memberID) && Tdeleted < 0)) document.write("\r\n"); if (moderate) document.write("\r\n"); if (((topicLocked == false) || (moderate)) && Tadv < 0) document.write(""); if (Tdeleted < 0 && aid==memberID && (forum_id==11||forum_id==24)) document.write(""); if (memberLevel > 0) document.write(""); if (moderate) { if(Tadv < 0) document.write(""); document.write(""); if (memberLevel>=3) { if (Tdeleted < 0) { document.write(""); //if(replies > 0) //document.write(""); } else if (memberLevel>=4) document.write(""); } if (topicLocked == false) document.write("\r\n"); else document.write("\r\n"); if ((Tmoderate < 0) && (Theld < 0) && (!Forum_Hide)){ if (exclusive) document.write(""); else document.write(""); } if ((Tmoderate >= 0) || (Theld >= 0)) document.write("" + ""); /*if (Tedit >= 0) document.write("" + "");*/ /*if (Tmoderate >= 0) document.write("" + ""); if (Tedit >= 0) document.write("" + "");*/ if (Thidden >= 0) document.write("" + ""); //if (topicLocked == true) //document.write("" //+ ""); if (Thidden >= 0) document.write("" + ""); document.write("" + ""); /* if (THideImages >= 0) document.write("" + ""); else if (TApproveImages >= 0) { document.write("" + ""); document.write("" + ""); } else document.write("" + ""); if (THideLinks >= 0) document.write("" + ""); else if (TApproveLinks >= 0) { document.write("" + ""); document.write("" + ""); } else document.write("" + ""); document.write("" + "");*/ //if (Tlevel == 1) document.write("" + ""); //document.write("" // + ""); } if ((memberLevel > 1 && memberLevel < 6 ) && (!isarchive) && (Tdeleted < 0) && (Thidden < 0)) document.write("" + ""); } else { if ((aid == memberID) || (moderate)&& Tdeleted < 0) document.write("\r\n"); if ((topicLocked == false) || (moderate)) document.write(""); if (memberLevel > 0) document.write(""); if (moderate) { document.write(""); if (Tdeleted < 0) document.write(""); else if (!origdeleted && memberLevel>=4) document.write(""); if (Tdeleted < 0) { if ((Tmoderate >= 0) || (Theld >= 0)) document.write("" + ""); /*if (Tedit >= 0) document.write("" + "");*/ /*if (Tmoderate >= 0) document.write("" + ""); if (Tedit >= 0) document.write("" + "");*/ if (Thidden >= 0) document.write("" + ""); } document.write("" + ""); /*if (THideImages >= 0) document.write("" + ""); else if (TApproveImages >= 0) { document.write("" + ""); document.write("" + ""); } else document.write("" + ""); if (THideLinks >= 0) document.write("" + ""); else if (TApproveLinks >= 0) { document.write("" + ""); document.write("" + ""); } else document.write("" + ""); document.write("" + "");*/ //if (Tlevel == 1) document.write("" + ""); //if (memberLevel == 5) //document.write("" // + ""); } else if (aid == memberID) document.write(""); if ((memberLevel > 1 && memberLevel < 6) && (!isarchive) && (Tdeleted < 0) && (Thidden < 0)) document.write("" + ""); } if (forum_id==80 && topicAuthor==aid && Topic_cccamVps==0) if ((memberLevel==5 && moderate)||memberID==5||(findAllow(memberID)==true && memberID==aid)) document.write(""+(memberLevel==5?"":"")); if (forum_id==15 && topicAuthor==aid && Topic_cccamVps==0 && (memberLevel==5 || memberLevel==4) && moderate) document.write(""+(memberLevel==5?"":"")); } else { if (moderate && memberLevel==5 && Tistopic >= 0) document.write(""); //if (moderate && memberLevel>=4 && Tistopic >= 0) //document.write(""); if ((moderate) && (Tmoderate < 0) && (Theld < 0) && (!Forum_Hide) && Tistopic >= 0){ if (exclusive) document.write(""); else document.write(""); } } } var rid = id; if (Tistopic >= 0) rid = 0; if ((memberID > 0) && (!isarchive) && (aid != memberID)) document.write(""); if ((memberLevel > 0) && (Tistopic < 0)) { if (Tsingle < 0) document.write("" + ""); if (memberreplies <= 0) document.write("" + ""); } /*if ((Tdeleted < 0) && moderate && (Tistopic < 0)) document.write("" + ""); if (Tdeleted < 0 && Tistopic >= 0 && moderate) document.write("");*/ document.write(" "); document.write(""); document.write(""); document.write(""); document.write(" "); else document.write(""); document.write(""); document.write("
"); // document.write("
"); if (Tdeleted >= 0) { if (memberID == aid) document.write("
"+topic_notice_deleted+"
"); } else if (Thidden >= 0) document.write("
"+topic_notice_hidden+"
"); else if (Theld >= 0) document.write("
"+topic_notice_held+"
"); else if (Tmoderate >= 0) document.write("
"+topic_notice_unapproved+"
"); else if (Tedit >= 0) document.write("
"+topic_notice_editunapproved+"
"); lmsg = lmsg.replace(/=0){ if (String(topicID)==attachs[at+4]&&attachs[at+5]=="") attachments += "
\""+attachs[at+1].split('.').pop()+"\"  "+attachs[at+1]+"  (الحجم : "+getFileSize(attachs[at+2])+" / التحميلات : "+attachs[at+3]+")"; } else { if (String(id)==attachs[at+5]) attachments += "
\""+attachs[at+1].split('.').pop()+"\"  "+attachs[at+1]+"  (الحجم : "+getFileSize(attachs[at+2])+" / التحميلات : "+attachs[at+3]+")"; } at+=6; } if (attachments!="") lmsg += "
الملفات المرفقة"+attachments+"
"; if (hideit) document.write("
" + lmsg); else {document.write("
" + lmsg); /*if (Tistopic>=0 && lmsg.length>1 && Thidden<0 && Tdeleted<0 && Tmoderate<0 && !Forum_Hide){ (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/ar_AR/all.js#xfbml=1&appId=154945201242549"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); document.write("

"); }*/ //if (Tistopic>=0 && (topicID==6922 || topicID==280805) && ((memberLevel==0 || ((forum_id==11||forum_id==24) && memberLevel<2)) && forum_id!=18)) google_ads("
",forum_id!=11&&forum_id!=24?1:0,1); //if (Tistopic>=0 && memberLevel<1) other_ads("http://yllix.com/banner_show.php?section=General&pub=215584&format=468x60&ga=g",470,60); } if ((forum_id==11 || forum_id==24) && Tistopic >= 0 && !isarchive){ if (demands.length>0||(topicDemands==1 && memberID>0 && topicAuthor!=memberID)) document.write ("
"); if (demands.length>0){ document.write("
" + "" + "" + "" + "" + "" + "" + (topicAuthor==memberID||moderate?"":"") + ""); var x = 0; var y = 0; while ((x < demands.length) && (demands[x] > 0)) { view_demand((x/7)+1,demands[x++],demands[x++],demands[x++],demands[x++],demands[x++],demands[x++],demands[x++]); if (demands[x-3].length==0) y++; } if (y>0&&topicAuthor==memberID) document.write(""); document.write("
طلبات الأعضاء للبيانات"+(topicDemandsMax.length>0?"
العدد الأقصى للطلبات المسموح بها في هذا الموضوع : "+topicDemandsMax+"":"")+"
الرقمالعضوتاريخ الطلبالطلباتالردودالبيانات"+(topicAuthor==memberID||moderate?"حذف جميع الطلبات التي تم الرد عليها":"")+"
بيانات أو معلومات إضافية (ليست ضرورية)


"); } if (topicDemands==1 && memberID>0 && topicAuthor!=memberID) document.write ("
"); if (demands.length>0||(topicDemands==1 && memberID>0 && topicAuthor!=memberID)) document.write ("
"); } if (forum_id==9 && topicAuthor==aid && Topic_cccamVps==0){ Topic_cccamVps++; if (vpss.length>0){ document.write("



" + "" + (memberLevel==5?"":"") + "" + "" + "" + "" + "" + "" + (memberLevel==5?"":"") + "" + (memberLevel==5?"":"") + "" + "" + ""); var x = 0; while ((x < vpss.length) && (vpss[x] > 0)) { view_vps(vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++],vpss[x++]); } document.write("
"+(aid!=memberID?"قائمة الـ vps العضوية رقم: "+aid:"قائمة الـ vps الخاصة بك")+"
الرقمرقم الموضوعالنوعالـ IPنظام التشغيلالهوستلوحة التحكمتاريخ الإنتهاءتوقيف تلقائيالأيام المتبقيةالنودملاحظاتالحالةخيارات
"); } if (cpanel.length>0){ document.write("



" + "" + (memberLevel==5?"":"") + "" + "" + "" + (memberLevel==5?"":"") + ""); var x = 0; while ((x < cpanel.length) && (cpanel[x] > 0)) { view_cpanel(cpanel[x++],cpanel[x++],cpanel[x++],cpanel[x++],cpanel[x++],cpanel[x++]); } document.write("
"+(aid!=memberID?"لوحات التحكم للعضوية رقم: "+aid:"لوحات التحكم الخاصة بك")+"
رقم الموضوعاليوزرالباسالبريد الإلكترونيملاحظات 
"); } } if (forum_id==15 && topicAuthor==aid && Topic_cccamVps==0){ Topic_cccamVps++; if (iptv.length>0){ document.write("



" + "" + "" + (memberLevel==5||memberID==13?"":"") + "" + "" + "" + (memberLevel==5||memberID==13?"":"") + ""); var x = 0; var lines = ""; while ((x < iptv.length) && (iptv[x] > 0)) { lines+=(lines!=""?",":"")+iptv[x+1]; view_iptv(iptv[x++],iptv[x++],iptv[x++],iptv[x++],iptv[x++],iptv[x++],iptv[x++]); } getTextAjax("ajax.asp?get=iptv&lines="+lines+"&"+Date(),getExtractIptvExp,"i_line"); document.write("
"+(aid!=memberID?"أسطر العضوية رقم: "+aid:"الأسطر الخاصة بك")+"
النوعرقم الموضوعاليوزرالباستاريخ الإنتهاءملاحظات 
"); } } if (forum_id==80 && topicAuthor==aid && Topic_cccamVps==0){ Topic_cccamVps++; if (cccam.length>0){ document.write("



" + "" + "" + (memberLevel==5||memberID==5?"":"") + "" + "" + "" + "" + (memberLevel==5||memberID==5?"":"") + (memberLevel==5||memberID==5||findAllow(memberID)?"":"") + (memberLevel==5||memberID==5?"":"") + (memberLevel==5||memberID==5||findAllow(memberID)?"":"") + ""); var x = 0; var users = ""; while ((x < cccam.length) && (cccam[x] > 0)) { if (cccam[x+5].indexOf('-')>=0) users+=(users!=""?",":"")+cccam[x+2]; view_cccam(cccam[x++],cccam[x++],cccam[x++],cccam[x++],cccam[x++],cccam[x++],cccam[x++],cccam[x++],cccam[x++]); } if (memberLevel==5||memberID==5) getTextAjax("ajax.asp?get=channels&users="+users+"&"+Date(),getExtractChannels,"i_channel"); document.write("
"+(aid!=memberID?"يوزرات العضوية رقم: "+aid:"اليوزرات الخاصة بك")+"
النوعرقم الموضوعاليوزرالباستاريخ الإنتهاءالأيام المتبقيةإعادة البثملاحظاتالقناة 
"); } } if (Tsurvey >= 0) { document.write("

"); if (surveyID > 0) { document.write("
" + ""); document.write(""); for (sur = 0; sur < surveyResults.length-5; sur+=5) { if (surveyResults[sur+1] < 0) { percent = 0; px = 0; percentStr = ""; thiscount = survey_secret; } else { if (surveyTotal > 0) percent = ((surveyResults[sur+1]*100)/surveyTotal); else percent = 0; percentStr = percent + ""; px = percentStr.indexOf("."); if (px >= 0) percentStr = percentStr.slice(0,px+2) + "%"; else percentStr += ".0%"; thiscount = surveyResults[sur+1]; } if (surveyResults[sur] == surveyVoted) document.write("" + ""); } document.write("" + ""); document.write("
" + surveyQuestion + "
" + survey_choice + "" + survey_votes_count + "" + survey_percentage + "
"); else document.write("
"); if ((memberID > 0) && (memberPosts >= surveyMinPosts) && (memberDays >= surveyMinDays) && (surveyOpen) && (surveyWaiting==0) && (surveyEnd==0) && (surveyVoted != surveyResults[sur])) document.write("" + surveyResults[sur+2] + ""); else document.write(surveyResults[sur+2]); if (surveyResults[sur+3].length > 0) { if ((surveyResults[sur+3].toLowerCase().indexOf("http://") == 0) || (surveyResults[sur+3].toLowerCase().indexOf(link) == 0)) { if ((surveyResults[sur+3].toLowerCase().indexOf(".gif") > 0) || (surveyResults[sur+3].toLowerCase().indexOf(".jpg") > 0) || (surveyResults[sur+3].toLowerCase().indexOf(".png") > 0)) document.write("
"); else document.write("
" + surveyResults[sur+3] + ""); } else document.write("
"+surveyResults[sur+3]); } document.write("
" + thiscount + "" + percentStr + "" + "" + "
"+survey_total_votes + ":"+surveyTotal + "100% 
"); if (surveyWaiting == 1) document.write(survey_waiting); else if (surveyEnd == 1) document.write("ملاحظة: انتهت مدة التصويت على هذا الإستفتاء."); else if (surveyOpen == false) document.write(survey_closed); else if (memberID == 0) document.write(survey_only_members_can_vote); else if (surveyVoted > 0) document.write(survey_already_voted_can_change); else if (memberPosts < surveyMinPosts) document.write("لا يسمح لك بالتصويت لأن عدد مشاركاتك أقل من العدد الأدنى المسموح به للتصويت في هذا الإستفتاء."); else if (memberDays < surveyMinDays) document.write("لا يسمح لك بالتصويت لأن عدد الأيام منذ تسجيلك أقل من العدد الأدنى المسموح به للتصويت في هذا الإستفتاء."); else document.write(survey_click_to_vote); if ((surveyMinPosts + surveyMinDays) > 0) { document.write("
" + survey_only_certain_members + "
"); document.write(""); document.write("
 "); if (memberID > 0) document.write(survey_current + ""); document.write(survey_min_limit + "
" + survey_only_certain_members_posts + ""); if (memberID > 0) document.write(memberPosts + ""); document.write(surveyMinPosts + "
" + survey_only_certain_members_days + ""); if (memberID > 0) document.write(memberDays + ""); document.write(surveyMinDays + "
"); } document.write("
"); } } else { if (sig.length > 0) document.write("
"+sig); document.write("
"); } if (editedby.length > 0) { if (dir == "rtl") document.write("

"); else document.write("

"); var s = ""; var lastedit = -1; var editcount = 0; splitIndex = 0; splitArray = new Array(); splits(editedby,"|"); if (memberLevel < 2 || !moderate){ x = 0; while (x < splitArray.length) { var m = splitArray[x]; if (m.length > 15) { var mode = m.substring(0,1); if (mode == "e") { editcount ++; if (editcount > 1){ splitArray.splice(lastedit,1); x = x-1; splitArray.splice(x,1,"f"+m.substring(1,15)+editcount+"#"+m.substring(15)); } lastedit = x ; } } x++; } } x = 0; while (x < splitArray.length) { var m = splitArray[x]; if (m.length > 15) { var mode = m.substring(0,1); if (mode == "*") s += m.substring(1); else { var ss = ""; var date = m.substring(1,15); var name = m.substring(15); ss += formatDate(date) + ": "; if (mode == "a") ss += edited_a; if (mode == "h") ss += edited_h; if (mode == "u") ss += edited_u; if (mode == "l") ss += edited_l; if (mode == "e") ss += edited_e; if (mode == "d") ss += edited_d; if (mode == "r") ss += edited_r; if (mode == "m") ss += edited_m; if (mode == "i") ss += edited_i; if (mode == "t") ss += edited_t; if (mode == "g") ss += edited_g; if (mode == "k") ss += edited_k; if (mode == "o") ss += edited_o; if (mode == "n") ss += edited_n; if (mode == "j") ss += edited_j; if (mode == "v") ss += edited_v; if (mode == "p") ss += edited_p; if (mode == "b") ss += edited_b; if (mode == "c") ss += edited_c; if (mode == "x") ss += edited_x; if (mode == "s") ss += edited_s; if (mode == "q") ss += edited_q; if (mode == "y") ss += edited_y; if (mode == "z") ss += edited_z; if (mode == "f") { ss += edited_f; var cidx = name.indexOf("#"); if (cidx >= 0) { var editcount = name.substring(0,cidx); name = name.substring(cidx+1); ss += GetM(name).replace("#c68e17","#995600") + "
"; ss += ""+edited_count+": " + editcount + "
"; } } else ss += GetM(name).replace("#c68e17","#995600") + "

"; if ((memberLevel < 2 || memberLevel > 5) && ((mode == "i") || (mode == "v")|| (mode == "p")|| (mode == "x"))) ss = ""; s += ss; } } x++; } if (s.length > 0) { document.write("
"); document.write(s + "
"); } } document.write("\n"); } function round(number,X) { // rounds number to X decimal places, defaults to 2 X = (!X ? 2 : X); return Math.round(number*Math.pow(10,X))/Math.pow(10,X); } // code to switch to another page.. called by internal code only function t_options_bar(isfooter) { var infoline1 = "" var infoline2 = "" var icon = ""; if (isfooter == 0) t_options_bar2(isfooter); //if (isfooter == 0) { if (Topic_new >= 0) { icon = "_new"; infoline2 = topic_tooltips_new; } if (Topic_hot >= 0 && Topic_locked < 0) { icon += "_hot"; infoline1 = topic_tooltips_hot; } if (Topic_locked >= 0) { icon += "_locked"; infoline1 = topic_tooltips_locked; } if (Topic_arch >= 0) { icon += "_archived"; infoline1 = topic_tooltips_archived; } if (infoline1.length == 0) infoline1 = infoline2; else if (infoline2.length) infoline1 += "\r\n" + infoline2; icon = ""; document.write("\r\n\
 "); document.write(icon + " "+topictitle); if (memberLevel < 2 && totalpages <= 1) document.write("
"); if ((totalpages > 1) || (memberLevel > 1 && memberLevel < 6)) { document.write("
"); if (moderate && pagenum>1 && (forum_id==9 || forum_id==15 || forum_id==80)) document.write(""); if (!Forum_Hide) document.write(""); if (totalpages > 1) { document.write(""); } if (memberLevel > 1 && memberLevel < 6 && !isarchive) { if (memberLevel >= 3 && moderate == true) { document.write(""); document.write(""); } document.write(""); document.write(""); document.write(""); if (moderate == true) { document.write(""); //document.write(""); } } //if(memberLevel > 0) // document.write(""); document.write(""); document.write(""); document.write("
"); if (pagenum > 1) document.write(""); else document.write(""); document.write(""); if (pagenum < totalpages) document.write(""); else document.write(""); document.write(""); if (pagenum > 1) document.write(""); else document.write(""); document.write(""); if (pagenum < totalpages) document.write(""); else document.write(""); document.write("
"); } document.write("
"); } if (isfooter != 0) t_options_bar2(isfooter); } function t_options_bar2(isfooter) { var mainURL = link+"?f="+forum_id; var mainImage = getForumIcon(forum_id); var mainTitle = getForumTitle(forum_id); var mainTooltip = mainTitle; if (isarchive) mainURL = link+"?fa="+forum_id; document.write(""); if (isfooter) document.write(""); document.write("\ "); if (memberreplies > 0){ document.write(""); if (rstat != "") document.write(""); } document.write(""); document.write(""); document.write(""); } /*if (memberID > 0) { document.write(""); document.write("
"+topic_toolbar_send_to_friend+"
"); document.write(""); //document.write(""); document.write(""); if (isfooter == 0) { document.write(""); if (memberreplies > 0){ document.write(""); if (rstat != "") document.write(""); } document.write(""); } document.write("
"+mainTitle+""); if (((topicLocked == false) || (moderate == true)) && (!isarchive)) { document.write(""); document.write("
"+topic_toolbar_add_reply+"
"); document.write("
"); } if ((forumStatus.indexOf("l") < 0) || (moderate == true)) { document.write(""); document.write("
"+forum_toolbar_new_topic+"
"); document.write("
"); }*/ if ((memberID > 0) && (topicMonitored == false) && (!isarchive)) { document.write(""); document.write(""); document.write("
"+topic_toolbar_monitor_topic+"
"); document.write("
"); } /* document.write("\
"+topic_toolbar_print+"
");*/ /*if ((memberLevel > 0) && (!isarchive)) { document.write("
"+topic_toolbar_hide_sigs_title+"
\ "); }*/ if (memberID > 0) { document.write("
"+topic_toolbar_page_size+"
\ \r\n"); } if (totalpages > 1) { document.write("
"+page_selector_title+"
"); document.write("\r\n"); } document.write("
"+switchforum_selector_title+"
"); forumsSelector2(); document.write("
"); } function t_topic_not_found() { document.write("


" + topic_not_found + "
"); } function t_show_topics() { var x = 0; while ((x < topics.length) && (topics[x+1] > 0)) { t(topics[x++],topics[x++],topics[x++],topics[x++],topics[x++],topics[x++], topics[x++],topics[x++],topics[x++],topics[x++] ); } if (topicLocked == false) quickreplyform(); else if (topicReplies >= topicLockLevel) { document.write("\ \ \ \ لا يمكن إضافة مشاركات لهذا الموضوع لأنه تجاوز الحد الأقصى للمشاركات في هذا المنتدى. (" + topicLockLevel + " رد)\ "); } if (memberLevel==5) document.write("\ ملاحظة إدارية\ \ المشاركات المنشورة لا تعبر عن رأي إدارة المنتدى ولا نتحمل أية مسؤولية حيال ذلك .(ويتحمل كاتبها مسؤولية النشر)
\ المنتدى غير مسؤول عن أي إتفاق تجاري أو مادي بين الأعضاء ... فعلى كل شخص تحمل مسئولية نفسه\ "); } var allow_exit = false; window.onbeforeunload = checkunload; function checkunload() { if ((memberLevel >= 1) && (topicLocked == false) && (!allow_exit)) { var x = quickreply.msg.value; x = x.replace(/^[\s( )]+/g,'').replace(/[\s( )]+$/g,''); if (x.length < 3) return; return forums_confirm_leave_page; } } function area_haut() { var hauteur = document.quickreply.msg.style.height ; hauteur = hauteur.substr(0,hauteur.length-2)-0 ; if (hauteur > 100) document.quickreply.msg.style.height = hauteur - 70 ; } function area_bas() { var hauteur = document.quickreply.msg.style.height ; hauteur = hauteur.substr(0,hauteur.length-2)-0 ; if (hauteur < 700) document.quickreply.msg.style.height = hauteur + 70 ; } function quickreplyform() { if (memberID > 0) { document.write("\

\
\

\n\ أضف
رد سريع\n"); document.write("\ \         "); if (memberLevel >= 2 && memberLevel < 6) { if ((moderate) || (memberLevelSup > 0)) document.write("   "); } document.write("       ") document.write("\ \ \ \ \ \ \ \ "); } } function submitQuickReplyForm(mode) { allow_exit = true; var x = quickreply.msg.value; //while ((x.substring(0,1) == ' ') || (x.substring(0,1) == '\r') || (x.substring(0,1) == '\n') || (x.substring(0,1) == '\t')) //x = x.substring(1); x = deleteSpace(x); quickreply.msg.value = x; quickreply.quickmode.value = mode; if (quickreply.msg.value.length > sizeLimit) {alert("حجم الرد أكبر من المساحة المخصصة له "+sizeLimit+" حرف\r\nيرجى التقليل من محتوى الرد");return;} if (quickreply.msg.value.length < 3) return; else { if (mode == 2) if (!confirm(msg_confirm_lock_topic)) return; quickreply.submit(); } } function submitForm0() {document.optionsForm0.submit(); return 0;} function submitForm1() {document.optionsForm1.submit(); return 0;} function changePage0() {document.PageNum.pg.value = document.optionsForm0.pg.value; document.PageNum.submit(); return 0; }; function changePage1() {document.PageNum.pg.value = document.optionsForm1.pg.value; document.PageNum.submit(); return 0; }; function deleteCpanel(user,id) { if (confirm("هل تريد حقا حذف لوحة التحكم :"+user)) if (confirm("الرجاء تأكيد عملية الحذف ?")) if (confirm("الرجاء إعادة تأكيد عملية الحذف ?")) submitModerationCommand("dcp," + id); } function deleteVps(id) { if (confirm("هل تريد حقا حذف الـ vps رقم :"+id)) if (confirm("الرجاء تأكيد عملية الحذف ?")) if (confirm("الرجاء إعادة تأكيد عملية الحذف ?")) submitModerationCommand("dv," + id); } function deleteTopic(id) { if (confirm(msg_confirm_delete_topic)) if (confirm(msg_reconfirm_delete_topic)) submitModerationCommand("d," + id); } function undeleteTopic(id) { if (confirm(msg_confirm_unhide_post)) if (confirm(msg_reconfirm_unhide_post)) submitModerationCommand("z," + id); } function deleteReply(id) { if (confirm(msg_confirm_delete_reply)) if (confirm(msg_reconfirm_delete_reply)) submitModerationCommand("rd," + id); } function undeleteReply(id) { if (confirm(msg_confirm_unhide_post)) if (confirm(msg_reconfirm_unhide_post)) submitModerationCommand("ru," + id); } function advReply(id) { submitModerationCommand("ad," + id); } function unadvReply(id) { submitModerationCommand("uad," + id); } function deleteReplyByAuthor(id) { if (confirm(msg_confirm_delete_reply)) if (confirm(msg_reconfirm_delete_reply)) submitMemberCommand("rd," + id); //document.location = link+"?mode=t&deletereply="+id+"&src="+source(); } function upload() { submitMemberCommand("uu,0"); } function restorFromArchive(id) { submitMemberCommand("rfa," + id); } function approveTopic(id) { if (confirm(msg_confirm_approve_single)) submitModerationCommand("a," + id); } function holdTopic(id,title) { if (confirm(msg_confirm_hold)) if (confirm(msg_reconfirm_hold)) submitModerationCommand("h," + id); } function approveEdit(id) { if (confirm(msg_confirm_approve_edit)) submitModerationCommand("ae," + id); } function holdEdit(id,title) { if (confirm(msg_confirm_hold_edit)) if (confirm(msg_reconfirm_hold_edit)) submitModerationCommand("he," + id); } function approveReply(id) { if (confirm(msg_confirm_approve_reply)) submitModerationCommand("ra," + id); } function holdReply(id,title) { if (confirm(msg_confirm_hold_reply)) if (confirm(msg_reconfirm_hold_reply)) submitModerationCommand("rh," + id); } function approveReplyEdit(id) { if (confirm(msg_confirm_approve_edit)) submitModerationCommand("rae," + id); } function unhideImages(id) { if (confirm(msg_confirm_unhide_images)) submitModerationCommand("upm," + id); } function approveImages(id) { if (confirm(msg_confirm_approve_images)) submitModerationCommand("Ppm," + id); } function hideImages(id) { if (confirm(msg_confirm_hide_images)) submitModerationCommand("pm," + id); } function unhideLinks(id) { if (confirm(msg_confirm_unhide_links)) submitModerationCommand("uUl," + id); } function approveLinks(id) { if (confirm(msg_confirm_approve_links)) submitModerationCommand("ull," + id); } function hideLinks(id) { if (confirm(msg_confirm_hide_links)) submitModerationCommand("uull," + id); } function unhideReplyImages(id) { if (confirm(msg_confirm_unhide_images)) submitModerationCommand("upmr," + id); } function approveReplyImages(id) { if (confirm(msg_confirm_approve_images)) submitModerationCommand("Ppmr," + id); } function hideReplyImages(id) { if (confirm(msg_confirm_hide_images)) submitModerationCommand("pmr," + id); } function unhideReplyLinks(id) { if (confirm(msg_confirm_unhide_links)) submitModerationCommand("uUlr," + id); } function approveReplyLinks(id) { if (confirm(msg_confirm_approve_links)) submitModerationCommand("ullr," + id); } function hideReplyLinks(id) { if (confirm(msg_confirm_hide_links)) submitModerationCommand("ulr," + id); } function holdReplyEdit(id,title) { if (confirm(msg_confirm_hold_edit)) if (confirm(msg_reconfirm_hold_edit)) submitModerationCommand("rhe," + id); } function hideReply(id,title) { if (confirm(msg_confirm_hide_post)) if (confirm(msg_reconfirm_hide_post)) submitModerationCommand("ri," + id); } function unhideReply(id,title) { if (confirm(msg_confirm_unhide_post)) if (confirm(msg_reconfirm_unhide_post)) submitModerationCommand("rv," + id); } function hideTopic(id,title) { if (confirm(msg_confirm_hide_post)) if (confirm(msg_reconfirm_hide_post)) submitModerationCommand("i," + id); } function unhideTopic(id,title) { if (confirm(msg_confirm_unhide_post)) if (confirm(msg_reconfirm_unhide_post)) submitModerationCommand("v," + id); } function lockTopic(id) { if (confirm(msg_confirm_lock_topic)) submitModerationCommand("l," + id); } function unlockTopic(id) { if (confirm(msg_confirm_unlock_topic)) submitModerationCommand("u," + id); } function deleteUser(id,user) { if (confirm("هل تريد بالتأكيد حذف اليوزر :\r\n"+user+"\r\n؟")) if (confirm("الرجاء إعادة تأكيد الحذف")) submitMemberCommand("du," + id); } function deleteIPTV(id) { if (confirm("هل تريد بالتأكيد حذف السطر؟")) if (confirm("الرجاء إعادة تأكيد الحذف")) submitMemberCommand("di," + id); } function addExclusive(id) { if (confirm("هل تريد فعلا إضافة هذا الموضوع إلى مكتبة الحصريات ؟")) submitModerationCommand("ax," + id); } function removeExclusive(id) { if (confirm("الرجاء تأكيد حذف هذا الموضوع من مكتبة الحصريات ؟")) submitModerationCommand("dx," + id); } function findTopicTitle(id) { var x = 0; while ((x < topics.length) && (topics[x+1] > 0)) { if (topics[x+1] == id) return(topics[x+2]); x += 11; } return(""); } function findMemberSignature(id) { var x = 0; while ((x < signatures.length) && (signatures[x] > 0)) { if (signatures[x] == id) return(signatures[x+1]); x += 2; } return(""); } function findMemberDetails(id) { var x = 0; while ((x < authors.length) && (authors[x] > 0)) { if (authors[x] == id) return(x); x += 13; } return(-1); } function render_content() { Forum_Hide = ForumHide(forum_id); if (totalpages < 0) t_topic_not_found(); else { document.title = forums_windowtitle + topictitle; Topic_new = topicFlags.indexOf("n"); Topic_hot = topicFlags.indexOf("h"); Topic_locked = topicFlags.indexOf("l"); Topic_arch = topicFlags.indexOf("a"); Topic_fixed = topicFlags.indexOf("f"); Topic_moderate = topicFlags.indexOf("m"); Topic_deleted = topicFlags.indexOf("d"); Topic_hidden = topicFlags.indexOf("i"); Topic_survey = topicFlags.indexOf("v"); Topic_edit = topicFlags.indexOf("e"); Topic_HideImages = topicFlags.indexOf("p"); Topic_ApproveImages = topicFlags.indexOf("P"); Topic_HideLinks = topicFlags.indexOf("u"); Topic_ApproveLinks = topicFlags.indexOf("U"); //if (ADS_tinydeal_url.length>0 && ADS_tinydeal_photo.length>0 && memberLevel<2 && forum_id==86) //document.write("
"); //if (ADS_payoneer_url.length>0 && ADS_payoneer_photo.length>0 && memberLevel<2 && (forum_id==86||forum_id==116||forum_id==118||forum_id==109||forum_id==96||forum_id==97)) //document.write("
"); t_options_bar(0); t_table_open(); t_header(); t_show_topics(); t_footer(); t_table_close(); t_options_bar(1); writeMemberForm(); if (memberLevel > 1 && memberLevel < 6) writeModerationForm(); } } function expand(cell) { var object_ex = "cell_expand_" + cell; var object_con = "cell_contract_" + cell; var object = "cell_" + cell; if (document.layers && document.layers[object]) document.layers[object].height = null; else //if (document.all) document.all[object].height = null; object = "cell2_" + cell; if (document.layers && document.layers[object]) { if (document.layers[object]) document.layers[object].style.display = "block"; document.layers[object_ex].style.display = "none"; document.layers[object_con].style.display = ""; } else //if (document.all) { if (document.all[object]) document.all[object].style.display = "block"; document.all[object_ex].style.display = "none"; document.all[object_con].style.display = ""; } } function contract(cell) { var object_ex = "cell_expand_" + cell; var object_con = "cell_contract_" + cell; var object = "cell_" + cell; if (document.layers && document.layers[object]) {document.layers[object].height = 60; document.layers[object].style.overflow= "hidden";document.layers[object].style.display= "block";} else //if (document.all) {document.all[object].height = 60; document.all[object].style.overflow= "hidden";document.all[object].style.display= "block";} object = "cell2_" + cell; if (document.layers && document.layers[object]) { if (document.layers[object]) document.layers[object].style.display = "none"; document.layers[object_ex].style.display = ""; document.layers[object_con].style.display = "none"; } else //if (document.all) { if (document.all[object]) document.all[object].style.display = "none"; document.all[object_ex].style.display = ""; document.all[object_con].style.display = "none"; } } function contract_all() { var x = 0; while ((x < topics.length) && (topics[x+1] > 0)) { contract(topics[x+1]); x += 10; } } function expand_all() { var x = 0; while ((x < topics.length) && (topics[x+1] > 0)) { expand(topics[x+1]); x += 10; } } function select_user_posts(user) { var x = 0; var count = 0; while ((x < topics.length) && (topics[x+1] > 0)) { if ((topics[x].indexOf("t") < 0) && (topics[x].indexOf("d") < 0)) { if (topics[x+2] == user) { count++; var object = "check_" + topics[x+1]; if (document.layers && document.layers[object]) document.layers[object].checked = true; else //if (document.all) document.all[object].checked = true; } } x += 10; } confirm("عدد المشاركات التي تم وضع علامة الإختيار عليها لهذا العضو: " + count) } function select_all_posts() { var x = 0; var count = 0; while ((x < topics.length) && (topics[x+1] > 0)) { if (topics[x].indexOf("t") < 0) { count++; var object = "check_" + topics[x+1]; if (document.layers && document.layers[object]) document.layers[object].checked = true; else //if (document.all) document.all[object].checked = true; } x += 10; } confirm("عدد المشاركات التي تم وضع علامة الإختيار عليها: " + count) } function select_no_posts() { var x = 0; var count = 0; while ((x < topics.length) && (topics[x+1] > 0)) { if (topics[x].indexOf("t") < 0) { count++; var object = "check_" + topics[x+1]; if (document.layers && document.layers[object]) document.layers[object].checked = false; else //if (document.all) document.all[object].checked = false; } x += 10; } } function delete_selected_posts(choix) { var x = 0; var count = 0; var cmdstr = ""; if (moderate != true) return; while ((x < topics.length) && (topics[x+1] > 0)) { if (choix == 1) { if ((topics[x].indexOf("t") < 0) && (topics[x].indexOf("d") < 0)) { var object = "check_" + topics[x+1]; var yes = false; if (document.layers && document.layers[object]) { if (document.layers[object].checked == true) yes = true; } else //if (document.all) { if (document.all[object].checked == true) yes = true; } if (yes == true) { if (cmdstr != "") cmdstr += ","; if (choix == 1) cmdstr += "rd," + topics[x+1]; else cmdstr += "ru," + topics[x+1]; count++; } } } else { if ((topics[x].indexOf("t") < 0) && (topics[x].indexOf("d") >= 0)) { var object = "check_" + topics[x+1]; var yes = false; if (document.layers && document.layers[object]) { if (document.layers[object].checked == true) yes = true; } else //if (document.all) { if (document.all[object].checked == true) yes = true; } if (yes == true) { if (cmdstr != "") cmdstr += ","; if (choix == 1) cmdstr += "rd," + topics[x+1]; else cmdstr += "ru," + topics[x+1]; count++; } } } x += 10; } if (choix == 1){ if (count == 0) confirm("ليست هناك أية ردود غير محذوفة قمت بإختيارها في هذه الصفحة" ); else if (confirm("هل أنت متأكد من أنك تريد حذف الردود المختارة وعددها: " + count + "?" )) if (confirm("الرجاء إعادة تأكيد حذف الردود المختارة وعددها: " + count )) submitModerationCommand(cmdstr); } else{ if (count == 0) confirm("ليست هناك أية ردود محذوفة قمت بإختيارها في هذه الصفحة"); else if (confirm("هل أنت متأكد من أنك تريد إرجاع الردود المختارة وعددها: " + count + "?" )) if (confirm("الرجاء إعادة تأكيد إرجاع الردود المختارة وعددها: " + count )) submitModerationCommand(cmdstr); } } function hide_selected_posts(choix) { var x = 0; var count = 0; var cmdstr = ""; while ((x < topics.length) && (topics[x+1] > 0)) { if (choix == 1) { if ((topics[x].indexOf("t") < 0) && (topics[x].indexOf("d") < 0) && (topics[x].indexOf("i") < 0)) { var object = "check_" + topics[x+1]; var yes = false; if (document.layers && document.layers[object]) { if (document.layers[object].checked == true) yes = true; } else //if (document.all) { if (document.all[object].checked == true) yes = true; } if (yes == true) { if (cmdstr != "") cmdstr += ","; if (choix == 1) cmdstr += "ri," + topics[x+1]; else cmdstr += "rv," + topics[x+1]; count++; } } } else { if ((topics[x].indexOf("t") < 0) && (topics[x].indexOf("d") < 0) && (topics[x].indexOf("i") >= 0)) { var object = "check_" + topics[x+1]; var yes = false; if (document.layers && document.layers[object]) { if (document.layers[object].checked == true) yes = true; } else //if (document.all) { if (document.all[object].checked == true) yes = true; } if (yes == true) { if (cmdstr != "") cmdstr += ","; if (choix == 1) cmdstr += "ri," + topics[x+1]; else cmdstr += "rv," + topics[x+1]; count++; } } } x += 10; } if (choix == 1){ if (count == 0) confirm("ليست هناك أية ردود غير مخفية قمت بإختيارها في هذه الصفحة" ); else if (confirm("هل أنت متأكد من أنك تريد إخفاء الردود المختارة الغير مخفية حاليا وعددها: " + count + "?" )) if (confirm("الرجاء إعادة تأكيد إخفاء الردود المختارة الغير مخفية حاليا وعددها: " + count )) submitModerationCommand(cmdstr); } else{ if (count == 0) confirm("ليست هناك أية ردود مخفية قمت بإختيارها في هذه الصفحة" ); else if (confirm("هل أنت متأكد من أنك تريد إظهار الردود المختارة المخفية حاليا وعددها: " + count + "?" )) if (confirm("الرجاء إعادة تأكيد إظهار الردود المختارة المخفية حاليا وعددها: " + count )) submitModerationCommand(cmdstr); } } function deleteData(dtype,dmember) { if (dtype==0){document.deletedata.member.value=0;}else{document.deletedata.member.value=dmember;} if (dtype==1 && dmember!=memberID) if (eval('document.senddata.data'+dmember).value==""){confirm("الرجاء كتابة سبب الحذف على اليمين مكان إدخال البيانات\r\nلكي يتم إرساله إلى العضو");return;} else document.deletedata.reason.value = eval('document.senddata.data'+dmember).value; if (confirm("هل أنت متأكد من الحذف")) document.deletedata.submit(); }