¾ÆÀ̵ð ºñ¹Ð¹øÈ£ | ȸ¿ø°¡ÀÔ | ºñ¹Ð¹øÈ£ºÐ½Ç
   
¡¡»õ·Î¿î¼Ò½Ä
¡¡FAQ
¡¡À¥ÇÁ·Î±×·¥
¡¡À¥DB
¡¡À¥¼­¹ö
¡¡À¥ÇÁ·Î±×·¥¼öÁ¤
¡¡ÇØÇÇÄ®·³
¡¡°ñµåÆÁ
 
Á¦ÀÛÀÇ·Ú
À¥ÇÁ·Î±×·¥ ÆǸŸô
 
ÇöÀçÀ§Ä¡: ¸ÞÀÎ ÇØÇÇÆ÷·³ À¥ÇÁ·Î±×·¥ : °Ô½Ã¹° Àбâ
  1999-04-13 (00:38:44) from 211.33.54.237
  ÀÛ¼ºÀÎ : HappyCGI Á¶È¸¼ö : 2033   
Á¦¸ñ : ¸µ½º 1.1 wipe out Ç÷¯±×ÀÎ

µð·ºÅ丮°¡ ¾ÈÁö¿öÁö´Â °æ¿ì°¡ ÀÖÁÒ? ƯÈ÷ È£½ºÆÃÀ» ¹ÞÀ¸½Ã´Â ºÐÀº nobody·Î °í»ýÀº ÇѹøÂë ÇϼÌÀ» °Ì´Ï´Ù. ¾Æ·¡ ¼Ò½º¸¦ »ç¿ëÇغ¸¼¼¿ä. [ÇÁ·Î±×·¥ÄÚµå]
#!/usr/bin/perl #################################################################### # Wipeout! Version 1.0 # # Program to remove all previously created Links data directories # #################################################################### # Written by Mark Badolato, CyberNox Technologies, Inc. # # Last Modified May 25, 1998 # #################################################################### # Copyright 1998, CyberNox Technologies, Inc. All Rights Reserved # # Questions, comments, suggestions, or bugs may be emailed to: # # # # scripts@cybernox.com # #################################################################### # WARNING AND DISCLAIMER # # ---------------------- # # # # USE AT YOUR OWN RISK! Neither CyberNox Technologies, Inc., nor # # Mark Badolato will be held responsible for any loss of files, # # data, or any other losses or errors that may occur. By using # # this program, you agree to indemnify CyberNox Technologies, Inc. # # and Mark Badolato from any liability. # # # # Misuse of this program could result in potentially devestating # # loss to your data. Again, BE CAREFUL! # #################################################################### #################################################################### # Background: # # ----------- # # # # On some web hosts, if Links.cfg is set to build directories with # # permission of 0755, you may not be able to delete those created # # directories, or their corresponding index.html files. This is # # because nph-build.cgi is executed from the web, and thus the # # directories and files created are assigned as belonging to user # # "nobody" and not your own User ID. # # # # When this is the case, you cannot delete those directories or # # files from FTP or from Telnet; you get a Permission Denied error.# # # # The only way to circumvent this error, is to delete the files # # from the web browser, acting again as user "nobody." # # # # If you ran nph-build.cgi from the telnet command line, the files # # will be assigned your own User ID, and you should not have a # # problem deleting them through FTP, telnet, or UNIX command line. # # Also, since the owner is listed as your User ID, Wipeout! may # # not work from the web because the web would be considered user # # "nobody" and thus not have appropriate permission. # # # # Thus, files created from the web need to be deleted by running # # Wipeout! from the web, and files created from command line in # # telnet, need to be deleted from command line or FTP. # # Make sense? :) # # # # Instructions: # # ------------- # # # # 1) Set the $dir_path variable to the top of the directory that # # you want deleted. # # # # 2) Execute wipeout.cgi # # # #################################################################### # Read the Note: below before you set this variable & execute the program! $dir_path = "/path/to/the/root/of/the/directory/structure/you/want/deleted"; # Note: $dir_path is the directory whose contents, in and under, you # want deleted. BE VERY CAREFUL WHEN SETTING THIS PATH!! # If you have your Links data directories in the directory # called /search/ then you would set the path to: # $dir_path = "/path/to/search"; # and this program will wipeout everything in search...all of # search s files, subdirectories, and the subdirectory s files. # WARNING: If you set that path to your base (root) directory, # you very well may wipe out your entire website. BE VERY CAREFUL!!! use File::Path print "Content-type: text/html"; print "<HTML><HEAD><TITLE>Wipeout! Version 1.0</TITLE></HEAD>"; print "<BODY TEXT="#000000" BGCOLOR="#FFFFFF">"; print "<STRONG>Deleting Files in $dir_path:</STRONG>"; rmtree([$dir_path], 1, 1); print "<STRONG>Done!</STRONG>"; print "</BODY></HTML>"; # yes, tons of comments, just for a 9 line program :)



HappyCGI's SIGN
°³¹ßÀÚÀÇ ¹Ì´öÀº

°ÔÀ¸¸§(Laziness)
ÂüÁö¸»±â(Impatience)
±³¸¸(Hubris)


   ¸Þ¸ð

³²°ÜÁø ¸Þ¸ð°¡ ¾ø½À´Ï´Ù.

:³×¸Â¾Æ¿ä: :È­³ª´Â±º¿ä: :Àá¿Í: :¿ì¿ïÇØ: :À̰ǾƳÄ: :¿ÕÇÏÇÏ: ¿Õ¿ôÀ½~ ³î·¥~

  

 
¨Ô
Á¦¸ñ
ÀÛ¼ºÀÎ
Á¶È¸
µî·ÏÀÏ
¸µ½º 1.1 wipe out Ç÷¯±×ÀÎ
HappyCGI
2034
1999-04-13
 



  HOME | ȸ»ç¼Ò°³ | Á¦ÀÛÀÇ·Ú | °³ÀÎÁ¤º¸Ãë±Þ¹æħ | CGIMALL | ÀÚ·á½Ç | »çÀÌÆ®µî·Ï | ·©Å·100 | Æ÷·³ | Ãʺ¸°¡À̵å | Áú¹®°ú´äº¯ | ¹è³Ê±¤°í
Copyright¨Ï1997~2008 HappyCGI All rights reserved
Powered By HappyCGI