Permalink
Browse files
if no source is given, display documentation
- Loading branch information...
Showing
with
7 additions
and
0 deletions.
-
+7
−0
index.php
|
@@ -3,6 +3,13 @@ |
|
|
# Include Instant API's function library.
|
|
|
require_once('class.csv-to-api.php');
|
|
|
|
|
|
+# No Source file is given, just show documentation
|
|
|
+if ( !isset( $_REQUEST['source'] ) ) {
|
|
|
+ echo "<PRE>";
|
|
|
+ require "readme.md";
|
|
|
+ die();
|
|
|
+}
|
|
|
+
|
|
|
# Create a new instance of the Instant API class.
|
|
|
$api = new CSV_To_API();
|
|
|
|
|
|
7e90a12
Great idea!