<?xml version="1.0" encoding="windows-1251"?>
<?xml-stylesheet href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"?>
<!-- Generated on Sun, 20 May 2012 22:38:05 +0400 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>HomePHP.ru</title>
    <link><![CDATA[http://homephp.ru/forum/]]></link>
    <description>Последние ответы</description>
    <generator>LogicBoard</generator>
    <item>
      <title>хостинг Opxost.ru [Теперь и VDS]</title>
      <description><![CDATA[<blockquote class="blockquote"><p><span class="titlequote">synz (17.05.2012, 00:53) писал:</span><span class="textquote"><blockquote class="blockquote"><p><span class="titlequote">Цитата:</span><span class="textquote">дарова,народ.кто нить подскажет как у него хост?кто нить там сидит?</span></p></blockquote><!--quote --><br />А что кого-то слушать? Пока сам не попробуешь не узнаешь!</span></p></blockquote><!--quote --><br />это верно сказано)]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-other-in-freelancing/last/topic-16.html]]></link>
      <pubDate>Thu, 17 May 2012 01:41:42 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-other-in-freelancing/last/topic-16.html]]></guid>
    </item>
    <item>
      <title>Продам сайт на хостинге</title>
      <description><![CDATA[Сразу тоже подумал что веник :D]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-selling/last/topic-18.html]]></link>
      <pubDate>Thu, 17 May 2012 00:49:54 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-selling/last/topic-18.html]]></guid>
    </item>
    <item>
      <title>Админ ау</title>
      <description><![CDATA[Ошибка авторизации , не возможно зайти в страну! Все чаще и чаще! Прими меры!]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-20.html]]></link>
      <pubDate>Mon, 27 Feb 2012 20:49:22 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-20.html]]></guid>
    </item>
    <item>
      <title>HTML тест возможности иммиграции в США</title>
      <description><![CDATA[Чет ничего не понял... Отпишитесь или удалим!]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-selling/last/topic-19.html]]></link>
      <pubDate>Tue, 24 Jan 2012 20:28:23 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-selling/last/topic-19.html]]></guid>
    </item>
    <item>
      <title>Баги игры ЦИВИЛИЗАЦИЯ!</title>
      <description><![CDATA[Странно империя героев сохранились оба клана. Почему мой не сохранился?(((((]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-5.html]]></link>
      <pubDate>Fri, 30 Dec 2011 23:37:20 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-5.html]]></guid>
    </item>
    <item>
      <title>вопрос</title>
      <description><![CDATA[100 рублей максимум. Может меньше, посмотрю на сложность.]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-php-communication/last/topic-17.html]]></link>
      <pubDate>Sat, 24 Dec 2011 12:26:35 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-php-communication/last/topic-17.html]]></guid>
    </item>
    <item>
      <title>Предложения и пожелания по игре ЦИВИЛИЗАЦИЯ</title>
      <description><![CDATA[ter(14999-n)/(p*30/100), где <br />n - ученые+войско, <br />p - плотность населения, <br />ter - территория деревни]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-9.html]]></link>
      <pubDate>Mon, 19 Dec 2011 00:35:09 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-9.html]]></guid>
    </item>
    <item>
      <title>Блеать!</title>
      <description><![CDATA[буду флудить за помощь ))))))))]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-chaos/last/topic-2.html]]></link>
      <pubDate>Wed, 14 Dec 2011 20:50:07 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-chaos/last/topic-2.html]]></guid>
    </item>
    <item>
      <title>На экран выводятся каракули</title>
      <description><![CDATA[Построим простую схему<br />1. При записе в базу все данные по максимуму обрабатываем.<br />2. Делаем выборку и вывод без обработки. Зачем еще раз обрабатывать?<br />Ну и несколько функций<br /><!-- PHP code --><div class="php" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">php code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> strings_clear<span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">/* Чистка строки добавить в файл который содержит ваши функции ну и подключается везде */</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$string</span> <span style="color: #339933;">=</span><span style="color: #990000;">htmlspecialchars</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">ENT_QUOTES</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">return</span> <span style="color: #000088;">$string</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># запись в базу</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'Переменная которая содержит текст ну и теги например'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># удаляем html и php теги</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span>strings_clear<span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;<span style="color: #666666; font-style: italic;"># переменная $data обработана от html сущностей и от неприятных мелочей которые могут навредить вашеё базе</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span>INSERT INTO `chat` SET `text`<span style="color: #339933;">=</span>\<span style="color: #0000ff;">''</span><span style="color: #339933;">.</span><span style="color: #000088;">$data</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># запись в базу</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;"># далее вывод содержимого</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SELECT `text` FROM `chat` LIMIT 1'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># выборка из базы одного значения для примера</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'text'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># вывод содержимого пользователю</span></div></li>
</ol></div><!--/PHP code --><br />Думаю для начала будет достаточно, также прошу обратить внимание на функции htmlentities и htmlspecialchars - использовать их по уму внимательно прочитав описание...]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-security-of-data-and-applications/last/topic-15.html]]></link>
      <pubDate>Wed, 02 Nov 2011 15:17:31 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-security-of-data-and-applications/last/topic-15.html]]></guid>
    </item>
    <item>
      <title>Правила для нашей цивы =)</title>
      <description><![CDATA[Лимиты на покупку/продажу зерна/дерева:не более 10т в одни руки в сутки.У стран возрастом более 180ч покупать можно не более 5т в одни руки<br /><br />Лимиты на покупку/продажу зерна/дерева:не более 10т в одни руки в сутки.У стран возрастом более 180ч покупать можно не более 5т в одни руки]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-10.html]]></link>
      <pubDate>Wed, 26 Oct 2011 22:14:53 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-10.html]]></guid>
    </item>
    <item>
      <title>В помощь новичкам и для тех кто думает что наша цива похожа на кенгу;)</title>
      <description><![CDATA[<u>Чего сколько держать</u><br />Горы - 9999; если у вас гор больше, то вероятность что они упадут составляет 50%; падает разный процент гор.<br />Лес - 999; если у вас леса больше, то вероятность что он сгорит сост. 50%; горит разный процент леса.<br />Население - 9999 (ученые + рабочие + свободные войска); если у вас населения больше, то вероятность что произойдет чума составляет 50%; умирает разный процент населения.<br /><br /><u>Формулы</u><br />Жесть 790 * горы / рабы = деньги<br />Камень 590 * горы / рабы = деньги<br />Лес 190 * лес / рабы = деньги<br /><br /><u>Создание клана</u><br />Для создания клана необходимо 80000 общей земли и все параметры цитадели не менее 75.<br /><br /><i>Открытия в УС не даются</i><br /><br /><u>Снятие налога</u><br />Возраст страны умножаем на 3,5 и прибавляет три нуля. Что бы снять всю сумму отправляем всех рабов кроме одного на добычу зерна.<br />Пример: стране 50 часов. 50 * 3,5 = 175. Сумма налога будет составлять 175000<br /><br /><i>Прирост населения при 100 науке составляет 100% (если у вас 1000 рабов то в новый год прирастет 1000 рабов)</i><br /><i>С одной горы в новый год приходит 5 денег</i><br /><i>Новый год наступает в 00 часов по игре</i>]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-14.html]]></link>
      <pubDate>Mon, 24 Oct 2011 21:28:07 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-14.html]]></guid>
    </item>
    <item>
      <title>Функция BB-кодов без ООП</title>
      <description><![CDATA[спасибо большое)]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-custom-php-functions/last/topic-13.html]]></link>
      <pubDate>Sun, 23 Oct 2011 21:43:53 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-custom-php-functions/last/topic-13.html]]></guid>
    </item>
    <item>
      <title>Ошибки модерки и улучшения</title>
      <description><![CDATA[Вы сожгли 1ед. денег в стране Хх,////[Хх]20:28<br />!По этой стране нет логов сжиганий!////Логи сжиганий чет не работают)]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-12.html]]></link>
      <pubDate>Mon, 17 Oct 2011 20:29:01 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-12.html]]></guid>
    </item>
    <item>
      <title>Проблема с поппапками</title>
      <description><![CDATA[Ну здесь можно включить фантазию и функций наделать придостаточно. PHP в этом поможет)<br />К примеру функция<br /><!-- PHP code --><div class="php" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">php code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">function</span> root<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">/* функция поиска корневой папки */</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$level</span><span style="color: #339933;">=</span><span style="color: #0000ff;">''</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$level</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'game.php'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$level</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'../'</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">return</span> <span style="color: #000088;">$level</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">include</span> root<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'dir/file.php'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># пример использования</span></div></li>
</ol></div><!--/PHP code --><br />В одном из популярных вап двигов роторе имеем константу...<br /><!-- PHP code --><div class="php" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">php code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">#################</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$level</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$folder_level</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">file_exists</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$folder_level</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'input.php'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$level</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #000088;">$folder_level</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'../'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; <span style="color: #339933;">++</span><span style="color: #000088;">$level</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$level</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BASEDIR'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$folder_level</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">############################</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">include_once</span> <span style="color: #009900;">&#40;</span>BASEDIR<span style="color: #339933;">.</span><span style="color: #0000ff;">'includes/info.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;"># пример использования</span></div></li>
</ol></div><!--/PHP code --><br /><br />game.php - в первом примере файл который нигде не повторяется и лежит в корне<br />input.php - аналогично для второго варианта]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-working-with-the-file-system-and-file/last/topic-11.html]]></link>
      <pubDate>Tue, 11 Oct 2011 20:11:45 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-working-with-the-file-system-and-file/last/topic-11.html]]></guid>
    </item>
    <item>
      <title>Предложение по разделам форума</title>
      <description><![CDATA[<blockquote class="blockquote"><p><span class="titlequote">vendetman (08.10.2011, 19:19) писал:</span><span class="textquote">Для  ротора скриптов нет.Админ исправь.<img id='smiles_img' src='{TEMPLATE}/bbcode/smiles/002.gif' /></span></p></blockquote><!--quote --><br /><br />Все будет конечно)]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-life-site/last/topic-4.html]]></link>
      <pubDate>Sun, 09 Oct 2011 19:06:47 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-life-site/last/topic-4.html]]></guid>
    </item>
    <item>
      <title>Продажа Dedicated servers</title>
      <description><![CDATA[Продажа Дешовых Дедиков:<br /> --------------------------<br /> » В наличии дедики с ОС Windows 2003, XP.<br /> » Индивидуальный подход к каждому клиенту. Дедики под любые нужды...<br /> -----------------------------------------------------------------<br /> » Возможность установки программ для брута асек, дедов и т.д...За дополнительную плату!<br /> -------------------------------------------------------------------------------<br /> » В наличии есть деды для брута ( DUBrute ) до 600 PPS..<br /> ----------------------------------------------------<br /><br /> Подробности Перед Покупкой:<br /> ---------------------------<br /> » XP - все по 1 WMZ (не чекаю на конфиг)<br /> » 2003 - от 2 WMZ<br /> » Оптовые покупки обговариваються отдельно по iCQ: 510-070<br /> --------------------------------------------------------<br /><br /> В Наличии Страны:<br /> &gt;&gt; Россия, Англия, Украина, Юса, Канада, Австрия, Австралия, Италия, Германия и др.<br /> -------------------------------------------------------------------------------<br /><br /> По Поводу Гарантий:<br /> » BL:32+<br /> » Гарантия на ос 2003 сутки с момента продажи.. <br /> » На oc хр 6 часов с момента продажи...<br /> » Гарантийная замена производится если дед не пингуется (ping ip сервера )<br /> » Гарантийному возврату не подлежат те машины на которых у вас не подходит пароль к вашей учетке или админке<br /> ----------------------<br />Контакты - ICQ: 510070<br /> -----]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-selling/last/topic-8.html]]></link>
      <pubDate>Tue, 04 Oct 2011 23:48:59 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-selling/last/topic-8.html]]></guid>
    </item>
    <item>
      <title>Обновления в игре ЦИВИЛИЗАЦИЯ!</title>
      <description><![CDATA[не писалось тогда чего-то=)]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-6.html]]></link>
      <pubDate>Tue, 04 Oct 2011 20:47:23 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-civilization/last/topic-6.html]]></guid>
    </item>
    <item>
      <title>помогите задать функцию антифлуда</title>
      <description><![CDATA[<!-- PHP code --><div class="php" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">php code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_IN_JOHNCMS'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$textl</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Добавление статьи'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">require_once</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;../incfiles/head.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;phdr&quot;&gt;Добавление статьи&lt;/div&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$id</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$req</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM `libr` WHERE `id` = '&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$cat</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;' LIMIT 1&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dost'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$user_id</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$rights</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'submit'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> check<span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$desc</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'desc'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$dost</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$rights</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$dost</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000088;">$old</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$rights</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> ? <span style="color: #cc66cc;">10</span> <span style="color: #339933;">:</span> <span style="color: #cc66cc;">11</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//// Проверка на ввод названия ////</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$name</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Не заполнено Название!&lt;br /&gt;&lt;a href='index.php?act=add&amp;amp;cat=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$cat</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;'&gt;Повторить&lt;/a&gt;&lt;br/&gt;&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">require_once</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'../incfiles/end.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">exit</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//// Проверка на ввод описания ////</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$desc</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Не заполнено описание!&lt;br /&gt;&lt;a href='index.php?act=add&amp;amp;cat=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$cat</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;'&gt;Повторить&lt;/a&gt;&lt;br/&gt;&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">require_once</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'../incfiles/end.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">exit</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">//// Проверка на флуд ////</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$result</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SELECT `login` FROM `libr` WHERE `date`&gt;\''</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$realtime</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">60</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\' AND `login` = \''</span><span style="color: #339933;">.</span><span style="color: #000088;">$login</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'\' LIMIT 1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$is</span><span style="color: #339933;">=</span><span style="color: #990000;">mysql_num_rows</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$is</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;div class=&quot;rmenu&quot;&gt;&lt;p&gt;АНТИФЛУД!&lt;br /&gt;Вы не можете так часто писать, порог 60 секунд&lt;br /&gt;&lt;a href=&quot;index.php?id='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$id</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;amp;start='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$start</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;Назад&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">require_once</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;../incfiles/end.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">exit</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> </div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO `libr` SET `name` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$name</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', `type` = '1', `refid` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$cat</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', `desc` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$desc</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', `login` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$login</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', `usid` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$user_id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', `dost` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$dost</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', `date` = '&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$realtime</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;';&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #000088;">$rid</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_insert_id</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'Спасибо! Статья успешно добавлена. После прохождения модерации она станет доступна для просмотра всем посетителям сайта. :)&lt;br/&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'&lt;a href=&quot;dir_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$cat</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html&quot;&gt;В папку&lt;/a&gt;&lt;br/&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'&lt;a href=&quot;dir_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'refid'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html&quot;&gt;Назад&lt;/a&gt;&lt;br/&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">///// Форма ввода и выбора файла ////</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;form action='index.php?act=add&amp;amp;cat=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$cat</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;' method='post'&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">Название:&lt;br/&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">&lt;input type='text' name='name'/&gt;&lt;br/&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">Текст:&lt;br/&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">&lt;textarea cols='25' rows='9' name='desc'&gt;&lt;/textarea&gt;&lt;br/&gt;&quot;</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'&lt;a href=&quot;../read.php?do=forumfaq&quot;&gt;BB коды&lt;/a&gt; | &lt;a href=&quot;../str/smile.php&quot;&gt;Смайлы&lt;/a&gt;&lt;br/&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Добавить&quot;/&gt;&lt;br/&gt;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff;">&lt;/form&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'&lt;br/&gt;&lt;a href=&quot;dir_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$cat</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html&quot;&gt;Назад в папку&lt;/a&gt;&lt;br/&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #b1b100;">echo</span><span style="color: #0000ff;">'В данную категорию не разрешено добавлять описания или вы не авторизованы...&lt;br/&gt;'</span><span style="color: #339933;">;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#125;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">?&gt;</span></div></li>
</ol></div><!--/PHP code --><br />Много непонятных моментов в коде. Ну попробуй так. Если что пиши подкорректируем)]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-newbie-questions/last/topic-7.html]]></link>
      <pubDate>Mon, 03 Oct 2011 11:15:51 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-newbie-questions/last/topic-7.html]]></guid>
    </item>
    <item>
      <title>Круглосуточное общение</title>
      <description><![CDATA[Всем привет)]]></description>
      <link><![CDATA[http://homephp.ru/forum/cat-php-communication/last/topic-3.html]]></link>
      <pubDate>Wed, 07 Sep 2011 21:18:04 +0400</pubDate>
      <guid isPermaLink="true"><![CDATA[http://homephp.ru/forum/cat-php-communication/last/topic-3.html]]></guid>
    </item>
  </channel></rss>
