Palette.php
[Pman.Builder] / Palette.php
1 <?php 
2
3
4 class Pman_Builder_Palette extends Pman 
5 {
6     // generic list we do not care who looks at it..
7     function getAuth(
8     {
9         return true;
10     }
11     
12     function get()
13     {
14         // use file..
15         $lines = file(dirname(__FILE__).'/RooUsage.txt');
16         $s = -1;
17         $res = array()
18         $left = array();
19         foreach($lines as $l) {
20             
21             $l = preg_replace('#//.*#', '', $l);
22             $l = trim($l);
23             if (!strlen(trim($l))){
24                 continue;
25             }
26             if (preg_match('/left:$/', $l)) {
27                 $s = 0;
28                 $left = array()
29             }
30             if (preg_match('/right:$/', $l)) {
31                 $s = 1;
32                 continue;
33             }
34             switch($s) 
35             
36             
37         }
38     }
39     
40 }