Permalink
Browse files

add files

  • Loading branch information...
1 parent 479720a commit f7652c73be9a1ff9c7278c08e9d971edbb4bc7a0 @oyejorge oyejorge committed Aug 16, 2012
Showing 494 changed files with 89,069 additions and 0 deletions.
View
@@ -0,0 +1,64 @@
+
+;Addon_Name
+Addon_Name = 'Example Plugin'
+
+;Addon_Unique_ID
+Addon_Unique_ID = 15
+
+;Addon_Version
+Addon_Version = 1.0
+
+;min_gpeasy_version
+min_gpeasy_version = 1.5RC2
+
+;A description about your addon,
+; may contain some html: <div>,<p>,<a>,<b>,<br/>,<span>,<tt>,<em>,<i>,<b>,<sup>,<sub>,<strong>,<u>
+About = 'An addon to show some of the capabilities of gpEasy Addons';
+
+
+; Theme Gadget (Optional)
+; Define scripts that can output content to
+[Gadget:Example_Content]
+
+;optional, relative to the addon directory
+script = 'Gadget_Example.php'
+
+;optional, relative to the plugin's data directory
+data = 'Gadget_Data.php'
+
+; optional
+class = 'Gadget_Example'
+
+
+;Admin_links (Optional)
+;Define scripts that are only accessible to administrators with appropriate permissions
+[Admin_Link:Admin_Example]
+
+;required
+label = 'Admin Example'
+
+;required relative to the addon directory
+script = 'Admin_Example.php'
+
+; optional
+class = 'Admin_Example'
+
+
+
+
+;Special_links (Optional)
+;Define scripts that are accessible to all visitors and will show up in the menu_arrangement script
+[Special_Link:Special_Example]
+
+;required
+label = 'Special Example'
+
+;required
+;relative to the addon directory
+script = 'Special_Example.php'
+
+;optional
+class = 'Special_Example'
+
+
+
@@ -0,0 +1,21 @@
+<?php
+defined('is_running') or die('Not an entry point...');
+
+
+class Admin_Example{
+ function Admin_Example(){
+ echo '<h2>This is an Admin Only Script</h2>';
+
+ echo '<p>This is an example of a gpEasy Addon in the form of a Admin page.</p>';
+
+ echo '<p>Admin pages are only accessible to users with appropriate permissions on your installation of gpEasy. </p>';
+
+ echo '<p>';
+ echo common::Link('Special_Example','An Example Link');
+ echo '</p>';
+
+ echo '<p>You can download <a href="http://gpeasy.com/Special_Addon_Plugins?id=160">a plugin with addtional examples</a> from gpEasy.com </p>';
+ }
+}
+
+
@@ -0,0 +1,16 @@
+<?php
+
+defined('is_running') or die('Not an entry point...');
+
+
+
+class Gadget_Example{
+
+ function Gadget_Example(){
+ echo '<h2>Gadget Example</h2>';
+ echo '<div>';
+ echo 'This is content that can be included in your theme.';
+ echo '</div>';
+ }
+
+}
@@ -0,0 +1,20 @@
+<?php
+defined('is_running') or die('Not an entry point...');
+
+
+/*
+ * Install_Check() can be used to check the destination server for required features
+ * This can be helpful for addons that require PEAR support or extra PHP Extensions
+ * Install_Check() is called from step1 of the install/upgrade process
+ */
+function Install_Check(){
+
+ /*
+ if( check_for_feature ){
+ echo '<p style="color:red">Cannot install this addon, missing feature.</p>';
+ return false;
+ }
+ */
+
+ return true;
+}
@@ -0,0 +1,21 @@
+<?php
+defined('is_running') or die('Not an entry point...');
+
+
+class Special_Example{
+ function Special_Example(){
+ echo '<h2>This is a Special Script</h2>';
+
+ echo '<p>This is an example of a gpEasy Addon in the form of a Special page.</p>';
+
+ echo '<p>Special pages can be used to add more than just content to a gpEasy installation. </p>';
+
+ echo '<p>';
+ echo common::Link('Admin_Example','An Example Link');
+ echo '</p>';
+
+ echo '<p>You can download <a href="http://gpeasy.com/Special_Addon_Plugins?id=160">a plugin with addtional examples</a> from gpEasy.com </p>';
+ }
+}
+
+
@@ -0,0 +1,32 @@
+
+;required
+Addon_Name = 'Multiple Site'
+
+;Addon_Unique_ID
+Addon_Unique_ID = 16
+
+;Addon_Version
+Addon_Version = 1.2.3
+
+min_gpeasy_version = 2.1.1
+
+
+;Admin_links (Optional)
+;Define scripts that are only accessible to administrators with appropriate permissions
+[Admin_Link:Site_Setup]
+
+;required
+label = 'Setup Site'
+
+;required
+;relative to the addon directory
+script = 'SetupSite.php'
+
+;optional
+class = 'SetupSite'
+
+
+
+
+
+
@@ -0,0 +1,21 @@
+<?php
+defined('is_running') or die('Not an entry point...');
+
+
+$Install['Addon_Name'] = 'Multi Site'; // (required)
+$Install['Addon_Version'] = '1.1';
+
+$Install['min_gpeasy_version'] = '1.5B1';
+
+
+// Admin_links (Optional)
+// Define scripts that are only accessible to administrators with appropriate permissions
+ $Admin_Links['Site_Setup']['label'] = 'Setup Site'; // (required)
+ $Admin_Links['Site_Setup']['script'] = 'SetupSite.php'; // (required) relative to the addon directory
+ $Admin_Links['Site_Setup']['class'] = 'SetupSite'; // (optional)
+
+
+
+
+
+
@@ -0,0 +1,39 @@
+<?php
+defined('is_running') or die('Not an entry point...');
+
+
+/*
+ * Install_Check() can be used to check the destination server for required features
+ * This can be helpful for addons that require PEAR support or extra PHP Extensions
+ * Install_Check() is called from step1 of the install/upgrade process
+ */
+function Install_Check(){
+ global $config;
+
+
+ $passed = true;
+ if( defined('multi_site_unique') ){
+ echo '<p style="color:red">Cannot install this addon. This is not the root installation of gpEasy.</p>';
+ $passed = false;
+ }
+
+
+ if( !function_exists('symlink') ){
+ echo '<p style="color:red">Cannot install this addon. Your installation of PHP has the symlink() function disabled.</p>';
+ $passed = false;
+ }
+
+
+ if( !isset($_SERVER['SCRIPT_FILENAME']) && (GETENV('SCRIPT_FILENAME') === FALSE) ){
+ echo '<p style="color:red">Cannot install this addon. $_SERVER[\'SCRIPT_FILENAME\'] and GETENV(\'SCRIPT_FILENAME\') are unavailable.</p>';
+ $passed = false;
+ }
+
+
+ if( isset($config['useftp']) ){
+ echo '<p style="color:red">Cannot install this addon. Your installation of PHP has safe_mode enabled.</p>';
+ $passed = false;
+ }
+
+ return $passed;
+}
Oops, something went wrong.

0 comments on commit f7652c7

Please sign in to comment.