<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to feature-requests</title><link>https://sourceforge.net/p/htprotector/feature-requests/</link><description>Recent changes to feature-requests</description><atom:link href="https://sourceforge.net/p/htprotector/feature-requests/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 14 Sep 2006 21:50:16 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/htprotector/feature-requests/feed.rss" rel="self" type="application/rss+xml"/><item><title>French traduction</title><link>https://sourceforge.net/p/htprotector/feature-requests/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;French traduction.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gerard Bronner</dc:creator><pubDate>Thu, 14 Sep 2006 21:50:16 -0000</pubDate><guid>https://sourceforge.net2ac2d2f66c5b0997840b472756f8feb8ddb67270</guid></item><item><title>Prevent from deleting HTADMIN</title><link>https://sourceforge.net/p/htprotector/feature-requests/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Manuel,&lt;/p&gt;
&lt;p&gt;htprotector is really nice and functional script for&lt;br /&gt;
managing users of protected directories.&lt;/p&gt;
&lt;p&gt;As i wanted to implement it in a website of a "stupid"&lt;br /&gt;
friend i found it a good idea to prevent him from&lt;br /&gt;
deleting the HTADMIN.&lt;br /&gt;
Thus I added the following code lines:&lt;/p&gt;
&lt;p&gt;/*&lt;br /&gt;
If HTADMIN is set, it is NOT possible to delete&lt;br /&gt;
HTADMIN any more&lt;br /&gt;
HT_ADMINSTR is shown instead ...&lt;br /&gt;
*/&lt;br /&gt;
define ("HT_ADMINSTR", "Administrator") ;&lt;/p&gt;
&lt;p&gt;for ( $i = 0; $i &amp;lt; count ( $userlist ); $i++ )&lt;br /&gt;
{&lt;br /&gt;
echo ( "&amp;lt;li&amp;gt;\n" );&lt;br /&gt;
echo ( $userlist[$i]["name"] . " [" ) ;&lt;br /&gt;
if (((strlen(HTADMIN) &amp;gt; 0) &amp;amp;&amp;amp; &lt;br /&gt;
(HTADMIN == $userlist[$i]["name"])) || &lt;br /&gt;
(count ($userlist) &amp;lt; 2))&lt;br /&gt;
// prevent from deleting the HTADMIN or&lt;br /&gt;
// the ONLY user&lt;br /&gt;
echo (HT_ADMINSTR) ;&lt;br /&gt;
else&lt;br /&gt;
// possibility to delete all other users &lt;br /&gt;
// except HTADMIN&lt;br /&gt;
echo (" &amp;lt;a href=\"" . $PHP_SELF . &lt;br /&gt;
"?action=delete&amp;amp;username=" . &lt;br /&gt;
$userlist[$i]["name"] . "\"&amp;gt;" . &lt;br /&gt;
HTML_DELETE . "&amp;lt;/a&amp;gt;") ;&lt;br /&gt;
echo ( "]&amp;lt;/li&amp;gt;\n" );&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Also: DONT forget to use &lt;br /&gt;
o $_SERVER['PHP_AUTH_USER'] instead of&lt;br /&gt;
o $PHP_AUTH_USER&lt;br /&gt;
in the HTADMIN restriction !&lt;/p&gt;
&lt;p&gt;if ( ( strlen ( HTADMIN ) &amp;gt; 0 ) &amp;amp;&amp;amp; &lt;br /&gt;
!( $_SERVER['PHP_AUTH_USER'] == HTADMIN )  )&lt;br /&gt;
{&lt;br /&gt;
Header( "WWW-Authenticate: Basic realm=\"".HTTITLE."\"");&lt;br /&gt;
Header( "HTTP/1.0 401 Unauthorized");&lt;br /&gt;
echo ( HTDENY );&lt;br /&gt;
echo ("Invalid user &amp;amp;gt;" . &lt;br /&gt;
$_SERVER['PHP_AUTH_USER'] . &lt;br /&gt;
"&amp;amp;lt; for this script") ;&lt;br /&gt;
die ();&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Thanx for the script&lt;/p&gt;
&lt;p&gt;Lutz&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lutz</dc:creator><pubDate>Sun, 26 Feb 2006 12:40:09 -0000</pubDate><guid>https://sourceforge.net3c16aee289a4ce2751486b9c8bb3efd30384a1cf</guid></item></channel></rss>