Zikula_System_Modules
[ class tree: Zikula_System_Modules ] [ index: Zikula_System_Modules ] [ all elements ]

Source for file pntables.php

Documentation is available at pntables.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  * @copyright (c) 2001, Zikula Development Team
  5.  * @link http://www.zikula.org
  6.  * @version $Id: pntables.php 24342 2008-06-06 12:03:14Z markwest $
  7.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  8.  * @package Zikula_System_Modules
  9.  * @subpackage AntiCracker
  10. */
  11.  
  12. /**
  13.  * This function is called internally by the core whenever the module is
  14.  * loaded.  It adds in the information
  15.  * @author Mark West
  16.  * @return array pntables array
  17.  */
  18. {
  19.     // Initialise table array
  20.     $pntable array();
  21.  
  22.     // Set the table name
  23.     $pntable['sc_anticracker'DBUtil::getLimitedTablename('sc_anticracker');
  24.  
  25.     // Set the column names.  Note that the array has been formatted
  26.     // on-screen to be very easy to read by a user.
  27.     $pntable['sc_anticracker_column'array('hid'       => 'pn_hid',
  28.                                            'hacktime'     => 'pn_hacktime',
  29.                                            'hackfile'     => 'pn_hackfile',
  30.                                            'hackline'     => 'pn_hackline',
  31.                                            'hacktype'     => 'pn_hacktype',
  32.                                            'hackinfo'     => 'pn_hackinfo',
  33.                                            'userid'       => 'pn_userid',
  34.                                            'browserinfo'  => 'pn_browserinfo',
  35.                                            'requestarray' => 'pn_requestarray',
  36.                                            'getarray'     => 'pn_gettarray',
  37.                                            'postarray'    => 'pn_postarray',
  38.                                            'serverarray'  => 'pn_serverarray',
  39.                                            'envarray'     => 'pn_envarray',
  40.                                            'cookiearray'  => 'pn_cookiearray',
  41.                                            'filesarray'   => 'pn_filesarray',
  42.                                            'sessionarray' => 'pn_sessionarray');
  43.  
  44.     $pntable['sc_anticracker_column_def'array('hid'       => 'I PRIMARY AUTO',
  45.                                                'hacktime'     => 'C(20) DEFAULT NULL',
  46.                                                'hackfile'     => "C(255) DEFAULT ''",
  47.                                                'hackline'     => 'I DEFAULT NULL',
  48.                                                'hacktype'     => "C(255) DEFAULT ''",
  49.                                                'hackinfo'     => "XL",
  50.                                                'userid'       => 'I DEFAULT NULL',
  51.                                                'browserinfo'  => 'XL',
  52.                                                'requestarray' => 'XL',
  53.                                                'getarray'     => 'XL',
  54.                                                'postarray'    => 'XL',
  55.                                                'serverarray'  => 'XL',
  56.                                                'envarray'     => 'XL',
  57.                                                'cookiearray'  => 'XL',
  58.                                                'filesarray'   => 'XL',
  59.                                                'sessionarray' => 'XL');
  60.  
  61.  
  62.     // Log Event Table Name
  63.     $pntable['sc_logevent'DBUtil::getLimitedTablename('sc_log_event');
  64.     $pntable['sc_logevent_column'array('id'             => 'lge_id',
  65.                                            'date'           => 'lge_date',
  66.                                            'uid'            => 'lge_uid',
  67.                                            'component'      => 'lge_component',
  68.                                            'module'         => 'lge_module',
  69.                                            'type'           => 'lge_type',
  70.                                            'function'       => 'lge_function',
  71.                                            'sec_component'  => 'lge_sec_component',
  72.                                            'sec_instance'   => 'lge_sec_instance',
  73.                                            'sec_permission' => 'lge_sec_permission',
  74.                                            'message'        => 'lge_message');
  75.     $pntable['sc_logevent_column_def'array('id'             => 'I PRIMARY AUTO',
  76.                                                'date'           => 'T DEFAULT NULL',
  77.                                                'uid'            => 'I4 DEFAULT NULL',
  78.                                                'component'      => "C(64) DEFAULT NULL",
  79.                                                'module'         => 'C(64) DEFAULT NULL',
  80.                                                'type'           => 'C(64) DEFAULT NULL',
  81.                                                'function'       => 'C(64) DEFAULT NULL',
  82.                                                'sec_component'  => 'C(64) DEFAULT NULL',
  83.                                                'sec_instance'   => 'C(64) DEFAULT NULL',
  84.                                                'sec_permission' => 'C(64) DEFAULT NULL',
  85.                                                'message'        => "C(255) DEFAULT ''");
  86.  
  87.     // Return the table information
  88.     return $pntable;
  89. }

Documentation generated on Fri, 18 Jul 2008 21:54:28 +0200 by phpDocumentor 1.4.1