/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to svg Converter/svgtocanvas.php

  • Committer: a11vikob
  • Date: 2013-04-03 11:35:07 UTC
  • mto: (9.2.1 lenasys)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: a11vikob@student.his.se-20130403113507-w8m3901vfe7opsqu
Added variable for svg-file directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        $gradientname = "foo";
62
62
        $isinkscape = false;
63
63
        $stopcounter = 0;
64
 
 
 
64
        $svgfilepath = "../media/svgconverter/";
 
65
        
65
66
function recurseelement( $element ) {
66
67
        global $elementcounter;
67
68
        global $graphnodes;
102
103
}
103
104
 
104
105
if( isset( $_POST ['svgname'])) {
105
 
        $svg = simplexml_load_file( '../media/svgconverter/' . $_POST ['svgname'] );
 
106
        $svg = simplexml_load_file( $svgfilepath . $_POST ['svgname'] );
106
107
        // Recurse into elements and add to element stack
107
108
        // It is important to only process hierarchies of g elements and layers
108
109
        foreach( $svg as $element ) {