[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/admin/ -> plugins.php (sommaire)

(pas de description)

Poids: 532 lignes (23 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 public_html/admin/auth.inc.php
 public_html/lib-common.php

Définit 7 fonctions

  plugineditor()
  changePluginStatus()
  saveplugin()
  show_newplugins()
  do_update()
  do_uninstall()
  listplugins()

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

plugineditor($pi_name, $confirmed = 0)   X-Ref
Shows the plugin editor form

param: string  $pi_name    Plugin name
param: int     $confirmed  Flag indicated the user has confirmed an action
return: string              HTML for plugin editor form or error message

changePluginStatus($pi_name)   X-Ref
Toggle status of a plugin from enabled to disabled and back

param: string  $pi_name    name of the plugin
return: void

saveplugin($pi_name, $pi_version, $pi_gl_version, $enabled, $pi_homepage)   X-Ref
Saves a plugin

param: string  $pi_name        Plugin name
param: string  $pi_version     Plugin version number
param: string  $pi_gl_version  Geeklog version plugin is compatible with
param: int     $enabled        Flag that indicates if plugin is enabled
param: string  $pi_homepage    URL to homepage for plugin
return: string                  HTML redirect or error message

show_newplugins()   X-Ref
Creates list of uninstalled plugins (if any) and offers install link to them.

return: string      HTML containing list of uninstalled plugins

do_update($pi_name)   X-Ref
Updates a plugin (call its upgrade function).

param: pi_name   string   name of the plugin to uninstall
return: string   HTML for error or success message

do_uninstall($pi_name)   X-Ref
Uninstall a plugin (call its uninstall function).

param: pi_name   string   name of the plugin to uninstall
return: string   HTML for error or success message

listplugins()   X-Ref
List available plugins

return: string                  formatted list of plugins



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