| Current Path : /proc/thread-self/root/proc/self/root/usr/local/ei2/ |
| Current File : //proc/thread-self/root/proc/self/root/usr/local/ei2/yii.php |
#!/usr/local/php7.3/bin/php
<?php
$full_path = $argv[1];
$cmd = `cp -a /home/www/shared/yii/$full_path/web/* .`;
$index = file_get_contents('index.php');
$index = str_replace('__DIR__', "'/home/www/shared/yii/$full_path/'", $index);
$index = str_replace('/../', "/", $index);
file_put_contents('index.php', $index);