Site update

© 2005-2014 by Denis Sureau - Mozilla License 1.1

https://www.iqlevsha.ru





License


Site Update is a free and open source script distributed under the Mozilla 1.1 license.

Function


This tool copies a portion (such as a menu) of a web page to all other pages in the same directory.

Command and parameters


locipd [options] source file
locipd [options] directory file
locipd [options] files source @ listefichers

Options

# n digits or letters for the initial marker, if there are more than one.

The default token is <! -XSTARTX -> and the number or letter replaces the second X.
Example: # 1 <! -XSTART1 ->
The end marker always remains <! -XENDX ->

-i Insert only.
In this case, no markers are used, the entire source file is inserted at the beginning of the target files. This is especially appropriate for project source files.

Other arguments

File Source:

The or file accepts text for insertion or replacement. With the -i option, the entire contents of the file are inserted, otherwise the text between the start and end markers is placed in the same markers in the end file.

Directory:
Directory where the files will be taken. If it is not registered, the current directory is saved. In this case, you need to go to the directory and enter:
sitippd source files



@ listefichiers:
In this case, the text file contains a list of pages with their path on the hard disk.

How to use markers


In order for the program to know which part of the page needs to be reprinted, you need to mark it.
Default markers:


<! -XSTARTX ->
<! -XENDX ->


They restrict the text to be copied and where to copy it to other pages.


You can use multiple pairs of markers by changing one letter:

<! - XSTART1->
<! -XENDX ->



In this example, the number 1 replaces the letter X, and this code must be specified in the command.

 

Use


Pages are recognized by their extension: html, html, php, php3, php4, php5, xhtml, dhtml, asp...
You can add or remove extensions in the source code and recompile it with the Script compiler.

Syntax:

source # n [directory | @ list]


n - letter or number: 0.. 9, A.. Z, a.. z, etc.



Copy to all catalog pages:

locipd c :\monsite\index.html c :\monsite

Tag code command:

locipd c :\monsite\index.html c :\monsite # 1


Copy pages to list:

sitippd source @ list


situpd.ini

This configuration file allows you to:

Ex-extensive



  1. locipd index.php
    distribution to all pages of the catalog..

  2. socippd xml.html # 1
    propagation for tokens containing the specified code.