chmod-berekenen

Gesponsorde koppelingen

PHP script bestanden

  1. chmod-berekenen

« Lees de omschrijving en reacties

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
if ($_POST['Submit']) {
$owner=$_POST['owner1'] + $_POST['owner2'] + $_POST['owner3'];
$group=$_POST['group1'] + $_POST['group2'] + $_POST['group3'];
$other=$_POST['other1'] + $_POST['other2'] + $_POST['other3'];

$chmod="$owner"."$group"."$other";
}

?>

<form method="post" action="<?=$php_self?>">
  <table width="46%" border="1" cellspacing="0" cellpadding="2" bordercolor="#000000" bgcolor="#CCCCCC">
    <tr>
      <td>
        <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><b>Owner
          (beheerder):</b></font></div>
      </td>
      <td>
        <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><b>Group
          (leden):</b></font></div>
      </td>
      <td>
        <div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1"><b>Other
          (anderen):</b></font></div>
      </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="owner1" value="4">
        Lezen</font></td>
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="group1" value="4">
        Lezen</font></td>
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="other1" value="4">
        Lezen</font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="owner2" value="2">
        Schrijven</font></td>
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="group2" value="2">
        Schrijven</font></td>
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="other2" value="2">
        Schrijven</font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="owner3" value="1">
        Uitvoeren</font></td>
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="group3" value="1">
        Uitvoeren</font></td>
      <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-1">
        <input  type="checkbox" name="other3" value="1">
        Uitvoeren</font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td height="18">
        <div align="right"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="-1">CHMOD:</font></b></div>
      </td>
      <td height="18" colspan="2">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="45%">
              <input type="text" name="chmod" maxlength="3" size="3" value="<?php echo $chmod; ?>">
            </td>
            <td width="55%">
              <div align="right">
                <input type="reset" name="Reset" value="RESET">
                <input type="submit" name="Submit" value="OK">
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.