[ Updated threads · رسائل جديدة · المشاركين · قواعد المنتدى · بحث · RSS ]

  • صفحة 1 من%
  • 1
منتدى هكركوز الكويت HkRhoz al KuwaiT » ارشيف صاروخ الخليج » تعريب سكربتات » تطبيق التعرف على التصاريح لسكربت rwxr-xr-x بالجافا سكربت
تطبيق التعرف على التصاريح لسكربت rwxr-xr-x بالجافا سكربت
gulfmissile التاريخ : الأحد, 2018-11-11, 2:07 AM | رسالة # 1

كافي عذاب

العضويه : المسؤولين

عدد المشاركات : 242

سمعة : 0

حالة : Offline

الجنس : ذكر

دولتك : الكويت

Description: Jeroen's Chmod calculator is the most robust calculator of its kind. It allows you to lookup and display the permission setting value (ie: 755) for files in 3 different ways, including its text equivalent (ie: -rwxr-xr-x). With this script you have all you could need to change your server files' permission! الوصف: جيروين في تطبيق التصريح حاسبة آلة حاسبة هي أقوى من نوعه. فإنه يسمح لك لبحث وعرض إذن قيمة الضبط (أي: 755) للملفات في 3 طرق مختلفة، بما يعادل نصه (أي: -rwxr-XR-X) مع هذا السيناريو يمكن أن يكون لديك كل ما تحتاجه لتغيير إذن ملفات الخادم الخاص بك!

wacko wink tongue

كود
<!-- HaYeF.By alsafrani.blogspot JavaScript -->
<script type="text/javascript">
<!--
function octalchange()
{
var val = document.chmod.t_total.value;
var ownerbin = parseInt(val.charAt(0)).toString(2);
while (ownerbin.length<3) { ownerbin="0"+ownerbin; };
var groupbin = parseInt(val.charAt(1)).toString(2);
while (groupbin.length<3) { groupbin="0"+groupbin; };
var otherbin = parseInt(val.charAt(2)).toString(2);
while (otherbin.length<3) { otherbin="0"+otherbin; };
document.chmod.owner4.checked = parseInt(ownerbin.charAt(0));
document.chmod.owner2.checked = parseInt(ownerbin.charAt(1));
document.chmod.owner1.checked = parseInt(ownerbin.charAt(2));
document.chmod.group4.checked = parseInt(groupbin.charAt(0));
document.chmod.group2.checked = parseInt(groupbin.charAt(1));
document.chmod.group1.checked = parseInt(groupbin.charAt(2));
document.chmod.other4.checked = parseInt(otherbin.charAt(0));
document.chmod.other2.checked = parseInt(otherbin.charAt(1));
document.chmod.other1.checked = parseInt(otherbin.charAt(2));
calc_chmod(1);
};

function calc_chmod(nototals)
{
var users = new Array("owner", "group", "other");
var totals = new Array("","","");
var syms = new Array("","","");

for (var i=0; i<users.length; i++)
{
var user=users[i];
var field4 = user + "4";
var field2 = user + "2";
var field1 = user + "1";
//var total = "t_" + user;
var symbolic = "sym_" + user;
var number = 0;
var sym_string = "";

if (document.chmod[field4].checked == true) { number += 4; }
if (document.chmod[field2].checked == true) { number += 2; }
if (document.chmod[field1].checked == true) { number += 1; }

if (document.chmod[field4].checked == true) {
sym_string += "r";
} else {
sym_string += "-";
}
if (document.chmod[field2].checked == true) {
sym_string += "w";
} else {
sym_string += "-";
}
if (document.chmod[field1].checked == true) {
sym_string += "x";
} else {
sym_string += "-";
}

//if (number == 0) { number = ""; }
//document.chmod[total].value =
totals[i] = totals[i]+number;
syms[i] = syms[i]+sym_string;

};
if (!nototals) document.chmod.t_total.value = totals[0] + totals[1] + totals[2];
document.chmod.sym_total.value = "-" + syms[0] + syms[1] + syms[2];
}
window.onload=octalchange
//-->
</script>
</font></b>
<form name="chmod">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" style="font:normal 12px Verdana";>
<TR ALIGN="LEFT" VALIGN="MIDDLE">
<TD><b><font size="3">Permissions ترخيص : </font></b> </TD>
<TD><font size="3">
<input name="t_total" value="751" size="4" onKeyUp="octalchange()" style="font-weight: 700"></font><b><font size="3">
</font></b> </TD>
<TD><font size="3">
<input name="sym_total" size="12" READONLY="1" STYLE='border: 0px none; font-family: "Courier New", Courier, mono; font-weight:700'></font></TD>
</TR>
</TABLE>
<BR>
<table cellpadding="2" cellspacing="0" border="0" style="font:normal 12px Verdana" width="543">
<tr bgcolor="#333333">
<td WIDTH="187" align="left"> </td>
<td WIDTH="108" align="center" style="color:white"><b>
<font size="3" color="#00FF00">owner</font><font size="3" color="#0000FF">
</font>
</b></td>
<td WIDTH="118" align="center" style="color:white"><b>
<font size="3" color="#FFFF00">group</font><font color="#0000FF" size="3">
</font>
</b><font size="3"></td>
<td WIDTH="114" align="center" style="color:white"></font></font><b>
<font size="3" color="#FF0000">other</font><font size="3" color="#0000FF">
</font></td>
</tr>
<tr bgcolor="#dddddd">
<td WIDTH="187" align="left" nowrap BGCOLOR="#FFFFFF"><b><font size="3">read قراءة</font></b></td>
<td WIDTH="108" align="center" bgcolor="#EEEEEE">
<font size="3">
<input type="checkbox" name="owner4" value="4" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
<td WIDTH="118" align="center" bgcolor="#ffffff"><font size="3">
<input type="checkbox" name="group4" value="4" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
<td WIDTH="114" align="center" bgcolor="#EEEEEE">
<font size="3">
<input type="checkbox" name="other4" value="4" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
</tr>
<tr bgcolor="#dddddd">
<td WIDTH="187" align="left" nowrap BGCOLOR="#FFFFFF"><b><font size="3">write إرسال</font></b></td>
<td WIDTH="108" align="center" bgcolor="#EEEEEE">
<font size="3">
<input type="checkbox" name="owner2" value="2" onclick="calc_chmod()" style="font-weight: 700"></font></td>
<td WIDTH="118" align="center" bgcolor="#ffffff"><font size="3">
<input type="checkbox" name="group2" value="2" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
<td WIDTH="114" align="center" bgcolor="#EEEEEE">
<font size="3">
<input type="checkbox" name="other2" value="2" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
</tr>
<tr bgcolor="#dddddd">
<td WIDTH="187" align="left" nowrap BGCOLOR="#FFFFFF"><b><font size="3">execute تنفيذ</font></b></td>
<td WIDTH="108" align="center" bgcolor="#EEEEEE">
<font size="3">
<input type="checkbox" name="owner1" value="1" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
<td WIDTH="118" align="center" bgcolor="#ffffff"><font size="3">
<input type="checkbox" name="group1" value="1" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
<td WIDTH="114" align="center" bgcolor="#EEEEEE">
<font size="3">
<input type="checkbox" name="other1" value="1" onclick="calc_chmod()" style="font-weight: 700"></font><b><font size="3">
</font></b>
</td>
</tr>
</table>
<!-- HaYeF.By alsafrani.blogspot JavaScript -->

================================
owner
group
other
 

منتدى هكركوز الكويت HkRhoz al KuwaiT » ارشيف صاروخ الخليج » تعريب سكربتات » تطبيق التعرف على التصاريح لسكربت rwxr-xr-x بالجافا سكربت
  • صفحة 1 من%
  • 1
بحث: