Tokiwa Battle Royale  GE777
A PHP Battle Royale inspired game
 All Data Structures Namespaces Files Functions Variables Pages
chmod.php
Go to the documentation of this file.
1 <?php
2 $dir = dirname(__FILE__);
3 
4 
5 
6 header("Content-Type: text/plain");
7 
8 echo "/bin/find \"$dir\" -type d -exec /bin/chmod -c 0770 '{}' \\; \n";
9 passthru("/bin/find \"$dir\" -type d -exec /bin/chmod -c 0770 '{}' \\; 2>&1");
10 
11 echo "\n\n";
12 echo "/bin/find \"$dir\" -type f -exec /bin/chmod -c 0660 '{}' \\; \n";
13 passthru("/bin/find \"$dir\" -type f -exec /bin/chmod -c 0660 '{}' \\; 2>&1");
14 
15 //var_dump($ret1,$ret2);
16 
$dir
Definition: chmod.php:2