1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-08 21:30:54 +02:00

Plugin Builder refinements and admin-ui 'template' added to banlist and rss for later use.

This commit is contained in:
Cameron
2012-12-06 21:41:53 -08:00
parent 29f23c05ea
commit a874b87a7f
5 changed files with 189 additions and 9 deletions

View File

@@ -45,7 +45,15 @@ require_once(e_HANDLER.'iphandler_class.php'); // This is probably already load
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
/*
// XXX THIS IS SET UP FOR LATER USE.
class banlist_admin extends e_admin_dispatcher
{
@@ -109,11 +117,11 @@ class banlist_ui extends e_admin_ui
protected = array(
'pref_type' => array('title'=> 'type', 'type'=>'text', 'data' => 'string', 'validate' => true),
'pref_folder' => array('title'=> 'folder', 'type' => 'boolean', 'data' => 'integer'),
'pref_name' => array('title'=> 'name', 'type' => 'text', 'data' => 'string', 'validate' => 'regex', 'rule' => '#^[\w]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore')
);
// protected $pref = array(
// 'pref_type' => array('title'=> 'type', 'type'=>'text', 'data' => 'string', 'validate' => true),
// 'pref_folder' => array('title'=> 'folder', 'type' => 'boolean', 'data' => 'integer'),
// 'pref_name' => array('title'=> 'name', 'type' => 'text', 'data' => 'string', 'validate' => 'regex', 'rule' => '#^[\w]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore')
// );
// optional
@@ -187,7 +195,7 @@ class banlist_form_ui extends e_admin_form_ui
}
/*
new banlist_admin();
require_once(e_ADMIN."auth.php");
@@ -198,6 +206,16 @@ exit;
*/
$e_sub_cat = 'banlist';
require_once('auth.php');
$frm = e107::getForm();