Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2010-02-13 11:25:57

wowxp
New member
Registered: 2010-02-13
Posts: 1

php in the source

Hello i am trying to edit Xinha, so it doesn't re-format the php code in the source file.

For example the following code:
<?php if(isset($_GET['code'])):?>

If it's inside the source it disappears.

For example the following code:
<div align="center"><img src="<?php echo $settings['template_url_lang'];?>/images/404.jpg" /></div>

Becomes:
<div align="center"><img src="%3C?php%20echo%20$settings[%27template_url_lang%27];?%3E/images/404jpg" /></div>

I wonder where i can state that if the part of the code starts with <?php that the code between <?php and ?> is ignored and it stays as it is?

Offline

#2 2010-02-13 19:41:45

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: php in the source

Xinha is for editing HTML, not PHP, your PHP makes the HTML invalid.

That said, look at PreserveScripts plugin.


James Sleeman

Offline

Board footer

Powered by FluxBB