Exemple #1
0
 /**
  * Adds extra meta tags to the basepage
  * @param \SimpleXMLElement The XML root
  * @param string The name of the meta
  * @param string The property of the meta
  * @param string The content of the meta
  * @param string The scheme of the meta
  */
 public function addCustomMeta(\SimpleXMLElement $xml, $name = '', $property = '', $content = '', $httpEquiv = '', $scheme = '')
 {
     if (!isset($xml->custommetas)) {
         $xml->addChild('custommetas');
     }
     $metas = $xml->custommetas;
     $meta = $metas->addChild('meta');
     $meta->addChild('property', $property);
     $meta->addChild('name', $name);
     $meta->addChild('http-equiv', $httpEquiv);
     $content = \System\Security\Sanitize::sanitizeString((string) $content, true, false, true, true, false, false);
     $meta->addChild('content', $content);
     $meta->addChild('scheme', $scheme);
 }
Exemple #2
0
 /**
  * Retrieves the value from the given index.
  * A map does NOT encode the '&' symbol.
  * @param mixed The index to return
  * @return mixed The value on that specific index
  */
 public function offsetGet($offset)
 {
     $value = $this->keyExists($offset) ? \System\Security\Sanitize::sanitizeString($this->data[$offset], false) : null;
     return $value;
 }
Exemple #3
0
 /**
  * Retrieves the value from the given index.
  * @param mixed The index to return
  * @return mixed The value on that specific index
  */
 public final function offsetGet($offset)
 {
     $value = $this->keyExists($offset) ? \System\Security\Sanitize::sanitizeString($_COOKIE[SITE_IDENTIFIER][$offset]) : null;
     return $value;
 }
Exemple #4
0
 /**
  * Retrieves the value from the given index.
  * @param mixed The index to return
  * @return mixed The value on that specific index
  */
 public final function offsetGet($offset)
 {
     $value = $this->keyExists($offset) ? \System\Security\Sanitize::sanitizeString($_SESSION[$offset]) : null;
     return $value;
 }