From 2a7f9a34a7c3283bad2f7b1e56231db9d1991d95 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 23 Nov 2012 22:53:48 -0800 Subject: [PATCH] Plugin cleanup --- e107_plugins/release/admin_config.php | 59 ---- e107_plugins/release/images/e107_icon_16.png | Bin 1033 -> 0 bytes e107_plugins/release/images/e107_icon_32.png | Bin 2880 -> 0 bytes e107_plugins/release/includes/admin.php | 320 ------------------- e107_plugins/release/plugin.xml | 12 - e107_plugins/release/release.php | 37 --- e107_plugins/release/release_sql.php | 15 - 7 files changed, 443 deletions(-) delete mode 100644 e107_plugins/release/admin_config.php delete mode 100644 e107_plugins/release/images/e107_icon_16.png delete mode 100644 e107_plugins/release/images/e107_icon_32.png delete mode 100644 e107_plugins/release/includes/admin.php delete mode 100644 e107_plugins/release/plugin.xml delete mode 100644 e107_plugins/release/release.php delete mode 100644 e107_plugins/release/release_sql.php diff --git a/e107_plugins/release/admin_config.php b/e107_plugins/release/admin_config.php deleted file mode 100644 index a086b1fba..000000000 --- a/e107_plugins/release/admin_config.php +++ /dev/null @@ -1,59 +0,0 @@ -runObservers(true); - -require_once(e_ADMIN."auth.php"); - -/* - * Send page content - */ -e107::getAdminUI()->runPage(); - -require_once(e_ADMIN."footer.php"); - -/* OBSOLETE - see admin_shortcodes::sc_admin_menu() -function admin_config_adminmenu() -{ - //global $rp; - //$rp->show_options(); - e107::getRegistry('admin/release_dispatcher')->renderMenu(); -} -*/ - -/* OBSOLETE - done within header.php -function headerjs() // needed for the checkboxes - how can we remove the need to duplicate this code? -{ - return e107::getAdminUI()->getHeader(); -} -*/ -?> \ No newline at end of file diff --git a/e107_plugins/release/images/e107_icon_16.png b/e107_plugins/release/images/e107_icon_16.png deleted file mode 100644 index c87816603bc392b1b2836d2a178e6a195c4c9f48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1033 zcmV+k1or!hP)Hp23LdGaGJ~trMz5}KwZt%R9;4C#7hHK zh|Q?BUS=*!*<@s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xe&b62ed#nYq8CLw;^rMge{)*s4;iv2V{48DAe4{oj9^ikB!^T zI=tmtIB3dF2Q>G#-;m<8odlYW9Rd<*M!;|k82T7f)AAt7eL@}Fd(q~d<1UWY_Kyz6 z%PXNYWgzxA_+0Q%&%80;oERA$+<61VRO&YicGk%xY0We|RG_;?L8oAB%gVIPkOS zCy(`de(l+)`zLHxhx4K{9-pp7_^HEQe$TPsgn0*ISN4rM{FP|d&>M}~0K7ju>GC^d zLR>9@WEXG)U7%WT`=0=noqb90bzV9{-hhEKW=@_2i}qiR-%_ehIU20#zF*C@z4oQ3 z{Qfmj81rnl<(}y^{BwI$D6Fe`a^v!GWCL`5bp3Kf_PK8#@JHZhIsw^WhczoFqwRTv zG30!H2fKLJNxWdY>do7$rG6B=3ft>fGfVfrAY{LEg_~WdF^hMpY|f4nc>bF%AFLdJ zf4AxxAg{Hb+N9Xl>RI5(4jd?UlpDg?ZGKk$Di{~O?Tie)3shzs5W zVL~plj9kbly+&tRGsbVTW{j)2QO9pndXBzB9Q_O3Ig`BjU3{w@$6&IM^y z4oD*wAZz+C*_u8)@kSjcw~SdvEuw3d)3xvay5RpT)_#+~I$-LJw(mrAz4p1;(lL3! el array('controller' =>'CONTROLLER_CLASS'[, 'index' => 'list', 'path' => 'CONTROLLER SCRIPT PATH', 'ui' => 'UI CLASS NAME child of e_admin_ui', 'uipath' => 'UI SCRIPT PATH']); - * Note - default mode/action is autodetected in this order: - * - $defaultMode/$defaultAction (owned by dispatcher - see below) - * - $adminMenu (first key if admin menu array is not empty) - * - $modes (first key == mode, corresponding 'index' key == action) - * @var array - */ - protected $modes = array( - 'main' => array('controller' => 'plugin_release_admin_ui', 'path' => null, 'ui' => 'plugin_release_admin_form_ui', 'uipath' => null) - ); - - /* Both are optional - protected $defaultMode = null; - protected $defaultAction = null; - */ - - /** - * Format: 'MODE/ACTION' => array('caption' => 'Menu link title'[, 'url' => '{e_PLUGIN}release/admin_config.php', 'perm' => '0']); - * Additionally, any valid e_admin_menu() key-value pair could be added to the above array - * @var array - */ - protected $adminMenu = array( - 'main/list' => array('caption'=> 'Manage', 'perm' => '0'), - 'main/create' => array('caption'=> LAN_CREATE, 'perm' => '0'), - 'main/prefs' => array('caption'=> 'Settings', 'perm' => '0'), - 'main/custom' => array('caption'=> 'Custom Page', 'perm' => '0') - ); - - /** - * Optional, mode/action aliases, related with 'selected' menu CSS class - * Format: 'MODE/ACTION' => 'MODE ALIAS/ACTION ALIAS'; - * This will mark active main/list menu item, when current page is main/edit - * @var array - */ - protected $adminMenuAliases = array( - 'main/edit' => 'main/list' - ); - - /** - * Navigation menu title - * @var string - */ - protected $menuTitle = 'Release Menu'; -} - -class plugin_release_admin_ui extends e_admin_ui -{ - // required - protected $pluginTitle = "e107 Release"; - - /** - * plugin name or 'core' - * IMPORTANT: should be 'core' for non-plugin areas because this - * value defines what CONFIG will be used. However, I think this should be changed - * very soon (awaiting discussion with Cam) - * Maybe we need something like $prefs['core'], $prefs['release'] ... multiple getConfig support? - * - * @var string - */ - protected $pluginName = 'release'; - - /** - * DB Table, table alias is supported - * Example: 'r.release' - * @var string - */ - protected $table = "release"; - - /** - * If present this array will be used to build your list query - * You can link fileds from $field array with 'table' parameter, which should equal to a key (table) from this array - * 'leftField', 'rightField' and 'fields' attributes here are required, the rest is optional - * Table alias is supported - * Note: - * - 'leftTable' could contain only table alias - * - 'leftField' and 'rightField' shouldn't contain table aliases, they will be auto-added - * - 'whereJoin' and 'where' should contain table aliases e.g. 'whereJoin' => 'AND u.user_ban=0' - * - * @var array [optional] table_name => array join parameters - */ - protected $tableJoin = array( - //'u.user' => array('leftField' => 'comment_author_id', 'rightField' => 'user_id', 'fields' => '*'/*, 'leftTable' => '', 'joinType' => 'LEFT JOIN', 'whereJoin' => '', 'where' => ''*/) - ); - - /** - * This is only needed if you need to JOIN tables AND don't wanna use $tableJoin - * Write your list query without any Order or Limit. - * - * @var string [optional] - */ - protected $listQry = ""; - // - - // optional - required only in case of e.g. tables JOIN. This also could be done with custom model (set it in init()) - //protected $editQry = "SELECT * FROM #release WHERE release_id = {ID}"; - - // required - if no custom model is set in init() (primary id) - protected $pid = "release_id"; - - // optional - protected $perPage = 20; - - // default - true - TODO - move to displaySettings - protected $batchDelete = true; - - // UNDER CONSTRUCTION - protected $displaySettings = array(); - - // UNDER CONSTRUCTION - protected $disallowPages = array('main/create', 'main/prefs'); - - //TODO change the release_url type back to URL before release. - // required - /** - * (use this as starting point for wiki documentation) - * $fields format (string) $field_name => (array) $attributes - * - * $field_name format: - * 'table_alias_or_name.field_name.field_alias' (if JOIN support is needed) OR just 'field_name' - * NOTE: Keep in mind the count of exploded data can be 1 or 3!!! This means if you wanna give alias - * on main table field you can't omit the table (first key), alternative is just '.' e.g. '.field_name.field_alias' - * - * $attributes format: - * - title (string) Human readable field title, constant name will be accpeted as well (multi-language support - * - * - type (string) null (means system), number, text, dropdown, url, image, icon, datestamp, userclass, userclasses, user[_name|_loginname|_login|_customtitle|_email], - * boolean, method, ip - * full/most recent reference list - e_form::renderTableRow(), e_form::renderElement(), e_admin_form_ui::renderBatchFilter() - * for list of possible read/writeParms per type see below - * - * - data (string) Data type, one of the following: int, integer, string, str, float, bool, boolean, model, null - * Default is 'str' - * Used only if $dataFields is not set - * full/most recent reference list - e_admin_model::sanitize(), db::_getFieldValue() - * - dataPath (string) - xpath like path to the model/posted value. Example: 'dataPath' => 'prefix/mykey' will result in $_POST['prefix']['mykey'] - * - primary (boolean) primary field (obsolete, $pid is now used) - * - * - help (string) edit/create table - inline help, constant name will be accpeted as well, optional - * - note (string) edit/create table - text shown below the field title (left column), constant name will be accpeted as well, optional - * - * - validate (boolean|string) any of accepted validation types (see e_validator::$_required_rules), true == 'required' - * - rule (string) condition for chosen above validation type (see e_validator::$_required_rules), not required for all types - * - error (string) Human readable error message (validation failure), constant name will be accepted as well, optional - * - * - batch (boolean) list table - add current field to batch actions, in use only for boolean, dropdown, datestamp, userclass, method field types - * NOTE: batch may accept string values in the future... - * full/most recent reference type list - e_admin_form_ui::renderBatchFilter() - * - * - filter (boolean) list table - add current field to filter actions, rest is same as batch - * - * - forced (boolean) list table - forced fields are always shown in list table - * - nolist (boolean) list table - don't show in column choice list - * - noedit (boolean) edit table - don't show in edit mode - * - * - width (string) list table - width e.g '10%', 'auto' - * - thclass (string) list table header - th element class - * - class (string) list table body - td element additional class - * - * - readParms (mixed) parameters used by core routine for showing values of current field. Structure on this attribute - * depends on the current field type (see below). readParams are used mainly by list page - * - * - writeParms (mixed) parameters used by core routine for showing control element(s) of current field. - * Structure on this attribute depends on the current field type (see below). - * writeParams are used mainly by edit page, filter (list page), batch (list page) - * - * $attributes['type']->$attributes['read/writeParams'] pairs: - * - * - null -> read: n/a - * -> write: n/a - * - * - dropdown -> read: 'pre', 'post', array in format posted_html_name => value - * -> write: 'pre', 'post', array in format as required by e_form::selectbox() - * - * - user -> read: [optional] 'link' => true - create link to user profile, 'idField' => 'author_id' - tells to renderValue() where to search for user id (used when 'link' is true and current field is NOT ID field) - * 'nameField' => 'comment_author_name' - tells to renderValue() where to search for user name (used when 'link' is true and current field is ID field) - * -> write: [optional] 'nameField' => 'comment_author_name' the name of a 'user_name' field; 'currentInit' - use currrent user if no data provided; 'current' - use always current user(editor); '__options' e_form::userpickup() options - * - * - number -> read: (array) [optional] 'point' => '.', [optional] 'sep' => ' ', [optional] 'decimals' => 2, [optional] 'pre' => '€ ', [optional] 'post' => 'LAN_CURRENCY' - * -> write: (array) [optional] 'pre' => '€ ', [optional] 'post' => 'LAN_CURRENCY', [optional] 'maxlength' => 50, [optional] '__options' => array(...) see e_form class description for __options format - * - * - ip -> read: n/a - * -> write: [optional] element options array (see e_form class description for __options format) - * - * - text -> read: (array) [optional] 'htmltruncate' => 100, [optional] 'truncate' => 100, [optional] 'pre' => '', [optional] 'post' => ' px' - * -> write: (array) [optional] 'pre' => '', [optional] 'post' => ' px', [optional] 'maxlength' => 50 (default - 255), [optional] '__options' => array(...) see e_form class description for __options format - * - * - textarea -> read: (array) 'noparse' => '1' default 0 (disable toHTML text parsing), [optional] 'bb' => '1' (parse bbcode) default 0, - * [optional] 'parse' => '' modifiers passed to e_parse::toHTML() e.g. 'BODY', [optional] 'htmltruncate' => 100, - * [optional] 'truncate' => 100, [optional] 'expand' => '[more]' title for expand link, empty - no expand - * -> write: (array) [optional] 'rows' => '' default 15, [optional] 'cols' => '' default 40, [optional] '__options' => array(...) see e_form class description for __options format - * [optional] 'counter' => 0 number of max characters - has only visual effect, doesn't truncate the value (default - false) - * - * - bbarea -> read: same as textarea type - * -> write: (array) [optional] 'pre' => '', [optional] 'post' => ' px', [optional] 'maxlength' => 50 (default - 0), - * [optional] 'size' => [optional] - medium, small, large - default is medium, - * [optional] 'counter' => 0 number of max characters - has only visual effect, doesn't truncate the value (default - false) - * - * - image -> read: [optional] 'title' => 'SOME_LAN' (default - LAN_PREVIEW), [optional] 'pre' => '{e_PLUGIN}myplug/images/', - * 'thumb' => 1 (true) or number width in pixels, 'thumb_urlraw' => 1|0 if true, it's a 'raw' url (no sc path constants), - * 'thumb_aw' => if 'thumb' is 1|true, this is used for Adaptive thumb width - * -> write: (array) [optional] 'label' => '', [optional] '__options' => array(...) see e_form::imagepicker() for allowed options - * - * - icon -> read: [optional] 'class' => 'S16', [optional] 'pre' => '{e_PLUGIN}myplug/images/' - * -> write: (array) [optional] 'label' => '', [optional] 'ajax' => true/false , [optional] '__options' => array(...) see e_form::iconpicker() for allowed options - * - * - datestamp -> read: [optional] 'mask' => 'long'|'short'|strftime() string, default is 'short' - * -> write: (array) [optional] 'label' => '', [optional] 'ajax' => true/false , [optional] '__options' => array(...) see e_form::iconpicker() for allowed options - * - * - url -> read: [optional] 'pre' => '{ePLUGIN}myplug/'|'http://somedomain.com/', 'truncate' => 50 default - no truncate, NOTE: - * -> write: - * - * - method -> read: optional, passed to given method (the field name) - * -> write: optional, passed to given method (the field name) - * - * - hidden -> read: 'show' => 1|0 - show hidden value, 'empty' => 'something' - what to be shown if value is empty (only id 'show' is 1) - * -> write: same as readParms - * - * - upload -> read: n/a - * -> write: Under construction - * - * Special attribute types: - * - method (string) field name should be method from the current e_admin_form_ui class (or its extension). - * Example call: field_name($value, $render_action, $parms) where $value is current value, - * $render_action is on of the following: read|write|batch|filter, parms are currently used paramateres ( value of read/writeParms attribute). - * Return type expected (by render action): - * - read: list table - formatted value only - * - write: edit table - form element (control) - * - batch: either array('title1' => 'value1', 'title2' => 'value2', ..) or array('singleOption' => '') or rendered option group (string '' - * - filter: same as batch - * @var array - */ - protected $fields = array( - 'checkboxes' => array('title'=> '', 'type' => null, 'data' => null, 'width'=>'5%', 'thclass' =>'center', 'forced'=> TRUE, 'class'=>'center', 'toggle' => 'e-multiselect'), - 'release_id' => array('title'=> ID, 'type' => 'number', 'data' => 'int', 'width'=>'5%', 'thclass' => '', 'class'=>'center', 'forced'=> TRUE, 'primary'=>TRUE/*, 'noedit'=>TRUE*/), //Primary ID is not editable - 'release_icon' => array('title'=> LAN_ICON, 'type' => 'icon', 'data' => 'str', 'width'=>'5%', 'thclass' => '', 'forced'=> TRUE, 'primary'=>TRUE/*, 'noedit'=>TRUE*/), //Primary ID is not editable - 'release_type' => array('title'=> 'Type', 'type' => 'method', 'data' => 'str', 'width'=>'auto', 'thclass' => '', 'batch' => TRUE, 'filter'=>TRUE), - 'release_folder' => array('title'=> 'Folder', 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'thclass' => ''), - 'release_name' => array('title'=> 'Name', 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'thclass' => ''), - 'release_version' => array('title'=> 'Version', 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'thclass' => ''), - 'release_author' => array('title'=> LAN_AUTHOR, 'type' => 'text', 'data' => 'str', 'width' => 'auto', 'thclass' => 'left'), - 'release_authorURL' => array('title'=> LAN_AUTHOR_URL, 'type' => 'url', 'data' => 'str', 'width' => 'auto', 'thclass' => 'left'), - 'release_date' => array('title'=> LAN_DATE, 'type' => 'datestamp', 'data' => 'int', 'width' => 'auto', 'thclass' => '', 'readParms' => 'long', 'writeParms' => 'type=datetime'), - 'release_compatibility' => array('title'=> 'compatib', 'type' => 'text', 'data' => 'str', 'width' => '10%', 'thclass' => 'center' ), - 'release_url' => array('title'=> 'File Package', 'type' => 'file', 'data' => 'str', 'width' => '20%', 'thclass' => 'center', 'batch' => TRUE, 'filter'=>TRUE, 'parms' => 'truncate=30', 'validate' => true, 'help' => 'Enter release URL here', 'error' => 'please, ener valid URL'), - 'test_list_1' => array('title'=> 'test 1', 'type' => 'boolean', 'data' => 'int', 'width' => '5%', 'thclass' => 'center', 'batch' => TRUE, 'filter'=>TRUE, 'noedit' => true), - 'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'data' => null, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center last', 'forced'=>TRUE) - ); - - //required - default column user prefs - protected $fieldpref = array('checkboxes', 'release_id', 'release_type', 'release_url', 'release_compatibility', 'options'); - - // FORMAT field_name=>type - optional if fields 'data' attribute is set or if custom model is set in init() - /*protected $dataFields = array();*/ - - // optional, could be also set directly from $fields array with attributes 'validate' => true|'rule_name', 'rule' => 'condition_name', 'error' => 'Validation Error message' - /*protected $validationRules = array( - 'release_url' => array('required', '', 'Release URL', 'Help text', 'not valid error message') - );*/ - - // optional, if $pluginName == 'core', core prefs will be used, else e107::getPluginConfig($pluginName); - protected $prefs = 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 - public function init() - { - } -} - -class plugin_release_admin_form_ui extends e_admin_form_ui -{ - function release_type($curVal,$mode) // not really necessary since we can use 'dropdown' - but just an example of a custom function. - { - if($mode == 'read') - { - return $curVal.' (custom!)'; - } - - if($mode == 'batch') // Custom Batch List for release_type - { - return array('theme'=>"Theme","plugin"=>'Plugin'); - } - - if($mode == 'filter') // Custom Filter List for release_type - { - return array('theme'=>"Theme","plugin"=>'Plugin'); - } - - $types = array("theme","plugin"); - $text = ""; - return $text; - } -} diff --git a/e107_plugins/release/plugin.xml b/e107_plugins/release/plugin.xml deleted file mode 100644 index 0caae0df8..000000000 --- a/e107_plugins/release/plugin.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Manage Release Feeds for e107 Plugins and Themes - tools - - Configure - - - - \ No newline at end of file diff --git a/e107_plugins/release/release.php b/e107_plugins/release/release.php deleted file mode 100644 index a76451871..000000000 --- a/e107_plugins/release/release.php +++ /dev/null @@ -1,37 +0,0 @@ - -\n"; -$tp = e107::getParser(); - -e107::getDb()->db_Select_gen("SELECT * FROM #release ORDER BY release_type,release_date DESC"); -while ($row = e107::getDb()->db_Fetch(MYSQL_ASSOC)) -{ - echo "\t<".$row['release_type']." name='".$tp->toRss($row['release_name'])."' folder='".$tp->toRss(strtolower($row['release_folder']))."' author='".$tp->toRss($row['release_author'])."' authorURL='".$row['release_authorURL']."' version='".$row['release_version']."' date='".$row['release_date']."' compatibility='".$row['release_compatibility']."' url='".$tp->replaceConstants($row['release_url'],'full')."' icon='".$tp->replaceConstants($row['release_icon'],'full')."' />\n"; -} - -echo ""; -/* - - - - - -*/ -?> diff --git a/e107_plugins/release/release_sql.php b/e107_plugins/release/release_sql.php deleted file mode 100644 index 959829336..000000000 --- a/e107_plugins/release/release_sql.php +++ /dev/null @@ -1,15 +0,0 @@ -CREATE TABLE release ( - `release_id` int(10) NOT NULL AUTO_INCREMENT, - `release_icon` varchar(255) NOT NULL, - `release_type` varchar(10) NOT NULL, - `release_name` varchar(50) NOT NULL, - `release_folder` varchar(50) NOT NULL, - `release_version` varchar(5) NOT NULL, - `release_author` varchar(50) NOT NULL, - `release_authorURL` varchar(255) NOT NULL, - `release_date` int(10) NOT NULL, - `release_compatibility` varchar(5) NOT NULL, - `release_url` varchar(255) NOT NULL, - - PRIMARY KEY (`release_id`) -) ENGINE=MyISAM;