class GIT {
public $username;
public $password;
public function __construct(){
$this -> username = 'guest';
$this -> password = 'welcom to GITCTF!';
}
//如果用户名为 ‘ZeroZone’;则输出密码;否则输出提示信息
public function __destruct(){
if($this -> username == 'ZeroZone'){
echo $this -> password;
}
else{
echo 'ZeroZone Lab new bee !';
}
}
}
class ZeroZone{
public $code;
public function __toString(){
if(isset($this -> code)){
eval($this -> code);
return '';
}
else{
echo "代码呢?";
return '';
}
}
}