Menu

Diff of /trunk/python.interface.php [000000] .. [r2]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/trunk/python.interface.php
@@ -0,0 +1,29 @@
+<?php	
+	/*
+	 *	Sample Module template for "OH"
+	 *  
+	 *  use for write develop module interface
+	 *  to encampusulate opensource script into "OH"
+	 */
+	
+	// Interface function	
+	function oh_function_python($tokens) {
+		global $oh_object_python;
+		return $oh_object_python;	
+	} 
+
+	// Option file required
+	//require_once($oh['path']."/modules/mail/libmail.php");
+	
+	// Main class of module
+	class oh_class_python {		
+		function oh_class_python() {
+		}
+		function eval($pycode) {
+		}
+	}
+	
+	// Main object of module
+	global $oh_object_python;
+	$oh_object_python = new oh_class_python();
+?>