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("
}
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+"
":"")
+ "");
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("
");
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
+ "
");
if (memberID > 0) document.write(survey_current + "
");
document.write(survey_min_limit + "
");
document.write("
" + survey_only_certain_members_posts
+ "
");
if (memberID > 0) document.write(memberPosts + "
");
document.write(surveyMinPosts + "
");
document.write("
" + 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 (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 (isfooter == 0)
{
document.write("");
}
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("
\
");
}
}
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("