Login   Register  
PHP Classes
elePHPant
Icontem

File: example.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mohammed Cherkaoui  >  Simple Hook and Plug-ins System (XML)  >  example.xml  >  Download  
File: example.xml
Role: Auxiliary data
Content type: text/plain
Description: Example for a xml product file
Class: Simple Hook and Plug-ins System (XML)
Extend class functionality with code define in XML
Author: By
Last change:
Date: 4 years ago
Size: 837 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="windows-1256"?>
<product>

<setting>
<title>&#1607;&#1575;&#1603; &#1575;&#1604;&#1573;&#1593;&#1604;&#1575;&#1606;&#1575;&#1578;</title>
<description>&#1608;&#1589;&#1601; &#1575;&#1604;&#1607;&#1575;&#1603;</description>
<version>1.0</version>
<url>1.0</url>
<installcode>
<![CDATA[

$code = '$Blocks->Content_Start("&#1578;&#1580;&#1585;&#1576;&#1577;");
echo "<br />hh";
$Blocks->Content_End();
';
mysql_query("insert into pages set title = '&#1578;&#1580;&#1585;&#1576;&#1577;', codetype = '2', code = '$code'") or die(mysql_error());
]]>
</installcode>
<unistallcode>
<![CDATA[



]]>
</unistallcode>
</setting>

<plugin>
<title>test 1</title>
<place>global</place>
<phpcode><![CDATA[global $test;
echo $test;]]></phpcode>
<status></status>
</plugin>

		
</product>