S=/var/www/glarkru/data/www/server.glark.ru
echo '== write ops in default/apps =='
grep -rn 'move_uploaded_file\|file_put_contents\|fwrite\|copy(\|mkdir(' $S/default/apps/ 2>/dev/null | head -20
echo '== write ops in core =='
grep -rn 'move_uploaded_file\|file_put_contents\|fwrite' $S/core/ 2>/dev/null | head
echo '== rootPath usages =='
grep -rn 'rootPath(' $S/default/ $S/core/ 2>/dev/null | grep -v 'function rootPath' | head -20
