Commit f185aa1c by sn

initial Inkscape

1 parent 8fed0111
......@@ -151,7 +151,7 @@ class D {
self::printCurrentFunction($param_print,"<br>______________________<br>");
// self::new_echo("<b>show(".$param_string.")</b>", $param_print, $param_force);
$string_show = "<b>show(".$param_string.")</b><br />";
$string_show = "<br /><b>show(".$param_string.")</b><br />";
if(is_object($param_val) && get_class($param_val)=='DOMElement') {
D::showdomelement($param_val, $string_show.$param_string,$param_print, $param_force);
......@@ -306,7 +306,7 @@ class D {
// D::ulli($v.': '.$array[$v]['class'].$array[$v]['type'].$array[$v]['function']);
}
//echo $param_string;
self::new_echo($param_string." <i style=\"font-size:10;color:gray;\"><b>".$array[$i]["class"].$array[$i]["type"].$array[$i]["function"]."()</b> <span title='Rekursionstiefe'>(RT:$var_depth)</span> call in row ".$array[$i]["line"]." in <a href=\"".substr($array[$i]["file"],strpos($array[$i]["file"],"httpdocs")+8)."\">".basename($array[$i]["file"])."</a></i> => [<i style=\"font-size:10;color:gray;\">".$array[$i-1]['class'].$array[$i-1]['type'].$array[$i-1]['function']."() call in ".basename($array[$i-1]["file"])." Zeile: ".$array[$i-1]["line"]." </i>]", $param_print);
self::new_echo($param_string." <i style=\"font-size:12;color:gray;\"><b>".$array[$i]["class"].$array[$i]["type"].$array[$i]["function"]."()</b> <span title='Rekursionstiefe'>(RT:$var_depth)</span> call in row ".$array[$i]["line"]." in <a href=\"".substr($array[$i]["file"],strpos($array[$i]["file"],"httpdocs")+8)."\">".basename($array[$i]["file"])."</a></i> => [<i style=\"font-size:10;color:gray;\">".$array[$i-1]['class'].$array[$i-1]['type'].$array[$i-1]['function']."() call in ".basename($array[$i-1]["file"])." Zeile: ".$array[$i-1]["line"]." </i>]", $param_print);
//echo '___________<pre>';
//echo print_r($array[$i], true);
//echo '</pre>';
......@@ -325,27 +325,23 @@ class D {
$k++;
$ul_start="";
$ul_end="";
for($j=0; $j<$k; $j++) {
$ul_start .= "<ul>";
$ul_end .= "</ul>";
}
// for($j=0; $j<$k; $j++) {
// $ul_start .= "<ul>";
// $ul_end .= "</ul>";
// }
$var_string = $ul_start."" .
"<li><strong style=\"font-size:8;color:gray;\"><b>" ;
"<li><strong style=\"font-size:12;color:gray;\"><b>" ;
if(array_key_exists('class', $array[$i]) && array_key_exists('type', $array[$i])) {
$var_string .= "".$array[$i]["class"].$array[$i]["type"];
$var_string .= "<strong style=\"color:black;\">".$array[$i]["class"].$array[$i]["type"].'</strong>';
}
$var_string .= $array[$i]["function"]."(...) ";
// $var_string .=
// "</b> Funktion wird aufgerufen in der Zeile ".$array[$i]["line"]." " .
// "in der Datei <a href=\"".substr($array[$i]["file"],strpos($array[$i]["file"],"httpdocs")+8)."\">".basename($array[$i]["file"])."</a>" .
// "</strong></li>".$ul_end;
$var_string .=
"</b> Funktion wird aufgerufen in der Zeile ".$array[$i]["line"]." " .
"</b> ... Funktion wird aufgerufen in der Zeile ".$array[$i]["line"]." " .
"in der Datei <i title=\"".substr($array[$i]["file"],strpos($array[$i]["file"],"httpdocs")+8)."\">".basename($array[$i]["file"])."</i>" .
"</strong></li>".$ul_end;
......
<?php
class mcInkscape {
/**
*
* @param string $param_svgFileString
*/
public static function svgToPng($param_in_svg, $param_out_png=false) {
if($param_out_png === false) {
$param_out_png = tempnam("/tmp", "mcInkscape_");
}
$inkscape_order = "inkscape $param_in_svg -e $param_out_png";
$shell_exec = shell_exec($inkscape_order);
D::show($shell_exec, $inkscape_order);
return $param_out_png;
}
}
?>
\ No newline at end of file
......@@ -19,6 +19,9 @@
require_once $__PATH_to_mcClasses . 'lib/phpqrcode/qrlib.php';
//}
require_once $__PATH_to_mcClasses . 'class_mcMail.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcConfig.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcFile.inc.php';
......@@ -33,7 +36,7 @@ require_once $__PATH_to_mcClasses . 'oop/class_mcObjectStatistic.inc.php';
require_once $__PATH_to_mcClasses . 'oop/if_mcClass.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcSort.inc.php';
require_once $__PATH_to_mcClasses . 'class_mcInkscape.inc.php';
//require_once $__PATH_to_mcClasses . 'class_.inc.php';
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!