Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: scripts/scripts.php

class Scripts - Handling scripts

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

adjust() - Adjust the size of one string

function &adjust($text, $size=45)

compare() - Compare two sets of lines by finding the longest common sequence

function &compare($old_stream, $new_stream)

diff() - Get the diff as a table of lines

function diff($original, $updated)

gdiff() - Get the gdiff as a single text string

function gdiff($original, $updated)

get_url() - Get the url to view a script

function get_url($id, $action='view')

By default, a relative URL will be provided (e.g. 'scripts/view.php?script=search.php'), which may be not processed correctly by search engines. If the parameter 'with_friendly_urls' has been set to 'Y' in the configuration panel, this function will return an URL parsable by search engines (e.g. 'scripts/view.php/search.php').

Voir aussi:

hash() - Hash the content of one file

function hash($file)

list_files_at() - List all files below a certain path

function list_files_at($path)

This function is called during the creation of the archive file. It is aiming to scan the reference store and to list every file in it, whether it is a reference PHP script or not.

Also print '.' and '!' while scanning the path to animate the resulting screen.

Voir aussi:

list_scripts_at() - List running scripts below a certain path

function list_scripts_at($path)

This script is used to list scripts below the YACS installation path. Special directories 'scripts/reference' and 'scripts/staging' are skipped. Also directory entries named either 'files' or 'images' are not recursively scanned, because of the potential high number of uninteresting files they can contain.

Also echo '.' (one per file) and '!' (one per directory) during the scan.

Voir aussi:

merge() - Merge two files

function merge($original, $updated)

purge_run_once() - Flag all scripts in scripts/run_once

function purge_run_once()

Tools
Browse the source of this script
Server software