DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.127
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/AppServ/www/umedia3/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/inc/str_html2rgb.php
<?
function str_html2rgb($color,$returnstring=false){
  if ($color[0] == '#') {
  	 $color = substr($color, 1);
	}
  if (strlen($color) == 6) {
    list($r, $g, $b) = array($color[0].$color[1],
    $color[2].$color[3],
    $color[4].$color[5]);
	}  elseif (strlen($color) == 3) {
  	 list($r, $g, $b) = array($color[0].$color[0], $color[1].$color[1], $color[2].$color[2]);
	}
  else {
  		 return false;
	} 
  //$key = 1/255; 
  // use this to get a range from 0 to 1 eg: (0.5, 1, 0.1) 
  $key = 1; // use this for normal range 0 to 255 eg: (0, 255, 50) 
  $r = hexdec($r)*$key;
  $g = hexdec($g)*$key;
  $b = hexdec($b)*$key;
  if($returnstring){
  			return "{rgb $r $g $b}";
  }else{
  			return array($r, $g, $b);
  }
}
?>

Anon7 - 2022
AnonSec Team