Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: links/edit.php

links/edit.php - Post a new link or update an existing one

This is the main script used to post a new link, or to modify an existing one.

Each link may have a label, a hovering title, a target window, and a full description.

Shortcuts for internal links are accepted. This script will automatically translate:

This script ensures that links stored in the database may be easily classified as being external or internal. This is achieved by applying following transformations to submitted links:

Also, an external link may be displayed in a separate window, or in the current window.

When a new link is posted:

When a link is updated:

Associates can also decide to not stamp the creation or the modification of the link. If the silent option is checked:

A button-based editor is used for the description field. It's aiming to introduce most common codes supported by YACS.

This script attempts to validate the new or updated article description against a standard PHP XML parser. The objective is to spot malformed or unordered HTML and XHTML tags. No more, no less.

The permission assessment is based upon following rules applied in the provided orders:

Anonymous (not-logged) surfer are invited to register to be able to post new images.

The edition time is not limited at all. Some Javascript code polls the server in the background to ensure that session data is not lost during all the time the browser window is opened.

Accepted calls:

If no anchor data is provided, a list of anchors is proposed to let the surfer select one of them.

There is also a special invocation format to be used for direct bookmarking from bookmarklets, such as the one provided by YACS.

This format is aiming to provide to YACS every necessary parameters, but through a single GET or POST call. Following parameters have to be provided:

If no authentication data is provided (account and password), the surfer is redirected to the login page at users/login.php.

Data submitted from a bookmarklet is saved as session data. Therefore information is preserved through any additional steps, including user authentication and category selection.

Also, session data is purged on successful article post.

This design allows for a generic bookmarklet bound only to the web site.

The generic bookmarking bookmarklet is proposed as a direct link to any authenticated member:

If the anchor for this item specifies a specific skin (option keyword 'skin_xyz'), or a specific variant (option keyword 'variant_xyz'), they are used instead default values.

This script is a reference file of this system.

Voir aussi:

Licence: GNU Lesser General Public License

Auteurs:

Testeurs:

Tools
Browse the source of this script
Server software