����
One Hat Cyber Team
One Hat Cyber Team
Your IP :
18.119.98.100
Server IP :
192.185.194.254
Server :
Linux raider.websitewelcome.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home2
/
glenar
/
ads.glenar.com
/
includes
/
View File Name :
class.loop.php
<?PHP class Loop { private $index; private $elements; private $numElements; public function __construct() { $this->index = 0; $this->elements = func_get_args(); $this->numElements = func_num_args(); } public function __tostring() { return (string) $this->get(); } public function get() { if($this->numElements == 0) return null; $val = $this->elements[$this->index]; if(++$this->index >= $this->numElements) $this->index = 0; return $val; } public function rand() { return $this->elements[array_rand($this->elements)]; } } // Example: // $color = new Loop('white', 'black'); // // echo "<tr color='$color'/>"; // echo "<tr color='$color'/>"; // echo "<tr color='$color'/>"; // // Or // // while($row = mysql_fetch_array($result)) // echo "<tr color'$color'>the row colors will alternate</tr>";