Loading ...
Sorry, an error occurred while loading the content.

Re: http include

Expand Messages
  • shiplu
    On Mon, Mar 31, 2008 at 1:27 PM, A.N.M. Saiful Islam ... sorry the url will be includebyauth.php?key=XXXXXXXXXXXXXXXX&file=.
    Message 1 of 1 , Mar 31, 2008
    • 0 Attachment
      On Mon, Mar 31, 2008 at 1:27 PM, A.N.M. Saiful Islam <email@...> wrote:
      Dear Shiplu Vaiya,
       
      I am not fully clear about your method. Would you like to clear me with more description?
       
      I have some questions.
       
      What will be the contents of the includebyauth.php (source code)
       
      Why and how does the key and file variable will use? (e.g. includebypath.php?key=XXXXXXXXXXXXXXXX&file=./include/database.php)
       
      Thanks a lot for your urgent help.
       
      @Saiful

      sorry the url will be includebyauth.php?key=XXXXXXXXXXXXXXXX&file=.
      /include/database.php

      includebyauth.php:
      it will check the key. just like password.
      if the checking is successful then it will read the file content of file variable and dump it.
      so simple.
      here is a smaple code. you should get some idea from it.

      --------------------------------------------------------------------------------------------------
      // includebyauth.php file listing

      function dump_file($f){echo file_get_contents($f);}

      if ( isset($_GET['key']) && ($_GET['key']=='XXXXXXXXXXXXXXXX') ) :
      // Its Saiful. Can be trusted.
         if(isset($_GET['file']) && file_exists($_GET['file']) ) :
            dump_file($_GET['file']);
         endif;
      else if ( isset($_GET['key']) && ($_GET['key']=='YZYZYZYZYZYZYZYZ') ) :
      // its not Josef. Can be trusted too.
        if(isset($_GET['file']) && file_exists($_GET['file']) ) :
            dump_file($_GET['file']);
         endif;
      else:
      // Unknown person. Do nothing.
      endif;
      exit(0);

      --

      comment on http://talk.cmyweb.net/
      All time available for Hire/Contract/Full Time :)
    Your message has been successfully submitted and would be delivered to recipients shortly.