<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[missing Forum — punBB: Deletion Day plugin]]></title>
		<link>https://forum.missingno.de/topic/232/</link>
		<atom:link href="https://forum.missingno.de/feed/rss/topic/232/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in punBB: Deletion Day plugin.]]></description>
		<lastBuildDate>Sat, 26 Jan 2008 00:28:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: punBB: Deletion Day plugin]]></title>
			<link>https://forum.missingno.de/post/3414/#p3414</link>
			<description><![CDATA[<p>Ich verstehe ihn. Und auch wenn man keine Programmiersprache kann so kann er trotzdem amüsant sein, sofern man Englisch kann.</p><p><span style="color: orange">/me</span></p>]]></description>
			<author><![CDATA[null@example.com (/me)]]></author>
			<pubDate>Sat, 26 Jan 2008 00:28:37 +0000</pubDate>
			<guid>https://forum.missingno.de/post/3414/#p3414</guid>
		</item>
		<item>
			<title><![CDATA[Re: punBB: Deletion Day plugin]]></title>
			<link>https://forum.missingno.de/post/3411/#p3411</link>
			<description><![CDATA[<p>aha der code is unnötig versteht sowiso nimand ^^</p>]]></description>
			<author><![CDATA[null@example.com (Matombo)]]></author>
			<pubDate>Fri, 25 Jan 2008 20:31:51 +0000</pubDate>
			<guid>https://forum.missingno.de/post/3411/#p3411</guid>
		</item>
		<item>
			<title><![CDATA[punBB: Deletion Day plugin]]></title>
			<link>https://forum.missingno.de/post/3409/#p3409</link>
			<description><![CDATA[<p><strong>AP_Deletion_Day.php</strong><br /></p><div class="codebox"><pre><code>&lt;?php
/***********************************************************************

  (c) 2008 by Michael &quot;Missingno.&quot; Hanig

  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;

// Tell admin_loader.php that this is indeed a plugin and that it is loaded
define(&#039;PUN_PLUGIN_LOADED&#039;, 1);

// If the &quot;Nuke&#039;em!&quot; button was clicked
if (isset($_POST[&#039;dday&#039;]))
{
    // period of grace entered?
    if(trim($_POST[&#039;days_to_live&#039;]) == &#039;&#039;) {
        $result = $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;users WHERE group_id=32000&#039;) or error(&#039;Unable to delete users&#039;, __FILE__, __LINE__, $db-&gt;error());
    } else {
        $result = $db-&gt;query(&#039;DELETE FROM &#039;.$db-&gt;prefix.&#039;users WHERE group_id=32000 AND registered&lt;&#039;.(time() - ((int)trim($_POST[&#039;days_to_live&#039;]) * 24 * 60 * 60))) or error(&#039;Unable to delete users&#039;, __FILE__, __LINE__, $db-&gt;error());
    }
    $result = mysql_affected_rows();

    // Display the admin navigation menu
    generate_admin_menu($plugin);

?&gt;
    &lt;div class=&quot;block&quot;&gt;
        &lt;h2&gt;&lt;span&gt;Deletion-Day plugin&lt;/span&gt;&lt;/h2&gt;
        &lt;div class=&quot;box&quot;&gt;
            &lt;div class=&quot;inbox&quot;&gt;
                &lt;?php
                    if($result != 0) {
                ?&gt;
                &lt;p&gt;Killed &lt;?php echo $result; ?&gt; people. Feeling better now?&lt;/p&gt;
                &lt;?php
                    } else {
                ?&gt;
                &lt;p&gt;No one died. Boring!&lt;/p&gt;
                &lt;?php
                    }
                ?&gt;
                &lt;p&gt;&lt;a href=&quot;javascript: history.go(-1)&quot;&gt;Go back&lt;/a&gt;&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;?php

}
else    // If not, we show the form
{
    // Display the admin navigation menu
    generate_admin_menu($plugin);

?&gt;
    &lt;div id=&quot;exampleplugin&quot; class=&quot;blockform&quot;&gt;
        &lt;h2&gt;&lt;span&gt;Deletion-Day plugin&lt;/span&gt;&lt;/h2&gt;
        &lt;div class=&quot;box&quot;&gt;
            &lt;div class=&quot;inbox&quot;&gt;
                &lt;p&gt;You can delete registered users who have never logged in with one click.&lt;/p&gt;
                &lt;p&gt;To prevent the deletion of newly registered users who have not yet confirmed the registration, it is recommended to delete only entries older than a couple of days.&lt;/p&gt;
            &lt;/div&gt;
        &lt;/div&gt;

        &lt;h2 class=&quot;block2&quot;&gt;&lt;span&gt;Time for deletion?&lt;/span&gt;&lt;/h2&gt;
        &lt;div class=&quot;box&quot;&gt;
            &lt;form id=&quot;example&quot; method=&quot;post&quot; action=&quot;&lt;?php echo $_SERVER[&#039;REQUEST_URI&#039;] ?&gt;&quot;&gt;
                &lt;div class=&quot;inform&quot;&gt;
                    &lt;fieldset&gt;
                        &lt;legend&gt;When ready, push the button!&lt;/legend&gt;
                        &lt;div class=&quot;infldset&quot;&gt;
                        &lt;table class=&quot;aligntop&quot; cellspacing=&quot;0&quot;&gt;
                            &lt;tr&gt;
                                &lt;th scope=&quot;row&quot;&gt;&lt;div&gt;&lt;input type=&quot;submit&quot; name=&quot;dday&quot; value=&quot;Nuke&#039;em!&quot; tabindex=&quot;2&quot; /&gt;&lt;/div&gt;&lt;/th&gt;
                                &lt;td&gt;
                                    &lt;input type=&quot;text&quot; name=&quot;days_to_live&quot; size=&quot;25&quot; tabindex=&quot;1&quot; /&gt;
                                    &lt;span&gt;Enter number of days which must have been passed since registration.&lt;/span&gt;
                                &lt;/td&gt;
                            &lt;/tr&gt;
                        &lt;/table&gt;
                        &lt;/div&gt;
                    &lt;/fieldset&gt;
                &lt;/div&gt;
            &lt;/form&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;?php

}

// Note that the script just ends here. The footer will be included by admin_loader.php.</code></pre></div><p>Okay, mir war so langweilig, dass ich das &quot;alle Spam-Anmeldungen löschen&quot; unbedingt automatisieren musste.</p>]]></description>
			<author><![CDATA[null@example.com (missingno)]]></author>
			<pubDate>Fri, 25 Jan 2008 12:25:42 +0000</pubDate>
			<guid>https://forum.missingno.de/post/3409/#p3409</guid>
		</item>
	</channel>
</rss>
