#!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan

. /etc/PG.conf
RAMDISK=/usr/ramdisk
SYSPKGROOT="${RAMDISK}"
HTTPD="${RAMDISK}/bin/ipe_httpd"
ADMIN="${RAMDISK}/admin"

printf "Content-type: text/html; charset=gb2312
Cache-Control: no-cache

"
echo -n "<br><br><br><br><center><h3>򵼸Уڴ</h3><br>
<h2>Ӧó򣬿ֱ<a target=\"_blank\" href=\"http://down.kx8.cn:8080/files/Netzone/guide.rar\"></a></h2><br>
<h3>Իȡ<a target=\"_blank\" href=\"http://www.netzone.com/down.html\">°</a></h3></center>"

if [ ! -f ${PGPATH}/admin/cgi-bin/Wangba/wangba_guide.pl ]; then   
  echo -n "#!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan
printf \"Content-type: text/html
Cache-Control: no-cache

\"
echo \"<br><h2><a target=\\\"_blank\\\" href=\\\"http://www.netzone.com/down.html\\\">·ɰ</a><h2>\" 
" > ${PGPATH}/admin/cgi-bin/Wangba/wangba_guide.pl

  echo -n "#!/bin/sh
#This script is created by ssparser automatically. The parser first created by MaoShouyan
printf \"Content-type: text/html
Cache-Control: no-cache

\"
echo \"\" 
" > ${PGPATH}/admin/cgi-bin/Wangba/menu.pl

  chmod +x ${PGPATH}/admin/cgi-bin/Wangba/wangba_guide.pl
  chmod +x ${PGPATH}/admin/cgi-bin/Wangba/menu.pl
  
  cp ${PGPATH}/admin/cgi-bin/Wangba/wangba_guide.pl ${ADMIN}/cgi-bin/Wangba/.
  cp ${PGPATH}/admin/cgi-bin/Wangba/menu.pl ${ADMIN}/cgi-bin/Wangba/.

fi

