403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/baberankings.com.bak/members/modules/file_edit/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/baberankings.com.bak/members/modules/file_edit/admin/parse_css.php
<?php



Class css_parse {
  
  var $css_array = array();

  function Add($comm, $key, $codestr) {
    $codestr = strtolower($codestr);
    if(!isset($this->css_array[$key])) {
      $this->css_array[$key] = array();
    }
    $this->css_array[$key]['comment'] = $comm;
    $this->css_array[$key]['properties'] = array();
    $this->css_array[$key]['properties'] = explode(";",$codestr);
    if(count($this->css_array[$key]['properties']) > 0) {
      foreach($this->css_array[$key]['properties'] as $propkey=>$propval) {
        If (strlen($propval) > 0) {
          $this->css_array[$key]['properties'][$propkey] = array();
          $propval = trim($propval);
          $prop_arr = explode(":",$propval);
          $i=0;$value="";
          foreach ($prop_arr as $val) {
            If ($i==0)
              $name = $val;
            else
              $value .= $val;
            $i++;
          }
          $this->css_array[$key]['properties'][$propkey]['name'] = trim($name);
          $this->css_array[$key]['properties'][$propkey]['value'] = htmlspecialchars(trim($value));
        } else unset($this->css_array[$key]['properties'][$propkey]);
      }
    }
  }

  function make_array($string) {
    $string = preg_replace("/\/\*(.*)?\*\//Usie", "base64_encode('\\1').'||||';", $string);
    $parts = explode("}", $string);
    if(count($parts) > 0) {
      foreach($parts as $part) {
        list($keystr,$codestr) = explode("{",$part);
        $keystr = trim($keystr);
        $codestr = trim($codestr);
        $key_array = explode('||||',$keystr);
        If (count($key_array)>1)
          $comm = array_shift($key_array);
        else
          $comm = "";
        $key = str_replace("\n", "", $key_array[0]);
        $key = str_replace("\\", "", $key);
        $key = strtolower(trim($key));
        If ($key!="") {
          $this->Add($comm,$key, trim($codestr));
        }
      }
    }
  }

  function make_string() {
  }
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit