summaryrefslogtreecommitdiff
path: root/plugins/storage.pbase.php
diff options
context:
space:
mode:
authorspider@dev <spiderr@bitweaver.org>2018-01-11 09:53:48 -0500
committerspider@dev <spiderr@bitweaver.org>2018-01-11 09:53:48 -0500
commitaa415301ed8f914db014fdb1d618753218ec954c (patch)
tree831e463bf07be1a0b12c1f671f0a8ff07d1885d7 /plugins/storage.pbase.php
parent0c75137b65cec7f1e2243dc3d0c0486d936ccf8c (diff)
downloadliberty-aa415301ed8f914db014fdb1d618753218ec954c.tar.gz
liberty-aa415301ed8f914db014fdb1d618753218ec954c.tar.bz2
liberty-aa415301ed8f914db014fdb1d618753218ec954c.zip
remove unused storage plugins
Diffstat (limited to 'plugins/storage.pbase.php')
-rw-r--r--plugins/storage.pbase.php64
1 files changed, 0 insertions, 64 deletions
diff --git a/plugins/storage.pbase.php b/plugins/storage.pbase.php
deleted file mode 100644
index b79287e..0000000
--- a/plugins/storage.pbase.php
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-/**
- * @version $Revision$
- * @package liberty
- * @subpackage plugins_storage
- */
-global $gLibertySystem;
-
-/**
- * definitions
- */
-define( 'PLUGIN_GUID_PBASE', 'pbase' );
-
-$pluginParams = array (
- 'store_function' => 'pbase_store',
- 'load_function' => 'pbase_load',
- 'verify_function' => 'pbase_verify',
- 'expunge_function' => 'pbase_expunge',
- 'description' => 'PBase Image ID',
- 'plugin_type' => STORAGE_PLUGIN,
- 'auto_activate' => FALSE,
- 'edit_label' => 'Enter <a href="http://www.pbase.com">PBase</a> Image ID',
- 'edit_field' => '<input type="text" name="STORAGE['.PLUGIN_GUID_PBASE.']" size="40" />
- <a href="http://www.pbase.com">{biticon ipackage=liberty iname=pbase iexplain=pbase}</a>',
- 'edit_help' => 'Enter the ID of the image you would like to include.<br />The ID is the number that is displayed at the end of the URL in the browsers address bar, when viewing the image of choice.'
-);
-
-$gLibertySystem->registerPlugin( PLUGIN_GUID_PBASE, $pluginParams );
-
-/*
- the pbase plugin doesn't need to do anything extra besides store the pbase image_id
- in liberty_attachment.foreign_id - which has already happened in LibertyAttachable::store().
- So, we don't need to even define this function
- function pbase_store() {
- }
-*/
- function pbase_verify( &$pStoreRow ) {
- if( !empty( $pStoreRow['upload'] ) ) {
- $pStoreRow['foreign_id'] = $pStoreRow['upload'];
- }
- $pStoreRow['plugin_guid'] = PLUGIN_GUID_PBASE;
- return( empty( $pStoreRow['foreign_id'] ) ? FALSE : TRUE );
- }
-
- function pbase_expunge() {
- return TRUE;
- }
-
- function pbase_store() {
- return TRUE;
- }
-
- function pbase_load( $pRow ) {
- $ret = array();
- if( $pRow['foreign_id'] ) {
- $ret['source_url'] = 'http://www.pbase.com/image/'.$pRow['foreign_id'];
- $ret['thumbnail_url']['small'] = 'http://www.pbase.com/image/'.$pRow['foreign_id'].'/small.jpg';
- $ret['thumbnail_url']['medium'] = 'http://www.pbase.com/image/'.$pRow['foreign_id'].'/medium.jpg';
- $ret['thumbnail_url']['large'] = 'http://www.pbase.com/image/'.$pRow['foreign_id'].'/large.jpg';
- }
- return $ret;
- }
-
-?>