>

美洲杯在线投注_2019美洲杯外围投注[投注官网]

热门关键词: 美洲杯在线投注,2019美洲杯外围投注[投注官网]

Linux下的Zen Cart安全脚本

- 编辑:美洲杯在线投注 -

Linux下的Zen Cart安全脚本

#!/bin/bash
echo "install some setting for zen cart because of some secure reason..."
for site in /data0/htdocs/*;do
  if [ -d $site ]; then
    if [ -f $site/includes/application_top.php ]; then
      echo $site" is zen cart folder"
      chmod 444 -R $site/docs
      chmod 444 -R $site/extras
      chmod 444 $site/install.txt
      rm -rf $site/download
篮球世界杯在线投注,      rm -rf $site/media
      rm -rf $site/pub
      for zi in `ls $site |grep zc_install`; do
        echo "found zc_install and delete it"
        rm -rf $site/$zi
      done
      echo "dropping "$site"/admin/password_forgotten.php"
      rm -f $site/admin/password_forgotten.php
      #echo "setting init_header.php..."
      ls $site/includes/init_includes/init_header.php
      sed -i $site/includes/init_includes/init_header.php -e "s/'WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'/'WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'false'/g"
    fi
  fi
done篮球世界杯在线投注 1

本文由计算机教程发布,转载请注明来源:Linux下的Zen Cart安全脚本