   Boundless source
Copyright  http://i-vd.org.ru/
: Unix (Linux, FreeBSD  ..)
: Perl  5.006   (      CGI (Perl) )

#####################################################################################


      http://i-vd.org.ru/  !!!


	  :
	 
	 
	  
	   
	   
	
	 ,   
	  
	 
	    ,  
	 



				 :

       ,             .       (       1.6  ). 

   ,       ,       ,     (   1.7  ). 

        ,     ,     (   -). 

         .     , IP-,  URL, URL    ,       .      . 

     . 

         (    ). 

           IP-. 

     ,     (   1.6). 

        . 

  IP-. 

   ,       (   1.3).       . 

      ,         (   1.3). 

       ,    ,        ,      (   1.6).   .

     ,           ,  ,        ,        (   1.6). 

 ""    ,        ,    ,        404,      -,           ,   . (   1.5) 

    ,      HTML. 

       MySQL,      . 

             ,       ,             ,         . 
         .






				 

1.   ,          .cgi,       perl.    #!/usr/bin/perl      #!   . !        , ..  99%    Perl   /usr/bin/perl.       ,        Perl .

 ,   -     "" ("Notepad")    Windows,                 -  ,   :   ""   ,     " >>  >> ".       " >> ",       .

2.   ,     Perl-     cgi-bin,          .cgi    config.pl,  FTP ,      ,    FTP.       ,         html  php  (    , : /users/vasya_pupkin/public_html/catalog , URL      : http://you-personalsitename.ru/catalog/ ). 
 Perl      ,        ( /users/vasya_pupkin/public_html/catalog ),      ,          (  config.pl),   ,     sendmail    /usr/sbin/sendmail 


3.       config.pl,     ,        URL-.             ,    . 

     config.pl :

# $mailprog -    sendmail  
$mailprog = '/usr/sbin/sendmail' ;

# $lock -          ($lock=0  Windows 98)
$lock = 1 ;

# defdir -     ,     "data", "counter", "images"      $defdir=""; (   !) "." -      .     : /  ..   Windows

$defdir = '/users/vasya_pupkin/public_html/catalog' ;

# html_url - URL  ,     "data", "counter", "images"(   !)
$html_url = 'http://you-personalsitename.ru/catalog/' ;

# index_url - URL  index.cgi
$index_url = 'http://you-personalsitename.ru/cgi-bin/index.cgi' ;

# add_script_url - URL  add-lnk.cgi
$add_script_url = 'http://you-personalsitename.ru/cgi-bin/add-lnk.cgi' ;

# admin_script_url - URL  admin.cgi
$admin_script_url = 'http://you-personalsitename.ru/cgi-bin/admin.cgi' ;

# multipart_url - URL  multipart.cgi
$multipart_url = 'http://you-personalsitename.ru/cgi-bin/multipart.cgi' ;

# rndimage_script - URL  rnd-img.cgi
$rndimage_script = 'http://you-personalsitename.ru/cgi-bin/rnd-img.cgi' ;

# deadlink_url - URL  dead-link.cgi
$deadlink_url = 'http://you-personalsitename.ru/cgi-bin/dead-link.cgi' ;

# $invchk_url - URL  inv-chk.cgi
$invchk_url = 'http://you-personalsitename.ru/cgi-bin/inv-chk.cgi' ;
 

4.          .cgi   (CHMOD) 0711 (  (Owner) - , ,  ;  (Group) -  ;   (Public) -  )  0755 (  (Owner) - , ,  ;  (Group) - ,  ;   (Public) - ,  ).   ,   ,       .cgi,   ,    ( 0755). 

5.     ,   ,       admin.cgi,      .
: admin
: admin
       " >>  "         .     " >> ",  E-mail ,  ,  , URL       .      ,          -       ,   .    ,       -    .      index.cgi.






			  

        :

1.     ""      inversely-link.html,     URL-.    ,      inversely-link.html.   ,    <!--  -->
: <!--   -->
        .

2.       " >> ",   "URL  ,          ,    "   URL    (        inversely-link.html : http://site.ru/ ),   URL ,   
( : http://site1.ru/ http://site2.ru/ http://subsite.site1.ru/ ).
 ,   " "  .

!  :
   inversely-link.html    http://site.ru (..  ,    URL       )      " >> ",   "URL  ,          ,    "   http://site.ru/ (..    ),           .      URL   www   www,       URL ,    .      URL       (    " >>   ",  " URL  ,       "),    .

  " >> "    :
"      ":  80  200 . 
"     ":  5  20 . 





			   

1.   ,       config.pl URL   inv-chk.cgi,     URL       ,       ,        ,       .

2.       " >>   "  
 " URL  ,       "   URL   ,     .
      ,          ,   "   ,        "        .    ,   " ".

3.    " >>   "    ,   "  ".


  ,     URL    (.. ,       ,     URL      ),         ,      .

   .    ,     (   - )   ,     ,   ,     .     ,   ,     
,   inv-chk.cgi    <IFRAME>  ,   (   IFRAME   ,  
    ,     ,   ).

         ,       ,     " >>   "   " ",       ""            -   .






			   

             mail_message.txt (       " >>  ").    -   ,       ,       %,     .        ,    ,   url      ,    -  .
    :

 %name% -   ,     .
 %url% -   url    .
 %id% -    id    ,  .
 %password%  -   ,       .
 %category% -     ,     .
 %personal_page% -       (  ).
 %invers_page% -       url        ,        .
 %index_url% -  url   index.cgi, ..   .
 %add_script_url% -  url   add-lnk.cgi, ..     ( ).







				:

        ,       IP- .       Ip-. ..,      IP-,         ,      ""   .   ,       ,     ,     ""   .

   ,        ,     ,        ,         " >> "   "         IP-".

    ,   -,     ,    .

        "data"   .

       , ,      "GD"!     ,        .      "GD"   ,      ,     "GD",     ,    .







		 ,   :


1. :  ,  config.pl   ,     500, Internal Server Error.
:  : 
 1.1.     -      Windows.   ,    - ,   config.pl,     Windows       Windows,         FTP-,       Windows     Unix,  CuteFTP,  - .    ,        (Transfer type) Auto  Default  ASCII.
   -           Windows     -,            Windows     Unix-     "Windows - Unix Text Converter".  ,    ,    ,   Windows - Unix Text Converter, ,     "   ",    "  Windows  Unix",    ,  ,     ,         Windows                  Unix.    : http://i-vd.org.ru/soft/wu-conv.shtml 
 1.2.   ,            -    ,    php ,    php      SAPI  Apache,    CGI ,          -, ..         ,  Apache     .         FTP-,        ,   -.   FTP,          .         FTP    Internet Explorer,         : ftp://user_name:user_password@you-ftphost.ru
  :
user_name -       FTP
user_password -      FTP
you-ftphost.ru -  FTP 
 1.3. ,          .cgi   0711  0755.         0710  0700. 
,           .cgi   perl.   sendmail   perl       . 


2. :  ,   , CGI      ,      http://you-personalsitename.ru/catalog/ ,       http://you-personalsitename.ru/catalog/ ,      http://you-personalsitename.ru/catalog/index.cgi 
:      .htaccess      :
DirectoryIndex index.cgi


3. :  ,   , CGI      ,      http://you-personalsitename.ru/catalog/ ,   ,       : http://you-personalsitename.ru/catalog/index.cgi?category=cat1&ch=cat1 ,   ,     index.cgi    : http://you-personalsitename.ru/catalog/?category=cat1&ch=cat1 
:   config.pl  URL  index.cgi  , ,     :
$index_url = 'index.cgi' ;
    :
$index_url = 'http://you-personalsitename.ru/catalog/index.cgi' ;
   :
$index_url = 'http://you-personalsitename.ru/catalog/' ;


4. : " ,   , CGI       cgi-bin,             -  ." 
:   ,        index.shtml      :
<!--#include virtual="/cgi-bin/index.cgi?$QUERY_STRING"-->
 /cgi-bin/index.cgi -    index.cgi   .    ,     SSI (server side includes),     CGI,     SSI.  URL    config.pl     ,   ,    URL  index.cgi  URL ,      index.shtml.    config.pl    :

# defdir -     ,     "data", "counter", "images"      $defdir=""; (   !) "." -      .     : /  ..   Windows
$defdir = '/users/vasya_pupkin/public_html/catalog' ;

# html_url - URL  ,     "data", "counter", "images"(   !)
$html_url = 'http://you-personalsitename.ru/catalog/' ;

# index_url - URL  index.cgi
$index_url = 'http://you-personalsitename.ru/catalog/' ;

# add_script_url - URL  add-lnk.cgi
$add_script_url = 'http://you-personalsitename.ru/cgi-bin/add-lnk.cgi' ;

# admin_script_url - URL  admin.cgi
$admin_script_url = 'http://you-personalsitename.ru/cgi-bin/admin.cgi' ;

# multipart_url - URL  multipart.cgi
$multipart_url = 'http://you-personalsitename.ru/cgi-bin/multipart.cgi' ;

# rndimage_script - URL  rnd-img.cgi
$rndimage_script = 'http://you-personalsitename.ru/cgi-bin/rnd-img.cgi' ;

# deadlink_url - URL  dead-link.cgi
$deadlink_url = 'http://you-personalsitename.ru/cgi-bin/dead-link.cgi' ;

# $invchk_url - URL  inv-chk.cgi
$invchk_url = 'http://you-personalsitename.ru/cgi-bin/inv-chk.cgi' ;
 

        http://you-personalsitename.ru/index.shtml       http://you-personalsitename.ru/       .htaccess      :
DirectoryIndex index.shtml

P.s.        , ,    CGI    ,         , ..    .    .  ,     CGI    ,    ,      ,  .htaccess      : AddHandler cgi-script .cgi .pl
      0711  CGI     500 Internal Server Error,      ,  CGI      cgi-bin.



5. :   admin.cgi  index.cgi   :     "data", ,        "config.pl",          ,      :
$defdir = '/users/vasya_pupkin/public_html/catalog' ;
   ? 
:    html ,          html  (      public_html  www  WWW)       ,      .
     ,    . ,      cgi-bin      public_html     :

/users/vasya_pupkin/public_html
/users/vasya_pupkin/public_html/cgi-bin
/users/vasya_pupkin/public_html/catalog

     :

$defdir = '../catalog' ;

   cgi-bin    , ..        public_html,     :

/users/vasya_pupkin/public_html
/users/vasya_pupkin/cgi-bin
/users/vasya_pupkin/public_html/catalog

     :

$defdir = '../public_html/catalog' ;

 public_html    html .

.. (2 ) -       1  .
. (1 ) -      .

 ,   config.pl      ,         .cgi

  ,   UNIX      , .. vasya_pupkin  Vasya_Pupkin -     .

     cgi-bin       , , cgi  scripts ...,   ,     HTTP    cgi-bin   : http://you-personalsitename.ru/cgi-bin/   ,  ,        html ,         ( ,      ,          -,          -).



6. :     ? 
:        inversely-link.html.   inversely-link.html      ,     URL-.    ,      inversely-link.html.   ,    <!--  --> : <!--   -->         . 







			  


       HTML,       ,     main.html ( HTML    )  chapters.html ( HTML     ).

     <!--left_menu-->  . -  ,    ,  .

,       %  ,         .       :


 - - - - - - - - - - - -


  main.html (HTML    )

 <!--left_menu--> -     HTML-  .

 <!--top_menu--> -     HTML-  .

 <!--chapters--> -       .

 %mainpage_title% -        ,         " >> ".

 %html_url% -     URL  ,     "data", "counter", "images",      config.pl   $html_url = './' ;     %html_url%     URL   .

 %images% -     %images%     URL   .


 - - - - - - - - - - - -


  chapters.html (HTML     )

 <!--left_menu--> -     HTML-  .

 <!--top_menu--> -     HTML-  .

 <!--title--> -       .

 <!--messages--> -        .

 <!--pagebar--> -          (1,2,3,4...).

 <!--chapters_menu_main--> -        .

 <!--subchapters_horizontal--> -          ( ).

 <!--chapters_menu--> -     chapters.html   <!--subchapters_horizontal--> ,    <!--chapters_menu--> ,           (   ).     chapters.html       Template_Sample,   Template_Sample.txt   .

 <!--buttons-->             ,    HTML ,               "".         .

 <!--block1--> -        -      ,        block1.htm   .       "data".              . ,        URL: http://localhost/?category=cat3&ch=cat1  -       block1.htm    "data/cat3/cat1".  <!--block1-->      block1.htm,   .

%title% -        .

%document_title% -         (   ),         " >> ".

 %html_url% -   ,     main.html.

 %images% -   ,     main.html.

 %search% -         ,     .

 %category% -       ()       .

 %ch% -       ()       .

 %index_url% -     URL  index.cgi,      config.pl   $index_url = 'index.cgi' ;     %index_url%     URL   index.cgi.

 %add_script_url%  -     URL     add-lnk.cgi,      config.pl   $add_script_url = 'add-lnk.cgi' ;     %add_script_url%     URL   add-lnk.cgi.

 - - - - - - - - - - - -


  left_menu.html ( ,        " >>  ")

 %site_url% -     URL   ,         " >> ".

 %images% -   ,     main.html.

 %add_script_url% -   ,     chapters.html.


 - - - - - - - - - - - -


  top_menu.html ( ,        " >>  ")

 %images% -   ,     main.html.

 %site_url% -   ,     left_menu.html.

 %site_title% -      ,         " >> ".


 - - - - - - - - - - - -


  template_add.html (HTML    ,  ,    )

 <!--left_menu--> -     HTML-  .

 <!--top_menu--> -     HTML-  .

 <!--content--> -        (   )

 %html_url% -     URL  ,     "data", "counter", "images",      config.pl   $html_url = './' ;     %html_url%     URL   .

 %images% -     %images%     URL   .

 %site_url% -     URL   ,         " >> ".

 - - - - - - - - - - - -




		    ,  

           style1.css
        ?             " HTML ",    : class="_".     HTML ,    ,         style1.css,      .



		 		- - - - - - - - - - - -






		 


   Boundless Source 2.5  ,       HTML ,     ,     HTTP ,           ,    Boundless Source . 
  :

   
<!--#read_file="file.html"-->
<!--#read_file="/users/pupkin/public_html/file.txt"-->

        HTTP
<!--#get_http="http://www.your-site.info/script.php"-->
<!--#get_http="http://www.your-site.info/file.html"-->

 Perl-
<!--#require_file="test.pl"-->
<!--#require_file="/users/pupkin/cgi/test.pl"-->
<!--#require_file="../test.pl"-->









			 :


			 2.6

           .



			 2.5

1.          Boundless Source,              .
         ,       .
       " >      ".

2.   HTML  .        HTML ,     ,     HTTP ,            (.  " ").





			 2.4

 ,    "URL    "     ,      (      " >> ").


			 2.3

    .


			 2.2

     " "     ,      HTTP_REFERER,    .


			 2.1

1.       (     ,    )    ,   ,    HTML . (      .    2.1,         ).       HTML . 


			 2.0

1.        : 
         . 
        .        .

2.      ,   ,    HTTP  "404 Not Found". 


			 1.9

1.     ,              .                        ,    ,       .              .


			 1.8

1.      " >> "  ,       "URL         ",    .  ,     ,           ,             .        ,     .                 ,    ,       ,          ,          ,  (    ) "" .     ,      .


2.     HTML .        ,  ,  ,    ,             .           ,        HTML .


3.           .    :
%name% -   ,     .
%url% -   url    .
%id% -    id    ,  .
%password% -   ,       .
    :
%category% -     ,     .
%personal_page% -       (  ).
%invers_page% -  url        ,        .



			 1.7

1.         ,              "title",        . 



			 1.6

1.                  ,              .

   ,    ,        ,    2  .       ,   1  .    ,      ,  ,    ,     ,        . ,  3    ,   ,    .

   ,        ,     ,   .        ,        ,     .

2.       ,    .
,          ,      . ,     example.com   test.example.com     ,      example.com.      com            .com

3.      " >> "     : 
      " " (      : "   "),     . 
         (      ). 
  "E-mail"    ,      ,   E-mail   (    "E-mail"  ). 

4.     (        ).

5.    ,         cookies.

6.           ,  ,        ,       .

7.       .



				    1.5

1.     "" . 
2.       . 
3.  ,      ,     . 


				    1.4

1.        .



				    1.3

1.         ,   ,           ,        ,           ,              .          .
           ,             . 

2.    .        ,   ,             . ,     .     ,         . 

3.               ,       .     ,          . 

4.   . 

5.       . 

6.  ,   ,    1.3   ,            .     . 



				    1.2
1.     .         ,     . 



				    1.1

 1.        .   :         ,     ,     ,               .
 2.   URL       ,           .          . ,       http://exemple.com/       ,     URL http://exemple.com/shop/about.html     URL http://www.exemple.com/ ,        URL http://news.exemple.com/ ,  ,  news.exemple.com   .
 3.     .


#####################################################################################
