Permalink
Browse files

Added README file

  • Loading branch information...
1 parent 7cc2f8c commit 3d39195d53714e5935191355ffa4f77ee8ea5ca4 @ronakg committed Mar 19, 2012
Showing with 32 additions and 5 deletions.
  1. +27 −0 README.rst
  2. +5 −5 index.php
View
@@ -0,0 +1,27 @@
+Auto Update script for WP Plugins not hosted on WordPress.org
+=============================================================
+
+This script can be used for WordPress plugins that are not hosted on
+WordPress.org. It works transparently for users providing same experience as if
+the plugin was hosted on WordPress.org.
+
+Features
+--------
+
+* Serve multiple plugins using same script
+* Serve different types of versions like stable, alpha, beta, lite, pro, test
+ etc.
+* Easy to configure ini file
+
+How to use this script
+----------------------
+
+* Upload ``index.php`` file to your website
+* Copy ``test-plugin.ini`` to the same location and rename it to
+ ``your-plugin-slug.ini``
+* Modify ``your-plugin-slug.ini`` file according the help instructions in the
+ file
+* Modify ``test-plugin/test-plugin.php`` file to reflect the location of
+ ``index.php`` on your website
+* Copy contents of ``test-plugin/test-plugin.php`` file to your plugin's main
+ file
View
@@ -88,11 +88,11 @@
function array_to_object($array = array()) {
if (empty($array) || !is_array($array))
- return false;
-
- $data = new stdClass;
+ return false;
+
+ $data = new stdClass;
foreach ($array as $akey => $aval)
- $data->{$akey} = $aval;
- return $data;
+ $data->{$akey} = $aval;
+ return $data;
}
?>

0 comments on commit 3d39195

Please sign in to comment.