~registry/flses/trunk

« back to all changes in this revision

Viewing changes to classes/flhook/servercontrol.php

  • Committer: Fabian Thoma
  • Date: 2009-06-06 14:43:01 UTC
  • Revision ID: fabian.thoma@yahoo.de-20090606144301-9tc29bom162eqdzw
+GNU GPL v3 Message
+development in Bank feature
+setrep function in FLHook class

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php #non commented works!
 
1
<?php
 
2
##################################################################################
 
3
##                                                                              ##      
 
4
##      This File is Part of the FLSES Project, released under GNU GPL v3       ##
 
5
##      Copyright (c) 2009 tai(agent00tai@yahoo.de)                             ##
 
6
##                                                                              ##
 
7
##      This program is free software: you can redistribute it and/or modify    ##
 
8
##      it under the terms of the GNU General Public License as published by    ##
 
9
##      the Free Software Foundation, either version 3 of the License, or       ##
 
10
##      (at your option) any later version.                                     ##
 
11
##                                                                              ##
 
12
##      This program is distributed in the hope that it will be useful,         ##
 
13
##      but WITHOUT ANY WARRANTY; without even the implied warranty of          ##
 
14
##      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           ##
 
15
##      GNU General Public License for more details.                            ##
 
16
##                                                                              ##
 
17
##      You should have received a copy of the GNU General Public License       ##
 
18
##      along with this program.  If not, see <http://www.gnu.org/licenses/>.   ##
 
19
##                                                                              ##
 
20
##################################################################################
 
21
 
2
22
class servercontrol
3
23
{
4
24
        function getplayers($that)
18
38
                }
19
39
                return $result;
20
40
        }
 
41
        
 
42
        function getplayersinselect($that,$status=null)
 
43
        {
 
44
                foreach($that->getplayers() as $user)
 
45
                {
 
46
                        if($status)
 
47
                        {
 
48
                                if($status == "base")
 
49
                                {
 
50
                                        if($base != "")
 
51
                                        {
 
52
                                                $users .= "<option value=\"".$user["name"].";&;".htmlentities(stripslashes($user["name"]))."\">".htmlentities(stripslashes($user["name"]))."</option>";
 
53
                                        }
 
54
                                } else {
 
55
                                        if($system != "")
 
56
                                        {
 
57
                                                $users .= "<option value=\"".htmlentities(stripslashes($user["name"]))."\">".htmlentities(stripslashes($user["name"]))."</option>";
 
58
                                        }
 
59
                                }
 
60
                        } else {
 
61
                                $users .= "<option value=\"".htmlentities(stripslashes($user["name"]))."\">".htmlentities(stripslashes($user["name"]))."</option>";
 
62
                        }
 
63
                }
 
64
                return $users;
 
65
        }
 
66
        
21
67
        function getplayerids($that)
22
68
        {#getplayerids
23
69
                $that->conn->write("getplayerids\r\n");