Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f185aa1c
authored
Nov 24, 2013
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial Inkscape
1 parent
8fed0111
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
14 deletions
D/class_D.inc.php
class_mcInkscape.inc.php
include.php
D/class_D.inc.php
View file @
f185aa1
...
...
@@ -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
=
"<b
r /><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:1
0
;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:1
2
;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
;
...
...
class_mcInkscape.inc.php
0 → 100644
View file @
f185aa1
<?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
include.php
View file @
f185aa1
...
...
@@ -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';
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment