Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: control/populate.php

control/populate.php - Populate the database

This script helps to create records in the database.

If there is no switch.on nor switch.off file, the script asks for a user name and password to create an associate user profile. This is usually what happen on first installation.

This can be used also if one webmaster losts his password. In this case, delete the switch file (normally, switch.on) and trigger this script to recreate a new associate user profile.

Else the script populates the database according to the value of the parameter 'action':

If no parameter has been set, the script displays a form to make the surfer select among available options.

When the parameter 'action' has the value 'build', this script creates records in following tables:

When the parameter 'action' has the value 'samples', this script creates records in following tables:

When the parameter has the value 'associate', 'build' or 'samples', this script also invokes a hook to populate additional tables:

Only associates can use this script, except if no switch file is present. Invocations are also accepted if the user table is missing or empty.

If an associate user profile is created, apply it to the current surfing session.

This script is a reference file of this system.

Licence: GNU Lesser General Public License

Auteurs:

Reste à faire:

send_body()

function send_body()

send_body() - Dynamically generate the page

function send_body()

Voir aussi:

send_body() - Dynamically generate the page

function send_body()

Voir aussi:

send_body() - Dynamically generate the page

function send_body()

Voir aussi:

Tools
Browse the source of this script
Server software