<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : [RELEASE] Not a Plugin</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 10:04:50 -0000</pubDate>

		<item>
			<title>urlkiller</title>
			<description><![CDATA[the idea was to create a fast and almost identical plugin structure.<br />
<br />
the folders that may seem wierd are the parts folder.<br />
<br />
the plugin loads the representative part and the tpl with the same name.<br />
<br />
@Kort <br />
Dont know how you delete files but i delete files much faster then opening every single file and change the header part. so what files are obsolete except the sql file?<br />
ok maybe i add a feature to create a &quot;small&quot; plugin to choose which files should be included...<br />
<br />
@tensh &amp; ez<br />
but i will do something like a js config part where you could select most used jquery plugs or define your own java includes and a read/write rights option maybe. I dont want to make it too specialised. its more of a toy for me...  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/happy.gif" alt=":))" /> <br />
<br />
@all<br />
that was about 5 minutes of time coding this simple tool.<br />
<br />
<strong>Added 2 minutes later:</strong><br />
<br />
==== FOR EZ REQUEST ====<br />
<br />
<strong>function.php</strong><br />
<div class="highlight"><pre class="php">
// Search Folders and Copy Files
// *****************************************************************************
function read_folders($mainpath)
{
	global	$filetypes,
					$search,
					$replace,
					$pluginName,
					$pluginVersion,
					$pluginUpdated,
					$pluginType,
					$pluginHooks,
					$pluginDesc,
					$pluginName,
					$Auth_guests,
					$Lock_guests,
					$Auth_members,
					$Lock_members,
					$pluginRights,
					$pluginLang,
					$pluginAuthor,
					$pluginDate,
					$pluginCopyright,
					$pluginNotes,
					$pluginFile,
					$pluginCode,
					$pluginSQL;


	@mkdir('./plugin/'.$pluginCode, 0777);
	$handle = opendir($mainpath);
	while ($file = readdir ($handle))
	{
	    if($file != &quot;.&quot; &amp;&amp; $file != &quot;..&quot;)
			{
	        if(is_dir($mainpath.&quot;/&quot;.$file))
					{
	            @mkdir(str_replace('./source','./plugin/'.$pluginCode,$mainpath).&quot;/&quot;.$file, 0777);
	            @read_folders($mainpath.&quot;/&quot;.$file);
	        }
					else
					{
					  $filehandle = @fopen(str_replace('./source','./plugin/'.$pluginCode,$mainpath).&quot;/&quot;.str_replace('placeholder',$pluginCode,$file), 'w+') or die(&quot;can't open file, invalid file handle!&quot;);
	        	foreach($filetypes AS $type)
						{
							if(strpos($file,$type))
							{
								@fwrite($filehandle, file_tags($mainpath.&quot;/&quot;.$file));
							}
						}
						@fclose($filehandle);
	        }
	    }
	}
	closedir($handle);
}
// Replace Tags in Files and Save a Copy with the new names
// *****************************************************************************
function file_tags($mainpath)
{
	global	$filetypes,
					$search,
					$replace,
					$pluginName,
					$pluginVersion,
					$pluginUpdated,
					$pluginType,
					$pluginHooks,
					$pluginDesc,
					$pluginName,
					$Auth_guests,
					$Lock_guests,
					$Auth_members,
					$Lock_members,
					$pluginRights,
					$pluginLang,
					$pluginAuthor,
					$pluginDate,
					$pluginCopyright,
					$pluginNotes,
					$pluginFile,
					$pluginCode,
					$pluginSQL;

	$lines = file($mainpath);
	foreach ($lines as $line_num =&gt; $line){$out .= str_replace($search,$replace,$line);}
	return $out;
}

</pre></div>
<br />
<br />
<br />
<br />
<span style="color:#EF2929"><strong>!!- PLEASE VIEW PLAIN SOME ERRORS HERE IN THE HIGHLIGHT -!!</strong></span><br />
<strong>index.php</strong><br />
<div class="highlight"><pre class="php-f">
include('./function.php');

$pluginName 				= $_POST&#091;'pluginName'&#093;;
$pluginCode 				= $_POST&#091;'pluginCode'&#093;;
$pluginVersion 			= $_POST&#091;'pluginVersion'&#093;;
$pluginUpdated 			= $_POST&#091;'pluginUpdated'&#093;;
$pluginType 				= $_POST&#091;'pluginType'&#093;;
$pluginHooks 				= $_POST&#091;'pluginHooks'&#093;;
$pluginDesc 				= $_POST&#091;'pluginDesc'&#093;;
$pluginName 				= $_POST&#091;'pluginName'&#093;;
$pluginRights 			= 'RIGHTS CONFIG BLOCK';
$pluginLang 				= $_POST&#091;'pluginLang'&#093;;
$pluginAuthor 			= $_POST&#091;'pluginAuthor'&#093;;
$pluginDate 				= $_POST&#091;'pluginDate'&#093;;
$pluginCopyright 		= $_POST&#091;'pluginCopyright'&#093;;
$pluginNotes 				= $_POST&#091;'pluginNotes'&#093;;
$pluginFile 				= 'plugins/'.$pluginCode.'/';
$pluginSQL 					= $pluginCode.'.sql';
$Auth_guests 				= 'RWA1234';
$Lock_guests 				= 'RWA1234';
$Auth_members 			= 'RWA1234';
$Lock_members 			= 'RWA1234';
$search 						= array('&#091;{Rights}&#093;'	,'&#091;{Lang}&#093;'			,'&#091;{Hooks}&#093;'		,'&#091;{File}&#093;'		,'&#091;{Updated}&#093;'	,'&#091;{Type}&#093;'		,'&#091;{Author}&#093;'		,'&#091;{Description}&#093;'	,'&#091;{Code}&#093;'		,'&#091;{Name}&#093;'		,'&#091;{Version}&#093;'	,'&#091;{Author}&#093;'		,'&#091;{Date}&#093;'		,'&#091;{Copyright}&#093;'	,'&#091;{Notes}&#093;'	,'&#091;{SQL}&#093;'		,'&#091;{Auth_guests}&#093;'	,'&#091;{Lock_guests}&#093;'	,'&#091;{Auth_members}&#093;'	,'&#091;{Lock_members}&#093;');
$replace 						= array($pluginRights	,$pluginLang		,$pluginHooks		,$pluginFile	,$pluginUpdated	,$pluginType	,$pluginAuthor	,$pluginDesc				,$pluginCode	,$pluginName	,$pluginVersion	,$pluginAuthor	,$pluginDate	,$pluginCopyright	,$pluginNotes	,$pluginSQL		,$Auth_guests				,$Lock_guests				,$Auth_members			,$Lock_members);
$filetypes 					= array('.php','.css','.js','.tpl','.png','.gif','.jpg','.sql');

if($pluginType=='') 			{$pluginType			= 'plugin';}
if($pluginHooks=='') 			{$pluginHooks			= 'standalone';}
if($pluginLang=='') 			{$pluginLang			= 'en';}
if($pluginAuthor=='') 		{$pluginAuthor		= 'John Doe';}
if($pluginVersion=='') 		{$pluginVersion		= '1.0';}
if($pluginUpdated=='')		{$pluginUpdated		= date('d.m.Y',mktime());}
if($pluginNotes=='') 			{$pluginNotes			= 'Your Notes are going here...';}
if($pluginCopyright=='')	{$pluginCopyright	= '(c) '.date('Y',mktime()).' by '.$pluginAuthor;}
if($pluginDate=='') 			{$pluginDate			= date('d.m.Y',mktime());}
if($pluginDesc=='') 			{$pluginDesc			= 'Your Descriptions are going here...';}
if($pluginCode=='') 			{$pluginCode			= 'myplugin';}
if($pluginName=='') 			{$pluginName			= 'My Plugin Name';}


// Run everything and start working <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" />
// *****************************************************************************
if($_POST&#091;'action'&#093;=='build')
	{
		read_folders('./source');
		exec(&quot;tar cfv ./tars/&quot;.$pluginCode.&quot;.tar ./plugin/&quot;.$pluginCode);
		echo '&lt;fieldset name=&quot;field&quot;&gt;&lt;legend style=&quot;font-weight:normal;letter-spacing:-2px;font-size:48px;&quot;&gt;Download Plugin&lt;/legend&gt;Download preconfigured Plugin-File here: &lt;a href=https://www.cotonti.com/&quot;./tars/'.$pluginCode.'.tar&quot;&gt;'.$pluginCode.'.tar&lt;/a&gt;&lt;/fieldset&gt;';
	}
?&gt;
&lt;style&gt;
html {text-align:center;background:black;color:white;font-family:verdana;}
input {padding:5px;font-size:14px;width:98%;}
textarea {padding:5px;font-size:14px;width:98%;height:100px;}
table td {vertical-align:middle;padding:3px;font-weight:normal;font-family:verdana;}
legend {font-size:48px;font-family:times;}
a {color:#fff;background:#12C1E3;text-decoration:none;padding:3px;-moz-border-radius: 5px; -webkit-border-radius: 5px;border:3px solid transparent;}
a:hover {border:3px solid #118DA5;}
fieldset {width:600px;margin:0 auto;-moz-border-radius: 15px; -webkit-border-radius: 15px;border: 4px solid #323232; background: #222222;margin-bottom:20px;}
&lt;/style&gt;

&lt;fieldset name=&quot;field&quot;&gt;
&lt;legend style=&quot;font-weight:normal;letter-spacing:-2px;font-size:48px;&quot;&gt;Preconfigured Plugin's&lt;/legend&gt;
&lt;form action=&quot;index.php&quot; method=&quot;post&quot;&gt;
	&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;build&quot;&gt;
	&lt;table style=&quot;border:0px;width:100%;&quot;&gt;
		&lt;tr&gt;
		  &lt;td style=&quot;width:200px;&quot;&gt;plugin Code:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginCode&quot; value=&quot;&lt;?php echo $pluginCode; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Name:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginName&quot; value=&quot;&lt;?php echo $pluginName; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Version:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginVersion&quot; value=&quot;&lt;?php echo $pluginVersion; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Updated:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginUpdated&quot; value=&quot;&lt;?php echo $pluginUpdated; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Type:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginType&quot; value=&quot;&lt;?php echo $pluginType; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Author:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginAuthor&quot; value=&quot;&lt;?php echo $pluginAuthor; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Description:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginDesc&quot; value=&quot;&lt;?php echo $pluginDesc; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Hooks:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginHooks&quot; value=&quot;&lt;?php echo $pluginHooks; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Date:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginDate&quot; value=&quot;&lt;?php echo $pluginDate; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Notes:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginNotes&quot; value=&quot;&lt;?php echo $pluginNotes; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Copyright:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginCopyright&quot; value=&quot;&lt;?php echo $pluginCopyright; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td&gt;plugin Language:&lt;/td&gt;
		  &lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;pluginLang&quot; value=&quot;&lt;?php echo $pluginLang; ?&gt;&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td style=&quot;text-align:center;&quot; colspan=&quot;2&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
		  &lt;td style=&quot;text-align:center;&quot; colspan=&quot;2&quot;&gt;&lt;input type=&quot;submit&quot; value=&quot;Create preconfigured Plugin&quot; class=&quot;submit&quot;&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/table&gt;
&lt;/form&gt;
&lt;/fieldset&gt;
</pre></div>]]></description>
			<pubDate>Fri, 23 Jul 2010 05:17:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5737&d=0#post25306]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[Good initiative! <br />
I was thinking of creating something like this as well, and in addition a little database tool to set up the tables, and link to the tables the basic &quot;add, edit, delete&quot; parts of the plugin.]]></description>
			<pubDate>Thu, 22 Jul 2010 14:40:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5737&d=0#post25291]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<a href="https://www.cotonti.com/datas/users/weird_183.gif"><img src="https://www.cotonti.com/datas/users/weird_183.gif" alt="" class="scale" /></a><br />
Most weird plugin structure I've ever seen. Deleting the &quot;extrafiles&quot; takes same time as creating them anew. Why not adding package options? myplugin.sql is definitely obsolete. Imho, useless thing for serious plugin makers.]]></description>
			<pubDate>Thu, 22 Jul 2010 14:18:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5737&d=0#post25290]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[Nice... saves me time<br />
<br />
You could post the source.. ( as a plugin  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /> )]]></description>
			<pubDate>Thu, 22 Jul 2010 13:51:47 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5737&d=0#post25289]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[that was the idea behind that. i got bored of that filesetup some time ago...]]></description>
			<pubDate>Thu, 22 Jul 2010 09:26:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5737&d=0#post25287]]></link>
		</item>
		<item>
			<title>ven7ura</title>
			<description><![CDATA[Haha nice release!<br />
<br />
I hate to modify all that info when I start a plugin from scratch!<br />
<br />
Thanks!]]></description>
			<pubDate>Thu, 22 Jul 2010 07:58:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5737&d=0#post25286]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[<a href="http://www.blackboxmedia.org/_projects/_cotgen/" rel="nofollow">http://www.blackboxmedia.org/_projects/_cotgen/</a><br />
<br />
ok here is the link. click on it do your entrys and download a ready made plugin package ready for you to edit it. i thought its pretty stupid starting hughe plugins everytime from scratch.<br />
<br />
if you find some errors or something else that could be included just write something here...  <br />
<br />
maybe somebody have some use of it.<br />
<br />
it features a header, ajax and main start file, some icons and something here and there... download a test plugin an take a look at the files inside.]]></description>
			<pubDate>Thu, 22 Jul 2010 06:57:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5737&d=0#post25285]]></link>
		</item>
	</channel>
</rss>