[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/ -> submit.php (sommaire)

(pas de description)

Poids: 540 lignes (22 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 1 fichier
 public_html/lib-common.php

Définit 5 fonctions

  submissionform()
  submitstory()
  sendNotification()
  savestory()
  savesubmission()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

submissionform($type='story', $mode = '', $topic = '')   X-Ref
Shows a given submission form

This is the submission it is modular to allow us to write as little as
possible.  It takes a type and formats a form for the user.  Currently the
types is story.  If no type is provided, Story is assumed.

param: string  $type   type of submission ('story')
param: string  $mode   calendar mode ('personal' or empty string)
param: string  $topic  topic (for stories)
return: string          HTML for submission form

submitstory($topic = '')   X-Ref
Shows the story submission form


sendNotification($table, $A)   X-Ref
Send an email notification for a new submission.

param: string  $table  Table where the new submission can be found
param: string  $id     Id of the new submission

savestory($A)   X-Ref
Saves a story submission

param: array   $A  Data for that submission
return: string      HTML redirect

savesubmission($type, $A)   X-Ref
This will save a submission

param: string  $type   Type of submission we are dealing with
param: array   $A      Data for that submission



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics