<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>dibi fórum : </title>
<link>http://forum.dibiphp.com/cs</link>
<description> dibi fórum</description>
<language>cs</language>
<docs>http://backend.userland.com/rss</docs>
<item>
	<title>Nominace na CZECH OPEN SOURCE 2009 (Různé)</title>
	<dc:creator>David Grudl</dc:creator>
	<link>http://forum.dibiphp.com/cs/viewtopic.php?pid=2922#p2922</link>
	<guid isPermaLink="false">2922@http://forum.dibiphp.com/cs</guid>
	<description>&lt;p&gt;Pokud máte rádi dibi (nebo Nette Framework či Texy), můžete svou
přízeň vyjádřit &lt;a href=&quot;http://cos.root.cz/nominace/&quot;
rel=&quot;nofollow&quot;&gt;odesláním nominace&lt;/a&gt; v kategorii software v anketě CZECH
OPEN SOURCE 2009.&lt;/p&gt;

&lt;p&gt;Děkuji!&lt;/p&gt;

&lt;div&gt;&lt;a href=&quot;http://cos.root.cz/nominace/&quot; rel=&quot;nofollow&quot;&gt;&lt;img
src=&quot;http://i.iinfo.cz/urs/cos_2008_200x200_black-123693737668931.gif&quot; alt=&quot;&quot;
/&gt;&lt;/a&gt;&lt;/div&gt;

&lt;!-- by Texy2! --&gt;</description>
	<pubDate>Tue, 17 Mar 2009 09:04:19 +0100</pubDate>
</item>
<item>
	<title>Zápis kódu v tomto fóru (Různé)</title>
	<dc:creator>David Grudl</dc:creator>
	<link>http://forum.dibiphp.com/cs/viewtopic.php?pid=2392#p2392</link>
	<guid isPermaLink="false">2392@http://forum.dibiphp.com/cs</guid>
	<description>&lt;p&gt;V tomto fóru se o formátování textů stará &lt;a href=&quot;http://texy.info&quot;
rel=&quot;nofollow&quot;&gt;Texy&lt;/a&gt; a zdrojové kódy je tudíž možné zapisovat obvyklým
postupem.&lt;/p&gt;

&lt;p&gt;Části kódu a identifikátory uvnitř odstavce uzavírejte do `zpětných
uvozovek`.&lt;/p&gt;

&lt;p&gt;Celé bloky kódu ohraničte takto:&lt;/p&gt;

&lt;pre
class=&quot;src-texy&quot;&gt;&lt;code&gt;/--php
function importFile($m)
{
    list(, $file) = $m;
    $level = substr_count($file, '/');
    echo &amp;quot;$file\n&amp;quot;;
}
\--&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;nebo&lt;/p&gt;

&lt;pre
class=&quot;src-texy&quot;&gt;&lt;code&gt;/--
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule .* $0.php [L]
\--&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Také je možné PHP kód zapsat prostým vložením mezi značky
&lt;code&gt;&amp;lt;?php&lt;/code&gt; a &lt;code&gt;?&amp;gt;&lt;/code&gt;:&lt;/p&gt;

&lt;pre class=&quot;php&quot;&gt;&lt;code&gt;&lt;span class=&quot;xlang&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span
class=&quot;php-keyword1&quot;&gt;function&lt;/span&gt; importFile(&lt;span
class=&quot;php-var&quot;&gt;$m&lt;/span&gt;)
{
    &lt;span class=&quot;php-keyword2&quot;&gt;list&lt;/span&gt;(, &lt;span
class=&quot;php-var&quot;&gt;$file&lt;/span&gt;) = &lt;span class=&quot;php-var&quot;&gt;$m&lt;/span&gt;;
    &lt;span
class=&quot;php-var&quot;&gt;$level&lt;/span&gt; = substr_count(&lt;span
class=&quot;php-var&quot;&gt;$file&lt;/span&gt;, &lt;span class=&quot;php-quote&quot;&gt;'/'&lt;/span&gt;);
    &lt;span
class=&quot;php-keyword1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;php-quote&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span
class=&quot;php-var&quot;&gt;$file&lt;/span&gt;&lt;span class=&quot;php-quote&quot;&gt;\n&amp;quot;&lt;/span&gt;;
}
&lt;span
class=&quot;xlang&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Podobně lze zapisovat i JavaScript:&lt;/p&gt;

&lt;pre class=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;html-tag&quot;&gt;&amp;lt;script&lt;/span&gt;&lt;span
class=&quot;html-tagin&quot;&gt; type=&lt;/span&gt;&lt;span
class=&quot;html-quote&quot;&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span
class=&quot;html-tag&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;js-out&quot;&gt;
&lt;/span&gt;&lt;span
class=&quot;js-keywords1&quot;&gt;function&lt;/span&gt;&lt;span
class=&quot;js-out&quot;&gt; queryMark(url) {
  &lt;/span&gt;&lt;span
class=&quot;js-keywords1&quot;&gt;return&lt;/span&gt;&lt;span
class=&quot;js-out&quot;&gt; (url.indexOf(&lt;/span&gt;&lt;span class=&quot;js-quote&quot;&gt;'?'&lt;/span&gt;&lt;span
class=&quot;js-out&quot;&gt;) == -&lt;/span&gt;&lt;span class=&quot;js-num&quot;&gt;1&lt;/span&gt;&lt;span
class=&quot;js-out&quot;&gt;) ? &lt;/span&gt;&lt;span class=&quot;js-quote&quot;&gt;'?'&lt;/span&gt;&lt;span
class=&quot;js-out&quot;&gt; : &lt;/span&gt;&lt;span class=&quot;js-quote&quot;&gt;'&amp;amp;'&lt;/span&gt;&lt;span
class=&quot;js-out&quot;&gt;;
}
&lt;/span&gt;&lt;span
class=&quot;html-tag&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Atribut &lt;code&gt;type&lt;/code&gt; lze vynechat, tj. stačí kód uzavřít mezi
značky &lt;code&gt;&amp;lt;script&amp;gt;&lt;/code&gt; a &lt;code&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;!-- by Texy2! --&gt;</description>
	<pubDate>Sat, 31 May 2008 15:45:35 +0200</pubDate>
</item>
</channel>
</rss>
