<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[مەکۆکانی وێبچن - به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌]]></title>
		<link>https://www.webchin.org/Meko/viewtopic.php?id=26546</link>
		<atom:link href="https://www.webchin.org/Meko/extern.php?action=feed&amp;tid=26546&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[دواترین و نوێترین په‌یامه‌كان له‌ به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌.]]></description>
		<lastBuildDate>Sat, 03 Mar 2012 16:31:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[وه‌ڵام: به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=215061#p215061</link>
			<description><![CDATA[<p>سوپاس بۆ په‌یامه‌كانتان <br />چاره‌سه‌ربوو</p>]]></description>
			<author><![CDATA[null@example.com (reden)]]></author>
			<pubDate>Sat, 03 Mar 2012 16:31:47 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=215061#p215061</guid>
		</item>
		<item>
			<title><![CDATA[وه‌ڵام: به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=215025#p215025</link>
			<description><![CDATA[<p>ئه‌ها وێبسایته‌كه‌ت له‌سه‌ر ڕاژه‌ی ئێمه‌یه‌<br />كرداره‌كه‌ چالاك كرا ،<br />ئێستا چاره‌سه‌ر كرا.</p>]]></description>
			<author><![CDATA[null@example.com (gold-technology.net)]]></author>
			<pubDate>Sat, 03 Mar 2012 00:57:41 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=215025#p215025</guid>
		</item>
		<item>
			<title><![CDATA[وه‌ڵام: به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=215024#p215024</link>
			<description><![CDATA[<p>وەک نووسراوە کرداری dir لەسەر ئەو سێرڤەرە ناچالاک کراوە.<br />پەیوەندی لەگەڵ ئەو شوێنە بگرە کە هۆستت لێ کڕیوون.</p>]]></description>
			<author><![CDATA[null@example.com (ئاسۆ نادری)]]></author>
			<pubDate>Sat, 03 Mar 2012 00:46:44 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=215024#p215024</guid>
		</item>
		<item>
			<title><![CDATA[وه‌ڵام: به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=215010#p215010</link>
			<description><![CDATA[<div class="codebox"><pre><code data-language=php>&lt;?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  PunBB is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/

// Make sure no one attempts to run this script &quot;directly&quot;
if (!defined(&#039;PUN&#039;))
    exit;


//
// Display the admin navigation menu
//
function generate_admin_menu($page = &#039;&#039;)
{
    global $pun_config, $pun_user;

    $is_admin = $pun_user[&#039;g_id&#039;] == PUN_ADMIN ? true : false;

?&gt;
&lt;div id=&quot;adminconsole&quot; class=&quot;block2col&quot;&gt;
    &lt;div id=&quot;adminmenu&quot; class=&quot;blockmenu&quot;&gt;
        &lt;h2&gt;&lt;span&gt;&lt;?php echo ($is_admin) ? &#039;Admin&#039; : &#039;Moderator&#039; ?&gt; menu&lt;/span&gt;&lt;/h2&gt;
        &lt;div class=&quot;box&quot;&gt;
            &lt;div class=&quot;inbox&quot;&gt;
                &lt;ul&gt;
                    &lt;li&lt;?php if ($page == &#039;index&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_index.php&quot;&gt;Index&lt;/a&gt;&lt;/li&gt;
&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;categories&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_categories.php&quot;&gt;Categories&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;forums&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_forums.php&quot;&gt;Forums&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;                    &lt;li&lt;?php if ($page == &#039;users&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_users.php&quot;&gt;Users&lt;/a&gt;&lt;/li&gt;
&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;groups&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_groups.php&quot;&gt;User groups&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;options&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_options.php&quot;&gt;Options&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;permissions&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_permissions.php&quot;&gt;Permissions&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;                    &lt;li&lt;?php if ($page == &#039;censoring&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_censoring.php&quot;&gt;Censoring&lt;/a&gt;&lt;/li&gt;
&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;ranks&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_ranks.php&quot;&gt;Ranks&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;&lt;?php if ($is_admin || $pun_config[&#039;p_mod_ban_users&#039;] == &#039;1&#039;): ?&gt;                    &lt;li&lt;?php if ($page == &#039;bans&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_bans.php&quot;&gt;Bans&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;prune&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_prune.php&quot;&gt;Prune&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;&lt;?php if ($is_admin): ?&gt;                    &lt;li&lt;?php if ($page == &#039;maintenance&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_maintenance.php&quot;&gt;Maintenance&lt;/a&gt;&lt;/li&gt;
&lt;?php endif; ?&gt;                    &lt;li&lt;?php if ($page == &#039;reports&#039;) echo &#039; class=&quot;isactive&quot;&#039;; ?&gt;&gt;&lt;a href=&quot;admin_reports.php&quot;&gt;Reports&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt;
&lt;?php

    // See if there are any plugins
    $plugins = array();
    $d = dir(PUN_ROOT.&#039;plugins&#039;);
    while (($entry = $d-&gt;read()) !== false)
    {
        $prefix = substr($entry, 0, strpos($entry, &#039;_&#039;));
        $suffix = substr($entry, strlen($entry) - 4);

        if ($suffix == &#039;.php&#039; &amp;&amp; ((!$is_admin &amp;&amp; $prefix == &#039;AMP&#039;) || ($is_admin &amp;&amp; ($prefix == &#039;AP&#039; || $prefix == &#039;AMP&#039;))))
            $plugins[] = array(substr(substr($entry, strpos($entry, &#039;_&#039;) + 1), 0, -4), $entry);
    }
    $d-&gt;close();

    // Did we find any plugins?
    if (!empty($plugins))
    {

?&gt;
        &lt;h2 class=&quot;block2&quot;&gt;&lt;span&gt;Plugins&lt;/span&gt;&lt;/h2&gt;
        &lt;div class=&quot;box&quot;&gt;
            &lt;div class=&quot;inbox&quot;&gt;
                &lt;ul&gt;
&lt;?php

        while (list(, $cur_plugin) = @each($plugins))
            echo &quot;\t\t\t\t\t&quot;.&#039;&lt;li&#039;.(($page == $cur_plugin[1]) ? &#039; class=&quot;isactive&quot;&#039; : &#039;&#039;).&#039;&gt;&lt;a href=&quot;admin_loader.php?plugin=&#039;.$cur_plugin[1].&#039;&quot;&gt;&#039;.str_replace(&#039;_&#039;, &#039; &#039;, $cur_plugin[0]).&#039;&lt;/a&gt;&lt;/li&gt;&#039;.&quot;\n&quot;;

?&gt;
                &lt;/ul&gt;
            &lt;/div&gt;
        &lt;/div&gt;
&lt;?php

    }

?&gt;
    &lt;/div&gt;

&lt;?php

}


//
// Delete topics from $forum_id that are &quot;older than&quot; $prune_date (if $prune_sticky is 1, sticky topics will also be deleted)
//
function prune($forum_id, $prune_sticky, $prune_date)
{
    global $db;

    $extra_sql = ($prune_date != -1) ? &#039; AND last_post&lt;&#039;.$prune_date : &#039;&#039;;

    if (!$prune_sticky)
        $extra_sql .= &#039; AND sticky=\&#039;0\&#039;&#039;;

    // Fetch topics to prune
    $result = $db-&gt;query(&#039;SELECT id FROM &#039;.$db-&gt;prefix.&#039;topics WHERE forum_id=&#039;.$forum_id.$extra_sql, true) or error(&#039;Unable to fetch topics&#039;, __FILE__, __LINE__, $db-&gt;error());

    $topic_ids = &#039;&#039;;
    while ($row = $db-&gt;fetch_row($result))
        $topic_ids .= (($topic_ids != &#039;&#039;) ? &#039;,&#039; : &#039;&#039;).$row[0];

    if ($topic_ids != &#039;&#039;)
    {
        // Fetch posts to prune
        $result = $db-&gt;query(&#039;SELECT id FROM &#039;.$db-&gt;prefix.&#039;posts WHERE topic_id IN(&#039;.$topic_ids.&#039;)&#039;, true) or error(&#039;Unable to fetch posts&#039;, __FILE__, __LINE__, $db-&gt;error());

        $post_ids = &#039;&#039;;
        while ($row = $db-&gt;fetch_row($result))
            $post_ids .= (($post_ids != &#039;&#039;) ? &#039;,&#039; : &#039;&#039;).$row[0];

        if ($post_ids != &#039;&#039;)
        {
            // Delete topics
            $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;topics WHERE id IN(&#039;.$topic_ids.&#039;)&#039;) or error(&#039;Unable to prune topics&#039;, __FILE__, __LINE__, $db-&gt;error());
            // Delete subscriptions
            $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;subscriptions WHERE topic_id IN(&#039;.$topic_ids.&#039;)&#039;) or error(&#039;Unable to prune subscriptions&#039;, __FILE__, __LINE__, $db-&gt;error());
            // Delete posts
            $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;posts WHERE id IN(&#039;.$post_ids.&#039;)&#039;) or error(&#039;Unable to prune posts&#039;, __FILE__, __LINE__, $db-&gt;error());

            // We removed a bunch of posts, so now we have to update the search index
            require_once PUN_ROOT.&#039;include/search_idx.php&#039;;
            strip_search_index($post_ids);
        }
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (reden)]]></author>
			<pubDate>Fri, 02 Mar 2012 21:32:10 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=215010#p215010</guid>
		</item>
		<item>
			<title><![CDATA[وه‌ڵام: به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=215009#p215009</link>
			<description><![CDATA[<p>له‌ ناو فایلی مه‌كۆ له ftp <br />بچۆره‌ ناو include<br />پاشان فایلی common_admin.php م بۆ بنێره‌.</p>]]></description>
			<author><![CDATA[null@example.com (gold-technology.net)]]></author>
			<pubDate>Fri, 02 Mar 2012 21:10:32 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=215009#p215009</guid>
		</item>
		<item>
			<title><![CDATA[به‌ڕێوبه‌رایه‌تیه‌كه‌م كێشه‌ی هه‌یه‌]]></title>
			<link>https://www.webchin.org/Meko/viewtopic.php?pid=215007#p215007</link>
			<description><![CDATA[<p><a href="http://webchinupload.com/files/669488453-Capture.PNG">http://webchinupload.com/files/669488453-Capture.PNG</a></p>]]></description>
			<author><![CDATA[null@example.com (reden)]]></author>
			<pubDate>Fri, 02 Mar 2012 20:02:22 +0000</pubDate>
			<guid>https://www.webchin.org/Meko/viewtopic.php?pid=215007#p215007</guid>
		</item>
	</channel>
</rss>
