isnecure send/receive now works... next, secure
[pengine.git] / lib / lib.php
1 <?php 
2
3 require_once("interComms.php");
4
5 // first and foremost, load the plugins
6 $basedir = dirname(__FILE__);
7 if(is_dir("$basedir/plugins")) {
8         $dh = opendir("$basedir/plugins");
9         if($dh) {
10                 while(($file = readdir($dh))!==false) {
11                         $mt = preg_match("/.*\.php$/", $file);
12                         if($mt > 0) {
13                                 require_once("$basedir/plugins/$file");
14                                 //echo "required $basedir/plugins/$file\n";
15                         }
16                 }
17         }
18 } else {
19         echo "No plugins dir ($basedir/plugins), continuing without\n";
20 }
21
22 $storeLocation = "$basedir/../store/";
23 global $storeLocation;
24
25 if(!is_dir($storeLocation)) {
26         mkdir($storeLocation, 0770);
27 }
28 ?>