[ Index ]
 

Code source de Phorum 5.1.25

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/docs/example_mods/ -> helloworld.php (source)

   1  <?php
   2  
   3  // This is an example of a single file module for Phorum. Almost all
   4  // programming courses start out with building a program that displays
   5  // "Hello, world!" on screen. The Phorum developers have followed 
   6  // the tradition and created "Hello, world!" for the Phorum module
   7  // system.
   8  
   9  if(!defined("PHORUM")) return;
  10  
  11  /* phorum module info
  12  title: Single file "Hello, world!" module
  13  desc: This is an example of a single file module. The module will display "Hello, world!" after displaying the page header.
  14  hook: after_header|phorum_mod_helloworld_after_header
  15  */
  16  
  17  function phorum_mod_helloworld_after_header () {
  18      print "Hello, world!";
  19  }


Généré le : Thu Nov 29 12:22:27 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics