Changeset 12 for trunk/class
- Timestamp:
- Jun 19, 2012, 10:32:05 AM (13 years ago)
- Location:
- trunk/class
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/class/Message.php
r11 r12 3 3 // message class 4 4 // Date: 2012-06-19 5 //this class regist function to message 5 6 6 7 class Message … … 9 10 protected $method_name; 10 11 protected $obj; 11 protected $par0 ;12 protected $par1 ;13 protected $par2 ;14 protected $par3 ;12 protected $par0 = -1; 13 protected $par1 = -1; 14 protected $par2 = -1; 15 protected $par3 = -1; 15 16 protected $method; 16 17 protected $key; … … 22 23 $this->method = $method; 23 24 $this->key = $key; 24 $this->par0 = $par0; 25 $this->par1 = $par1; 26 $this->par2 = $par2; 27 $this->par3 = $par3; 25 26 if ($this->method == 'post') { 27 $arraytest = $_POST; 28 } else $arraytest = $_GET; 29 30 if (isset($arraytest[$par0])) $this->par0 = $arraytest[$par0]; 31 if (isset($arraytest[$par1])) $this->par1 = $arraytest[$par1]; 32 if (isset($arraytest[$par2])) $this->par2 = $arraytest[$par2]; 33 if (isset($arraytest[$par3])) $this->par3 = $arraytest[$par3]; 28 34 29 35 $this->Activate(); -
trunk/class/Messages.php
r11 r12 33 33 //registe messages and send data to obj 34 34 public function RegMess($User) { 35 $Login = new Message('post','LoginUser',$User,'Login',' ','');35 $Login = new Message('post','LoginUser',$User,'Login','LoginUser','LoginPass'); 36 36 37 37 }
Note:
See TracChangeset
for help on using the changeset viewer.